Skip to content

Commit 467840b

Browse files
chore: 更新依赖
1 parent df5b716 commit 467840b

File tree

5 files changed

+42
-60
lines changed

5 files changed

+42
-60
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"source.fixAll.eslint": "explicit"
66
},
77
"[vue]": {
8-
"editor.defaultFormatter": "esbenp.prettier-vscode"
8+
"editor.defaultFormatter": "Vue.volar"
99
},
1010
"i18n-ally.localesPaths": ["src/locales"],
1111
"i18n-ally.keystyle": "nested",

package.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -34,90 +34,90 @@
3434
"@wangeditor/editor-for-vue": "^5.1.10",
3535
"@zxcvbn-ts/core": "^3.0.4",
3636
"animate.css": "^4.1.1",
37-
"axios": "^1.6.7",
37+
"axios": "^1.6.8",
3838
"cropperjs": "^1.6.1",
3939
"dayjs": "^1.11.10",
4040
"driver.js": "^1.3.1",
4141
"echarts": "^5.5.0",
4242
"echarts-wordcloud": "^2.1.0",
43-
"element-plus": "2.5.6",
43+
"element-plus": "2.6.1",
4444
"lodash-es": "^4.17.21",
4545
"mitt": "^3.0.1",
4646
"nprogress": "^0.2.0",
4747
"pinia": "^2.1.7",
4848
"pinia-plugin-persistedstate": "^3.2.1",
4949
"qrcode": "^1.5.3",
50-
"qs": "^6.11.2",
50+
"qs": "^6.12.0",
5151
"url": "^0.11.3",
52-
"vue": "3.4.20",
52+
"vue": "3.4.21",
5353
"vue-draggable-plus": "^0.3.5",
54-
"vue-i18n": "9.9.1",
55-
"vue-json-pretty": "^2.3.0",
54+
"vue-i18n": "9.10.2",
55+
"vue-json-pretty": "^2.4.0",
5656
"vue-router": "^4.3.0",
5757
"vue-types": "^5.1.1",
58-
"xgplayer": "^3.0.13"
58+
"xgplayer": "^3.0.14"
5959
},
6060
"devDependencies": {
61-
"@commitlint/cli": "^19.0.1",
62-
"@commitlint/config-conventional": "^19.0.0",
63-
"@iconify/json": "^2.2.187",
64-
"@intlify/unplugin-vue-i18n": "^2.0.0",
61+
"@commitlint/cli": "^19.2.1",
62+
"@commitlint/config-conventional": "^19.1.0",
63+
"@iconify/json": "^2.2.194",
64+
"@intlify/unplugin-vue-i18n": "^3.0.1",
6565
"@types/fs-extra": "^11.0.4",
6666
"@types/inquirer": "^9.0.7",
6767
"@types/lodash-es": "^4.17.12",
6868
"@types/mockjs": "^1.0.10",
69-
"@types/node": "^20.11.21",
69+
"@types/node": "^20.11.30",
7070
"@types/nprogress": "^0.2.3",
7171
"@types/qrcode": "^1.5.5",
72-
"@types/qs": "^6.9.12",
72+
"@types/qs": "^6.9.14",
7373
"@types/sortablejs": "^1.15.8",
74-
"@typescript-eslint/eslint-plugin": "^7.1.0",
75-
"@typescript-eslint/parser": "^7.1.0",
76-
"@unocss/transformer-variant-group": "^0.58.5",
77-
"@vitejs/plugin-legacy": "^5.3.1",
74+
"@typescript-eslint/eslint-plugin": "^7.3.1",
75+
"@typescript-eslint/parser": "^7.3.1",
76+
"@unocss/transformer-variant-group": "^0.58.6",
77+
"@vitejs/plugin-legacy": "^5.3.2",
7878
"@vitejs/plugin-vue": "^5.0.4",
7979
"@vitejs/plugin-vue-jsx": "^3.1.0",
80-
"autoprefixer": "^10.4.17",
80+
"autoprefixer": "^10.4.19",
8181
"chalk": "^5.3.0",
8282
"consola": "^3.2.3",
8383
"eslint": "^8.57.0",
8484
"eslint-config-prettier": "^9.1.0",
8585
"eslint-define-config": "^2.1.0",
8686
"eslint-plugin-prettier": "^5.1.3",
87-
"eslint-plugin-vue": "^9.22.0",
88-
"esno": "^4.0.0",
87+
"eslint-plugin-vue": "^9.23.0",
88+
"esno": "^4.7.0",
8989
"fs-extra": "^11.2.0",
9090
"husky": "^9.0.11",
91-
"inquirer": "^9.2.15",
91+
"inquirer": "^9.2.16",
9292
"less": "^4.2.0",
9393
"lint-staged": "^15.2.2",
9494
"mockjs": "^1.1.0",
9595
"plop": "^4.0.1",
96-
"postcss": "^8.4.35",
96+
"postcss": "^8.4.38",
9797
"postcss-html": "^1.6.0",
9898
"postcss-less": "^6.0.0",
9999
"prettier": "^3.2.5",
100100
"rimraf": "^5.0.5",
101-
"rollup": "^4.12.0",
101+
"rollup": "^4.13.0",
102102
"rollup-plugin-visualizer": "^5.12.0",
103103
"stylelint": "^16.2.1",
104104
"stylelint-config-html": "^1.1.0",
105105
"stylelint-config-recommended": "^14.0.0",
106106
"stylelint-config-standard": "^36.0.0",
107107
"stylelint-order": "^6.0.4",
108-
"terser": "^5.28.1",
109-
"typescript": "5.3.3",
110-
"unocss": "^0.58.5",
111-
"vite": "5.1.4",
108+
"terser": "^5.29.2",
109+
"typescript": "5.4.3",
110+
"unocss": "^0.58.6",
111+
"vite": "5.2.2",
112112
"vite-plugin-ejs": "^1.7.0",
113113
"vite-plugin-eslint": "^1.8.1",
114114
"vite-plugin-mock": "2.9.6",
115115
"vite-plugin-progress": "^0.0.7",
116116
"vite-plugin-purge-icons": "^0.10.0",
117117
"vite-plugin-style-import": "2.0.0",
118118
"vite-plugin-svg-icons": "^2.0.1",
119-
"vite-plugin-url-copy": "^1.1.3",
120-
"vue-tsc": "^1.8.27"
119+
"vite-plugin-url-copy": "^1.1.4",
120+
"vue-tsc": "^2.0.7"
121121
},
122122
"packageManager": "pnpm@8.1.0",
123123
"engines": {

src/components/Form/src/components/useRenderCheckbox.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ export const useRenderCheckbox = () => {
1313
item.component === ComponentNameEnum.CHECKBOX_GROUP ? ElCheckbox : ElCheckboxButton
1414
) as ReturnType<typeof defineComponent>
1515
return componentProps?.options?.map((option) => {
16-
const { value, ...other } = option
16+
const { ...other } = option
1717
return (
1818
<Com
1919
{...other}
2020
disabled={option[disabledAlias || 'disabled']}
21-
label={option[valueAlias || 'value']}
22-
>
23-
{option[labelAlias || 'label']}
24-
</Com>
21+
label={option[labelAlias || 'label']}
22+
value={option[valueAlias || 'value']}
23+
></Com>
2524
)
2625
})
2726
}

