vxe-pc-ui 4.15.4 → 4.15.5
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 +94 -34
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/collapse/src/collapse.js +71 -10
- package/es/collapse/style.css +36 -9
- package/es/collapse/style.min.css +1 -1
- package/es/date-panel/style.css +1 -1
- package/es/date-panel/style.min.css +1 -1
- package/es/icon/{iconfont.1781876596706.ttf → iconfont.1781979589724.ttf} +0 -0
- package/es/icon/iconfont.1781979589724.woff +0 -0
- package/es/icon/iconfont.1781979589724.woff2 +0 -0
- package/es/icon/style.css +5 -1
- package/es/icon/style.min.css +1 -1
- package/{lib/icon/style/iconfont.1781876596706.ttf → es/iconfont.1781979589724.ttf} +0 -0
- package/es/iconfont.1781979589724.woff +0 -0
- package/es/iconfont.1781979589724.woff2 +0 -0
- package/es/menu/style.css +0 -1
- package/es/menu/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-collapse/style.css +36 -9
- package/es/vxe-collapse/style.min.css +1 -1
- package/es/vxe-date-panel/style.css +1 -1
- package/es/vxe-date-panel/style.min.css +1 -1
- package/es/vxe-icon/style.css +5 -1
- package/es/vxe-icon/style.min.css +1 -1
- package/es/vxe-menu/style.css +0 -1
- package/es/vxe-menu/style.min.css +1 -1
- package/lib/collapse/src/collapse.js +73 -9
- package/lib/collapse/src/collapse.min.js +1 -1
- package/lib/collapse/style/style.css +36 -9
- package/lib/collapse/style/style.min.css +1 -1
- package/lib/date-panel/style/style.css +1 -1
- package/lib/date-panel/style/style.min.css +1 -1
- package/lib/{iconfont.1781876596706.ttf → icon/style/iconfont.1781979589724.ttf} +0 -0
- package/lib/icon/style/iconfont.1781979589724.woff +0 -0
- package/lib/icon/style/iconfont.1781979589724.woff2 +0 -0
- package/lib/icon/style/style.css +5 -1
- package/lib/icon/style/style.min.css +5 -1
- package/{es/iconfont.1781876596706.ttf → lib/iconfont.1781979589724.ttf} +0 -0
- package/lib/iconfont.1781979589724.woff +0 -0
- package/lib/iconfont.1781979589724.woff2 +0 -0
- package/lib/index.umd.js +376 -312
- package/lib/index.umd.min.js +1 -1
- package/lib/menu/style/style.css +0 -1
- package/lib/menu/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +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-collapse/style/style.css +36 -9
- package/lib/vxe-collapse/style/style.min.css +1 -1
- package/lib/vxe-date-panel/style/style.css +1 -1
- package/lib/vxe-date-panel/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +5 -1
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-menu/style/style.css +0 -1
- package/lib/vxe-menu/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/collapse/src/collapse.ts +75 -14
- package/styles/components/collapse.scss +36 -11
- package/styles/components/date-panel.scss +1 -1
- package/styles/components/icon.scss +5 -1
- package/styles/components/menu.scss +0 -1
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/styles/theme/base.scss +7 -0
- package/styles/theme/dark.scss +5 -3
- package/styles/theme/light.scss +3 -1
- package/styles/variable.scss +5 -2
- package/types/components/cascader.d.ts +1 -1
- package/types/components/collapse.d.ts +13 -3
- package/types/components/icon.d.ts +1 -1
- package/es/icon/iconfont.1781876596706.woff +0 -0
- package/es/icon/iconfont.1781876596706.woff2 +0 -0
- package/es/iconfont.1781876596706.woff +0 -0
- package/es/iconfont.1781876596706.woff2 +0 -0
- package/lib/icon/style/iconfont.1781876596706.woff +0 -0
- package/lib/icon/style/iconfont.1781876596706.woff2 +0 -0
- package/lib/iconfont.1781876596706.woff +0 -0
- package/lib/iconfont.1781876596706.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.15.
|
|
84
|
+
const uiVersion = `ui v${"4.15.5"}`;
|
|
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}` : '';
|
|
@@ -94,7 +94,7 @@ function createComponentLog(name) {
|
|
|
94
94
|
const warnLog$b = log.create('warn', uiVersion);
|
|
95
95
|
log.create('error', uiVersion);
|
|
96
96
|
|
|
97
|
-
const version = "4.15.
|
|
97
|
+
const version = "4.15.5";
|
|
98
98
|
VxeUI.uiVersion = version;
|
|
99
99
|
VxeUI.dynamicApp = dynamicApp;
|
|
100
100
|
function config(options) {
|
|
@@ -3801,12 +3801,12 @@ VxeUI.component(VxeButtonComponent);
|
|
|
3801
3801
|
const Button = VxeButton;
|
|
3802
3802
|
|
|
3803
3803
|
const { errLog: errLog$g } = createComponentLog('backtop');
|
|
3804
|
-
function createInternalData$
|
|
3804
|
+
function createInternalData$f() {
|
|
3805
3805
|
return {
|
|
3806
3806
|
targetEl: null
|
|
3807
3807
|
};
|
|
3808
3808
|
}
|
|
3809
|
-
function createReactData$
|
|
3809
|
+
function createReactData$g() {
|
|
3810
3810
|
return {
|
|
3811
3811
|
showBtn: false,
|
|
3812
3812
|
backtopZindex: 0
|
|
@@ -3885,8 +3885,8 @@ var VxeBacktopComponent = defineVxeComponent({
|
|
|
3885
3885
|
const xID = XEUtils.uniqueId();
|
|
3886
3886
|
const refElem = ref();
|
|
3887
3887
|
const { computeSize } = useSize(props);
|
|
3888
|
-
const internalData = createInternalData$
|
|
3889
|
-
const reactData = reactive(createReactData$
|
|
3888
|
+
const internalData = createInternalData$f();
|
|
3889
|
+
const reactData = reactive(createReactData$g());
|
|
3890
3890
|
const refMaps = {
|
|
3891
3891
|
refElem
|
|
3892
3892
|
};
|
|
@@ -4063,8 +4063,8 @@ var VxeBacktopComponent = defineVxeComponent({
|
|
|
4063
4063
|
});
|
|
4064
4064
|
onBeforeUnmount(() => {
|
|
4065
4065
|
removeScrollEvent();
|
|
4066
|
-
XEUtils.assign(reactData, createReactData$
|
|
4067
|
-
XEUtils.assign(internalData, createInternalData$
|
|
4066
|
+
XEUtils.assign(reactData, createReactData$g());
|
|
4067
|
+
XEUtils.assign(internalData, createInternalData$f());
|
|
4068
4068
|
});
|
|
4069
4069
|
$xeBacktop.renderVN = renderVN;
|
|
4070
4070
|
return $xeBacktop;
|
|
@@ -6719,7 +6719,7 @@ function deNodeValue$1(nodeid) {
|
|
|
6719
6719
|
return nodeid ? decodeURIComponent(`${nodeid}`) : nodeid;
|
|
6720
6720
|
}
|
|
6721
6721
|
|
|
6722
|
-
function createReactData$
|
|
6722
|
+
function createReactData$f() {
|
|
6723
6723
|
return {
|
|
6724
6724
|
scrollYLoad: false,
|
|
6725
6725
|
bodyHeight: 0,
|
|
@@ -6730,7 +6730,7 @@ function createReactData$e() {
|
|
|
6730
6730
|
items: []
|
|
6731
6731
|
};
|
|
6732
6732
|
}
|
|
6733
|
-
function createInternalData$
|
|
6733
|
+
function createInternalData$e() {
|
|
6734
6734
|
return {
|
|
6735
6735
|
resizeObserver: undefined,
|
|
6736
6736
|
fullData: [],
|
|
@@ -6773,8 +6773,8 @@ var VxeListComponent = defineVxeComponent({
|
|
|
6773
6773
|
const xID = XEUtils.uniqueId();
|
|
6774
6774
|
const browseObj = XEUtils.browse();
|
|
6775
6775
|
const { computeSize } = useSize(props);
|
|
6776
|
-
const reactData = reactive(createReactData$
|
|
6777
|
-
const internalData = createInternalData$
|
|
6776
|
+
const reactData = reactive(createReactData$f());
|
|
6777
|
+
const internalData = createInternalData$e();
|
|
6778
6778
|
const refElem = ref();
|
|
6779
6779
|
const refVirtualWrapper = ref();
|
|
6780
6780
|
const refVirtualBody = ref();
|
|
@@ -7106,8 +7106,8 @@ var VxeListComponent = defineVxeComponent({
|
|
|
7106
7106
|
resizeObserver.disconnect();
|
|
7107
7107
|
}
|
|
7108
7108
|
globalEvents.off($xeList, 'resize');
|
|
7109
|
-
XEUtils.assign(reactData, createReactData$
|
|
7110
|
-
XEUtils.assign(internalData, createInternalData$
|
|
7109
|
+
XEUtils.assign(reactData, createReactData$f());
|
|
7110
|
+
XEUtils.assign(internalData, createInternalData$e());
|
|
7111
7111
|
});
|
|
7112
7112
|
$xeList.renderVN = renderVN;
|
|
7113
7113
|
return $xeList;
|
|
@@ -9820,7 +9820,7 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
9820
9820
|
function getNodeUniqueId$1() {
|
|
9821
9821
|
return XEUtils.uniqueId('node_');
|
|
9822
9822
|
}
|
|
9823
|
-
function createReactData$
|
|
9823
|
+
function createReactData$e() {
|
|
9824
9824
|
return {
|
|
9825
9825
|
initialized: false,
|
|
9826
9826
|
searchValue: '',
|
|
@@ -9843,7 +9843,7 @@ function createReactData$d() {
|
|
|
9843
9843
|
lazyOptFlag: 1
|
|
9844
9844
|
};
|
|
9845
9845
|
}
|
|
9846
|
-
function createInternalData$
|
|
9846
|
+
function createInternalData$d() {
|
|
9847
9847
|
return {
|
|
9848
9848
|
// hpTimeout: undefined,
|
|
9849
9849
|
listVirtualYOpts: {
|
|
@@ -9970,8 +9970,8 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
9970
9970
|
const refInpSearch = ref();
|
|
9971
9971
|
const refChunkWrapper = ref();
|
|
9972
9972
|
const refOptionPanel = ref();
|
|
9973
|
-
const reactData = reactive(createReactData$
|
|
9974
|
-
const internalData = createInternalData$
|
|
9973
|
+
const reactData = reactive(createReactData$e());
|
|
9974
|
+
const internalData = createInternalData$d();
|
|
9975
9975
|
const refMaps = {
|
|
9976
9976
|
refElem
|
|
9977
9977
|
};
|
|
@@ -11543,7 +11543,7 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
11543
11543
|
globalEvents.off($xeCascader, 'mousedown');
|
|
11544
11544
|
globalEvents.off($xeCascader, 'blur');
|
|
11545
11545
|
globalEvents.off($xeCascader, 'resize');
|
|
11546
|
-
XEUtils.assign(internalData, createInternalData$
|
|
11546
|
+
XEUtils.assign(internalData, createInternalData$d());
|
|
11547
11547
|
});
|
|
11548
11548
|
provide('$xeCascader', $xeCascader);
|
|
11549
11549
|
$xeCascader.renderVN = renderVN;
|
|
@@ -11876,10 +11876,10 @@ dynamicApp.use(VxeCheckboxButton);
|
|
|
11876
11876
|
VxeUI.component(VxeCheckboxButtonComponent);
|
|
11877
11877
|
const CheckboxButton = VxeCheckboxButton;
|
|
11878
11878
|
|
|
11879
|
-
function createReactData$
|
|
11879
|
+
function createReactData$d() {
|
|
11880
11880
|
return {};
|
|
11881
11881
|
}
|
|
11882
|
-
function createInternalData$
|
|
11882
|
+
function createInternalData$c() {
|
|
11883
11883
|
return {
|
|
11884
11884
|
// isLoaded: false
|
|
11885
11885
|
};
|
|
@@ -11918,8 +11918,8 @@ var VxeCheckboxGroupComponent = defineVxeComponent({
|
|
|
11918
11918
|
const $xeForm = inject('$xeForm', null);
|
|
11919
11919
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
11920
11920
|
const xID = XEUtils.uniqueId();
|
|
11921
|
-
const reactData = reactive(createReactData$
|
|
11922
|
-
const internalData = createInternalData$
|
|
11921
|
+
const reactData = reactive(createReactData$d());
|
|
11922
|
+
const internalData = createInternalData$c();
|
|
11923
11923
|
const computeIsReadonly = computed(() => {
|
|
11924
11924
|
const { readonly } = props;
|
|
11925
11925
|
if (readonly === null) {
|
|
@@ -12078,8 +12078,8 @@ var VxeCheckboxGroupComponent = defineVxeComponent({
|
|
|
12078
12078
|
});
|
|
12079
12079
|
});
|
|
12080
12080
|
onUnmounted(() => {
|
|
12081
|
-
XEUtils.assign(reactData, createReactData$
|
|
12082
|
-
XEUtils.assign(internalData, createInternalData$
|
|
12081
|
+
XEUtils.assign(reactData, createReactData$d());
|
|
12082
|
+
XEUtils.assign(internalData, createInternalData$c());
|
|
12083
12083
|
});
|
|
12084
12084
|
provide('$xeCheckboxGroup', $xeCheckboxGroup);
|
|
12085
12085
|
$xeCheckboxGroup.renderVN = renderVN;
|
|
@@ -12212,6 +12212,19 @@ dynamicApp.use(VxeCol);
|
|
|
12212
12212
|
VxeUI.component(VxeColComponent);
|
|
12213
12213
|
const Col = VxeCol;
|
|
12214
12214
|
|
|
12215
|
+
function createReactData$c() {
|
|
12216
|
+
return {
|
|
12217
|
+
staticPanes: [],
|
|
12218
|
+
activeNames: [],
|
|
12219
|
+
initNames: [],
|
|
12220
|
+
cachePaneMaps: {}
|
|
12221
|
+
};
|
|
12222
|
+
}
|
|
12223
|
+
function createInternalData$b() {
|
|
12224
|
+
return {
|
|
12225
|
+
// esTime: null
|
|
12226
|
+
};
|
|
12227
|
+
}
|
|
12215
12228
|
var VxeCollapseComponent = defineVxeComponent({
|
|
12216
12229
|
name: 'VxeCollapse',
|
|
12217
12230
|
props: {
|
|
@@ -12221,6 +12234,10 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
12221
12234
|
type: Boolean,
|
|
12222
12235
|
default: () => getConfig$3().collapse.padding
|
|
12223
12236
|
},
|
|
12237
|
+
border: {
|
|
12238
|
+
type: Boolean,
|
|
12239
|
+
default: () => getConfig$3().collapse.border
|
|
12240
|
+
},
|
|
12224
12241
|
expandConfig: Object,
|
|
12225
12242
|
size: {
|
|
12226
12243
|
type: String,
|
|
@@ -12238,12 +12255,8 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
12238
12255
|
const xID = XEUtils.uniqueId();
|
|
12239
12256
|
const { computeSize } = useSize(props);
|
|
12240
12257
|
const refElem = ref();
|
|
12241
|
-
const reactData = reactive(
|
|
12242
|
-
|
|
12243
|
-
activeNames: [],
|
|
12244
|
-
initNames: [],
|
|
12245
|
-
cachePaneMaps: {}
|
|
12246
|
-
});
|
|
12258
|
+
const reactData = reactive(createReactData$c());
|
|
12259
|
+
const internalData = createInternalData$b();
|
|
12247
12260
|
const refMaps = {
|
|
12248
12261
|
refElem
|
|
12249
12262
|
};
|
|
@@ -12264,6 +12277,7 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
12264
12277
|
props,
|
|
12265
12278
|
context,
|
|
12266
12279
|
reactData,
|
|
12280
|
+
internalData,
|
|
12267
12281
|
getRefMaps: () => refMaps,
|
|
12268
12282
|
getComputeMaps: () => computeMaps
|
|
12269
12283
|
};
|
|
@@ -12294,6 +12308,7 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
12294
12308
|
if (name) {
|
|
12295
12309
|
const isActive = activeNames.includes(name);
|
|
12296
12310
|
nameMaps[`${name}`] = {
|
|
12311
|
+
height: 0,
|
|
12297
12312
|
loading: false
|
|
12298
12313
|
};
|
|
12299
12314
|
if (isActive) {
|
|
@@ -12329,8 +12344,14 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
12329
12344
|
};
|
|
12330
12345
|
const handleClickEvent = (evnt, item) => {
|
|
12331
12346
|
const { activeNames } = reactData;
|
|
12347
|
+
const { esTime } = internalData;
|
|
12332
12348
|
const { name } = item;
|
|
12349
|
+
if (esTime) {
|
|
12350
|
+
clearTimeout(esTime);
|
|
12351
|
+
}
|
|
12333
12352
|
if (name) {
|
|
12353
|
+
const headEl = evnt.currentTarget;
|
|
12354
|
+
const bodyEl = headEl.nextElementSibling;
|
|
12334
12355
|
const aIndex = activeNames.indexOf(name);
|
|
12335
12356
|
let expanded = false;
|
|
12336
12357
|
if (aIndex === -1) {
|
|
@@ -12340,6 +12361,35 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
12340
12361
|
else {
|
|
12341
12362
|
activeNames.splice(aIndex, 1);
|
|
12342
12363
|
}
|
|
12364
|
+
const startAnimation = () => {
|
|
12365
|
+
const itemEl = bodyEl.firstElementChild;
|
|
12366
|
+
if (itemEl) {
|
|
12367
|
+
bodyEl.style.height = toCssUnit(itemEl.scrollHeight);
|
|
12368
|
+
if (expanded) {
|
|
12369
|
+
internalData.esTime = setTimeout(() => {
|
|
12370
|
+
bodyEl.style.height = '';
|
|
12371
|
+
internalData.esTime = undefined;
|
|
12372
|
+
}, 200);
|
|
12373
|
+
}
|
|
12374
|
+
else {
|
|
12375
|
+
nextTick(() => {
|
|
12376
|
+
requestAnimationFrame(() => {
|
|
12377
|
+
bodyEl.style.height = '';
|
|
12378
|
+
});
|
|
12379
|
+
});
|
|
12380
|
+
}
|
|
12381
|
+
}
|
|
12382
|
+
};
|
|
12383
|
+
if (bodyEl) {
|
|
12384
|
+
const itemEl = bodyEl.firstElementChild;
|
|
12385
|
+
if (itemEl) {
|
|
12386
|
+
startAnimation();
|
|
12387
|
+
}
|
|
12388
|
+
else {
|
|
12389
|
+
bodyEl.style.height = '0';
|
|
12390
|
+
nextTick(startAnimation);
|
|
12391
|
+
}
|
|
12392
|
+
}
|
|
12343
12393
|
addInitName(name);
|
|
12344
12394
|
dispatchEvent('change', { value: activeNames, name }, evnt);
|
|
12345
12395
|
dispatchEvent('toggle-expand', { value: activeNames, name, expanded }, evnt);
|
|
@@ -12388,7 +12438,8 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
12388
12438
|
]),
|
|
12389
12439
|
h('div', {
|
|
12390
12440
|
class: ['vxe-collapse--item-content', {
|
|
12391
|
-
'is--visible': isActive
|
|
12441
|
+
'is--visible': isActive,
|
|
12442
|
+
'is--hidden': !isActive
|
|
12392
12443
|
}]
|
|
12393
12444
|
}, [
|
|
12394
12445
|
name && initNames.includes(name)
|
|
@@ -12403,7 +12454,7 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
12403
12454
|
});
|
|
12404
12455
|
};
|
|
12405
12456
|
const renderVN = () => {
|
|
12406
|
-
const { padding } = props;
|
|
12457
|
+
const { padding, border } = props;
|
|
12407
12458
|
const vSize = computeSize.value;
|
|
12408
12459
|
const itemOptions = computeItemOptions.value;
|
|
12409
12460
|
const itemStaticOptions = computeItemStaticOptions.value;
|
|
@@ -12413,7 +12464,8 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
12413
12464
|
ref: refElem,
|
|
12414
12465
|
class: ['vxe-collapse', {
|
|
12415
12466
|
[`size--${vSize}`]: vSize,
|
|
12416
|
-
'is--padding': padding
|
|
12467
|
+
'is--padding': padding,
|
|
12468
|
+
'is--border': border
|
|
12417
12469
|
}]
|
|
12418
12470
|
}, [
|
|
12419
12471
|
h('div', {
|
|
@@ -12447,6 +12499,14 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
12447
12499
|
});
|
|
12448
12500
|
reactData.activeNames = props.modelValue || [];
|
|
12449
12501
|
initDefaultName(reactData.staticPanes.length ? reactData.staticPanes : props.options);
|
|
12502
|
+
onUnmounted(() => {
|
|
12503
|
+
const { esTime } = internalData;
|
|
12504
|
+
if (esTime) {
|
|
12505
|
+
clearTimeout(esTime);
|
|
12506
|
+
}
|
|
12507
|
+
XEUtils.assign(reactData, createReactData$c());
|
|
12508
|
+
XEUtils.assign(internalData, createInternalData$b());
|
|
12509
|
+
});
|
|
12450
12510
|
provide('$xeCollapse', $xeCollapse);
|
|
12451
12511
|
$xeCollapse.renderVN = renderVN;
|
|
12452
12512
|
return $xeCollapse;
|