diff --git a/package.json b/package.json
index 7cfffb63583faf55ac6d0fe7c3e5eb545b7024b7..5b115c9147cc6433caffd470056df1ed820b2971 100644
--- a/package.json
+++ b/package.json
@@ -88,15 +88,17 @@
"@dcloudio/uni-components": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-h5": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4010520240507001",
+ "@form-create/vant": "^3",
"@iconify/json": "^2.2.260",
"dayjs": "1.11.10",
+ "mockjs": "^1.1.0",
"pinia": "2.0.36",
"pinia-plugin-persistedstate": "3.2.1",
"qs": "6.5.3",
+ "vant": "^4.9.17",
"vue": "3.4.21",
"wot-design-uni": "^1.3.10",
- "z-paging": "^2.7.10",
- "mockjs": "^1.1.0"
+ "z-paging": "^2.7.10"
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
@@ -121,6 +123,7 @@
"@uni-helper/vite-plugin-uni-pages": "0.2.20",
"@uni-helper/vite-plugin-uni-platform": "^0.0.4",
"@unocss/preset-legacy-compat": "^0.59.4",
+ "@vant/auto-import-resolver": "^1.2.1",
"@vitejs/plugin-vue-jsx": "^4.0.1",
"@vue/runtime-core": "^3.4.29",
"@vue/tsconfig": "^0.1.3",
@@ -152,7 +155,8 @@
"typescript": "^5.5.4",
"unocss": "^0.58.9",
"unocss-applet": "^0.7.8",
- "unplugin-auto-import": "^0.17.6",
+ "unplugin-auto-import": "^0.17.8",
+ "unplugin-vue-components": "^28.0.0",
"vite": "5.2.8",
"vite-plugin-restart": "^0.4.0",
"vue-tsc": "^1.8.27"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 91d03e90f325bbd6d56ccdc19dc21ef0412e5779..9c637f2abc70f72e77d3f0ef07f8e3fec3b101c2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -26,6 +26,9 @@ importers:
'@dcloudio/uni-mp-weixin':
specifier: 3.0.0-alpha-4010520240507001
version: 3.0.0-alpha-4010520240507001(postcss@8.4.49)(rollup@4.27.2)(vue@3.4.21(typescript@5.6.3))
+ '@form-create/vant':
+ specifier: ^3
+ version: 3.2.18(vue@3.4.21(typescript@5.6.3))
'@iconify/json':
specifier: ^2.2.260
version: 2.2.273
@@ -44,6 +47,9 @@ importers:
qs:
specifier: 6.5.3
version: 6.5.3
+ vant:
+ specifier: ^4.9.17
+ version: 4.9.17(vue@3.4.21(typescript@5.6.3))
vue:
specifier: 3.4.21
version: 3.4.21(typescript@5.6.3)
@@ -120,6 +126,9 @@ importers:
'@unocss/preset-legacy-compat':
specifier: ^0.59.4
version: 0.59.4
+ '@vant/auto-import-resolver':
+ specifier: ^1.2.1
+ version: 1.2.1
'@vitejs/plugin-vue-jsx':
specifier: ^4.0.1
version: 4.1.0(vite@5.2.8(@types/node@20.17.6)(sass@1.77.5)(terser@5.36.0))(vue@3.4.21(typescript@5.6.3))
@@ -146,7 +155,7 @@ importers:
version: 9.1.0(eslint@8.57.1)
eslint-config-standard:
specifier: ^17.1.0
- version: 17.1.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1))(eslint-plugin-n@16.6.2(eslint@8.57.1))(eslint-plugin-promise@6.6.0(eslint@8.57.1))(eslint@8.57.1)
+ version: 17.1.0(eslint-plugin-import@2.31.0)(eslint-plugin-n@16.6.2(eslint@8.57.1))(eslint-plugin-promise@6.6.0(eslint@8.57.1))(eslint@8.57.1)
eslint-import-resolver-typescript:
specifier: ^3.6.1
version: 3.6.3(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-plugin-import@2.31.0)(eslint@8.57.1)
@@ -214,8 +223,11 @@ importers:
specifier: ^0.7.8
version: 0.7.8
unplugin-auto-import:
- specifier: ^0.17.6
+ specifier: ^0.17.8
version: 0.17.8(rollup@4.27.2)
+ unplugin-vue-components:
+ specifier: ^28.0.0
+ version: 28.0.0(@babel/parser@7.26.2)(rollup@4.27.2)(vue@3.4.21(typescript@5.6.3))
vite:
specifier: 5.2.8
version: 5.2.8(@types/node@20.17.6)(sass@1.77.5)(terser@5.36.0)
@@ -1162,6 +1174,22 @@ packages:
resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ '@form-create/component-subform@3.1.34':
+ resolution: {integrity: sha512-OJcFH/7MTHx7JLEjDK/weS27qfuFWAI+OK+gXTJ2jIt9aZkGWF/EWkjetiJLt5a0KMw4Z15wOS2XCY9pVK9vlA==}
+
+ '@form-create/core@3.2.18':
+ resolution: {integrity: sha512-oIjtwlDfJm+BSmXRE0yEcHWN3f3MH/I1e3GPWvdHl7jQsspxmHSH9km+bKX9/U4N+WzQtnlJVzohDnKD/g7Q8g==}
+ peerDependencies:
+ vue: ^3.1.0
+
+ '@form-create/utils@3.2.18':
+ resolution: {integrity: sha512-C98bFPdFVMltiHQvEZqv4rVdhcqthJgvxMbWDlniL03HS5oyusnUvxUE8jf0I9zk5dZRDGmxKOUtzE3JDWP9nQ==}
+
+ '@form-create/vant@3.2.18':
+ resolution: {integrity: sha512-fV2ej/ydUF86IfUw5a3JwLOEVXdg3eoDPLCIII6XTRzKDYUBG+Gt6ni9ukmqeoMhJIXRF/aIoecVV6mkTgJsUQ==}
+ peerDependencies:
+ vue: ^3.1.0
+
'@humanwhocodes/config-array@0.13.0':
resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==}
engines: {node: '>=10.10.0'}
@@ -1498,6 +1526,15 @@ packages:
rollup:
optional: true
+ '@rollup/pluginutils@5.1.4':
+ resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+
'@rollup/rollup-android-arm-eabi@4.27.2':
resolution: {integrity: sha512-Tj+j7Pyzd15wAdSJswvs5CJzJNV+qqSUcr/aCD+jpQSBtXvGnV0pnrjoc8zFTe9fcKCatkpFpOO7yAzpO998HA==}
cpu: [arm]
@@ -1911,6 +1948,17 @@ packages:
peerDependencies:
vite: ^2.9.0 || ^3.0.0-0 || ^4.0.0 || ^5.0.0-0
+ '@vant/auto-import-resolver@1.2.1':
+ resolution: {integrity: sha512-czGWW4UolNITkF3qQSQlpHDHAsI3/GHVKbRMmEEpry7NWdnU4p5a5jBi0VApbaLa5g80Hy10XVs3IB+UozoSUw==}
+
+ '@vant/popperjs@1.3.0':
+ resolution: {integrity: sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw==}
+
+ '@vant/use@1.6.0':
+ resolution: {integrity: sha512-PHHxeAASgiOpSmMjceweIrv2AxDZIkWXyaczksMoWvKV2YAYEhoizRuk/xFnKF+emUIi46TsQ+rvlm/t2BBCfA==}
+ peerDependencies:
+ vue: ^3.0.0
+
'@vitejs/plugin-legacy@5.4.3':
resolution: {integrity: sha512-wsyXK9mascyplcqvww1gA1xYiy29iRHfyciw+a0t7qRNdzX6PdfSWmOoCi74epr87DujM+5J+rnnSv+4PazqVg==}
engines: {node: ^18.0.0 || >=20.0.0}
@@ -2595,6 +2643,9 @@ packages:
dayjs@1.11.10:
resolution: {integrity: sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==}
+ dayjs@1.11.13:
+ resolution: {integrity: sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==}
+
de-indent@1.0.2:
resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==}
@@ -2623,6 +2674,15 @@ packages:
supports-color:
optional: true
+ debug@4.4.0:
+ resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==}
+ engines: {node: '>=6.0'}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+
decamelize-keys@1.1.1:
resolution: {integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==}
engines: {node: '>=0.10.0'}
@@ -3023,6 +3083,10 @@ packages:
resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==}
engines: {node: '>=8.6.0'}
+ fast-glob@3.3.3:
+ resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}
+ engines: {node: '>=8.6.0'}
+
fast-json-stable-stringify@2.1.0:
resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
@@ -3841,6 +3905,10 @@ packages:
resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==}
engines: {node: '>=14'}
+ local-pkg@0.5.1:
+ resolution: {integrity: sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==}
+ engines: {node: '>=14'}
+
localstorage-polyfill@1.0.1:
resolution: {integrity: sha512-m4iHVZxFH5734oQcPKU08025gIz2+4bjWR9lulP8ZYxEJR0BpA0w32oJmkzh8y3UI9ci7xCBehQDc3oA1X+VHw==}
engines: {node: '>=6'}
@@ -3916,6 +3984,9 @@ packages:
magic-string@0.30.12:
resolution: {integrity: sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==}
+ magic-string@0.30.17:
+ resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}
+
make-dir@4.0.0:
resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}
engines: {node: '>=10'}
@@ -5198,10 +5269,27 @@ packages:
'@vueuse/core':
optional: true
+ unplugin-vue-components@28.0.0:
+ resolution: {integrity: sha512-vYe0wSyqTVhyNFIad1iiGyQGhG++tDOMgohqenMDOAooMJP9vvzCdXTqCVx20A0rCQXFNjgoRbSeDAioLPH36Q==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/parser': ^7.15.8
+ '@nuxt/kit': ^3.2.2
+ vue: 2 || 3
+ peerDependenciesMeta:
+ '@babel/parser':
+ optional: true
+ '@nuxt/kit':
+ optional: true
+
unplugin@1.16.0:
resolution: {integrity: sha512-5liCNPuJW8dqh3+DM6uNM2EI3MLLpCKp/KY+9pB5M2S2SR2qvvDHhKgBOaTWEbZTAws3CXfB0rKTIolWKL05VQ==}
engines: {node: '>=14.0.0'}
+ unplugin@2.2.0:
+ resolution: {integrity: sha512-m1ekpSwuOT5hxkJeZGRxO7gXbXT3gF26NjQ7GdVHoLoF8/nopLcd/QfPigpCy7i51oFHiRJg/CyHhj4vs2+KGw==}
+ engines: {node: '>=18.12.0'}
+
unquote@1.1.1:
resolution: {integrity: sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==}
@@ -5234,6 +5322,11 @@ packages:
validate-npm-package-license@3.0.4:
resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==}
+ vant@4.9.17:
+ resolution: {integrity: sha512-so/plH9G4au9rUrqy7yLB1slmZqY2Ub3Gq8ckMSQXbUEwTzmViVjEDqh/hNck/XELxwL+gIy2hLXiSgVcf2EBQ==}
+ peerDependencies:
+ vue: ^3.0.0
+
vary@1.1.2:
resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}
engines: {node: '>= 0.8'}
@@ -6895,6 +6988,23 @@ snapshots:
'@eslint/js@8.57.1': {}
+ '@form-create/component-subform@3.1.34': {}
+
+ '@form-create/core@3.2.18(vue@3.4.21(typescript@5.6.3))':
+ dependencies:
+ '@form-create/utils': 3.2.18
+ vue: 3.4.21(typescript@5.6.3)
+
+ '@form-create/utils@3.2.18': {}
+
+ '@form-create/vant@3.2.18(vue@3.4.21(typescript@5.6.3))':
+ dependencies:
+ '@form-create/component-subform': 3.1.34
+ '@form-create/core': 3.2.18(vue@3.4.21(typescript@5.6.3))
+ '@form-create/utils': 3.2.18
+ dayjs: 1.11.13
+ vue: 3.4.21(typescript@5.6.3)
+
'@humanwhocodes/config-array@0.13.0':
dependencies:
'@humanwhocodes/object-schema': 2.0.3
@@ -7454,6 +7564,14 @@ snapshots:
optionalDependencies:
rollup: 4.27.2
+ '@rollup/pluginutils@5.1.4(rollup@4.27.2)':
+ dependencies:
+ '@types/estree': 1.0.6
+ estree-walker: 2.0.2
+ picomatch: 4.0.2
+ optionalDependencies:
+ rollup: 4.27.2
+
'@rollup/rollup-android-arm-eabi@4.27.2':
optional: true
@@ -7952,6 +8070,14 @@ snapshots:
transitivePeerDependencies:
- rollup
+ '@vant/auto-import-resolver@1.2.1': {}
+
+ '@vant/popperjs@1.3.0': {}
+
+ '@vant/use@1.6.0(vue@3.4.21(typescript@5.6.3))':
+ dependencies:
+ vue: 3.4.21(typescript@5.6.3)
+
'@vitejs/plugin-legacy@5.4.3(terser@5.36.0)(vite@5.2.8(@types/node@20.17.6)(sass@1.77.5)(terser@5.36.0))':
dependencies:
'@babel/core': 7.26.0
@@ -8754,6 +8880,8 @@ snapshots:
dayjs@1.11.10: {}
+ dayjs@1.11.13: {}
+
de-indent@1.0.2: {}
debug@2.6.9:
@@ -8768,6 +8896,10 @@ snapshots:
dependencies:
ms: 2.1.3
+ debug@4.4.0:
+ dependencies:
+ ms: 2.1.3
+
decamelize-keys@1.1.1:
dependencies:
decamelize: 1.2.0
@@ -9018,7 +9150,7 @@ snapshots:
dependencies:
eslint: 8.57.1
- eslint-config-standard@17.1.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1))(eslint-plugin-n@16.6.2(eslint@8.57.1))(eslint-plugin-promise@6.6.0(eslint@8.57.1))(eslint@8.57.1):
+ eslint-config-standard@17.1.0(eslint-plugin-import@2.31.0)(eslint-plugin-n@16.6.2(eslint@8.57.1))(eslint-plugin-promise@6.6.0(eslint@8.57.1))(eslint@8.57.1):
dependencies:
eslint: 8.57.1
eslint-plugin-import: 2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1)
@@ -9039,7 +9171,7 @@ snapshots:
debug: 4.3.7
enhanced-resolve: 5.17.1
eslint: 8.57.1
- eslint-module-utils: 2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-plugin-import@2.31.0)(eslint@8.57.1))(eslint@8.57.1)
+ eslint-module-utils: 2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1)
fast-glob: 3.3.2
get-tsconfig: 4.8.1
is-bun-module: 1.2.1
@@ -9052,7 +9184,7 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
- eslint-module-utils@2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-plugin-import@2.31.0)(eslint@8.57.1))(eslint@8.57.1):
+ eslint-module-utils@2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1):
dependencies:
debug: 3.2.7
optionalDependencies:
@@ -9081,7 +9213,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.1
eslint-import-resolver-node: 0.3.9
- eslint-module-utils: 2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-plugin-import@2.31.0)(eslint@8.57.1))(eslint@8.57.1)
+ eslint-module-utils: 2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1)
hasown: 2.0.2
is-core-module: 2.15.1
is-glob: 4.0.3
@@ -9304,6 +9436,14 @@ snapshots:
merge2: 1.4.1
micromatch: 4.0.8
+ fast-glob@3.3.3:
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ '@nodelib/fs.walk': 1.2.8
+ glob-parent: 5.1.2
+ merge2: 1.4.1
+ micromatch: 4.0.8
+
fast-json-stable-stringify@2.1.0: {}
fast-levenshtein@2.0.6: {}
@@ -10343,6 +10483,11 @@ snapshots:
mlly: 1.7.3
pkg-types: 1.2.1
+ local-pkg@0.5.1:
+ dependencies:
+ mlly: 1.7.3
+ pkg-types: 1.2.1
+
localstorage-polyfill@1.0.1: {}
locate-path@5.0.0:
@@ -10407,6 +10552,10 @@ snapshots:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.0
+ magic-string@0.30.17:
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.0
+
make-dir@4.0.0:
dependencies:
semver: 7.6.3
@@ -11741,11 +11890,35 @@ snapshots:
transitivePeerDependencies:
- rollup
+ unplugin-vue-components@28.0.0(@babel/parser@7.26.2)(rollup@4.27.2)(vue@3.4.21(typescript@5.6.3)):
+ dependencies:
+ '@antfu/utils': 0.7.10
+ '@rollup/pluginutils': 5.1.4(rollup@4.27.2)
+ chokidar: 3.6.0
+ debug: 4.4.0
+ fast-glob: 3.3.3
+ local-pkg: 0.5.1
+ magic-string: 0.30.17
+ minimatch: 9.0.5
+ mlly: 1.7.3
+ unplugin: 2.2.0
+ vue: 3.4.21(typescript@5.6.3)
+ optionalDependencies:
+ '@babel/parser': 7.26.2
+ transitivePeerDependencies:
+ - rollup
+ - supports-color
+
unplugin@1.16.0:
dependencies:
acorn: 8.14.0
webpack-virtual-modules: 0.6.2
+ unplugin@2.2.0:
+ dependencies:
+ acorn: 8.14.0
+ webpack-virtual-modules: 0.6.2
+
unquote@1.1.1: {}
update-browserslist-db@1.1.1(browserslist@4.24.2):
@@ -11782,6 +11955,13 @@ snapshots:
spdx-correct: 3.2.0
spdx-expression-parse: 3.0.1
+ vant@4.9.17(vue@3.4.21(typescript@5.6.3)):
+ dependencies:
+ '@vant/popperjs': 1.3.0
+ '@vant/use': 1.6.0(vue@3.4.21(typescript@5.6.3))
+ '@vue/shared': 3.5.13
+ vue: 3.4.21(typescript@5.6.3)
+
vary@1.1.2: {}
vite-plugin-restart@0.4.1(vite@5.2.8(@types/node@20.17.6)(sass@1.77.5)(terser@5.36.0)):
diff --git a/src/main.ts b/src/main.ts
index 87c1cb1f85a03a9585e79a07d6b87fd3c621b4f3..4109c2675f2d36ee8adee14d63d0432f16b212d3 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -9,6 +9,9 @@ import {
import './utils/mockExtend'
import 'virtual:uno.css'
import '@/style/index.scss'
+import formCreateMobile from '@form-create/vant/src'
+import install from '@form-create/vant/auto-import'
+import 'vant/lib/index.css'
export function createApp() {
const app = createSSRApp(App)
@@ -16,6 +19,9 @@ export function createApp() {
app.use(routeInterceptor)
app.use(requestInterceptor)
app.use(prototypeInterceptor)
+ // formcreate-vant
+ formCreateMobile.use(install)
+ app.use(formCreateMobile)
return {
app
}
diff --git a/src/pages/bpm/process-definition/index.vue b/src/pages/bpm/process-definition/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..8a7209c17feae22ce620bba96097a7a464fbe7d1
--- /dev/null
+++ b/src/pages/bpm/process-definition/index.vue
@@ -0,0 +1,330 @@
+
+{
+ layout: 'default',
+ type: 'page',
+ style: {
+ navigationBarTitleText: '发起申请'
+ // navigationStyle: 'custom' TODO 这个导航栏需要自定义吗?
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ tab.name }}
+
+
+
+
+
+
+
+
+ {{ getCategoryName(category) }}
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+ 发起申请
+
+
+
+
+ 审批中心
+
+
+
+
+ 待定
+
+
+
+
+
+
+
diff --git a/src/pages/colab/detail/index.vue b/src/pages/colab/detail/index.vue
index c0e842df06dbe9c709fb5ce3bb4cddda02e102de..225e0933b96a4c3e6e39cd1b9820b380fdb63614 100644
--- a/src/pages/colab/detail/index.vue
+++ b/src/pages/colab/detail/index.vue
@@ -7,6 +7,21 @@
+
+
+
+ formcreate vant demo
+
+
+
+
+
+
@@ -425,6 +440,62 @@
}
return ''
}
+
+ // ============formcreate vant demo================
+ const fApi = ref({})
+ // 表单预览数据
+ const formPreview = ref({
+ formData: {},
+ rule: [],
+ option: {
+ submitBtn: false,
+ resetBtn: false,
+ formData: {}
+ }
+ })
+ const decodeFields = (fields: string[]) => {
+ const rule: object[] = []
+ fields.forEach((item) => {
+ rule.push(JSON.parse(item))
+ })
+ return rule
+ }
+ const setConfAndFields2 = (
+ detailPreview: object,
+ conf: string,
+ fields: string[],
+ value?: object
+ ) => {
+ if (isRef(detailPreview)) {
+ detailPreview = detailPreview.value
+ }
+ detailPreview.option = conf
+ detailPreview.rule = decodeFields(fields)
+ if (value) {
+ detailPreview.value = value
+ }
+ }
+
+ // 这里用的是数据库bpm_form中conf和field字段
+ setConfAndFields2(
+ formPreview.value,
+ {
+ form: {
+ labelPosition: 'right',
+ size: 'small',
+ labelWidth: '125px',
+ hideRequiredAsterisk: false,
+ showMessage: true,
+ inlineMessage: false
+ },
+ submitBtn: { show: true, innerText: '提交' },
+ resetBtn: { show: false, innerText: '重置' }
+ },
+ [
+ '{"type":"input","field":"Fm3i650bo7zvr","title":"输入框","info":"","$required":false,"_fc_drag_tag":"input","hidden":false,"display":true}'
+ ]
+ )
+ // ============formcreate vant demo================