perf: 修复默认值相关内容,优化按钮禁用条件

This commit is contained in:
zhaojisen
2024-04-22 20:22:15 +08:00
committed by 老广
parent 70b5ec3683
commit c4361b4c17
2 changed files with 27 additions and 14 deletions

View File

@@ -53,27 +53,34 @@ export default {
},
props: {
boxTitle: {
type: Array
type: Array,
default: () => []
},
boxOperation: {
type: Array
type: Array,
default: () => []
},
// 地域数据
dataObj: {
type: Object
type: Object,
default: () => {}
},
// 已选数据
selectedData: {
type: Array
type: Array,
default: () => []
},
onChangeSelected: {
type: Function
type: Function,
default: () => () => {}
},
filterable: {
type: Boolean
type: Boolean,
default: () => false
},
filterPlaceholder: {
type: String
type: String,
default: () => ''
}
},
data() {

View File

@@ -46,7 +46,7 @@
<div class="vip-footer">
<el-button
type="text"
:disabled="selectedDistrict.length > 0 ? false : true"
:disabled="selectedDistrict.length<=0"
size="small"
round
@click="checkedSelected"
@@ -62,23 +62,29 @@ export default {
components: {},
props: {
title: {
type: String
type: String,
default: () => ''
},
operation: {
type: String
type: String,
default: () => ''
},
operateId: {
type: Number
type: Number,
default: () => 0
},
// 区域数据
districtList: {
type: Array
type: Array,
default: () => []
},
filterable: {
type: Boolean
type: Boolean,
default: () => false
},
filterPlaceholder: {
type: String
type: String,
default: () => ''
}
},
data() {