Skip to content

Commit 8619c57

Browse files
committed
chore: ⬆️update deps
1 parent aa34c2f commit 8619c57

File tree

10 files changed

+550
-1602
lines changed

10 files changed

+550
-1602
lines changed

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/commit-msg

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/sh
2+
3+
# shellcheck source=./_/husky.sh
24
. "$(dirname "$0")/_/husky.sh"
35

4-
npx --no-install commitlint --edit
6+
npx --no-install commitlint --edit "$1"

.husky/pre-commit

100644100755
File mode changed.

.husky/pre-push

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# 基于 Vite2.x + Vue3.x + TypeScript H5 低代码平台
22

3-
### 后续可能会。。。搭建 PC 端后台管理系统低代码平台
3+
### 只是一个简单的模板,感兴趣可以根据自己的需要调整
44

55
[![license](https://img.shields.io/github/license/buqiyuan/vite-vue3-lowcode.svg)](LICENSE)
66

77
**中文** | [English](./README.EN.md)
88

9-
## 克隆主分支,忽略 git-pages 等无关分支
9+
## 克隆项目
1010

1111
```shell
1212
git clone --single-branch https://github.com/buqiyuan/vite-vue3-lowcode.git
13+
or
14+
git clone --depth=1 https://github.com/buqiyuan/vite-vue3-lowcode.git
1315
```
1416

1517
## 技术栈

commitlint.config.js

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
1-
module.exports = { extends: ['@commitlint/config-conventional'] }
1+
module.exports = {
2+
ignores: [(commit) => commit.includes('init')],
3+
extends: ['@commitlint/config-conventional'],
4+
rules: {
5+
'body-leading-blank': [2, 'always'],
6+
'footer-leading-blank': [1, 'always'],
7+
'header-max-length': [2, 'always', 108],
8+
'subject-empty': [2, 'never'],
9+
'type-empty': [2, 'never'],
10+
'type-enum': [
11+
2,
12+
'always',
13+
[
14+
'feat',
15+
'fix',
16+
'perf',
17+
'style',
18+
'docs',
19+
'test',
20+
'refactor',
21+
'build',
22+
'ci',
23+
'chore',
24+
'revert',
25+
'wip',
26+
'workflow',
27+
'types',
28+
'release'
29+
]
30+
]
31+
}
32+
}

package.json

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,62 +21,62 @@
2121
},
2222
"dependencies": {
2323
"@vant/touch-emulator": "^1.3.2",
24-
"@vueuse/core": "^5.1.3",
25-
"@vueuse/integrations": "^5.1.3",
24+
"@vueuse/core": "^5.2.0",
25+
"@vueuse/integrations": "^5.2.0",
2626
"animate.css": "^4.1.1",
2727
"axios": "^0.21.1",
2828
"dayjs": "^1.10.6",
2929
"dexie": "^3.0.3",
30-
"element-plus": "1.0.2-beta.54",
30+
"element-plus": "1.0.2-beta.58",
3131
"lodash": "^4.17.21",
32-
"monaco-editor": "^0.25.2",
32+
"monaco-editor": "^0.26.1",
3333
"nanoid": "^3.1.23",
3434
"normalize.css": "^8.0.1",
3535
"nprogress": "^1.0.0-1",
3636
"qrcode": "^1.4.4",
3737
"qs": "^6.10.1",
38-
"vant": "3.1.3",
39-
"vue": "3.1.4",
38+
"vant": "3.1.4",
39+
"vue": "3.1.5",
4040
"vue-router": "^4.0.10",
4141
"vuedraggable": "^4.0.3",
4242
"vuex": "^4.0.2"
4343
},
4444
"devDependencies": {
45-
"@commitlint/cli": "^12.1.4",
46-
"@commitlint/config-conventional": "^12.1.4",
47-
"@types/node": "^16.3.2",
48-
"@typescript-eslint/eslint-plugin": "^4.28.3",
49-
"@typescript-eslint/parser": "^4.28.3",
45+
"@commitlint/cli": "^13.1.0",
46+
"@commitlint/config-conventional": "^13.1.0",
47+
"@types/node": "^16.4.2",
48+
"@typescript-eslint/eslint-plugin": "^4.28.4",
49+
"@typescript-eslint/parser": "^4.28.4",
5050
"@vitejs/plugin-legacy": "^1.4.4",
5151
"@vitejs/plugin-vue": "^1.2.5",
5252
"@vitejs/plugin-vue-jsx": "^1.1.6",
53-
"@vue/compiler-sfc": "3.1.4",
53+
"@vue/compiler-sfc": "3.1.5",
5454
"commitizen": "^4.2.4",
5555
"cross-env": "^7.0.3",
5656
"cz-conventional-changelog": "^3.3.0",
5757
"cz-customizable": "^6.3.0",
58-
"eslint": "^7.30.0",
58+
"eslint": "^7.31.0",
5959
"eslint-config-prettier": "^8.3.0",
6060
"eslint-plugin-import": "^2.23.4",
6161
"eslint-plugin-prettier": "^3.4.0",
62-
"eslint-plugin-vue": "^7.13.0",
62+
"eslint-plugin-vue": "^7.14.0",
6363
"gh-pages": "^3.2.3",
6464
"husky": "^7.0.1",
65-
"lint-staged": "^11.0.1",
65+
"lint-staged": "^11.1.1",
6666
"prettier": "^2.3.2",
6767
"pretty-quick": "^3.1.1",
68-
"sass": "1.35.2",
68+
"sass": "1.36.0",
6969
"stylelint": "^13.13.1",
7070
"stylelint-config-prettier": "^8.0.2",
7171
"stylelint-config-standard": "^22.0.0",
7272
"stylelint-order": "^4.1.0",
7373
"typescript": "^4.3.5",
74-
"vite": "2.4.2",
75-
"vite-plugin-components": "^0.12.2",
74+
"vite": "2.4.3",
75+
"vite-plugin-components": "^0.13.2",
7676
"vite-plugin-style-import": "^1.0.1",
77-
"vite-plugin-windicss": "^1.2.4",
78-
"vue-eslint-parser": "^7.8.0",
79-
"vue-tsc": "^0.2.0",
77+
"vite-plugin-windicss": "^1.2.5",
78+
"vue-eslint-parser": "^7.9.0",
79+
"vue-tsc": "^0.2.2",
8080
"windicss": "^3.1.5"
8181
},
8282
"repository": {
@@ -97,10 +97,5 @@
9797
"homepage": "https://github.com/buqiyuan/vite-vue3-lowcode#readme",
9898
"lint-staged": {
9999
"*.{vue,js,ts,tsx}": "eslint --fix"
100-
},
101-
"config": {
102-
"commitizen": {
103-
"path": "./node_modules/cz-customizable"
104-
}
105100
}
106101
}

src/visual-editor/components/right-attribute-panel/components/attr-editor/components/prop-config/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ export const PropConfig = defineComponent({
5858
<ElInput v-model={propObj[prop]} placeholder={propConfig.tips || propConfig.label} />
5959
)
6060
},
61-
[VisualEditorPropsType.inputNumber]: () => <ElInputNumber v-model={propObj[prop]} />,
61+
[VisualEditorPropsType.inputNumber]: () => {
62+
const parseRes = parseFloat(propObj[prop])
63+
propObj[prop] = Number.isNaN(parseRes) ? 0 : parseRes
64+
return <ElInputNumber v-model={propObj[prop]} />
65+
},
6266
[VisualEditorPropsType.switch]: () => <ElSwitch v-model={propObj[prop]} />,
6367
[VisualEditorPropsType.color]: () => <ElColorPicker v-model={propObj[prop]} />,
6468
[VisualEditorPropsType.crossSortable]: () => (

src/visual-editor/visual-editor.props.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export type VisualEditorProps = {
3434
multiple?: boolean
3535
/** 项属性配置 */
3636
showItemPropsConfig?: boolean
37+
} & {
38+
max?: number
39+
min?: number
3740
} & {
3841
table?: VisualEditorTableOption
3942
}
@@ -104,17 +107,23 @@ interface EditorInputNumberProp {
104107
label: string
105108
defaultValue?: any
106109
tips?: string
110+
max?: number
111+
min?: number
107112
}
108113

109114
export function createEditorInputNumberProp({
110115
label,
111116
defaultValue,
117+
max,
118+
min,
112119
tips
113120
}: EditorInputNumberProp): VisualEditorProps {
114121
return {
115122
type: VisualEditorPropsType.inputNumber,
116123
label,
117124
tips,
125+
max,
126+
min,
118127
defaultValue
119128
}
120129
}

0 commit comments

Comments
 (0)