mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 14:34:46 +00:00
perf: 修复默认值相关内容,优化按钮禁用条件
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user