chore: ⬆️update deps

This commit is contained in:
bqy_fe 2021-07-25 21:05:58 +08:00
parent aa34c2f71b
commit 8619c579d6
10 changed files with 549 additions and 1601 deletions

1
.husky/.gitignore vendored
View File

@ -1 +0,0 @@
_

4
.husky/commit-msg Normal file → Executable file
View File

@ -1,4 +1,6 @@
#!/bin/sh
# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install commitlint --edit
npx --no-install commitlint --edit "$1"

0
.husky/pre-commit Normal file → Executable file
View File

View File

@ -1,4 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# npm run test

View File

@ -1,15 +1,17 @@
# 基于 Vite2.x + Vue3.x + TypeScript H5 低代码平台
### 后续可能会。。。搭建 PC 端后台管理系统低代码平台
### 只是一个简单的模板,感兴趣可以根据自己的需要调整
[![license](https://img.shields.io/github/license/buqiyuan/vite-vue3-lowcode.svg)](LICENSE)
**中文** | [English](./README.EN.md)
## 克隆主分支,忽略 git-pages 等无关分支
## 克隆项目
```shell
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
```
## 技术栈

View File

@ -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'
]
]
}
}

View File

@ -21,62 +21,62 @@
},
"dependencies": {
"@vant/touch-emulator": "^1.3.2",
"@vueuse/core": "^5.1.3",
"@vueuse/integrations": "^5.1.3",
"@vueuse/core": "^5.2.0",
"@vueuse/integrations": "^5.2.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
"dayjs": "^1.10.6",
"dexie": "^3.0.3",
"element-plus": "1.0.2-beta.54",
"element-plus": "1.0.2-beta.58",
"lodash": "^4.17.21",
"monaco-editor": "^0.25.2",
"monaco-editor": "^0.26.1",
"nanoid": "^3.1.23",
"normalize.css": "^8.0.1",
"nprogress": "^1.0.0-1",
"qrcode": "^1.4.4",
"qs": "^6.10.1",
"vant": "3.1.3",
"vue": "3.1.4",
"vant": "3.1.4",
"vue": "3.1.5",
"vue-router": "^4.0.10",
"vuedraggable": "^4.0.3",
"vuex": "^4.0.2"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@types/node": "^16.3.2",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@types/node": "^16.4.2",
"@typescript-eslint/eslint-plugin": "^4.28.4",
"@typescript-eslint/parser": "^4.28.4",
"@vitejs/plugin-legacy": "^1.4.4",
"@vitejs/plugin-vue": "^1.2.5",
"@vitejs/plugin-vue-jsx": "^1.1.6",
"@vue/compiler-sfc": "3.1.4",
"@vue/compiler-sfc": "3.1.5",
"commitizen": "^4.2.4",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"cz-customizable": "^6.3.0",
"eslint": "^7.30.0",
"eslint": "^7.31.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-vue": "^7.13.0",
"eslint-plugin-vue": "^7.14.0",
"gh-pages": "^3.2.3",
"husky": "^7.0.1",
"lint-staged": "^11.0.1",
"lint-staged": "^11.1.1",
"prettier": "^2.3.2",
"pretty-quick": "^3.1.1",
"sass": "1.35.2",
"sass": "1.36.0",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^22.0.0",
"stylelint-order": "^4.1.0",
"typescript": "^4.3.5",
"vite": "2.4.2",
"vite-plugin-components": "^0.12.2",
"vite": "2.4.3",
"vite-plugin-components": "^0.13.2",
"vite-plugin-style-import": "^1.0.1",
"vite-plugin-windicss": "^1.2.4",
"vue-eslint-parser": "^7.8.0",
"vue-tsc": "^0.2.0",
"vite-plugin-windicss": "^1.2.5",
"vue-eslint-parser": "^7.9.0",
"vue-tsc": "^0.2.2",
"windicss": "^3.1.5"
},
"repository": {
@ -97,10 +97,5 @@
"homepage": "https://github.com/buqiyuan/vite-vue3-lowcode#readme",
"lint-staged": {
"*.{vue,js,ts,tsx}": "eslint --fix"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-customizable"
}
}
}

View File

@ -58,7 +58,11 @@ export const PropConfig = defineComponent({
<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.color]: () => <ElColorPicker v-model={propObj[prop]} />,
[VisualEditorPropsType.crossSortable]: () => (

View File

@ -34,6 +34,9 @@ export type VisualEditorProps = {
multiple?: boolean
/** 项属性配置 */
showItemPropsConfig?: boolean
} & {
max?: number
min?: number
} & {
table?: VisualEditorTableOption
}
@ -104,17 +107,23 @@ interface EditorInputNumberProp {
label: string
defaultValue?: any
tips?: string
max?: number
min?: number
}
export function createEditorInputNumberProp({
label,
defaultValue,
max,
min,
tips
}: EditorInputNumberProp): VisualEditorProps {
return {
type: VisualEditorPropsType.inputNumber,
label,
tips,
max,
min,
defaultValue
}
}

2040
yarn.lock

File diff suppressed because it is too large Load Diff