vxe-pc-ui 4.20.1 → 4.20.2
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 +226 -83
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/card/src/card.js +2 -1
- package/es/drawer/src/drawer.js +59 -15
- package/es/drawer/style.css +13 -6
- package/es/drawer/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/layout-aside/src/layout-aside.js +2 -1
- package/es/layout-body/src/layout-body.js +2 -1
- package/es/list/src/list.js +49 -23
- package/es/menu/src/menu.js +2 -2
- package/es/modal/src/modal.js +56 -12
- package/es/modal/style.css +15 -4
- package/es/modal/style.min.css +1 -1
- package/es/scrollbar/src/scrollbar.js +16 -4
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tabs/src/tabs.js +2 -2
- package/es/tree/src/tree.js +43 -24
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-drawer/style.css +13 -6
- package/es/vxe-drawer/style.min.css +1 -1
- package/es/vxe-modal/style.css +15 -4
- package/es/vxe-modal/style.min.css +1 -1
- package/lib/card/src/card.js +2 -1
- package/lib/card/src/card.min.js +1 -1
- package/lib/drawer/src/drawer.js +64 -11
- package/lib/drawer/src/drawer.min.js +1 -1
- package/lib/drawer/style/style.css +13 -6
- package/lib/drawer/style/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 +318 -84
- package/lib/index.umd.min.js +1 -1
- package/lib/layout-aside/src/layout-aside.js +2 -1
- package/lib/layout-aside/src/layout-aside.min.js +1 -1
- package/lib/layout-body/src/layout-body.js +2 -1
- package/lib/layout-body/src/layout-body.min.js +1 -1
- package/lib/list/src/list.js +49 -24
- package/lib/list/src/list.min.js +1 -1
- package/lib/menu/src/menu.js +1 -1
- package/lib/menu/src/menu.min.js +1 -1
- package/lib/modal/src/modal.js +61 -10
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +15 -4
- package/lib/modal/style/style.min.css +1 -1
- package/lib/scrollbar/src/scrollbar.js +16 -4
- package/lib/scrollbar/src/scrollbar.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tabs/src/tabs.js +1 -1
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/tree/src/tree.js +43 -25
- 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-drawer/style/style.css +13 -6
- package/lib/vxe-drawer/style/style.min.css +1 -1
- package/lib/vxe-modal/style/style.css +15 -4
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/card/src/card.ts +2 -1
- package/packages/drawer/src/drawer.ts +73 -16
- package/packages/layout-aside/src/layout-aside.ts +2 -1
- package/packages/layout-body/src/layout-body.ts +2 -1
- package/packages/list/src/list.ts +53 -23
- package/packages/menu/src/menu.ts +2 -2
- package/packages/modal/src/modal.ts +71 -14
- package/packages/scrollbar/src/scrollbar.ts +18 -4
- package/packages/tabs/src/tabs.ts +2 -2
- package/packages/tree/src/tree.ts +46 -24
- package/styles/components/drawer.scss +13 -6
- package/styles/components/modal.scss +12 -4
- package/types/components/drawer.d.ts +20 -0
- package/types/components/gantt-module/gantt-view.d.ts +24 -1
- package/types/components/gantt.d.ts +2 -0
- package/types/components/list.d.ts +3 -1
- package/types/components/modal.d.ts +20 -0
- package/types/components/table.d.ts +33 -2
- package/types/components/tree.d.ts +3 -1
- /package/es/icon/{iconfont.1791950625324.ttf → iconfont.1792034967421.ttf} +0 -0
- /package/es/icon/{iconfont.1791950625324.woff → iconfont.1792034967421.woff} +0 -0
- /package/es/icon/{iconfont.1791950625324.woff2 → iconfont.1792034967421.woff2} +0 -0
- /package/es/{iconfont.1791950625324.ttf → iconfont.1792034967421.ttf} +0 -0
- /package/es/{iconfont.1791950625324.woff → iconfont.1792034967421.woff} +0 -0
- /package/es/{iconfont.1791950625324.woff2 → iconfont.1792034967421.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1791950625324.ttf → iconfont.1792034967421.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1791950625324.woff → iconfont.1792034967421.woff} +0 -0
- /package/lib/icon/style/{iconfont.1791950625324.woff2 → iconfont.1792034967421.woff2} +0 -0
- /package/lib/{iconfont.1791950625324.ttf → iconfont.1792034967421.ttf} +0 -0
- /package/lib/{iconfont.1791950625324.woff → iconfont.1792034967421.woff} +0 -0
- /package/lib/{iconfont.1791950625324.woff2 → iconfont.1792034967421.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3072,6 +3072,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
3072
3072
|
renderGlobalIcon: function() { return /* reexport */ renderGlobalIcon; },
|
|
3073
3073
|
renderer: function() { return /* reexport */ renderer; },
|
|
3074
3074
|
saveFile: function() { return /* reexport */ saveFile; },
|
|
3075
|
+
scrollbarUtils: function() { return /* reexport */ scrollbarUtils; },
|
|
3075
3076
|
setConfig: function() { return /* reexport */ setConfig; },
|
|
3076
3077
|
setI18n: function() { return /* reexport */ setI18n; },
|
|
3077
3078
|
setIcon: function() { return /* reexport */ setIcon; },
|
|
@@ -3328,6 +3329,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
3328
3329
|
renderGlobalIcon: function() { return renderGlobalIcon; },
|
|
3329
3330
|
renderer: function() { return renderer; },
|
|
3330
3331
|
saveFile: function() { return saveFile; },
|
|
3332
|
+
scrollbarUtils: function() { return scrollbarUtils; },
|
|
3331
3333
|
setConfig: function() { return setConfig; },
|
|
3332
3334
|
setI18n: function() { return setI18n; },
|
|
3333
3335
|
setIcon: function() { return setIcon; },
|
|
@@ -3364,7 +3366,7 @@ if (typeof window !== 'undefined') {
|
|
|
3364
3366
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
3365
3367
|
var es_array_push = __webpack_require__(4114);
|
|
3366
3368
|
;// ./node_modules/@vxe-ui/core/es/src/core.js
|
|
3367
|
-
const coreVersion = "4.4.
|
|
3369
|
+
const coreVersion = "4.4.31";
|
|
3368
3370
|
const VxeCore = {
|
|
3369
3371
|
coreVersion,
|
|
3370
3372
|
uiVersion: '',
|
|
@@ -3992,7 +3994,7 @@ function createLog(type, name) {
|
|
|
3992
3994
|
return msg;
|
|
3993
3995
|
};
|
|
3994
3996
|
}
|
|
3995
|
-
const version = "4.4.
|
|
3997
|
+
const version = "4.4.31";
|
|
3996
3998
|
const log = {
|
|
3997
3999
|
create: createLog,
|
|
3998
4000
|
warn: createLog('warn', `v${version}`),
|
|
@@ -4452,6 +4454,12 @@ const baseUtils = {
|
|
|
4452
4454
|
*/
|
|
4453
4455
|
isEmpty(value) {
|
|
4454
4456
|
return value === null || value === undefined || value === '';
|
|
4457
|
+
},
|
|
4458
|
+
/**
|
|
4459
|
+
* 获取配置值,如果存在则返回,如果不存在则使用默认值
|
|
4460
|
+
*/
|
|
4461
|
+
getDefVal(value, defVal) {
|
|
4462
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(value) ? defVal : value;
|
|
4455
4463
|
}
|
|
4456
4464
|
};
|
|
4457
4465
|
;// ./node_modules/@vxe-ui/core/es/src/dom-utils.js
|
|
@@ -4467,7 +4475,7 @@ const domUtils = {
|
|
|
4467
4475
|
for (let i = 0; i < staticClassNames.length; i++) {
|
|
4468
4476
|
const val = staticClassNames[i];
|
|
4469
4477
|
if (val) {
|
|
4470
|
-
parts.push(val);
|
|
4478
|
+
parts.push('' + val);
|
|
4471
4479
|
}
|
|
4472
4480
|
}
|
|
4473
4481
|
}
|
|
@@ -4479,6 +4487,63 @@ const domUtils = {
|
|
|
4479
4487
|
return parts.join(' ');
|
|
4480
4488
|
}
|
|
4481
4489
|
};
|
|
4490
|
+
;// ./node_modules/@vxe-ui/core/es/src/scrollbar-utils.js
|
|
4491
|
+
const scrollbarUtils = {
|
|
4492
|
+
/**
|
|
4493
|
+
* 计算滚动条滑块的长度
|
|
4494
|
+
*/
|
|
4495
|
+
getThumbSize(viewportSize, contentSize, trackSize) {
|
|
4496
|
+
if (contentSize <= viewportSize) {
|
|
4497
|
+
return 0;
|
|
4498
|
+
}
|
|
4499
|
+
const ratio = viewportSize / contentSize;
|
|
4500
|
+
const ideal = trackSize * ratio;
|
|
4501
|
+
return Math.max(20, Math.min(ideal, trackSize));
|
|
4502
|
+
},
|
|
4503
|
+
/**
|
|
4504
|
+
* 计算滚动条滑块的偏移位置
|
|
4505
|
+
*/
|
|
4506
|
+
getThumbOffsetSize(offsetSize, viewportSize, contentSize, trackSize, thumbSize) {
|
|
4507
|
+
const maxScroll = contentSize - viewportSize;
|
|
4508
|
+
if (maxScroll <= 0) {
|
|
4509
|
+
return 0;
|
|
4510
|
+
}
|
|
4511
|
+
const maxThumbOffset = trackSize - thumbSize;
|
|
4512
|
+
if (maxThumbOffset <= 0) {
|
|
4513
|
+
return 0;
|
|
4514
|
+
}
|
|
4515
|
+
const clamped = Math.min(Math.max(offsetSize, 0), maxScroll);
|
|
4516
|
+
const ratio = clamped / maxScroll;
|
|
4517
|
+
return ratio * maxThumbOffset;
|
|
4518
|
+
},
|
|
4519
|
+
/**
|
|
4520
|
+
* 根据点击轨道的位置,计算滑块的偏移位置
|
|
4521
|
+
*/
|
|
4522
|
+
getScrollFromClick(clickPosition, viewportSize, contentSize, trackSize, thumbSize) {
|
|
4523
|
+
const maxThumbOffset = trackSize - thumbSize;
|
|
4524
|
+
const maxScroll = contentSize - viewportSize;
|
|
4525
|
+
if (maxScroll <= 0 || maxThumbOffset <= 0) {
|
|
4526
|
+
return 0;
|
|
4527
|
+
}
|
|
4528
|
+
let thumbOffset = clickPosition - thumbSize / 2;
|
|
4529
|
+
thumbOffset = Math.min(Math.max(thumbOffset, 0), maxThumbOffset);
|
|
4530
|
+
const scrollOffset = thumbOffset / maxThumbOffset * maxScroll;
|
|
4531
|
+
return scrollOffset;
|
|
4532
|
+
},
|
|
4533
|
+
/**
|
|
4534
|
+
* 拖拽 thumb 时,根据鼠标位置计算滑块的偏移位置
|
|
4535
|
+
*/
|
|
4536
|
+
getScrollFromDrag(pointerPosition, dragOffset, viewportSize, contentSize, trackSize, thumbSize) {
|
|
4537
|
+
const maxScroll = contentSize - viewportSize;
|
|
4538
|
+
const maxThumbOffset = trackSize - thumbSize;
|
|
4539
|
+
if (maxScroll <= 0 || maxThumbOffset <= 0) {
|
|
4540
|
+
return 0;
|
|
4541
|
+
}
|
|
4542
|
+
let thumbOffset = pointerPosition - dragOffset;
|
|
4543
|
+
thumbOffset = Math.min(Math.max(thumbOffset, 0), maxThumbOffset);
|
|
4544
|
+
return thumbOffset / maxThumbOffset * maxScroll;
|
|
4545
|
+
}
|
|
4546
|
+
};
|
|
4482
4547
|
;// ./node_modules/@vxe-ui/core/es/src/hooks.js
|
|
4483
4548
|
|
|
4484
4549
|
const hooks = new store();
|
|
@@ -4532,6 +4597,7 @@ const useFns = {
|
|
|
4532
4597
|
|
|
4533
4598
|
|
|
4534
4599
|
|
|
4600
|
+
|
|
4535
4601
|
|
|
4536
4602
|
|
|
4537
4603
|
const installedPlugins = [];
|
|
@@ -4604,6 +4670,7 @@ const VxeUI = Object.assign(VxeCore, {
|
|
|
4604
4670
|
permission: permission,
|
|
4605
4671
|
baseUtils: baseUtils,
|
|
4606
4672
|
domUtils: domUtils,
|
|
4673
|
+
scrollbarUtils: scrollbarUtils,
|
|
4607
4674
|
globalStore: globalStore,
|
|
4608
4675
|
hooks: hooks,
|
|
4609
4676
|
component,
|
|
@@ -4635,6 +4702,7 @@ setTheme();
|
|
|
4635
4702
|
|
|
4636
4703
|
|
|
4637
4704
|
|
|
4705
|
+
|
|
4638
4706
|
|
|
4639
4707
|
|
|
4640
4708
|
/* harmony default export */ var es_index_esm = ((/* unused pure expression or super */ null && (VxeUI)));
|
|
@@ -4745,7 +4813,7 @@ function checkDynamic() {
|
|
|
4745
4813
|
const {
|
|
4746
4814
|
log: log_log
|
|
4747
4815
|
} = VxeUI;
|
|
4748
|
-
const uiVersion = `ui v${"4.20.
|
|
4816
|
+
const uiVersion = `ui v${"4.20.2"}`;
|
|
4749
4817
|
function createComponentLog(name) {
|
|
4750
4818
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
4751
4819
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -4763,7 +4831,7 @@ const errLog = log_log.create('error', uiVersion);
|
|
|
4763
4831
|
|
|
4764
4832
|
|
|
4765
4833
|
|
|
4766
|
-
const ui_version = "4.20.
|
|
4834
|
+
const ui_version = "4.20.2";
|
|
4767
4835
|
VxeUI.uiVersion = ui_version;
|
|
4768
4836
|
VxeUI.dynamicApp = dynamicApp;
|
|
4769
4837
|
function config(options) {
|
|
@@ -11801,10 +11869,8 @@ function scrollbar_createInternalData() {
|
|
|
11801
11869
|
maxWidth,
|
|
11802
11870
|
maxHeight
|
|
11803
11871
|
} = props;
|
|
11804
|
-
const
|
|
11805
|
-
const
|
|
11806
|
-
const barWidth = yOpts.width;
|
|
11807
|
-
const barHeight = xOpts.height;
|
|
11872
|
+
const barWidth = computeYWidth.value;
|
|
11873
|
+
const barHeight = computeXHeight.value;
|
|
11808
11874
|
const stys = {};
|
|
11809
11875
|
if (width) {
|
|
11810
11876
|
stys.width = toCssUnit(width);
|
|
@@ -11830,6 +11896,14 @@ function scrollbar_createInternalData() {
|
|
|
11830
11896
|
}
|
|
11831
11897
|
return stys;
|
|
11832
11898
|
});
|
|
11899
|
+
const computeXHeight = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
11900
|
+
const xOpts = computeXOpts.value;
|
|
11901
|
+
return xOpts.height;
|
|
11902
|
+
});
|
|
11903
|
+
const computeYWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
11904
|
+
const yOpts = computeYOpts.value;
|
|
11905
|
+
return yOpts.width;
|
|
11906
|
+
});
|
|
11833
11907
|
const computeXVisible = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
11834
11908
|
const {
|
|
11835
11909
|
visible
|
|
@@ -12331,6 +12405,12 @@ function scrollbar_createInternalData() {
|
|
|
12331
12405
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.syncResize, () => {
|
|
12332
12406
|
reFlag.value++;
|
|
12333
12407
|
});
|
|
12408
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeYWidth, () => {
|
|
12409
|
+
reFlag.value++;
|
|
12410
|
+
});
|
|
12411
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeXHeight, () => {
|
|
12412
|
+
reFlag.value++;
|
|
12413
|
+
});
|
|
12334
12414
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeXVisible, () => {
|
|
12335
12415
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
12336
12416
|
reFlag.value++;
|
|
@@ -12409,6 +12489,7 @@ const Scrollbar = VxeScrollbar;
|
|
|
12409
12489
|
|
|
12410
12490
|
|
|
12411
12491
|
|
|
12492
|
+
|
|
12412
12493
|
/* harmony default export */ var card = (defineVxeComponent({
|
|
12413
12494
|
name: 'VxeCard',
|
|
12414
12495
|
props: {
|
|
@@ -12438,7 +12519,7 @@ const Scrollbar = VxeScrollbar;
|
|
|
12438
12519
|
},
|
|
12439
12520
|
useScrollbar: {
|
|
12440
12521
|
type: Boolean,
|
|
12441
|
-
default: () => getConfig().card.useScrollbar
|
|
12522
|
+
default: () => getDefaultConfig(getConfig().card.useScrollbar, getConfig().useScrollbar)
|
|
12442
12523
|
},
|
|
12443
12524
|
scrollbarConfig: Object
|
|
12444
12525
|
},
|
|
@@ -13278,8 +13359,9 @@ function list_createInternalData() {
|
|
|
13278
13359
|
afterList: [],
|
|
13279
13360
|
fullKeyMaps: {},
|
|
13280
13361
|
rowMaps: {},
|
|
13281
|
-
// 滚动条
|
|
13282
13362
|
// resizeObserver: undefined,
|
|
13363
|
+
// 滚动条
|
|
13364
|
+
// scrollObserver: undefined,
|
|
13283
13365
|
// isThumbDrag: false,
|
|
13284
13366
|
thumbDragOffset: 0,
|
|
13285
13367
|
yThumbTop: 0,
|
|
@@ -13342,7 +13424,7 @@ let crossListDragRowObj = null;
|
|
|
13342
13424
|
scrollY: Object,
|
|
13343
13425
|
useScrollbar: {
|
|
13344
13426
|
type: Boolean,
|
|
13345
|
-
default: () => getConfig().list.useScrollbar
|
|
13427
|
+
default: () => getDefaultConfig(getConfig().list.useScrollbar, getConfig().useScrollbar)
|
|
13346
13428
|
},
|
|
13347
13429
|
scrollbarConfig: Object
|
|
13348
13430
|
},
|
|
@@ -13427,11 +13509,8 @@ let crossListDragRowObj = null;
|
|
|
13427
13509
|
});
|
|
13428
13510
|
const computeWrapperStyles = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
13429
13511
|
const rowHeight = computeRowHeight.value;
|
|
13430
|
-
const
|
|
13431
|
-
const
|
|
13432
|
-
const scrollbarYOpts = computeScrollbarYOpts.value;
|
|
13433
|
-
const barWidth = getDefaultConfig(getDefaultConfig(scrollbarYOpts.width, scrollbarOpts.width), getConfig().scrollbar.width);
|
|
13434
|
-
const barHeight = getDefaultConfig(getDefaultConfig(scrollbarXOpts.height, scrollbarOpts.height), getConfig().scrollbar.height);
|
|
13512
|
+
const barWidth = computeScrollYWidth.value;
|
|
13513
|
+
const barHeight = computeScrollXHeight.value;
|
|
13435
13514
|
const stys = {};
|
|
13436
13515
|
if (rowHeight) {
|
|
13437
13516
|
stys['--vxe-ui-list-row-height'] = toCssUnit(rowHeight);
|
|
@@ -13473,6 +13552,16 @@ let crossListDragRowObj = null;
|
|
|
13473
13552
|
const scrollbarOpts = computeScrollbarOpts.value;
|
|
13474
13553
|
return Object.assign({}, getConfig().scrollbar.yConfig, scrollbarOpts.yConfig);
|
|
13475
13554
|
});
|
|
13555
|
+
const computeScrollXHeight = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
13556
|
+
const scrollbarOpts = computeScrollbarOpts.value;
|
|
13557
|
+
const scrollbarXOpts = computeScrollbarXOpts.value;
|
|
13558
|
+
return getDefaultConfig(getDefaultConfig(scrollbarXOpts.height, scrollbarOpts.height), getConfig().scrollbar.height);
|
|
13559
|
+
});
|
|
13560
|
+
const computeScrollYWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
13561
|
+
const scrollbarOpts = computeScrollbarOpts.value;
|
|
13562
|
+
const scrollbarYOpts = computeScrollbarYOpts.value;
|
|
13563
|
+
return getDefaultConfig(getDefaultConfig(scrollbarYOpts.width, scrollbarOpts.width), getConfig().scrollbar.width);
|
|
13564
|
+
});
|
|
13476
13565
|
const computeScrollXVisible = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
13477
13566
|
const scrollbarOpts = computeScrollbarOpts.value;
|
|
13478
13567
|
const scrollbarXOpts = computeScrollbarXOpts.value;
|
|
@@ -13494,10 +13583,6 @@ let crossListDragRowObj = null;
|
|
|
13494
13583
|
return getDefaultConfig(getDefaultConfig(scrollbarYOpts.autoHide, scrollbarOpts.autoHide), getConfig().scrollbar.autoHide);
|
|
13495
13584
|
});
|
|
13496
13585
|
const computeScrollbarWrapperClss = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
13497
|
-
const scrollbarOpts = computeScrollbarOpts.value;
|
|
13498
|
-
const {
|
|
13499
|
-
padding
|
|
13500
|
-
} = scrollbarOpts;
|
|
13501
13586
|
const {
|
|
13502
13587
|
yThumbHeight,
|
|
13503
13588
|
xThumbWidth
|
|
@@ -13506,12 +13591,7 @@ let crossListDragRowObj = null;
|
|
|
13506
13591
|
const scrollbarYToLeft = computeScrollbarYToLeft.value;
|
|
13507
13592
|
const scrollXVisible = computeScrollXVisible.value;
|
|
13508
13593
|
const scrollYVisible = computeScrollYVisible.value;
|
|
13509
|
-
const scrollXAutoHide = computeScrollXAutoHide.value;
|
|
13510
|
-
const scrollYAutoHide = computeScrollYAutoHide.value;
|
|
13511
13594
|
return domUtils.buildClass(['vxe-scrollbar is--virtual', `ov-x--${scrollXVisible === false ? 'hidden' : 'visible'}`, `ov-y--${scrollYVisible === false ? 'hidden' : 'visible'}`, `sx-pos--${scrollbarXToTop ? 'top' : 'bottom'}`, `sy-pos--${scrollbarYToLeft ? 'left' : 'right'}`], {
|
|
13512
|
-
'is--padding': padding,
|
|
13513
|
-
'ov-x--auto-hide': scrollXAutoHide,
|
|
13514
|
-
'ov-y--auto-hide': scrollYAutoHide,
|
|
13515
13595
|
'overflow-y': yThumbHeight,
|
|
13516
13596
|
'overflow-x': xThumbWidth
|
|
13517
13597
|
});
|
|
@@ -13539,6 +13619,10 @@ let crossListDragRowObj = null;
|
|
|
13539
13619
|
const keyField = computeKeyField.value;
|
|
13540
13620
|
return getRowIdByField(row, keyField);
|
|
13541
13621
|
};
|
|
13622
|
+
const getParentElem = () => {
|
|
13623
|
+
const el = refElem.value;
|
|
13624
|
+
return el ? el.parentElement : null;
|
|
13625
|
+
};
|
|
13542
13626
|
const calcTableHeight = key => {
|
|
13543
13627
|
const {
|
|
13544
13628
|
parentHeight
|
|
@@ -15872,6 +15956,12 @@ let crossListDragRowObj = null;
|
|
|
15872
15956
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeRowHeight, () => {
|
|
15873
15957
|
reFlag.value++;
|
|
15874
15958
|
});
|
|
15959
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeScrollYWidth, () => {
|
|
15960
|
+
reFlag.value++;
|
|
15961
|
+
});
|
|
15962
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeScrollXHeight, () => {
|
|
15963
|
+
reFlag.value++;
|
|
15964
|
+
});
|
|
15875
15965
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeScrollXVisible, () => {
|
|
15876
15966
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
15877
15967
|
reFlag.value++;
|
|
@@ -15939,20 +16029,32 @@ let crossListDragRowObj = null;
|
|
|
15939
16029
|
if (useKey && !keyField) {
|
|
15940
16030
|
list_errLog('vxe.error.reqSupportProp', ['row-config.useKey', 'row-config.keyField']);
|
|
15941
16031
|
}
|
|
15942
|
-
|
|
15943
|
-
|
|
16032
|
+
const el = refElem.value;
|
|
16033
|
+
if (useScrollbar) {
|
|
15944
16034
|
const viewInnerEl = refVirtualBody.value;
|
|
15945
|
-
const
|
|
16035
|
+
const scrollObserver = globalResize.create(() => {
|
|
15946
16036
|
reFlag.value++;
|
|
15947
16037
|
});
|
|
15948
16038
|
if (el) {
|
|
15949
|
-
|
|
15950
|
-
if (autoResize) {
|
|
15951
|
-
resizeObserver.observe(el.parentElement);
|
|
15952
|
-
}
|
|
16039
|
+
scrollObserver.observe(el);
|
|
15953
16040
|
}
|
|
15954
16041
|
if (viewInnerEl) {
|
|
15955
|
-
|
|
16042
|
+
scrollObserver.observe(viewInnerEl);
|
|
16043
|
+
}
|
|
16044
|
+
internalData.scrollObserver = scrollObserver;
|
|
16045
|
+
}
|
|
16046
|
+
if (autoResize) {
|
|
16047
|
+
const parentEl = getParentElem();
|
|
16048
|
+
const resizeObserver = globalResize.create(() => {
|
|
16049
|
+
if (props.autoResize) {
|
|
16050
|
+
reFlag.value++;
|
|
16051
|
+
}
|
|
16052
|
+
});
|
|
16053
|
+
if (el) {
|
|
16054
|
+
resizeObserver.observe(el);
|
|
16055
|
+
}
|
|
16056
|
+
if (parentEl) {
|
|
16057
|
+
resizeObserver.observe(parentEl);
|
|
15956
16058
|
}
|
|
15957
16059
|
internalData.resizeObserver = resizeObserver;
|
|
15958
16060
|
}
|
|
@@ -15963,11 +16065,15 @@ let crossListDragRowObj = null;
|
|
|
15963
16065
|
});
|
|
15964
16066
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
15965
16067
|
const {
|
|
16068
|
+
scrollObserver,
|
|
15966
16069
|
resizeObserver
|
|
15967
16070
|
} = internalData;
|
|
15968
16071
|
if (resizeObserver) {
|
|
15969
16072
|
resizeObserver.disconnect();
|
|
15970
16073
|
}
|
|
16074
|
+
if (scrollObserver) {
|
|
16075
|
+
scrollObserver.disconnect();
|
|
16076
|
+
}
|
|
15971
16077
|
globalEvents.off($xeList, 'resize');
|
|
15972
16078
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, list_createReactData());
|
|
15973
16079
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, list_createInternalData());
|
|
@@ -31971,6 +32077,7 @@ const allActiveDrawers = [];
|
|
|
31971
32077
|
|
|
31972
32078
|
|
|
31973
32079
|
|
|
32080
|
+
|
|
31974
32081
|
/* harmony default export */ var drawer = (defineVxeComponent({
|
|
31975
32082
|
name: 'VxeDrawer',
|
|
31976
32083
|
props: {
|
|
@@ -32103,7 +32210,12 @@ const allActiveDrawers = [];
|
|
|
32103
32210
|
default: () => getConfig().drawer.size || getConfig().size
|
|
32104
32211
|
},
|
|
32105
32212
|
beforeHideMethod: Function,
|
|
32106
|
-
slots: Object
|
|
32213
|
+
slots: Object,
|
|
32214
|
+
useScrollbar: {
|
|
32215
|
+
type: Boolean,
|
|
32216
|
+
default: () => getDefaultConfig(getConfig().drawer.useScrollbar, getConfig().useScrollbar)
|
|
32217
|
+
},
|
|
32218
|
+
scrollbarConfig: Object
|
|
32107
32219
|
},
|
|
32108
32220
|
emits: ['update:modelValue', 'show', 'hide', 'before-hide', 'close', 'confirm', 'cancel', 'resize'],
|
|
32109
32221
|
setup(props, context) {
|
|
@@ -32162,6 +32274,28 @@ const allActiveDrawers = [];
|
|
|
32162
32274
|
}
|
|
32163
32275
|
return 'wl';
|
|
32164
32276
|
});
|
|
32277
|
+
const computeScrollbarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
32278
|
+
return Object.assign({}, getConfig().modal.scrollbarConfig, props.scrollbarConfig);
|
|
32279
|
+
});
|
|
32280
|
+
const computeScrollbarProps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
32281
|
+
const scrollbarOpts = computeScrollbarOpts.value;
|
|
32282
|
+
const {
|
|
32283
|
+
viewClassName,
|
|
32284
|
+
viewInnerClassName
|
|
32285
|
+
} = scrollbarOpts;
|
|
32286
|
+
return {
|
|
32287
|
+
width: scrollbarOpts.width,
|
|
32288
|
+
height: scrollbarOpts.height,
|
|
32289
|
+
autoHide: scrollbarOpts.autoHide,
|
|
32290
|
+
visible: scrollbarOpts.visible,
|
|
32291
|
+
xConfig: scrollbarOpts.xConfig,
|
|
32292
|
+
yConfig: scrollbarOpts.yConfig,
|
|
32293
|
+
className: scrollbarOpts.className,
|
|
32294
|
+
viewAttrs: scrollbarOpts.viewAttrs,
|
|
32295
|
+
viewClassName: 'vxe-drawer--scrollbar-content-view' + (viewClassName ? ' ' + viewClassName : ''),
|
|
32296
|
+
viewInnerClassName: 'vxe-drawer--scrollbar-content-inner' + (viewClassName ? ' ' + viewInnerClassName : '')
|
|
32297
|
+
};
|
|
32298
|
+
});
|
|
32165
32299
|
const computeMaps = {};
|
|
32166
32300
|
const $xeDrawer = {
|
|
32167
32301
|
xID,
|
|
@@ -32505,11 +32639,47 @@ const allActiveDrawers = [];
|
|
|
32505
32639
|
const {
|
|
32506
32640
|
slots: propSlots = {},
|
|
32507
32641
|
content,
|
|
32642
|
+
useScrollbar,
|
|
32508
32643
|
useHtml
|
|
32509
32644
|
} = props;
|
|
32645
|
+
const scrollbarProps = computeScrollbarProps.value;
|
|
32510
32646
|
const defaultSlot = slots.default || propSlots.default;
|
|
32511
32647
|
const leftSlot = slots.left || propSlots.left;
|
|
32512
32648
|
const rightSlot = slots.right || propSlots.right;
|
|
32649
|
+
const contVNs = [];
|
|
32650
|
+
if (useHtml && !defaultSlot) {
|
|
32651
|
+
contVNs.push(useScrollbar ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_scrollbar, {
|
|
32652
|
+
key: 'shc',
|
|
32653
|
+
class: 'vxe-drawer--scrollbar-content',
|
|
32654
|
+
...scrollbarProps
|
|
32655
|
+
}, {
|
|
32656
|
+
default() {
|
|
32657
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
32658
|
+
class: 'vxe-drawer--scrollbar-content-html',
|
|
32659
|
+
innerHTML: getFuncText(content)
|
|
32660
|
+
})];
|
|
32661
|
+
}
|
|
32662
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
32663
|
+
key: 'hc',
|
|
32664
|
+
class: 'vxe-drawer--content',
|
|
32665
|
+
innerHTML: getFuncText(content)
|
|
32666
|
+
}));
|
|
32667
|
+
} else {
|
|
32668
|
+
contVNs.push(useScrollbar ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_scrollbar, {
|
|
32669
|
+
key: 'sdc',
|
|
32670
|
+
class: 'vxe-drawer--scrollbar-content',
|
|
32671
|
+
...scrollbarProps
|
|
32672
|
+
}, {
|
|
32673
|
+
default: () => defaultSlot ? vn_getSlotVNs(defaultSlot({
|
|
32674
|
+
$drawer: $xeDrawer
|
|
32675
|
+
})) : getFuncText(content)
|
|
32676
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
32677
|
+
key: 'dc',
|
|
32678
|
+
class: 'vxe-drawer--content'
|
|
32679
|
+
}, defaultSlot ? vn_getSlotVNs(defaultSlot({
|
|
32680
|
+
$drawer: $xeDrawer
|
|
32681
|
+
})) : getFuncText(content)));
|
|
32682
|
+
}
|
|
32513
32683
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
32514
32684
|
class: 'vxe-drawer--body'
|
|
32515
32685
|
}, [leftSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -32518,16 +32688,7 @@ const allActiveDrawers = [];
|
|
|
32518
32688
|
$drawer: $xeDrawer
|
|
32519
32689
|
}))) : renderEmptyElement($xeDrawer), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
32520
32690
|
class: 'vxe-drawer--body-default'
|
|
32521
|
-
},
|
|
32522
|
-
key: 'hc',
|
|
32523
|
-
class: 'vxe-drawer--content',
|
|
32524
|
-
innerHTML: getFuncText(content)
|
|
32525
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
32526
|
-
key: 'dc',
|
|
32527
|
-
class: 'vxe-drawer--content'
|
|
32528
|
-
}, defaultSlot ? vn_getSlotVNs(defaultSlot({
|
|
32529
|
-
$drawer: $xeDrawer
|
|
32530
|
-
})) : getFuncText(content))]), rightSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
32691
|
+
}, contVNs), rightSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
32531
32692
|
class: 'vxe-drawer--body-right'
|
|
32532
32693
|
}, vn_getSlotVNs(rightSlot({
|
|
32533
32694
|
$drawer: $xeDrawer
|
|
@@ -37758,6 +37919,7 @@ const ImagePreview = VxeImagePreview;
|
|
|
37758
37919
|
|
|
37759
37920
|
|
|
37760
37921
|
|
|
37922
|
+
|
|
37761
37923
|
/* harmony default export */ var layout_aside = (defineVxeComponent({
|
|
37762
37924
|
name: 'VxeLayoutAside',
|
|
37763
37925
|
props: {
|
|
@@ -37769,7 +37931,7 @@ const ImagePreview = VxeImagePreview;
|
|
|
37769
37931
|
collapseConfig: Object,
|
|
37770
37932
|
useScrollbar: {
|
|
37771
37933
|
type: Boolean,
|
|
37772
|
-
default: () => getConfig().layoutAside.useScrollbar
|
|
37934
|
+
default: () => getDefaultConfig(getConfig().layoutAside.useScrollbar, getConfig().useScrollbar)
|
|
37773
37935
|
},
|
|
37774
37936
|
scrollbarConfig: Object,
|
|
37775
37937
|
size: {
|
|
@@ -37916,6 +38078,7 @@ const LayoutAside = VxeLayoutAside;
|
|
|
37916
38078
|
|
|
37917
38079
|
|
|
37918
38080
|
|
|
38081
|
+
|
|
37919
38082
|
function layout_body_createInternalData() {
|
|
37920
38083
|
return {};
|
|
37921
38084
|
}
|
|
@@ -37934,7 +38097,7 @@ function layout_body_createReactData() {
|
|
|
37934
38097
|
backtopConfig: Object,
|
|
37935
38098
|
useScrollbar: {
|
|
37936
38099
|
type: Boolean,
|
|
37937
|
-
default: () => getConfig().layoutBody.useScrollbar
|
|
38100
|
+
default: () => getDefaultConfig(getConfig().layoutBody.useScrollbar, getConfig().useScrollbar)
|
|
37938
38101
|
},
|
|
37939
38102
|
scrollbarConfig: Object,
|
|
37940
38103
|
size: {
|
|
@@ -38552,7 +38715,7 @@ let nemuUniqueKey = 100000000;
|
|
|
38552
38715
|
menuConfig: Object,
|
|
38553
38716
|
useScrollbar: {
|
|
38554
38717
|
type: Boolean,
|
|
38555
|
-
default: () => menu_getConfig().menu.useScrollbar
|
|
38718
|
+
default: () => getDefaultConfig(menu_getConfig().menu.useScrollbar, menu_getConfig().useScrollbar)
|
|
38556
38719
|
},
|
|
38557
38720
|
scrollbarConfig: Object,
|
|
38558
38721
|
appendTo: {
|
|
@@ -39371,6 +39534,7 @@ const allActiveModals = [];
|
|
|
39371
39534
|
|
|
39372
39535
|
|
|
39373
39536
|
|
|
39537
|
+
|
|
39374
39538
|
const {
|
|
39375
39539
|
warnLog: modal_warnLog,
|
|
39376
39540
|
errLog: modal_errLog
|
|
@@ -39579,6 +39743,11 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
39579
39743
|
},
|
|
39580
39744
|
beforeHideMethod: Function,
|
|
39581
39745
|
slots: Object,
|
|
39746
|
+
useScrollbar: {
|
|
39747
|
+
type: Boolean,
|
|
39748
|
+
default: () => getDefaultConfig(getConfig().modal.useScrollbar, getConfig().useScrollbar)
|
|
39749
|
+
},
|
|
39750
|
+
scrollbarConfig: Object,
|
|
39582
39751
|
/**
|
|
39583
39752
|
* 已废弃
|
|
39584
39753
|
* @deprecated
|
|
@@ -39650,6 +39819,28 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
39650
39819
|
const computeZoomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
39651
39820
|
return Object.assign({}, getConfig().modal.zoomConfig, props.zoomConfig);
|
|
39652
39821
|
});
|
|
39822
|
+
const computeScrollbarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
39823
|
+
return Object.assign({}, getConfig().modal.scrollbarConfig, props.scrollbarConfig);
|
|
39824
|
+
});
|
|
39825
|
+
const computeScrollbarProps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
39826
|
+
const scrollbarOpts = computeScrollbarOpts.value;
|
|
39827
|
+
const {
|
|
39828
|
+
viewClassName,
|
|
39829
|
+
viewInnerClassName
|
|
39830
|
+
} = scrollbarOpts;
|
|
39831
|
+
return {
|
|
39832
|
+
width: scrollbarOpts.width,
|
|
39833
|
+
height: scrollbarOpts.height,
|
|
39834
|
+
autoHide: scrollbarOpts.autoHide,
|
|
39835
|
+
visible: scrollbarOpts.visible,
|
|
39836
|
+
xConfig: scrollbarOpts.xConfig,
|
|
39837
|
+
yConfig: scrollbarOpts.yConfig,
|
|
39838
|
+
className: scrollbarOpts.className,
|
|
39839
|
+
viewAttrs: scrollbarOpts.viewAttrs,
|
|
39840
|
+
viewClassName: 'vxe-modal--scrollbar-content-view' + (viewClassName ? ' ' + viewClassName : ''),
|
|
39841
|
+
viewInnerClassName: 'vxe-modal--scrollbar-content-inner' + (viewClassName ? ' ' + viewInnerClassName : '')
|
|
39842
|
+
};
|
|
39843
|
+
});
|
|
39653
39844
|
const computeMaps = {
|
|
39654
39845
|
computeSize,
|
|
39655
39846
|
computeZoomOpts
|
|
@@ -40771,10 +40962,12 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
40771
40962
|
status,
|
|
40772
40963
|
message,
|
|
40773
40964
|
iconStatus,
|
|
40965
|
+
useScrollbar,
|
|
40774
40966
|
useHtml
|
|
40775
40967
|
} = props;
|
|
40776
40968
|
const content = props.content || message;
|
|
40777
40969
|
const isMsg = computeIsMsg.value;
|
|
40970
|
+
const scrollbarProps = computeScrollbarProps.value;
|
|
40778
40971
|
const defaultSlot = slots.default || propSlots.default;
|
|
40779
40972
|
const leftSlot = slots.left || propSlots.left;
|
|
40780
40973
|
const rightSlot = slots.right || propSlots.right;
|
|
@@ -40786,16 +40979,39 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
40786
40979
|
class: ['vxe-modal--status-icon', iconStatus || getIcon()[`MODAL_${status}`.toLocaleUpperCase()]]
|
|
40787
40980
|
})]));
|
|
40788
40981
|
}
|
|
40789
|
-
|
|
40790
|
-
|
|
40791
|
-
|
|
40792
|
-
|
|
40793
|
-
|
|
40794
|
-
|
|
40795
|
-
|
|
40796
|
-
|
|
40797
|
-
|
|
40798
|
-
|
|
40982
|
+
if (useHtml && !defaultSlot) {
|
|
40983
|
+
contVNs.push(useScrollbar ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_scrollbar, {
|
|
40984
|
+
key: 'shc',
|
|
40985
|
+
class: 'vxe-modal--scrollbar-content',
|
|
40986
|
+
...scrollbarProps
|
|
40987
|
+
}, {
|
|
40988
|
+
default() {
|
|
40989
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
40990
|
+
class: 'vxe-modal--scrollbar-content-html',
|
|
40991
|
+
innerHTML: getFuncText(content)
|
|
40992
|
+
})];
|
|
40993
|
+
}
|
|
40994
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
40995
|
+
key: 'hc',
|
|
40996
|
+
class: 'vxe-modal--content',
|
|
40997
|
+
innerHTML: getFuncText(content)
|
|
40998
|
+
}));
|
|
40999
|
+
} else {
|
|
41000
|
+
contVNs.push(useScrollbar ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_scrollbar, {
|
|
41001
|
+
key: 'sdc',
|
|
41002
|
+
class: 'vxe-modal--scrollbar-content',
|
|
41003
|
+
...scrollbarProps
|
|
41004
|
+
}, {
|
|
41005
|
+
default: () => defaultSlot ? vn_getSlotVNs(defaultSlot({
|
|
41006
|
+
$modal: $xeModal
|
|
41007
|
+
})) : getFuncText(content)
|
|
41008
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
41009
|
+
key: 'dc',
|
|
41010
|
+
class: 'vxe-modal--content'
|
|
41011
|
+
}, defaultSlot ? vn_getSlotVNs(defaultSlot({
|
|
41012
|
+
$modal: $xeModal
|
|
41013
|
+
})) : getFuncText(content)));
|
|
41014
|
+
}
|
|
40799
41015
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
40800
41016
|
class: 'vxe-modal--body'
|
|
40801
41017
|
}, [leftSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -50624,7 +50840,7 @@ const scrollbarOffsetSize = 20;
|
|
|
50624
50840
|
},
|
|
50625
50841
|
useScrollbar: {
|
|
50626
50842
|
type: Boolean,
|
|
50627
|
-
default: () => getConfig().tabs.useScrollbar
|
|
50843
|
+
default: () => getDefaultConfig(getConfig().tabs.useScrollbar, getConfig().useScrollbar)
|
|
50628
50844
|
},
|
|
50629
50845
|
scrollbarConfig: Object,
|
|
50630
50846
|
// 已废弃
|
|
@@ -53179,8 +53395,9 @@ function tree_createInternalData() {
|
|
|
53179
53395
|
indeterminateNodeMaps: {},
|
|
53180
53396
|
treeExpandedMaps: {},
|
|
53181
53397
|
treeExpandLazyLoadedMaps: {},
|
|
53182
|
-
// 滚动条
|
|
53183
53398
|
// resizeObserver: undefined,
|
|
53399
|
+
// 滚动条
|
|
53400
|
+
// scrollObserver: undefined,
|
|
53184
53401
|
// isThumbDrag: false,
|
|
53185
53402
|
thumbDragOffset: 0,
|
|
53186
53403
|
yThumbTop: 0,
|
|
@@ -53336,7 +53553,7 @@ let crossTreeDragNodeObj = null;
|
|
|
53336
53553
|
virtualYConfig: Object,
|
|
53337
53554
|
useScrollbar: {
|
|
53338
53555
|
type: Boolean,
|
|
53339
|
-
default: () => tree_getConfig().tree.useScrollbar
|
|
53556
|
+
default: () => getDefaultConfig(tree_getConfig().tree.useScrollbar, tree_getConfig().useScrollbar)
|
|
53340
53557
|
},
|
|
53341
53558
|
scrollbarConfig: Object
|
|
53342
53559
|
},
|
|
@@ -53439,11 +53656,8 @@ let crossTreeDragNodeObj = null;
|
|
|
53439
53656
|
return Object.assign({}, tree_getConfig().tree.menuConfig, props.menuConfig);
|
|
53440
53657
|
});
|
|
53441
53658
|
const computeWrapperStyles = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
53442
|
-
const
|
|
53443
|
-
const
|
|
53444
|
-
const scrollbarYOpts = computeScrollbarYOpts.value;
|
|
53445
|
-
const barWidth = getDefaultConfig(getDefaultConfig(scrollbarYOpts.width, scrollbarOpts.width), tree_getConfig().scrollbar.width);
|
|
53446
|
-
const barHeight = getDefaultConfig(getDefaultConfig(scrollbarXOpts.height, scrollbarOpts.height), tree_getConfig().scrollbar.height);
|
|
53659
|
+
const barWidth = computeScrollYWidth.value;
|
|
53660
|
+
const barHeight = computeScrollXHeight.value;
|
|
53447
53661
|
const stys = {};
|
|
53448
53662
|
if (barWidth || barHeight) {
|
|
53449
53663
|
stys['--vxe-ui-scrollbar-y-width'] = toCssUnit(barWidth || barHeight);
|
|
@@ -53507,6 +53721,16 @@ let crossTreeDragNodeObj = null;
|
|
|
53507
53721
|
const scrollbarOpts = computeScrollbarOpts.value;
|
|
53508
53722
|
return Object.assign({}, tree_getConfig().scrollbar.yConfig, scrollbarOpts.yConfig);
|
|
53509
53723
|
});
|
|
53724
|
+
const computeScrollXHeight = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
53725
|
+
const scrollbarOpts = computeScrollbarOpts.value;
|
|
53726
|
+
const scrollbarXOpts = computeScrollbarXOpts.value;
|
|
53727
|
+
return getDefaultConfig(getDefaultConfig(scrollbarXOpts.height, scrollbarOpts.height), tree_getConfig().scrollbar.height);
|
|
53728
|
+
});
|
|
53729
|
+
const computeScrollYWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
53730
|
+
const scrollbarOpts = computeScrollbarOpts.value;
|
|
53731
|
+
const scrollbarYOpts = computeScrollbarYOpts.value;
|
|
53732
|
+
return getDefaultConfig(getDefaultConfig(scrollbarYOpts.width, scrollbarOpts.width), tree_getConfig().scrollbar.width);
|
|
53733
|
+
});
|
|
53510
53734
|
const computeScrollXVisible = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
53511
53735
|
const scrollbarOpts = computeScrollbarOpts.value;
|
|
53512
53736
|
const scrollbarXOpts = computeScrollbarXOpts.value;
|
|
@@ -53528,10 +53752,6 @@ let crossTreeDragNodeObj = null;
|
|
|
53528
53752
|
return getDefaultConfig(getDefaultConfig(scrollbarYOpts.autoHide, scrollbarOpts.autoHide), tree_getConfig().scrollbar.autoHide);
|
|
53529
53753
|
});
|
|
53530
53754
|
const computeScrollbarWrapperClss = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
53531
|
-
const scrollbarOpts = computeScrollbarOpts.value;
|
|
53532
|
-
const {
|
|
53533
|
-
padding
|
|
53534
|
-
} = scrollbarOpts;
|
|
53535
53755
|
const {
|
|
53536
53756
|
yThumbHeight,
|
|
53537
53757
|
xThumbWidth
|
|
@@ -53540,12 +53760,7 @@ let crossTreeDragNodeObj = null;
|
|
|
53540
53760
|
const scrollbarYToLeft = computeScrollbarYToLeft.value;
|
|
53541
53761
|
const scrollXVisible = computeScrollXVisible.value;
|
|
53542
53762
|
const scrollYVisible = computeScrollYVisible.value;
|
|
53543
|
-
const scrollXAutoHide = computeScrollXAutoHide.value;
|
|
53544
|
-
const scrollYAutoHide = computeScrollYAutoHide.value;
|
|
53545
53763
|
return domUtils.buildClass(['vxe-scrollbar is--virtual', `ov-x--${scrollXVisible === false ? 'hidden' : 'visible'}`, `ov-y--${scrollYVisible === false ? 'hidden' : 'visible'}`, `sx-pos--${scrollbarXToTop ? 'top' : 'bottom'}`, `sy-pos--${scrollbarYToLeft ? 'left' : 'right'}`], {
|
|
53546
|
-
'is--padding': padding,
|
|
53547
|
-
'ov-x--auto-hide': scrollXAutoHide,
|
|
53548
|
-
'ov-y--auto-hide': scrollYAutoHide,
|
|
53549
53764
|
'overflow-y': yThumbHeight,
|
|
53550
53765
|
'overflow-x': xThumbWidth
|
|
53551
53766
|
});
|
|
@@ -57292,6 +57507,12 @@ let crossTreeDragNodeObj = null;
|
|
|
57292
57507
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.useScrollbar, () => {
|
|
57293
57508
|
reFlag.value++;
|
|
57294
57509
|
});
|
|
57510
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeScrollYWidth, () => {
|
|
57511
|
+
reFlag.value++;
|
|
57512
|
+
});
|
|
57513
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeScrollXHeight, () => {
|
|
57514
|
+
reFlag.value++;
|
|
57515
|
+
});
|
|
57295
57516
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeScrollXVisible, () => {
|
|
57296
57517
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
57297
57518
|
reFlag.value++;
|
|
@@ -57338,23 +57559,32 @@ let crossTreeDragNodeObj = null;
|
|
|
57338
57559
|
if (menuConfig && !VxeUIContextMenu) {
|
|
57339
57560
|
tree_errLog('vxe.error.reqComp', ['vxe-context-menu']);
|
|
57340
57561
|
}
|
|
57562
|
+
const el = refElem.value;
|
|
57341
57563
|
if (useScrollbar || autoResize) {
|
|
57342
|
-
const el = refElem.value;
|
|
57343
57564
|
const viewInnerEl = refVirtualBody.value;
|
|
57565
|
+
const scrollObserver = globalResize.create(() => {
|
|
57566
|
+
updateScrollbar();
|
|
57567
|
+
});
|
|
57568
|
+
if (el) {
|
|
57569
|
+
scrollObserver.observe(el);
|
|
57570
|
+
}
|
|
57571
|
+
if (viewInnerEl) {
|
|
57572
|
+
scrollObserver.observe(viewInnerEl);
|
|
57573
|
+
}
|
|
57574
|
+
internalData.scrollObserver = scrollObserver;
|
|
57575
|
+
}
|
|
57576
|
+
if (autoResize) {
|
|
57344
57577
|
const parentEl = getParentElem();
|
|
57345
57578
|
const resizeObserver = globalResize.create(() => {
|
|
57346
|
-
|
|
57579
|
+
if (props.autoResize) {
|
|
57580
|
+
reFlag.value++;
|
|
57581
|
+
}
|
|
57347
57582
|
});
|
|
57348
57583
|
if (el) {
|
|
57349
57584
|
resizeObserver.observe(el);
|
|
57350
|
-
if (autoResize) {
|
|
57351
|
-
if (parentEl) {
|
|
57352
|
-
resizeObserver.observe(parentEl);
|
|
57353
|
-
}
|
|
57354
|
-
}
|
|
57355
57585
|
}
|
|
57356
|
-
if (
|
|
57357
|
-
resizeObserver.observe(
|
|
57586
|
+
if (parentEl) {
|
|
57587
|
+
resizeObserver.observe(parentEl);
|
|
57358
57588
|
}
|
|
57359
57589
|
internalData.resizeObserver = resizeObserver;
|
|
57360
57590
|
}
|
|
@@ -57365,11 +57595,15 @@ let crossTreeDragNodeObj = null;
|
|
|
57365
57595
|
});
|
|
57366
57596
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
57367
57597
|
const {
|
|
57598
|
+
scrollObserver,
|
|
57368
57599
|
resizeObserver
|
|
57369
57600
|
} = internalData;
|
|
57370
57601
|
if (resizeObserver) {
|
|
57371
57602
|
resizeObserver.disconnect();
|
|
57372
57603
|
}
|
|
57604
|
+
if (scrollObserver) {
|
|
57605
|
+
scrollObserver.disconnect();
|
|
57606
|
+
}
|
|
57373
57607
|
globalEvents.off($xeTree, 'resize');
|
|
57374
57608
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, tree_createReactData());
|
|
57375
57609
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, tree_createInternalData());
|