vxe-pc-ui 4.16.5 → 4.16.6
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/all.esm.js +35 -13
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/list/src/list.js +21 -9
- package/es/menu/style.css +4 -2
- package/es/menu/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tree/src/tree.js +12 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-menu/style.css +4 -2
- package/es/vxe-menu/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +35 -13
- package/lib/index.umd.min.js +1 -1
- package/lib/list/src/list.js +21 -9
- package/lib/list/src/list.min.js +1 -1
- package/lib/menu/style/style.css +4 -2
- package/lib/menu/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tree/src/tree.js +12 -2
- package/lib/tree/src/tree.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/lib/vxe-menu/style/style.css +4 -2
- package/lib/vxe-menu/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/list/src/list.ts +25 -13
- package/packages/tree/src/tree.ts +12 -2
- package/styles/components/menu.scss +4 -2
- package/types/components/list.d.ts +12 -0
- package/types/components/tree.d.ts +12 -0
- /package/es/icon/{iconfont.1783670404729.ttf → iconfont.1783838735018.ttf} +0 -0
- /package/es/icon/{iconfont.1783670404729.woff → iconfont.1783838735018.woff} +0 -0
- /package/es/icon/{iconfont.1783670404729.woff2 → iconfont.1783838735018.woff2} +0 -0
- /package/es/{iconfont.1783670404729.ttf → iconfont.1783838735018.ttf} +0 -0
- /package/es/{iconfont.1783670404729.woff → iconfont.1783838735018.woff} +0 -0
- /package/es/{iconfont.1783670404729.woff2 → iconfont.1783838735018.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1783670404729.ttf → iconfont.1783838735018.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1783670404729.woff → iconfont.1783838735018.woff} +0 -0
- /package/lib/icon/style/{iconfont.1783670404729.woff2 → iconfont.1783838735018.woff2} +0 -0
- /package/lib/{iconfont.1783670404729.ttf → iconfont.1783838735018.ttf} +0 -0
- /package/lib/{iconfont.1783670404729.woff → iconfont.1783838735018.woff} +0 -0
- /package/lib/{iconfont.1783670404729.woff2 → iconfont.1783838735018.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -81,7 +81,7 @@ function checkDynamic() {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const { log } = VxeUI;
|
|
84
|
-
const uiVersion = `ui v${"4.16.
|
|
84
|
+
const uiVersion = `ui v${"4.16.6"}`;
|
|
85
85
|
function createComponentLog(name) {
|
|
86
86
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
87
87
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -95,7 +95,7 @@ function createComponentLog(name) {
|
|
|
95
95
|
const warnLog$h = log.create('warn', uiVersion);
|
|
96
96
|
log.create('error', uiVersion);
|
|
97
97
|
|
|
98
|
-
const version = "4.16.
|
|
98
|
+
const version = "4.16.6";
|
|
99
99
|
VxeUI.uiVersion = version;
|
|
100
100
|
VxeUI.dynamicApp = dynamicApp;
|
|
101
101
|
function config(options) {
|
|
@@ -7248,7 +7248,12 @@ var VxeListComponent = defineVxeComponent({
|
|
|
7248
7248
|
const el = refElem.value;
|
|
7249
7249
|
if (el) {
|
|
7250
7250
|
const parentEl = el.parentElement;
|
|
7251
|
-
|
|
7251
|
+
let parentHeight = 0;
|
|
7252
|
+
if (parentEl) {
|
|
7253
|
+
const parentStyle = getComputedStyle(parentEl);
|
|
7254
|
+
parentHeight = parentEl.clientHeight - Math.ceil(XEUtils.toNumber(parentStyle.paddingLeft) + XEUtils.toNumber(parentStyle.paddingRight));
|
|
7255
|
+
}
|
|
7256
|
+
reactData.parentHeight = parentHeight;
|
|
7252
7257
|
updateHeight();
|
|
7253
7258
|
if (el.clientWidth && el.clientHeight) {
|
|
7254
7259
|
return computeScrollLoad();
|
|
@@ -7940,7 +7945,7 @@ var VxeListComponent = defineVxeComponent({
|
|
|
7940
7945
|
emitCheckboxMode(value);
|
|
7941
7946
|
return updateCheckboxStatus();
|
|
7942
7947
|
};
|
|
7943
|
-
const
|
|
7948
|
+
const getCheckboxRecords = () => {
|
|
7944
7949
|
const { updateCheckboxFlag } = reactData;
|
|
7945
7950
|
const { selectCheckboxMaps } = internalData;
|
|
7946
7951
|
const rowList = [];
|
|
@@ -8288,7 +8293,8 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8288
8293
|
clearRadioRow,
|
|
8289
8294
|
setCheckboxRow,
|
|
8290
8295
|
setCheckboxRowByKey,
|
|
8291
|
-
|
|
8296
|
+
getCheckboxRecords,
|
|
8297
|
+
getCheckboxRows: getCheckboxRecords,
|
|
8292
8298
|
getCheckboxRowKeys,
|
|
8293
8299
|
clearCheckboxRow,
|
|
8294
8300
|
setAllCheckboxRow,
|
|
@@ -8385,6 +8391,12 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8385
8391
|
isRemoveByRow(row) {
|
|
8386
8392
|
const rowid = getRowId(row);
|
|
8387
8393
|
return !!reactData.removeRowFlag && !!internalData.removeRowMaps[rowid];
|
|
8394
|
+
},
|
|
8395
|
+
getRecordset() {
|
|
8396
|
+
return {
|
|
8397
|
+
insertRecords: $xeList.getInsertRecords(),
|
|
8398
|
+
removeRecords: $xeList.getRemoveRecords()
|
|
8399
|
+
};
|
|
8388
8400
|
}
|
|
8389
8401
|
};
|
|
8390
8402
|
const listPrivateMethods = {
|
|
@@ -8689,6 +8701,12 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8689
8701
|
isCheckboxChecked = !!(updateCheckboxFlag && selectCheckboxMaps[rowid]);
|
|
8690
8702
|
}
|
|
8691
8703
|
const ctVNs = [];
|
|
8704
|
+
if (showRadio) {
|
|
8705
|
+
ctVNs.push(renderRadio(row, rowid, isRadioChecked));
|
|
8706
|
+
}
|
|
8707
|
+
if (showCheckbox) {
|
|
8708
|
+
ctVNs.push(renderCheckbox(row, rowid, isCheckboxChecked));
|
|
8709
|
+
}
|
|
8692
8710
|
let isDragDisabled = false;
|
|
8693
8711
|
if (isDrag && keyField && (!visibleMethod || visibleMethod(rowParams))) {
|
|
8694
8712
|
const handleOns = {};
|
|
@@ -8712,12 +8730,6 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8712
8730
|
])
|
|
8713
8731
|
]));
|
|
8714
8732
|
}
|
|
8715
|
-
if (showRadio) {
|
|
8716
|
-
ctVNs.push(renderRadio(row, rowid, isRadioChecked));
|
|
8717
|
-
}
|
|
8718
|
-
if (showCheckbox) {
|
|
8719
|
-
ctVNs.push(renderCheckbox(row, rowid, isCheckboxChecked));
|
|
8720
|
-
}
|
|
8721
8733
|
ctVNs.push(h('div', {
|
|
8722
8734
|
key: 'ct5',
|
|
8723
8735
|
class: 'vxe-list--row-content'
|
|
@@ -42216,6 +42228,9 @@ var VxeTreeComponent = defineVxeComponent({
|
|
|
42216
42228
|
return nodeKeys;
|
|
42217
42229
|
},
|
|
42218
42230
|
getCheckboxNodes() {
|
|
42231
|
+
return $xeTree.getCheckboxRecords();
|
|
42232
|
+
},
|
|
42233
|
+
getCheckboxRecords() {
|
|
42219
42234
|
const { nodeMaps, selectCheckboxMaps } = internalData;
|
|
42220
42235
|
const list = [];
|
|
42221
42236
|
XEUtils.each(selectCheckboxMaps, (item, nodeid) => {
|
|
@@ -42620,7 +42635,13 @@ var VxeTreeComponent = defineVxeComponent({
|
|
|
42620
42635
|
const nodeid = getNodeId(node);
|
|
42621
42636
|
return !!reactData.removeNodeFlag && !!internalData.removeNodeMaps[nodeid];
|
|
42622
42637
|
},
|
|
42623
|
-
closeTooltip
|
|
42638
|
+
closeTooltip,
|
|
42639
|
+
getRecordset() {
|
|
42640
|
+
return {
|
|
42641
|
+
insertRecords: $xeTree.getInsertRecords(),
|
|
42642
|
+
removeRecords: $xeTree.getRemoveRecords()
|
|
42643
|
+
};
|
|
42644
|
+
}
|
|
42624
42645
|
};
|
|
42625
42646
|
const handleNodeDragEndClearStatus = () => {
|
|
42626
42647
|
clearNodeDragData();
|
|
@@ -43549,9 +43570,9 @@ var VxeTreeComponent = defineVxeComponent({
|
|
|
43549
43570
|
])
|
|
43550
43571
|
]
|
|
43551
43572
|
: []),
|
|
43552
|
-
renderDragIcon(node, nodeid),
|
|
43553
43573
|
renderRadio(node, nodeid, isExistChild, nLevel, isRadioChecked),
|
|
43554
43574
|
renderCheckbox(node, nodeid, isExistChild, nLevel, isCheckboxChecked, isIndeterminate),
|
|
43575
|
+
renderDragIcon(node, nodeid),
|
|
43555
43576
|
h('div', {
|
|
43556
43577
|
class: 'vxe-tree--node-item-inner'
|
|
43557
43578
|
}, [
|
|
@@ -43839,6 +43860,7 @@ var VxeTreeComponent = defineVxeComponent({
|
|
|
43839
43860
|
}
|
|
43840
43861
|
internalData.resizeObserver = resizeObserver;
|
|
43841
43862
|
}
|
|
43863
|
+
recalculate();
|
|
43842
43864
|
globalEvents.on($xeTree, 'resize', handleGlobalResizeEvent);
|
|
43843
43865
|
});
|
|
43844
43866
|
onBeforeUnmount(() => {
|