hookehuyr

fix 默认值为空优化

...@@ -8,7 +8,6 @@ export {} ...@@ -8,7 +8,6 @@ export {}
8 declare module '@vue/runtime-core' { 8 declare module '@vue/runtime-core' {
9 export interface GlobalComponents { 9 export interface GlobalComponents {
10 AppointmentField: typeof import('./src/components/AppointmentField/index.vue')['default'] 10 AppointmentField: typeof import('./src/components/AppointmentField/index.vue')['default']
11 - ApprovalField: typeof import('./src/components/ApprovalField/index.vue')['default']
12 AreaPickerField: typeof import('./src/components/AreaPickerField/index.vue')['default'] 11 AreaPickerField: typeof import('./src/components/AreaPickerField/index.vue')['default']
13 ButtonField: typeof import('./src/components/ButtonField/index.vue')['default'] 12 ButtonField: typeof import('./src/components/ButtonField/index.vue')['default']
14 CalendarField: typeof import('./src/components/CalendarField/index.vue')['default'] 13 CalendarField: typeof import('./src/components/CalendarField/index.vue')['default']
...@@ -57,7 +56,6 @@ declare module '@vue/runtime-core' { ...@@ -57,7 +56,6 @@ declare module '@vue/runtime-core' {
57 VanDatePicker: typeof import('vant/es')['DatePicker'] 56 VanDatePicker: typeof import('vant/es')['DatePicker']
58 VanDivider: typeof import('vant/es')['Divider'] 57 VanDivider: typeof import('vant/es')['Divider']
59 VanField: typeof import('vant/es')['Field'] 58 VanField: typeof import('vant/es')['Field']
60 - VanFloatingBubble: typeof import('vant/es')['FloatingBubble']
61 VanForm: typeof import('vant/es')['Form'] 59 VanForm: typeof import('vant/es')['Form']
62 VanIcon: typeof import('vant/es')['Icon'] 60 VanIcon: typeof import('vant/es')['Icon']
63 VanImage: typeof import('vant/es')['Image'] 61 VanImage: typeof import('vant/es')['Image']
......
1 <!-- 1 <!--
2 * @Date: 2022-08-31 16:16:49 2 * @Date: 2022-08-31 16:16:49
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-06-13 16:40:11 4 + * @LastEditTime: 2024-06-14 15:01:13
5 * @FilePath: /data-table/src/components/ImageUploaderField/index.vue 5 * @FilePath: /data-table/src/components/ImageUploaderField/index.vue
6 * @Description: 图片上传控件 6 * @Description: 图片上传控件
7 --> 7 -->
...@@ -90,7 +90,7 @@ const default_list = ref([]); ...@@ -90,7 +90,7 @@ const default_list = ref([]);
90 90
91 onMounted(() => { 91 onMounted(() => {
92 // 默认图片显示 92 // 默认图片显示
93 - if (default_tmp.value.length) { 93 + if (default_tmp.value && default_tmp.value.length) {
94 default_list.value = default_tmp.value.map(item => item.url) 94 default_list.value = default_tmp.value.map(item => item.url)
95 } 95 }
96 }) 96 })
......