提交价格功能绑定
This commit is contained in:
@@ -57,6 +57,11 @@ const props = defineProps({
|
||||
updateSupportLabel: {
|
||||
type: String,
|
||||
default: '是否更新已经存在的数据'
|
||||
},
|
||||
// 打开时是否默认勾选“更新已存在”
|
||||
defaultUpdateSupport: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
|
||||
@@ -77,7 +82,7 @@ const templateUrl = computed(() => !!props.templateAction)
|
||||
|
||||
// 打开对话框(供父组件通过 ref 调用)
|
||||
function open() {
|
||||
updateSupport.value = false
|
||||
updateSupport.value = props.defaultUpdateSupport
|
||||
isUploading.value = false
|
||||
visible.value = true
|
||||
nextTick(() => {
|
||||
|
||||
Reference in New Issue
Block a user