@yoooloo42/joker 1.0.135 → 1.0.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +17 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +17 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -41432,7 +41432,7 @@ const props = __props;
|
|
|
41432
41432
|
// props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
|
|
41433
41433
|
const tableProps_box = props.tableProps;
|
|
41434
41434
|
|
|
41435
|
-
let checkedAll = ref(
|
|
41435
|
+
let checkedAll = ref(false); // 是否全选状态
|
|
41436
41436
|
let isIndeterminate = ref(false); // 不确定状态:非全选、非全空
|
|
41437
41437
|
let itemsChecked = reactive([]); // 已选中条目
|
|
41438
41438
|
|
|
@@ -41448,12 +41448,24 @@ const hdl = {
|
|
|
41448
41448
|
// 全选
|
|
41449
41449
|
checkedAll(val) {
|
|
41450
41450
|
itemsChecked = val ? hdl.getKeys(tableProps_box.table.pickCol.colsInit) : [];
|
|
41451
|
-
isIndeterminate.value =
|
|
41451
|
+
isIndeterminate.value = !val;
|
|
41452
41452
|
},
|
|
41453
41453
|
// 选中或取消某一条
|
|
41454
41454
|
checkedItemsChange(val) {
|
|
41455
|
-
|
|
41456
|
-
|
|
41455
|
+
if(val.length > 0 && val.length === tableProps_box.table.pickCol.colsInit.length){
|
|
41456
|
+
checkedAll.value = true;
|
|
41457
|
+
isIndeterminate.value = false;
|
|
41458
|
+
return
|
|
41459
|
+
}
|
|
41460
|
+
if(val.length > 0 && val.length !== tableProps_box.table.pickCol.colsInit.length){
|
|
41461
|
+
checkedAll.value = false;
|
|
41462
|
+
isIndeterminate.value = true;
|
|
41463
|
+
return
|
|
41464
|
+
}
|
|
41465
|
+
if(val.length === 0){
|
|
41466
|
+
checkedAll.value = false;
|
|
41467
|
+
isIndeterminate.value = false;
|
|
41468
|
+
}
|
|
41457
41469
|
},
|
|
41458
41470
|
confirm() { // 确认提交
|
|
41459
41471
|
tableProps_box.table.cols = [];
|
|
@@ -41794,7 +41806,7 @@ return (_ctx, _cache) => {
|
|
|
41794
41806
|
plain: style.topButtonGroups.button(index, index0).plain,
|
|
41795
41807
|
round: style.topButtonGroups.button(index, index0).round,
|
|
41796
41808
|
circle: style.topButtonGroups.button(index, index0).circle,
|
|
41797
|
-
onClick: $event => (item0.hdlClick ? item0.hdlClick({scopeThis: unref(scopeThis_box)}) : null)
|
|
41809
|
+
onClick: $event => (item0.hdlClick ? item0.hdlClick({tableData: unref(tableData_box), tableProps: unref(tableProps_box), scopeThis: unref(scopeThis_box)}) : null)
|
|
41798
41810
|
}, {
|
|
41799
41811
|
default: withCtx(() => [
|
|
41800
41812
|
(item0.text)
|