Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-06-14 15:02:00 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bef59e5e16ba9fd536af995fda0519142410d251
bef59e5e
1 parent
6b294086
fix 默认值为空优化
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
components.d.ts
src/components/ImageUploaderField/index.vue
components.d.ts
View file @
bef59e5
...
...
@@ -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'
]
...
...
src/components/ImageUploaderField/index.vue
View file @
bef59e5
<!--
* @Date: 2022-08-31 16:16:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-1
3 16:40:11
* @LastEditTime: 2024-06-1
4 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)
}
})
...
...
Please
register
or
login
to post a comment