hookehuyr

✨ feat(上传文件控件): 样式和功能调整

...@@ -49,6 +49,8 @@ declare module '@vue/runtime-core' { ...@@ -49,6 +49,8 @@ declare module '@vue/runtime-core' {
49 NutSwiper: typeof import('@nutui/nutui-taro')['Swiper'] 49 NutSwiper: typeof import('@nutui/nutui-taro')['Swiper']
50 NutSwiperItem: typeof import('@nutui/nutui-taro')['SwiperItem'] 50 NutSwiperItem: typeof import('@nutui/nutui-taro')['SwiperItem']
51 NutTextarea: typeof import('@nutui/nutui-taro')['Textarea'] 51 NutTextarea: typeof import('@nutui/nutui-taro')['Textarea']
52 + NutToast: typeof import('@nutui/nutui-taro')['Toast']
53 + NutUploader: typeof import('@nutui/nutui-taro')['Uploader']
52 PhoneField: typeof import('./src/components/PhoneField/index.vue')['default'] 54 PhoneField: typeof import('./src/components/PhoneField/index.vue')['default']
53 PickerField: typeof import('./src/components/PickerField/index.vue')['default'] 55 PickerField: typeof import('./src/components/PickerField/index.vue')['default']
54 RadioField: typeof import('./src/components/RadioField/index.vue')['default'] 56 RadioField: typeof import('./src/components/RadioField/index.vue')['default']
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
38 "dependencies": { 38 "dependencies": {
39 "@babel/runtime": "^7.7.7", 39 "@babel/runtime": "^7.7.7",
40 "@nutui/icons-vue-taro": "^0.0.9", 40 "@nutui/icons-vue-taro": "^0.0.9",
41 - "@nutui/nutui-taro": "^4.0.4", 41 + "@nutui/nutui-taro": "^4.0.5",
42 "@tarojs/components": "3.6.2", 42 "@tarojs/components": "3.6.2",
43 "@tarojs/extend": "^3.6.2", 43 "@tarojs/extend": "^3.6.2",
44 "@tarojs/helper": "3.6.2", 44 "@tarojs/helper": "3.6.2",
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
57 "@tarojs/taro": "3.6.2", 57 "@tarojs/taro": "3.6.2",
58 "@vant/area-data": "^1.4.1", 58 "@vant/area-data": "^1.4.1",
59 "axios-miniprogram": "^2.0.0-rc-2", 59 "axios-miniprogram": "^2.0.0-rc-2",
60 + "browser-md5-file": "^1.1.1",
60 "dayjs": "^1.11.7", 61 "dayjs": "^1.11.7",
61 "pinia": "2.0.10", 62 "pinia": "2.0.10",
62 "taro-plugin-pinia": "^1.0.0", 63 "taro-plugin-pinia": "^1.0.0",
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
...@@ -9,7 +9,7 @@ import DatePickerField from '@/components/DatePickerField/index.vue' ...@@ -9,7 +9,7 @@ import DatePickerField from '@/components/DatePickerField/index.vue'
9 import TimePickerField from '@/components/TimePickerField/index.vue' 9 import TimePickerField from '@/components/TimePickerField/index.vue'
10 import DateTimePickerField from '@/components/DateTimePickerField/index.vue' 10 import DateTimePickerField from '@/components/DateTimePickerField/index.vue'
11 // import ImageUploaderField from '@/components/ImageUploaderField/index.vue' 11 // import ImageUploaderField from '@/components/ImageUploaderField/index.vue'
12 -// import FileUploaderField from '@/components/FileUploaderField/index.vue' 12 +import FileUploaderField from '@/components/FileUploaderField/index.vue'
13 import PhoneField from '@/components/PhoneField/index.vue' 13 import PhoneField from '@/components/PhoneField/index.vue'
14 import EmailField from '@/components/EmailField/index.vue' 14 import EmailField from '@/components/EmailField/index.vue'
15 // import SignField from '@/components/SignField/index.vue' 15 // import SignField from '@/components/SignField/index.vue'
...@@ -108,9 +108,9 @@ export function createComponentType(data) { ...@@ -108,9 +108,9 @@ export function createComponentType(data) {
108 // if (item.component_props.tag === 'image_uploader') { 108 // if (item.component_props.tag === 'image_uploader') {
109 // item.component = ImageUploaderField 109 // item.component = ImageUploaderField
110 // } 110 // }
111 - // if (item.component_props.tag === 'file_uploader') { 111 + if (item.component_props.tag === 'file_uploader') {
112 - // item.component = FileUploaderField 112 + item.component = FileUploaderField
113 - // } 113 + }
114 if (item.component_props.tag === 'phone') { 114 if (item.component_props.tag === 'phone') {
115 item.name = item.key 115 item.name = item.key
116 item.component = PhoneField 116 item.component = PhoneField
......
...@@ -1359,10 +1359,10 @@ ...@@ -1359,10 +1359,10 @@
1359 resolved "https://mirrors.cloud.tencent.com/npm/@nutui/icons-vue-taro/-/icons-vue-taro-0.0.9.tgz#b5223eb01e2b987fdbe460e5d0439a66481e54f1" 1359 resolved "https://mirrors.cloud.tencent.com/npm/@nutui/icons-vue-taro/-/icons-vue-taro-0.0.9.tgz#b5223eb01e2b987fdbe460e5d0439a66481e54f1"
1360 integrity sha512-10VYAtFC+o1X0anGs+y2PgF1NWMeLFz2JVMRw4BWLg6wbtVbYy9wukLxyGhZC6Yf6t39DcwaGVda8paV7K6/Ew== 1360 integrity sha512-10VYAtFC+o1X0anGs+y2PgF1NWMeLFz2JVMRw4BWLg6wbtVbYy9wukLxyGhZC6Yf6t39DcwaGVda8paV7K6/Ew==
1361 1361
1362 -"@nutui/nutui-taro@^4.0.4": 1362 +"@nutui/nutui-taro@^4.0.5":
1363 - version "4.0.4" 1363 + version "4.0.5"
1364 - resolved "https://mirrors.cloud.tencent.com/npm/@nutui/nutui-taro/-/nutui-taro-4.0.4.tgz#c5b65431ece527e3e531bc7923ad0a7b499daeeb" 1364 + resolved "https://mirrors.cloud.tencent.com/npm/@nutui/nutui-taro/-/nutui-taro-4.0.5.tgz#67c88d582e921641e81432ae1fd136e10e5bc1ea"
1365 - integrity sha512-v9XyXidgiRgZTH5JofgjhJTGGvQDXhOqkLb/uRjlR2c9eQBSU653rlTO82VjUWOpCterYDxtqXswUZIf+PRbfQ== 1365 + integrity sha512-j7+fKtRarfphYJ0uosdalIWvf3k2+x8eDsmBSSnPDyGEeRHtXqGIw8MIxy8wL5UUnADP+6JVK339vC28oo436g==
1366 dependencies: 1366 dependencies:
1367 "@nutui/icons-vue-taro" "^0.0.9" 1367 "@nutui/icons-vue-taro" "^0.0.9"
1368 sass "^1.50.0" 1368 sass "^1.50.0"
...@@ -3546,6 +3546,13 @@ braces@^3.0.2, braces@~3.0.2: ...@@ -3546,6 +3546,13 @@ braces@^3.0.2, braces@~3.0.2:
3546 dependencies: 3546 dependencies:
3547 fill-range "^7.0.1" 3547 fill-range "^7.0.1"
3548 3548
3549 +browser-md5-file@^1.1.1:
3550 + version "1.1.1"
3551 + resolved "https://mirrors.cloud.tencent.com/npm/browser-md5-file/-/browser-md5-file-1.1.1.tgz#247d63527f662d9667adecbe61808b4961b90dc6"
3552 + integrity sha512-9h2UViTtZPhBa7oHvp5mb7MvJaX5OKEPUsplDwJ800OIV+In7BOR3RXOMB78obn2iQVIiS3WkVLhG7Zu1EMwbw==
3553 + dependencies:
3554 + spark-md5 "^2.0.2"
3555 +
3549 browser-process-hrtime@^1.0.0: 3556 browser-process-hrtime@^1.0.0:
3550 version "1.0.0" 3557 version "1.0.0"
3551 resolved "https://mirrors.cloud.tencent.com/npm/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" 3558 resolved "https://mirrors.cloud.tencent.com/npm/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626"
...@@ -11519,6 +11526,11 @@ sourcemap-codec@^1.4.8: ...@@ -11519,6 +11526,11 @@ sourcemap-codec@^1.4.8:
11519 resolved "https://mirrors.cloud.tencent.com/npm/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" 11526 resolved "https://mirrors.cloud.tencent.com/npm/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4"
11520 integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== 11527 integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==
11521 11528
11529 +spark-md5@^2.0.2:
11530 + version "2.0.2"
11531 + resolved "https://mirrors.cloud.tencent.com/npm/spark-md5/-/spark-md5-2.0.2.tgz#37b763847763ae7e7acef2ca5233d01e649a78b7"
11532 + integrity sha1-N7djhHdjrn56zvLKUjPQHmSaeLc=
11533 +
11522 spdx-correct@^3.0.0: 11534 spdx-correct@^3.0.0:
11523 version "3.2.0" 11535 version "3.2.0"
11524 resolved "https://mirrors.cloud.tencent.com/npm/spdx-correct/-/spdx-correct-3.2.0.tgz#4f5ab0668f0059e34f9c00dce331784a12de4e9c" 11536 resolved "https://mirrors.cloud.tencent.com/npm/spdx-correct/-/spdx-correct-3.2.0.tgz#4f5ab0668f0059e34f9c00dce331784a12de4e9c"
......