vxe-pc-ui 4.8.17 → 4.8.18
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/es/icon/style.css +1 -1
- package/es/select/src/select.js +6 -6
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +6 -8
- package/es/tree/src/tree.js +4 -2
- package/es/tree-select/src/tree-select.js +10 -12
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +37 -34
- package/lib/index.umd.min.js +1 -1
- package/lib/select/src/select.js +7 -6
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table-select/src/table-select.js +8 -10
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tree/src/tree.js +6 -2
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/tree-select/src/tree-select.js +14 -14
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/select/src/select.ts +6 -6
- package/packages/table-select/src/table-select.ts +6 -8
- package/packages/tree/src/tree.ts +4 -2
- package/packages/tree-select/src/tree-select.ts +14 -16
- package/types/components/table.d.ts +29 -4
- package/types/components/tree.d.ts +2 -0
- /package/es/icon/{iconfont.1755178505241.ttf → iconfont.1755232629593.ttf} +0 -0
- /package/es/icon/{iconfont.1755178505241.woff → iconfont.1755232629593.woff} +0 -0
- /package/es/icon/{iconfont.1755178505241.woff2 → iconfont.1755232629593.woff2} +0 -0
- /package/es/{iconfont.1755178505241.ttf → iconfont.1755232629593.ttf} +0 -0
- /package/es/{iconfont.1755178505241.woff → iconfont.1755232629593.woff} +0 -0
- /package/es/{iconfont.1755178505241.woff2 → iconfont.1755232629593.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1755178505241.ttf → iconfont.1755232629593.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1755178505241.woff → iconfont.1755232629593.woff} +0 -0
- /package/lib/icon/style/{iconfont.1755178505241.woff2 → iconfont.1755232629593.woff2} +0 -0
- /package/lib/{iconfont.1755178505241.ttf → iconfont.1755232629593.ttf} +0 -0
- /package/lib/{iconfont.1755178505241.woff → iconfont.1755232629593.woff} +0 -0
- /package/lib/{iconfont.1755178505241.woff2 → iconfont.1755232629593.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3566,14 +3566,14 @@ function checkDynamic() {
|
|
|
3566
3566
|
}
|
|
3567
3567
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
3568
3568
|
|
|
3569
|
-
const log_version = `ui v${"4.8.
|
|
3569
|
+
const log_version = `ui v${"4.8.18"}`;
|
|
3570
3570
|
const warnLog = log.create('warn', log_version);
|
|
3571
3571
|
const errLog = log.create('error', log_version);
|
|
3572
3572
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
3573
3573
|
|
|
3574
3574
|
|
|
3575
3575
|
|
|
3576
|
-
const ui_version = "4.8.
|
|
3576
|
+
const ui_version = "4.8.18";
|
|
3577
3577
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
3578
3578
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
3579
3579
|
function config(options) {
|
|
@@ -29493,11 +29493,12 @@ function select_createInternalData() {
|
|
|
29493
29493
|
visible: false
|
|
29494
29494
|
}, null);
|
|
29495
29495
|
};
|
|
29496
|
-
const changeEvent = (evnt, selectValue) => {
|
|
29496
|
+
const changeEvent = (evnt, selectValue, option) => {
|
|
29497
29497
|
emitModel(selectValue);
|
|
29498
29498
|
if (selectValue !== props.modelValue) {
|
|
29499
29499
|
dispatchEvent('change', {
|
|
29500
|
-
value: selectValue
|
|
29500
|
+
value: selectValue,
|
|
29501
|
+
option
|
|
29501
29502
|
}, evnt);
|
|
29502
29503
|
// 自动更新校验状态
|
|
29503
29504
|
if ($xeForm && formItemInfo) {
|
|
@@ -29507,7 +29508,7 @@ function select_createInternalData() {
|
|
|
29507
29508
|
};
|
|
29508
29509
|
const clearValueEvent = (evnt, selectValue) => {
|
|
29509
29510
|
internalData.remoteValMaps = {};
|
|
29510
|
-
changeEvent(evnt, selectValue);
|
|
29511
|
+
changeEvent(evnt, selectValue, null);
|
|
29511
29512
|
dispatchEvent('clear', {
|
|
29512
29513
|
value: selectValue
|
|
29513
29514
|
}, evnt);
|
|
@@ -29551,7 +29552,7 @@ function select_createInternalData() {
|
|
|
29551
29552
|
multipleValue.push(selectValue);
|
|
29552
29553
|
}
|
|
29553
29554
|
}
|
|
29554
|
-
changeEvent($event, multipleValue);
|
|
29555
|
+
changeEvent($event, multipleValue, optList[0]);
|
|
29555
29556
|
dispatchEvent('all-change', {
|
|
29556
29557
|
value: multipleValue
|
|
29557
29558
|
}, $event);
|
|
@@ -29597,9 +29598,9 @@ function select_createInternalData() {
|
|
|
29597
29598
|
} else {
|
|
29598
29599
|
multipleValue = selectVals.filter(val => val !== selectValue);
|
|
29599
29600
|
}
|
|
29600
|
-
changeEvent(evnt, multipleValue);
|
|
29601
|
+
changeEvent(evnt, multipleValue, option);
|
|
29601
29602
|
} else {
|
|
29602
|
-
changeEvent(evnt, selectValue);
|
|
29603
|
+
changeEvent(evnt, selectValue, option);
|
|
29603
29604
|
hideOptionPanel();
|
|
29604
29605
|
}
|
|
29605
29606
|
reactData.reactFlag++;
|
|
@@ -35600,16 +35601,13 @@ function getRowUniqueId() {
|
|
|
35600
35601
|
internalData.hpTimeout = undefined;
|
|
35601
35602
|
}, 350);
|
|
35602
35603
|
};
|
|
35603
|
-
const changeEvent = (evnt, selectValue) => {
|
|
35604
|
-
const {
|
|
35605
|
-
fullRowMaps
|
|
35606
|
-
} = reactData;
|
|
35604
|
+
const changeEvent = (evnt, selectValue, row) => {
|
|
35607
35605
|
emitModel(selectValue);
|
|
35608
35606
|
if (selectValue !== props.modelValue) {
|
|
35609
|
-
const cacheItem = fullRowMaps[selectValue];
|
|
35610
35607
|
dispatchEvent('change', {
|
|
35611
35608
|
value: selectValue,
|
|
35612
|
-
row
|
|
35609
|
+
row,
|
|
35610
|
+
option: row
|
|
35613
35611
|
}, evnt);
|
|
35614
35612
|
// 自动更新校验状态
|
|
35615
35613
|
if ($xeForm && formItemInfo) {
|
|
@@ -35618,7 +35616,7 @@ function getRowUniqueId() {
|
|
|
35618
35616
|
}
|
|
35619
35617
|
};
|
|
35620
35618
|
const clearValueEvent = (evnt, selectValue) => {
|
|
35621
|
-
changeEvent(evnt, selectValue);
|
|
35619
|
+
changeEvent(evnt, selectValue, null);
|
|
35622
35620
|
dispatchEvent('clear', {
|
|
35623
35621
|
value: selectValue
|
|
35624
35622
|
}, evnt);
|
|
@@ -35726,13 +35724,14 @@ function getRowUniqueId() {
|
|
|
35726
35724
|
} = params;
|
|
35727
35725
|
const valueField = computeValueField.value;
|
|
35728
35726
|
const value = row[valueField];
|
|
35729
|
-
changeEvent($event, value);
|
|
35727
|
+
changeEvent($event, value, row);
|
|
35730
35728
|
hideOptionPanel();
|
|
35731
35729
|
};
|
|
35732
35730
|
const checkboxChangeEvent = params => {
|
|
35733
35731
|
const {
|
|
35734
35732
|
$grid,
|
|
35735
|
-
$event
|
|
35733
|
+
$event,
|
|
35734
|
+
row
|
|
35736
35735
|
} = params;
|
|
35737
35736
|
const valueField = computeValueField.value;
|
|
35738
35737
|
if ($grid) {
|
|
@@ -35740,7 +35739,7 @@ function getRowUniqueId() {
|
|
|
35740
35739
|
const value = checkboxRecords.map(row => {
|
|
35741
35740
|
return row[valueField];
|
|
35742
35741
|
});
|
|
35743
|
-
changeEvent($event, value);
|
|
35742
|
+
changeEvent($event, value, row);
|
|
35744
35743
|
}
|
|
35745
35744
|
};
|
|
35746
35745
|
const checkboxAllEvent = params => {
|
|
@@ -39377,7 +39376,8 @@ function tree_createInternalData() {
|
|
|
39377
39376
|
updateCheckboxStatus();
|
|
39378
39377
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
39379
39378
|
return {
|
|
39380
|
-
checkNodeKeys: []
|
|
39379
|
+
checkNodeKeys: [],
|
|
39380
|
+
checkNodes: []
|
|
39381
39381
|
};
|
|
39382
39382
|
});
|
|
39383
39383
|
},
|
|
@@ -39389,10 +39389,12 @@ function tree_createInternalData() {
|
|
|
39389
39389
|
const childrenField = computeChildrenField.value;
|
|
39390
39390
|
const mapChildrenField = computeMapChildrenField.value;
|
|
39391
39391
|
const checkKeys = [];
|
|
39392
|
+
const checkNodes = [];
|
|
39392
39393
|
if (checked) {
|
|
39393
39394
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(internalData.afterTreeList, node => {
|
|
39394
39395
|
const nodeid = getNodeId(node);
|
|
39395
39396
|
checkKeys.push(nodeid);
|
|
39397
|
+
checkNodes.push(node);
|
|
39396
39398
|
selectMaps[nodeid] = true;
|
|
39397
39399
|
}, {
|
|
39398
39400
|
children: transform ? mapChildrenField : childrenField
|
|
@@ -39404,7 +39406,8 @@ function tree_createInternalData() {
|
|
|
39404
39406
|
updateCheckboxStatus();
|
|
39405
39407
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
39406
39408
|
return {
|
|
39407
|
-
checkNodeKeys: checkKeys
|
|
39409
|
+
checkNodeKeys: checkKeys,
|
|
39410
|
+
checkNodes
|
|
39408
39411
|
};
|
|
39409
39412
|
});
|
|
39410
39413
|
},
|
|
@@ -40463,17 +40466,14 @@ function tree_select_createInternalData() {
|
|
|
40463
40466
|
reactData.isAniVisible = false;
|
|
40464
40467
|
}, 350);
|
|
40465
40468
|
};
|
|
40466
|
-
const changeEvent = (evnt, selectValue) => {
|
|
40467
|
-
const {
|
|
40468
|
-
fullNodeMaps
|
|
40469
|
-
} = internalData;
|
|
40469
|
+
const changeEvent = (evnt, selectValue, node) => {
|
|
40470
40470
|
const value = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(selectValue) ? selectValue.map(deNodeValue) : deNodeValue(selectValue);
|
|
40471
40471
|
emitModel(value);
|
|
40472
40472
|
if (value !== props.modelValue) {
|
|
40473
|
-
const cacheItem = fullNodeMaps[selectValue];
|
|
40474
40473
|
dispatchEvent('change', {
|
|
40475
40474
|
value,
|
|
40476
|
-
|
|
40475
|
+
node,
|
|
40476
|
+
option: node
|
|
40477
40477
|
}, evnt);
|
|
40478
40478
|
// 自动更新校验状态
|
|
40479
40479
|
if ($xeForm && formItemInfo) {
|
|
@@ -40482,7 +40482,7 @@ function tree_select_createInternalData() {
|
|
|
40482
40482
|
}
|
|
40483
40483
|
};
|
|
40484
40484
|
const clearValueEvent = (evnt, selectValue) => {
|
|
40485
|
-
changeEvent(evnt, selectValue);
|
|
40485
|
+
changeEvent(evnt, selectValue, null);
|
|
40486
40486
|
dispatchEvent('clear', {
|
|
40487
40487
|
value: selectValue
|
|
40488
40488
|
}, evnt);
|
|
@@ -40503,9 +40503,10 @@ function tree_select_createInternalData() {
|
|
|
40503
40503
|
if (multiple) {
|
|
40504
40504
|
if ($tree) {
|
|
40505
40505
|
$tree.setAllCheckboxNode(true).then(({
|
|
40506
|
-
checkNodeKeys
|
|
40506
|
+
checkNodeKeys,
|
|
40507
|
+
checkNodes
|
|
40507
40508
|
}) => {
|
|
40508
|
-
changeEvent($event, checkNodeKeys);
|
|
40509
|
+
changeEvent($event, checkNodeKeys, checkNodes[0]);
|
|
40509
40510
|
dispatchEvent('all-change', {
|
|
40510
40511
|
value: checkNodeKeys
|
|
40511
40512
|
}, $event);
|
|
@@ -40532,7 +40533,7 @@ function tree_select_createInternalData() {
|
|
|
40532
40533
|
hideOptionPanel();
|
|
40533
40534
|
}
|
|
40534
40535
|
});
|
|
40535
|
-
changeEvent($event, value);
|
|
40536
|
+
changeEvent($event, value, null);
|
|
40536
40537
|
dispatchEvent('clear', {
|
|
40537
40538
|
value
|
|
40538
40539
|
}, $event);
|
|
@@ -40686,17 +40687,19 @@ function tree_select_createInternalData() {
|
|
|
40686
40687
|
const radioChangeEvent = params => {
|
|
40687
40688
|
const {
|
|
40688
40689
|
value,
|
|
40689
|
-
$event
|
|
40690
|
+
$event,
|
|
40691
|
+
node
|
|
40690
40692
|
} = params;
|
|
40691
|
-
changeEvent($event, value);
|
|
40693
|
+
changeEvent($event, value, node);
|
|
40692
40694
|
hideOptionPanel();
|
|
40693
40695
|
};
|
|
40694
40696
|
const checkboxChangeEvent = params => {
|
|
40695
40697
|
const {
|
|
40696
40698
|
value,
|
|
40697
|
-
$event
|
|
40699
|
+
$event,
|
|
40700
|
+
node
|
|
40698
40701
|
} = params;
|
|
40699
|
-
changeEvent($event, value);
|
|
40702
|
+
changeEvent($event, value, node);
|
|
40700
40703
|
};
|
|
40701
40704
|
const loadSuccessEvent = () => {
|
|
40702
40705
|
cacheDataMap();
|