hookehuyr

fix 默认值为空优化

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