src/components/Form/src/components/useRenderRadio.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ export const useRenderRadio = () => {
1313
item.component === ComponentNameEnum.RADIO_GROUP ? ElRadio : ElRadioButton
1414
) as ReturnType<typeof defineComponent>
1515
return componentProps?.options?.map((option) => {
16-
const { value, ...other } = option
16+
const { ...other } = option
1717
return (
1818
<Com
1919
{...other}
2020
disabled={option[disabledAlias || 'disabled']}
21-
label={option[valueAlias || 'value']}
22-
>
23-
{option[labelAlias || 'label']}
24-
</Com>
21+
label={option[labelAlias || 'label']}
22+
value={option[valueAlias || 'value']}
23+
></Com>
2524
)
2625
})
2726
}

src/views/Components/Form/DefaultForm.vue

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,11 +1052,7 @@ const schema = reactive<FormSchema[]>([
10521052
slots: {
10531053
default: (options: RadioOption[]) => {
10541054
return options?.map((v) => {
1055-
return (
1056-
<ElRadio label={v.value}>
1057-
{v.label}({v.value})
1058-
</ElRadio>
1059-
)
1055+
return <ElRadio label={v.label + `(${v.value})`} value={v.value} />
10601056
})
10611057
}
10621058
}
@@ -1097,11 +1093,7 @@ const schema = reactive<FormSchema[]>([
10971093
slots: {
10981094
default: (options: RadioOption[]) => {
10991095
return options?.map((v) => {
1100-
return (
1101-
<ElRadioButton label={v.value}>
1102-
{v.label}({v.value})
1103-
</ElRadioButton>
1104-
)
1096+
return <ElRadioButton label={v.label + `(${v.value})`} value={v.value} />
11051097
})
11061098
}
11071099
}
@@ -1157,11 +1149,7 @@ const schema = reactive<FormSchema[]>([
11571149
slots: {
11581150
default: (options: CheckboxOption[]) => {
11591151
return options?.map((v) => {
1160-
return (
1161-
<ElCheckbox label={v.value}>
1162-
{v.label}({v.value})
1163-
</ElCheckbox>
1164-
)
1152+
return <ElCheckbox label={v.label + `(${v.value})`} value={v.value} />
11651153
})
11661154
}
11671155
}
@@ -1214,11 +1202,7 @@ const schema = reactive<FormSchema[]>([
12141202
slots: {
12151203
default: (options: CheckboxOption[]) => {
12161204
return options?.map((v) => {
1217-
return (
1218-
<ElCheckboxButton label={v.value}>
1219-
{v.label}({v.value})
1220-
</ElCheckboxButton>
1221-
)
1205+
return <ElCheckboxButton label={v.label + `(${v.value})`} value={v.value} />
12221206
})
12231207
}
12241208
}

0 commit comments

Comments
 (0)