fix:xtSelect中count_canhandover数量大于零才能被选
This commit is contained in:
parent
3506255b92
commit
29546b71e7
|
|
@ -56,6 +56,7 @@
|
||||||
v-if="multiple"
|
v-if="multiple"
|
||||||
type="selection"
|
type="selection"
|
||||||
width="40"
|
width="40"
|
||||||
|
:selectable="selectable"
|
||||||
:reserve-selection="true"
|
:reserve-selection="true"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<slot v-if="!isFixOptions"></slot>
|
<slot v-if="!isFixOptions"></slot>
|
||||||
|
|
@ -89,7 +90,7 @@ const props = defineProps({
|
||||||
});
|
});
|
||||||
|
|
||||||
const emit = defineEmits(["update:modelValue", "update:obj", "update:label", "change"]);
|
const emit = defineEmits(["update:modelValue", "update:obj", "update:label", "change"]);
|
||||||
|
const selectable = (row) => row.count_canhandover?row.count_canhandover>0:true;
|
||||||
// 控制 popover 显示与隐藏的状态
|
// 控制 popover 显示与隐藏的状态
|
||||||
const showPopover = ref(false);
|
const showPopover = ref(false);
|
||||||
const inputRef = ref();
|
const inputRef = ref();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue