chore: ⬆️update deps
This commit is contained in:
parent
aa34c2f71b
commit
8619c579d6
|
@ -1 +0,0 @@
|
||||||
_
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# shellcheck source=./_/husky.sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
npx --no-install commitlint --edit
|
npx --no-install commitlint --edit "$1"
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
# npm run test
|
|
|
@ -1,15 +1,17 @@
|
||||||
# 基于 Vite2.x + Vue3.x + TypeScript H5 低代码平台
|
# 基于 Vite2.x + Vue3.x + TypeScript H5 低代码平台
|
||||||
|
|
||||||
### 后续可能会。。。搭建 PC 端后台管理系统低代码平台
|
### 只是一个简单的模板,感兴趣可以根据自己的需要调整
|
||||||
|
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
|
||||||
**中文** | [English](./README.EN.md)
|
**中文** | [English](./README.EN.md)
|
||||||
|
|
||||||
## 克隆主分支,忽略 git-pages 等无关分支
|
## 克隆项目
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
git clone --single-branch https://github.com/buqiyuan/vite-vue3-lowcode.git
|
git clone --single-branch https://github.com/buqiyuan/vite-vue3-lowcode.git
|
||||||
|
or
|
||||||
|
git clone --depth=1 https://github.com/buqiyuan/vite-vue3-lowcode.git
|
||||||
```
|
```
|
||||||
|
|
||||||
## 技术栈
|
## 技术栈
|
||||||
|
|
|
@ -1 +1,32 @@
|
||||||
module.exports = { extends: ['@commitlint/config-conventional'] }
|
module.exports = {
|
||||||
|
ignores: [(commit) => commit.includes('init')],
|
||||||
|
extends: ['@commitlint/config-conventional'],
|
||||||
|
rules: {
|
||||||
|
'body-leading-blank': [2, 'always'],
|
||||||
|
'footer-leading-blank': [1, 'always'],
|
||||||
|
'header-max-length': [2, 'always', 108],
|
||||||
|
'subject-empty': [2, 'never'],
|
||||||
|
'type-empty': [2, 'never'],
|
||||||
|
'type-enum': [
|
||||||
|
2,
|
||||||
|
'always',
|
||||||
|
[
|
||||||
|
'feat',
|
||||||
|
'fix',
|
||||||
|
'perf',
|
||||||
|
'style',
|
||||||
|
'docs',
|
||||||
|
'test',
|
||||||
|
'refactor',
|
||||||
|
'build',
|
||||||
|
'ci',
|
||||||
|
'chore',
|
||||||
|
'revert',
|
||||||
|
'wip',
|
||||||
|
'workflow',
|
||||||
|
'types',
|
||||||
|
'release'
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
47
package.json
47
package.json
|
@ -21,62 +21,62 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vant/touch-emulator": "^1.3.2",
|
"@vant/touch-emulator": "^1.3.2",
|
||||||
"@vueuse/core": "^5.1.3",
|
"@vueuse/core": "^5.2.0",
|
||||||
"@vueuse/integrations": "^5.1.3",
|
"@vueuse/integrations": "^5.2.0",
|
||||||
"animate.css": "^4.1.1",
|
"animate.css": "^4.1.1",
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
"dayjs": "^1.10.6",
|
"dayjs": "^1.10.6",
|
||||||
"dexie": "^3.0.3",
|
"dexie": "^3.0.3",
|
||||||
"element-plus": "1.0.2-beta.54",
|
"element-plus": "1.0.2-beta.58",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"monaco-editor": "^0.25.2",
|
"monaco-editor": "^0.26.1",
|
||||||
"nanoid": "^3.1.23",
|
"nanoid": "^3.1.23",
|
||||||
"normalize.css": "^8.0.1",
|
"normalize.css": "^8.0.1",
|
||||||
"nprogress": "^1.0.0-1",
|
"nprogress": "^1.0.0-1",
|
||||||
"qrcode": "^1.4.4",
|
"qrcode": "^1.4.4",
|
||||||
"qs": "^6.10.1",
|
"qs": "^6.10.1",
|
||||||
"vant": "3.1.3",
|
"vant": "3.1.4",
|
||||||
"vue": "3.1.4",
|
"vue": "3.1.5",
|
||||||
"vue-router": "^4.0.10",
|
"vue-router": "^4.0.10",
|
||||||
"vuedraggable": "^4.0.3",
|
"vuedraggable": "^4.0.3",
|
||||||
"vuex": "^4.0.2"
|
"vuex": "^4.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^12.1.4",
|
"@commitlint/cli": "^13.1.0",
|
||||||
"@commitlint/config-conventional": "^12.1.4",
|
"@commitlint/config-conventional": "^13.1.0",
|
||||||
"@types/node": "^16.3.2",
|
"@types/node": "^16.4.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.28.3",
|
"@typescript-eslint/eslint-plugin": "^4.28.4",
|
||||||
"@typescript-eslint/parser": "^4.28.3",
|
"@typescript-eslint/parser": "^4.28.4",
|
||||||
"@vitejs/plugin-legacy": "^1.4.4",
|
"@vitejs/plugin-legacy": "^1.4.4",
|
||||||
"@vitejs/plugin-vue": "^1.2.5",
|
"@vitejs/plugin-vue": "^1.2.5",
|
||||||
"@vitejs/plugin-vue-jsx": "^1.1.6",
|
"@vitejs/plugin-vue-jsx": "^1.1.6",
|
||||||
"@vue/compiler-sfc": "3.1.4",
|
"@vue/compiler-sfc": "3.1.5",
|
||||||
"commitizen": "^4.2.4",
|
"commitizen": "^4.2.4",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"cz-conventional-changelog": "^3.3.0",
|
"cz-conventional-changelog": "^3.3.0",
|
||||||
"cz-customizable": "^6.3.0",
|
"cz-customizable": "^6.3.0",
|
||||||
"eslint": "^7.30.0",
|
"eslint": "^7.31.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-import": "^2.23.4",
|
"eslint-plugin-import": "^2.23.4",
|
||||||
"eslint-plugin-prettier": "^3.4.0",
|
"eslint-plugin-prettier": "^3.4.0",
|
||||||
"eslint-plugin-vue": "^7.13.0",
|
"eslint-plugin-vue": "^7.14.0",
|
||||||
"gh-pages": "^3.2.3",
|
"gh-pages": "^3.2.3",
|
||||||
"husky": "^7.0.1",
|
"husky": "^7.0.1",
|
||||||
"lint-staged": "^11.0.1",
|
"lint-staged": "^11.1.1",
|
||||||
"prettier": "^2.3.2",
|
"prettier": "^2.3.2",
|
||||||
"pretty-quick": "^3.1.1",
|
"pretty-quick": "^3.1.1",
|
||||||
"sass": "1.35.2",
|
"sass": "1.36.0",
|
||||||
"stylelint": "^13.13.1",
|
"stylelint": "^13.13.1",
|
||||||
"stylelint-config-prettier": "^8.0.2",
|
"stylelint-config-prettier": "^8.0.2",
|
||||||
"stylelint-config-standard": "^22.0.0",
|
"stylelint-config-standard": "^22.0.0",
|
||||||
"stylelint-order": "^4.1.0",
|
"stylelint-order": "^4.1.0",
|
||||||
"typescript": "^4.3.5",
|
"typescript": "^4.3.5",
|
||||||
"vite": "2.4.2",
|
"vite": "2.4.3",
|
||||||
"vite-plugin-components": "^0.12.2",
|
"vite-plugin-components": "^0.13.2",
|
||||||
"vite-plugin-style-import": "^1.0.1",
|
"vite-plugin-style-import": "^1.0.1",
|
||||||
"vite-plugin-windicss": "^1.2.4",
|
"vite-plugin-windicss": "^1.2.5",
|
||||||
"vue-eslint-parser": "^7.8.0",
|
"vue-eslint-parser": "^7.9.0",
|
||||||
"vue-tsc": "^0.2.0",
|
"vue-tsc": "^0.2.2",
|
||||||
"windicss": "^3.1.5"
|
"windicss": "^3.1.5"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -97,10 +97,5 @@
|
||||||
"homepage": "https://github.com/buqiyuan/vite-vue3-lowcode#readme",
|
"homepage": "https://github.com/buqiyuan/vite-vue3-lowcode#readme",
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{vue,js,ts,tsx}": "eslint --fix"
|
"*.{vue,js,ts,tsx}": "eslint --fix"
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"commitizen": {
|
|
||||||
"path": "./node_modules/cz-customizable"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,11 @@ export const PropConfig = defineComponent({
|
||||||
<ElInput v-model={propObj[prop]} placeholder={propConfig.tips || propConfig.label} />
|
<ElInput v-model={propObj[prop]} placeholder={propConfig.tips || propConfig.label} />
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
[VisualEditorPropsType.inputNumber]: () => <ElInputNumber v-model={propObj[prop]} />,
|
[VisualEditorPropsType.inputNumber]: () => {
|
||||||
|
const parseRes = parseFloat(propObj[prop])
|
||||||
|
propObj[prop] = Number.isNaN(parseRes) ? 0 : parseRes
|
||||||
|
return <ElInputNumber v-model={propObj[prop]} />
|
||||||
|
},
|
||||||
[VisualEditorPropsType.switch]: () => <ElSwitch v-model={propObj[prop]} />,
|
[VisualEditorPropsType.switch]: () => <ElSwitch v-model={propObj[prop]} />,
|
||||||
[VisualEditorPropsType.color]: () => <ElColorPicker v-model={propObj[prop]} />,
|
[VisualEditorPropsType.color]: () => <ElColorPicker v-model={propObj[prop]} />,
|
||||||
[VisualEditorPropsType.crossSortable]: () => (
|
[VisualEditorPropsType.crossSortable]: () => (
|
||||||
|
|
|
@ -34,6 +34,9 @@ export type VisualEditorProps = {
|
||||||
multiple?: boolean
|
multiple?: boolean
|
||||||
/** 项属性配置 */
|
/** 项属性配置 */
|
||||||
showItemPropsConfig?: boolean
|
showItemPropsConfig?: boolean
|
||||||
|
} & {
|
||||||
|
max?: number
|
||||||
|
min?: number
|
||||||
} & {
|
} & {
|
||||||
table?: VisualEditorTableOption
|
table?: VisualEditorTableOption
|
||||||
}
|
}
|
||||||
|
@ -104,17 +107,23 @@ interface EditorInputNumberProp {
|
||||||
label: string
|
label: string
|
||||||
defaultValue?: any
|
defaultValue?: any
|
||||||
tips?: string
|
tips?: string
|
||||||
|
max?: number
|
||||||
|
min?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createEditorInputNumberProp({
|
export function createEditorInputNumberProp({
|
||||||
label,
|
label,
|
||||||
defaultValue,
|
defaultValue,
|
||||||
|
max,
|
||||||
|
min,
|
||||||
tips
|
tips
|
||||||
}: EditorInputNumberProp): VisualEditorProps {
|
}: EditorInputNumberProp): VisualEditorProps {
|
||||||
return {
|
return {
|
||||||
type: VisualEditorPropsType.inputNumber,
|
type: VisualEditorPropsType.inputNumber,
|
||||||
label,
|
label,
|
||||||
tips,
|
tips,
|
||||||
|
max,
|
||||||
|
min,
|
||||||
defaultValue
|
defaultValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue