vxe-pc-ui 4.18.22 → 4.19.0
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 +1138 -1062
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/calendar/src/calendar.js +1 -1
- package/es/card/src/card.js +1 -1
- package/es/carousel/src/carousel.js +1 -1
- package/es/countdown/src/countdown.js +1 -1
- package/es/date-picker/src/date-picker.js +3 -3
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +1 -1
- package/es/layout-aside/src/layout-aside.js +22 -10
- package/es/layout-aside/style.css +2 -4
- package/es/layout-aside/style.min.css +1 -1
- package/es/layout-body/src/layout-body.js +19 -12
- package/es/layout-body/style.css +2 -3
- package/es/layout-body/style.min.css +1 -1
- package/es/list/src/list.js +1 -1
- package/es/menu/src/menu.js +10 -4
- package/es/menu/style.css +10 -2
- package/es/menu/style.min.css +1 -1
- package/es/scrollbar/src/scrollbar.js +61 -15
- package/es/scrollbar/style.css +18 -15
- package/es/scrollbar/style.min.css +1 -1
- package/es/select/src/select.js +2 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tabs/src/tabs.js +1 -1
- package/es/text-ellipsis/style.css +29 -10
- package/es/text-ellipsis/style.min.css +1 -1
- package/es/ui/index.js +8 -2
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +1 -1
- package/es/upload/style.css +5 -3
- package/es/upload/style.min.css +1 -1
- package/es/vxe-layout-aside/style.css +2 -4
- package/es/vxe-layout-aside/style.min.css +1 -1
- package/es/vxe-layout-body/style.css +2 -3
- package/es/vxe-layout-body/style.min.css +1 -1
- package/es/vxe-menu/style.css +10 -2
- package/es/vxe-menu/style.min.css +1 -1
- package/es/vxe-scrollbar/style.css +18 -15
- package/es/vxe-scrollbar/style.min.css +1 -1
- package/es/vxe-text-ellipsis/style.css +29 -10
- package/es/vxe-text-ellipsis/style.min.css +1 -1
- package/es/vxe-upload/style.css +5 -3
- package/es/vxe-upload/style.min.css +1 -1
- package/lib/calendar/src/calendar.js +1 -1
- package/lib/calendar/src/calendar.min.js +1 -1
- package/lib/card/src/card.js +1 -1
- package/lib/card/src/card.min.js +1 -1
- package/lib/carousel/src/carousel.js +1 -1
- package/lib/carousel/src/carousel.min.js +1 -1
- package/lib/countdown/src/countdown.js +1 -1
- package/lib/countdown/src/countdown.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +3 -3
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +1 -1
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +1059 -952
- package/lib/index.umd.min.js +1 -1
- package/lib/layout-aside/src/layout-aside.js +29 -10
- package/lib/layout-aside/src/layout-aside.min.js +1 -1
- package/lib/layout-aside/style/style.css +2 -4
- package/lib/layout-aside/style/style.min.css +1 -1
- package/lib/layout-body/src/layout-body.js +29 -12
- package/lib/layout-body/src/layout-body.min.js +1 -1
- package/lib/layout-body/style/style.css +2 -3
- package/lib/layout-body/style/style.min.css +1 -1
- package/lib/list/src/list.js +1 -1
- package/lib/list/src/list.min.js +1 -1
- package/lib/menu/src/menu.js +11 -3
- package/lib/menu/src/menu.min.js +1 -1
- package/lib/menu/style/style.css +10 -2
- package/lib/menu/style/style.min.css +1 -1
- package/lib/scrollbar/src/scrollbar.js +66 -12
- package/lib/scrollbar/src/scrollbar.min.js +1 -1
- package/lib/scrollbar/style/style.css +18 -15
- package/lib/scrollbar/style/style.min.css +1 -1
- package/lib/select/src/select.js +2 -2
- package/lib/select/src/select.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/text-ellipsis/style/style.css +29 -10
- package/lib/text-ellipsis/style/style.min.css +1 -1
- package/lib/ui/index.js +8 -2
- 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/upload/src/upload.js +1 -1
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/upload/style/style.css +5 -3
- package/lib/upload/style/style.min.css +1 -1
- package/lib/vxe-layout-aside/style/style.css +2 -4
- package/lib/vxe-layout-aside/style/style.min.css +1 -1
- package/lib/vxe-layout-body/style/style.css +2 -3
- package/lib/vxe-layout-body/style/style.min.css +1 -1
- package/lib/vxe-menu/style/style.css +10 -2
- package/lib/vxe-menu/style/style.min.css +1 -1
- package/lib/vxe-scrollbar/style/style.css +18 -15
- package/lib/vxe-scrollbar/style/style.min.css +1 -1
- package/lib/vxe-text-ellipsis/style/style.css +29 -10
- package/lib/vxe-text-ellipsis/style/style.min.css +1 -1
- package/lib/vxe-upload/style/style.css +5 -3
- package/lib/vxe-upload/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/calendar/src/calendar.ts +1 -1
- package/packages/card/src/card.ts +1 -1
- package/packages/carousel/src/carousel.ts +1 -1
- package/packages/countdown/src/countdown.ts +1 -1
- package/packages/date-picker/src/date-picker.ts +3 -3
- package/packages/icon-picker/src/icon-picker.ts +1 -1
- package/packages/layout-aside/src/layout-aside.ts +23 -10
- package/packages/layout-body/src/layout-body.ts +23 -12
- package/packages/list/src/list.ts +1 -1
- package/packages/menu/src/menu.ts +14 -4
- package/packages/scrollbar/src/scrollbar.ts +63 -11
- package/packages/select/src/select.ts +2 -2
- package/packages/tabs/src/tabs.ts +1 -1
- package/packages/ui/index.ts +8 -3
- package/packages/upload/src/upload.ts +1 -1
- package/styles/components/layout-aside.scss +2 -4
- package/styles/components/layout-body.scss +2 -3
- package/styles/components/menu.scss +11 -2
- package/styles/components/scrollbar.scss +26 -19
- package/styles/components/text-ellipsis.scss +23 -64
- package/styles/components/upload.scss +5 -3
- package/styles/theme/base.scss +2 -0
- package/types/components/layout-aside.d.ts +3 -0
- package/types/components/layout-body.d.ts +3 -1
- package/types/components/menu.d.ts +3 -0
- package/types/components/scrollbar.d.ts +15 -0
- /package/es/icon/{iconfont.1791471274739.ttf → iconfont.1791539010382.ttf} +0 -0
- /package/es/icon/{iconfont.1791471274739.woff → iconfont.1791539010382.woff} +0 -0
- /package/es/icon/{iconfont.1791471274739.woff2 → iconfont.1791539010382.woff2} +0 -0
- /package/es/{iconfont.1791471274739.ttf → iconfont.1791539010382.ttf} +0 -0
- /package/es/{iconfont.1791471274739.woff → iconfont.1791539010382.woff} +0 -0
- /package/es/{iconfont.1791471274739.woff2 → iconfont.1791539010382.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1791471274739.ttf → iconfont.1791539010382.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1791471274739.woff → iconfont.1791539010382.woff} +0 -0
- /package/lib/icon/style/{iconfont.1791471274739.woff2 → iconfont.1791539010382.woff2} +0 -0
- /package/lib/{iconfont.1791471274739.ttf → iconfont.1791539010382.ttf} +0 -0
- /package/lib/{iconfont.1791471274739.woff → iconfont.1791539010382.woff} +0 -0
- /package/lib/{iconfont.1791471274739.woff2 → iconfont.1791539010382.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3060,7 +3060,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
3060
3060
|
hooks: function() { return /* reexport */ hooks; },
|
|
3061
3061
|
install: function() { return /* reexport */ install; },
|
|
3062
3062
|
interceptor: function() { return /* reexport */ interceptor; },
|
|
3063
|
-
loading: function() { return /* reexport */
|
|
3063
|
+
loading: function() { return /* reexport */ components_loading; },
|
|
3064
3064
|
log: function() { return /* reexport */ log; },
|
|
3065
3065
|
menus: function() { return /* reexport */ menus; },
|
|
3066
3066
|
modal: function() { return /* reexport */ components_modal; },
|
|
@@ -3316,7 +3316,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
3316
3316
|
hooks: function() { return hooks; },
|
|
3317
3317
|
install: function() { return install; },
|
|
3318
3318
|
interceptor: function() { return interceptor; },
|
|
3319
|
-
loading: function() { return
|
|
3319
|
+
loading: function() { return components_loading; },
|
|
3320
3320
|
log: function() { return log; },
|
|
3321
3321
|
menus: function() { return menus; },
|
|
3322
3322
|
modal: function() { return components_modal; },
|
|
@@ -4745,7 +4745,7 @@ function checkDynamic() {
|
|
|
4745
4745
|
const {
|
|
4746
4746
|
log: log_log
|
|
4747
4747
|
} = VxeUI;
|
|
4748
|
-
const uiVersion = `ui v${"4.
|
|
4748
|
+
const uiVersion = `ui v${"4.19.0"}`;
|
|
4749
4749
|
function createComponentLog(name) {
|
|
4750
4750
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
4751
4751
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -4763,7 +4763,7 @@ const errLog = log_log.create('error', uiVersion);
|
|
|
4763
4763
|
|
|
4764
4764
|
|
|
4765
4765
|
|
|
4766
|
-
const ui_version = "4.
|
|
4766
|
+
const ui_version = "4.19.0";
|
|
4767
4767
|
VxeUI.uiVersion = ui_version;
|
|
4768
4768
|
VxeUI.dynamicApp = dynamicApp;
|
|
4769
4769
|
function config(options) {
|
|
@@ -4974,7 +4974,13 @@ setConfig({
|
|
|
4974
4974
|
digits: 2,
|
|
4975
4975
|
controls: true
|
|
4976
4976
|
},
|
|
4977
|
-
layoutAside: {
|
|
4977
|
+
layoutAside: {
|
|
4978
|
+
scrollbarConfig: {
|
|
4979
|
+
yConfig: {
|
|
4980
|
+
autoHide: true
|
|
4981
|
+
}
|
|
4982
|
+
}
|
|
4983
|
+
},
|
|
4978
4984
|
layoutBody: {
|
|
4979
4985
|
backtopConfig: {}
|
|
4980
4986
|
},
|
|
@@ -11339,30 +11345,30 @@ const {
|
|
|
11339
11345
|
class: 'vxe-calendar--header'
|
|
11340
11346
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11341
11347
|
class: 'vxe-calendar--type-wrapper'
|
|
11342
|
-
}, [datePanelType === 'year' ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
11348
|
+
}, [datePanelType === 'year' ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
11343
11349
|
class: 'vxe-calendar--date-picker-label',
|
|
11344
11350
|
disabled: datePanelType === 'year',
|
|
11345
11351
|
content: selectDatePanelObj.y
|
|
11346
11352
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
11347
11353
|
class: 'vxe-calendar--date-picker-btns'
|
|
11348
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
11354
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
11349
11355
|
class: 'vxe-calendar--date-picker-btn',
|
|
11350
11356
|
content: selectDatePanelObj.y,
|
|
11351
11357
|
onClick: dateToggleYearTypeEvent
|
|
11352
|
-
}), selectDatePanelObj.m ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
11358
|
+
}), selectDatePanelObj.m ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
11353
11359
|
class: 'vxe-calendar--date-picker-btn',
|
|
11354
11360
|
content: selectDatePanelObj.m,
|
|
11355
11361
|
onClick: dateToggleMonthTypeEvent
|
|
11356
11362
|
}) : renderEmptyElement($xeCalendar)])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11357
11363
|
class: 'vxe-calendar--btn-wrapper'
|
|
11358
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
11364
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
11359
11365
|
disabled: isDisabledPrevDateBtn,
|
|
11360
11366
|
icon: 'vxe-icon-caret-left',
|
|
11361
11367
|
onClick: datePrevEvent
|
|
11362
|
-
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
11368
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
11363
11369
|
icon: 'vxe-icon-dot',
|
|
11364
11370
|
onClick: dateTodayMonthEvent
|
|
11365
|
-
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
11371
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
11366
11372
|
disabled: isDisabledNextDateBtn,
|
|
11367
11373
|
icon: 'vxe-icon-caret-right',
|
|
11368
11374
|
onClick: dateNextEvent
|
|
@@ -11464,7 +11470,7 @@ const Calendar = VxeCalendar;
|
|
|
11464
11470
|
|
|
11465
11471
|
|
|
11466
11472
|
|
|
11467
|
-
/* harmony default export */ var
|
|
11473
|
+
/* harmony default export */ var loading = (defineVxeComponent({
|
|
11468
11474
|
name: 'VxeLoading',
|
|
11469
11475
|
props: {
|
|
11470
11476
|
modelValue: Boolean,
|
|
@@ -11585,6 +11591,38 @@ const Calendar = VxeCalendar;
|
|
|
11585
11591
|
return this.renderVN();
|
|
11586
11592
|
}
|
|
11587
11593
|
}));
|
|
11594
|
+
;// ./packages/loading/index.ts
|
|
11595
|
+
|
|
11596
|
+
|
|
11597
|
+
|
|
11598
|
+
const VxeLoading = Object.assign({}, loading, {
|
|
11599
|
+
install(app) {
|
|
11600
|
+
app.component(loading.name, loading);
|
|
11601
|
+
}
|
|
11602
|
+
});
|
|
11603
|
+
const LoadingController = {
|
|
11604
|
+
open(options) {
|
|
11605
|
+
const opts = Object.assign({}, options);
|
|
11606
|
+
dynamicStore.globalLoading = Object.assign({
|
|
11607
|
+
modelValue: true,
|
|
11608
|
+
text: opts.text,
|
|
11609
|
+
icon: opts.icon
|
|
11610
|
+
}, {
|
|
11611
|
+
key: 'gl'
|
|
11612
|
+
});
|
|
11613
|
+
checkDynamic();
|
|
11614
|
+
return Promise.resolve();
|
|
11615
|
+
},
|
|
11616
|
+
close() {
|
|
11617
|
+
dynamicStore.globalLoading = null;
|
|
11618
|
+
return Promise.resolve();
|
|
11619
|
+
}
|
|
11620
|
+
};
|
|
11621
|
+
dynamicApp.use(VxeLoading);
|
|
11622
|
+
VxeUI.component(loading);
|
|
11623
|
+
VxeUI.loading = LoadingController;
|
|
11624
|
+
const Loading = VxeLoading;
|
|
11625
|
+
/* harmony default export */ var packages_loading = (VxeLoading);
|
|
11588
11626
|
;// ./packages/card/src/card.ts
|
|
11589
11627
|
|
|
11590
11628
|
|
|
@@ -11720,7 +11758,7 @@ const Calendar = VxeCalendar;
|
|
|
11720
11758
|
/**
|
|
11721
11759
|
* 加载中
|
|
11722
11760
|
*/
|
|
11723
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
11761
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_loading, {
|
|
11724
11762
|
class: 'vxe-card--loading',
|
|
11725
11763
|
modelValue: loading
|
|
11726
11764
|
})]);
|
|
@@ -12102,7 +12140,7 @@ const Card = VxeCard;
|
|
|
12102
12140
|
/**
|
|
12103
12141
|
* 加载中
|
|
12104
12142
|
*/
|
|
12105
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
12143
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_loading, {
|
|
12106
12144
|
class: 'vxe-carousel--loading',
|
|
12107
12145
|
modelValue: loading
|
|
12108
12146
|
})]);
|
|
@@ -14652,7 +14690,7 @@ let crossListDragRowObj = null;
|
|
|
14652
14690
|
/**
|
|
14653
14691
|
* 加载中
|
|
14654
14692
|
*/
|
|
14655
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
14693
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_loading, {
|
|
14656
14694
|
class: 'vxe-list--loading',
|
|
14657
14695
|
modelValue: loading
|
|
14658
14696
|
})]);
|
|
@@ -24891,6 +24929,19 @@ const ContextMenu = VxeContextMenu;
|
|
|
24891
24929
|
return this.renderVN();
|
|
24892
24930
|
}
|
|
24893
24931
|
}));
|
|
24932
|
+
;// ./packages/text/index.ts
|
|
24933
|
+
|
|
24934
|
+
|
|
24935
|
+
|
|
24936
|
+
const VxeText = Object.assign({}, src_text, {
|
|
24937
|
+
install(app) {
|
|
24938
|
+
app.component(src_text.name, src_text);
|
|
24939
|
+
}
|
|
24940
|
+
});
|
|
24941
|
+
dynamicApp.use(VxeText);
|
|
24942
|
+
VxeUI.component(src_text);
|
|
24943
|
+
const Text = VxeText;
|
|
24944
|
+
/* harmony default export */ var packages_text = (VxeText);
|
|
24894
24945
|
;// ./packages/countdown/src/countdown.ts
|
|
24895
24946
|
|
|
24896
24947
|
|
|
@@ -25088,7 +25139,7 @@ const ContextMenu = VxeContextMenu;
|
|
|
25088
25139
|
}, prefixSlot ? vn_getSlotVNs(prefixSlot({
|
|
25089
25140
|
currentValue: currNum,
|
|
25090
25141
|
diffConf
|
|
25091
|
-
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
25142
|
+
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_text, {
|
|
25092
25143
|
content: prefixOpts.content,
|
|
25093
25144
|
icon: prefixOpts.icon,
|
|
25094
25145
|
status: prefixOpts.status
|
|
@@ -25102,7 +25153,7 @@ const ContextMenu = VxeContextMenu;
|
|
|
25102
25153
|
}, suffixSlot ? vn_getSlotVNs(suffixSlot({
|
|
25103
25154
|
currentValue: currNum,
|
|
25104
25155
|
diffConf
|
|
25105
|
-
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
25156
|
+
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_text, {
|
|
25106
25157
|
content: suffixOpts.content,
|
|
25107
25158
|
icon: suffixOpts.icon,
|
|
25108
25159
|
status: suffixOpts.status
|
|
@@ -28624,7 +28675,7 @@ function date_picker_createInternalData() {
|
|
|
28624
28675
|
if (isEnableConf(shortcutOpts) && shortcutList.length && (position || 'left') === pos) {
|
|
28625
28676
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
28626
28677
|
class: `vxe-date-picker--layout-${pos}-wrapper`
|
|
28627
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
28678
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button_group, {
|
|
28628
28679
|
options: shortcutList,
|
|
28629
28680
|
mode,
|
|
28630
28681
|
align,
|
|
@@ -28714,7 +28765,7 @@ function date_picker_createInternalData() {
|
|
|
28714
28765
|
class: 'vxe-date-picker--layout-header-wrapper'
|
|
28715
28766
|
}, headerSlot({})) : renderShortcutBtn('header'), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
28716
28767
|
class: 'vxe-date-picker--layout-body-wrapper'
|
|
28717
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
28768
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_date_panel, {
|
|
28718
28769
|
ref: refDatePanel,
|
|
28719
28770
|
modelValue: reactData.inputValue,
|
|
28720
28771
|
type: props.type,
|
|
@@ -28744,12 +28795,12 @@ function date_picker_createInternalData() {
|
|
|
28744
28795
|
class: 'vxe-date-picker--layout-footer-custom'
|
|
28745
28796
|
}, footerSlot ? footerSlot({}) : [renderShortcutBtn('footer')]), showClearBtn || showConfirmBtn ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
28746
28797
|
class: 'vxe-date-picker--layout-footer-btns'
|
|
28747
|
-
}, [showClearBtn ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
28798
|
+
}, [showClearBtn ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
28748
28799
|
size: 'mini',
|
|
28749
28800
|
disabled: inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue),
|
|
28750
28801
|
content: getI18n('vxe.button.clear'),
|
|
28751
28802
|
onClick: clearValueEvent
|
|
28752
|
-
}) : renderEmptyElement($xeDatePicker), showConfirmBtn ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
28803
|
+
}) : renderEmptyElement($xeDatePicker), showConfirmBtn ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
28753
28804
|
size: 'mini',
|
|
28754
28805
|
status: 'primary',
|
|
28755
28806
|
content: getI18n('vxe.button.confirm'),
|
|
@@ -30702,38 +30753,6 @@ const Divider = VxeDivider;
|
|
|
30702
30753
|
/* harmony default export */ var packages_divider = (VxeDivider);
|
|
30703
30754
|
;// ./packages/drawer/src/store.ts
|
|
30704
30755
|
const allActiveDrawers = [];
|
|
30705
|
-
;// ./packages/loading/index.ts
|
|
30706
|
-
|
|
30707
|
-
|
|
30708
|
-
|
|
30709
|
-
const VxeLoading = Object.assign({}, src_loading, {
|
|
30710
|
-
install(app) {
|
|
30711
|
-
app.component(src_loading.name, src_loading);
|
|
30712
|
-
}
|
|
30713
|
-
});
|
|
30714
|
-
const LoadingController = {
|
|
30715
|
-
open(options) {
|
|
30716
|
-
const opts = Object.assign({}, options);
|
|
30717
|
-
dynamicStore.globalLoading = Object.assign({
|
|
30718
|
-
modelValue: true,
|
|
30719
|
-
text: opts.text,
|
|
30720
|
-
icon: opts.icon
|
|
30721
|
-
}, {
|
|
30722
|
-
key: 'gl'
|
|
30723
|
-
});
|
|
30724
|
-
checkDynamic();
|
|
30725
|
-
return Promise.resolve();
|
|
30726
|
-
},
|
|
30727
|
-
close() {
|
|
30728
|
-
dynamicStore.globalLoading = null;
|
|
30729
|
-
return Promise.resolve();
|
|
30730
|
-
}
|
|
30731
|
-
};
|
|
30732
|
-
dynamicApp.use(VxeLoading);
|
|
30733
|
-
VxeUI.component(src_loading);
|
|
30734
|
-
VxeUI.loading = LoadingController;
|
|
30735
|
-
const Loading = VxeLoading;
|
|
30736
|
-
/* harmony default export */ var packages_loading = (VxeLoading);
|
|
30737
30756
|
;// ./packages/drawer/src/drawer.ts
|
|
30738
30757
|
|
|
30739
30758
|
|
|
@@ -35289,7 +35308,7 @@ function icon_picker_createInternalData() {
|
|
|
35289
35308
|
style: wrapperStyle
|
|
35290
35309
|
}, [filterable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
35291
35310
|
class: 'vxe-ico-picker--panel-search'
|
|
35292
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
35311
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_input, {
|
|
35293
35312
|
ref: refInpSearch,
|
|
35294
35313
|
class: 'vxe-ico-picker-search--input',
|
|
35295
35314
|
modelValue: reactData.searchValue,
|
|
@@ -36527,264 +36546,954 @@ dynamicApp.use(VxeImagePreview);
|
|
|
36527
36546
|
VxeUI.component(preview);
|
|
36528
36547
|
const ImagePreview = VxeImagePreview;
|
|
36529
36548
|
/* harmony default export */ var image_preview = (VxeImagePreview);
|
|
36530
|
-
;// ./packages/
|
|
36549
|
+
;// ./packages/scrollbar/src/util.ts
|
|
36550
|
+
/**
|
|
36551
|
+
* 计算滚动条滑块的长度
|
|
36552
|
+
*/
|
|
36553
|
+
function getThumbSize(viewportSize, contentSize, trackSize) {
|
|
36554
|
+
if (contentSize <= viewportSize) {
|
|
36555
|
+
return 0;
|
|
36556
|
+
}
|
|
36557
|
+
const ratio = viewportSize / contentSize;
|
|
36558
|
+
const ideal = trackSize * ratio;
|
|
36559
|
+
return Math.max(20, Math.min(ideal, trackSize));
|
|
36560
|
+
}
|
|
36561
|
+
/**
|
|
36562
|
+
* 计算滚动条滑块的偏移位置
|
|
36563
|
+
*/
|
|
36564
|
+
function getThumbOffsetSize(offsetSize, viewportSize, contentSize, trackSize, thumbSize) {
|
|
36565
|
+
const maxScroll = contentSize - viewportSize;
|
|
36566
|
+
if (maxScroll <= 0) {
|
|
36567
|
+
return 0;
|
|
36568
|
+
}
|
|
36569
|
+
const maxThumbOffset = trackSize - thumbSize;
|
|
36570
|
+
if (maxThumbOffset <= 0) {
|
|
36571
|
+
return 0;
|
|
36572
|
+
}
|
|
36573
|
+
const clamped = Math.min(Math.max(offsetSize, 0), maxScroll);
|
|
36574
|
+
const ratio = clamped / maxScroll;
|
|
36575
|
+
return ratio * maxThumbOffset;
|
|
36576
|
+
}
|
|
36577
|
+
/**
|
|
36578
|
+
* 根据点击轨道的位置,计算滑块的偏移位置
|
|
36579
|
+
*/
|
|
36580
|
+
function getScrollFromClick(clickPosition, viewportSize, contentSize, trackSize, thumbSize) {
|
|
36581
|
+
const maxThumbOffset = trackSize - thumbSize;
|
|
36582
|
+
const maxScroll = contentSize - viewportSize;
|
|
36583
|
+
if (maxScroll <= 0 || maxThumbOffset <= 0) {
|
|
36584
|
+
return 0;
|
|
36585
|
+
}
|
|
36586
|
+
let thumbOffset = clickPosition - thumbSize / 2;
|
|
36587
|
+
thumbOffset = Math.min(Math.max(thumbOffset, 0), maxThumbOffset);
|
|
36588
|
+
const scrollOffset = thumbOffset / maxThumbOffset * maxScroll;
|
|
36589
|
+
return scrollOffset;
|
|
36590
|
+
}
|
|
36591
|
+
/**
|
|
36592
|
+
* 拖拽 thumb 时,根据鼠标位置计算滑块的偏移位置
|
|
36593
|
+
*/
|
|
36594
|
+
function getScrollFromDrag(pointerPosition, dragOffset, viewportSize, contentSize, trackSize, thumbSize) {
|
|
36595
|
+
const maxScroll = contentSize - viewportSize;
|
|
36596
|
+
const maxThumbOffset = trackSize - thumbSize;
|
|
36597
|
+
if (maxScroll <= 0 || maxThumbOffset <= 0) {
|
|
36598
|
+
return 0;
|
|
36599
|
+
}
|
|
36600
|
+
let thumbOffset = pointerPosition - dragOffset;
|
|
36601
|
+
thumbOffset = Math.min(Math.max(thumbOffset, 0), maxThumbOffset);
|
|
36602
|
+
return thumbOffset / maxThumbOffset * maxScroll;
|
|
36603
|
+
}
|
|
36604
|
+
;// ./packages/scrollbar/src/scrollbar.ts
|
|
36531
36605
|
|
|
36532
36606
|
|
|
36533
36607
|
|
|
36534
36608
|
|
|
36535
36609
|
|
|
36536
36610
|
|
|
36537
|
-
|
|
36538
|
-
|
|
36611
|
+
|
|
36612
|
+
const {
|
|
36613
|
+
getConfig: scrollbar_getConfig,
|
|
36614
|
+
createEvent: scrollbar_createEvent,
|
|
36615
|
+
domUtils: scrollbar_domUtils,
|
|
36616
|
+
globalResize: scrollbar_globalResize,
|
|
36617
|
+
renderEmptyElement: scrollbar_renderEmptyElement
|
|
36618
|
+
} = VxeUI;
|
|
36619
|
+
function scrollbar_createReactData() {
|
|
36620
|
+
return {
|
|
36621
|
+
yThumbHeight: 0,
|
|
36622
|
+
xThumbWidth: 0
|
|
36623
|
+
};
|
|
36624
|
+
}
|
|
36625
|
+
function scrollbar_createInternalData() {
|
|
36626
|
+
return {
|
|
36627
|
+
// resizeObserver: undefined,
|
|
36628
|
+
// isThumbDrag: false,
|
|
36629
|
+
thumbDragOffset: 0,
|
|
36630
|
+
yThumbTop: 0,
|
|
36631
|
+
xThumbLeft: 0,
|
|
36632
|
+
lastScrollTop: 0,
|
|
36633
|
+
lastScrollLeft: 0
|
|
36634
|
+
};
|
|
36635
|
+
}
|
|
36636
|
+
/* harmony default export */ var scrollbar = (defineVxeComponent({
|
|
36637
|
+
name: 'VxeScrollbar',
|
|
36539
36638
|
props: {
|
|
36639
|
+
id: [String, Number],
|
|
36540
36640
|
width: [String, Number],
|
|
36541
|
-
|
|
36542
|
-
|
|
36641
|
+
height: [String, Number],
|
|
36642
|
+
minWidth: [String, Number],
|
|
36643
|
+
minHeight: [String, Number],
|
|
36644
|
+
maxWidth: [String, Number],
|
|
36645
|
+
maxHeight: [String, Number],
|
|
36543
36646
|
loading: Boolean,
|
|
36544
|
-
|
|
36545
|
-
|
|
36546
|
-
|
|
36647
|
+
native: {
|
|
36648
|
+
type: Boolean,
|
|
36649
|
+
default: () => scrollbar_getConfig().scrollbar.native
|
|
36650
|
+
},
|
|
36651
|
+
xConfig: Object,
|
|
36652
|
+
yConfig: Object,
|
|
36653
|
+
className: {
|
|
36547
36654
|
type: String,
|
|
36548
|
-
default: () =>
|
|
36549
|
-
}
|
|
36655
|
+
default: () => scrollbar_getConfig().scrollbar.className
|
|
36656
|
+
},
|
|
36657
|
+
viewAttrs: {
|
|
36658
|
+
type: Object,
|
|
36659
|
+
default: () => scrollbar_getConfig().scrollbar.viewAttrs
|
|
36660
|
+
},
|
|
36661
|
+
viewClassName: {
|
|
36662
|
+
type: String,
|
|
36663
|
+
default: () => scrollbar_getConfig().scrollbar.viewClassName
|
|
36664
|
+
},
|
|
36665
|
+
viewInnerClassName: {
|
|
36666
|
+
type: String,
|
|
36667
|
+
default: () => scrollbar_getConfig().scrollbar.viewInnerClassName
|
|
36668
|
+
},
|
|
36669
|
+
autoResize: {
|
|
36670
|
+
type: Boolean,
|
|
36671
|
+
default: () => scrollbar_getConfig().scrollbar.autoResize
|
|
36672
|
+
},
|
|
36673
|
+
syncResize: [Boolean, String, Number]
|
|
36550
36674
|
},
|
|
36551
|
-
emits: [],
|
|
36675
|
+
emits: ['scroll', 'scroll-boundary'],
|
|
36552
36676
|
setup(props, context) {
|
|
36553
36677
|
const {
|
|
36554
|
-
|
|
36555
|
-
|
|
36678
|
+
emit,
|
|
36679
|
+
slots
|
|
36556
36680
|
} = context;
|
|
36557
36681
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
36558
36682
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
36559
|
-
const
|
|
36560
|
-
|
|
36561
|
-
|
|
36562
|
-
const
|
|
36563
|
-
const
|
|
36564
|
-
|
|
36565
|
-
|
|
36566
|
-
const
|
|
36567
|
-
|
|
36568
|
-
});
|
|
36569
|
-
const computeVarStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36683
|
+
const refViewElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
36684
|
+
const refViewInnerElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
36685
|
+
const refTrackXElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
36686
|
+
const refTrackYElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
36687
|
+
const refThumbXElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
36688
|
+
const refThumbYElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
36689
|
+
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(scrollbar_createReactData());
|
|
36690
|
+
const internalData = scrollbar_createInternalData();
|
|
36691
|
+
const computeWrapperStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36570
36692
|
const {
|
|
36571
36693
|
width,
|
|
36572
|
-
|
|
36694
|
+
height,
|
|
36695
|
+
minWidth,
|
|
36696
|
+
minHeight,
|
|
36697
|
+
maxWidth,
|
|
36698
|
+
maxHeight
|
|
36573
36699
|
} = props;
|
|
36700
|
+
const xOpts = computeXOpts.value;
|
|
36701
|
+
const yOpts = computeYOpts.value;
|
|
36574
36702
|
const stys = {};
|
|
36575
|
-
if (collapseWidth) {
|
|
36576
|
-
stys['--vxe-ui-layout-aside-collapse-width'] = toCssUnit(collapseWidth);
|
|
36577
|
-
}
|
|
36578
36703
|
if (width) {
|
|
36579
|
-
stys
|
|
36704
|
+
stys.width = toCssUnit(width);
|
|
36705
|
+
}
|
|
36706
|
+
if (height) {
|
|
36707
|
+
stys.height = toCssUnit(height);
|
|
36708
|
+
}
|
|
36709
|
+
if (minWidth) {
|
|
36710
|
+
stys.minWidth = toCssUnit(minWidth);
|
|
36711
|
+
}
|
|
36712
|
+
if (minHeight) {
|
|
36713
|
+
stys.minHeight = toCssUnit(minHeight);
|
|
36714
|
+
}
|
|
36715
|
+
if (maxWidth) {
|
|
36716
|
+
stys.maxWidth = toCssUnit(maxWidth);
|
|
36717
|
+
}
|
|
36718
|
+
if (maxHeight) {
|
|
36719
|
+
stys.maxHeight = toCssUnit(maxHeight);
|
|
36720
|
+
}
|
|
36721
|
+
if (yOpts.width) {
|
|
36722
|
+
stys['--vxe-ui-scrollbar-y-width'] = toCssUnit(yOpts.width);
|
|
36723
|
+
}
|
|
36724
|
+
if (xOpts.height) {
|
|
36725
|
+
stys['--vxe-ui-scrollbar-x-height'] = toCssUnit(xOpts.height);
|
|
36580
36726
|
}
|
|
36581
36727
|
return stys;
|
|
36582
36728
|
});
|
|
36583
|
-
const
|
|
36584
|
-
computeSize,
|
|
36585
|
-
computeVarStyle
|
|
36586
|
-
};
|
|
36587
|
-
const $xeLayoutAside = {
|
|
36588
|
-
xID,
|
|
36589
|
-
props,
|
|
36590
|
-
context,
|
|
36591
|
-
reactData,
|
|
36592
|
-
getRefMaps: () => refMaps,
|
|
36593
|
-
getComputeMaps: () => computeMaps
|
|
36594
|
-
};
|
|
36595
|
-
const dispatchEvent = (type, params, evnt) => {
|
|
36596
|
-
emit(type, createEvent(evnt, {
|
|
36597
|
-
$layoutAside: $xeLayoutAside
|
|
36598
|
-
}, params));
|
|
36599
|
-
};
|
|
36600
|
-
const layoutAsideMethods = {
|
|
36601
|
-
dispatchEvent
|
|
36602
|
-
};
|
|
36603
|
-
const layoutAsidePrivateMethods = {};
|
|
36604
|
-
Object.assign($xeLayoutAside, layoutAsideMethods, layoutAsidePrivateMethods);
|
|
36605
|
-
const renderVN = () => {
|
|
36729
|
+
const computeWrapperClss = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36606
36730
|
const {
|
|
36607
|
-
|
|
36608
|
-
|
|
36609
|
-
padding
|
|
36731
|
+
native,
|
|
36732
|
+
className
|
|
36610
36733
|
} = props;
|
|
36611
|
-
const
|
|
36612
|
-
|
|
36613
|
-
|
|
36614
|
-
|
|
36615
|
-
|
|
36616
|
-
|
|
36617
|
-
|
|
36618
|
-
|
|
36619
|
-
|
|
36620
|
-
|
|
36621
|
-
|
|
36622
|
-
'is--loading': loading
|
|
36623
|
-
}],
|
|
36624
|
-
style: varStyle
|
|
36625
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
36626
|
-
class: 'vxe-layout-aside--inner'
|
|
36627
|
-
}, defaultSlot ? defaultSlot({}) : []),
|
|
36628
|
-
/**
|
|
36629
|
-
* 加载中
|
|
36630
|
-
*/
|
|
36631
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_loading, {
|
|
36632
|
-
class: 'vxe-list-view--loading',
|
|
36633
|
-
modelValue: loading
|
|
36634
|
-
})]);
|
|
36635
|
-
};
|
|
36636
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeLayoutAside', $xeLayoutAside);
|
|
36637
|
-
$xeLayoutAside.renderVN = renderVN;
|
|
36638
|
-
return $xeLayoutAside;
|
|
36639
|
-
},
|
|
36640
|
-
render() {
|
|
36641
|
-
return this.renderVN();
|
|
36642
|
-
}
|
|
36643
|
-
}));
|
|
36644
|
-
;// ./packages/layout-aside/index.ts
|
|
36645
|
-
|
|
36646
|
-
|
|
36647
|
-
|
|
36648
|
-
const VxeLayoutAside = Object.assign({}, layout_aside, {
|
|
36649
|
-
install(app) {
|
|
36650
|
-
app.component(layout_aside.name, layout_aside);
|
|
36651
|
-
}
|
|
36652
|
-
});
|
|
36653
|
-
dynamicApp.use(VxeLayoutAside);
|
|
36654
|
-
VxeUI.component(layout_aside);
|
|
36655
|
-
const LayoutAside = VxeLayoutAside;
|
|
36656
|
-
/* harmony default export */ var packages_layout_aside = (VxeLayoutAside);
|
|
36657
|
-
;// ./packages/layout-body/src/layout-body.ts
|
|
36658
|
-
|
|
36659
|
-
|
|
36660
|
-
|
|
36661
|
-
|
|
36662
|
-
|
|
36663
|
-
|
|
36664
|
-
function layout_body_createInternalData() {
|
|
36665
|
-
return {};
|
|
36666
|
-
}
|
|
36667
|
-
function layout_body_createReactData() {
|
|
36668
|
-
return {};
|
|
36669
|
-
}
|
|
36670
|
-
/* harmony default export */ var layout_body = (defineVxeComponent({
|
|
36671
|
-
name: 'VxeLayoutBody',
|
|
36672
|
-
props: {
|
|
36673
|
-
loading: Boolean,
|
|
36674
|
-
padding: Boolean,
|
|
36675
|
-
showBacktop: {
|
|
36676
|
-
type: Boolean,
|
|
36677
|
-
default: () => getConfig().layoutBody.showBacktop
|
|
36678
|
-
},
|
|
36679
|
-
backtopConfig: Object,
|
|
36680
|
-
size: {
|
|
36681
|
-
type: String,
|
|
36682
|
-
default: () => getConfig().layoutBody.size || getConfig().size
|
|
36683
|
-
}
|
|
36684
|
-
},
|
|
36685
|
-
emits: [],
|
|
36686
|
-
setup(props, context) {
|
|
36687
|
-
const {
|
|
36688
|
-
slots,
|
|
36689
|
-
emit
|
|
36690
|
-
} = context;
|
|
36691
|
-
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
36692
|
-
const backtopId = `vxe_layout_body_backtop_${xID}`;
|
|
36693
|
-
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
36694
|
-
const {
|
|
36695
|
-
computeSize
|
|
36696
|
-
} = useSize(props);
|
|
36697
|
-
const internalData = layout_body_createInternalData();
|
|
36698
|
-
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(layout_body_createReactData());
|
|
36699
|
-
const refMaps = {
|
|
36700
|
-
refElem
|
|
36701
|
-
};
|
|
36702
|
-
const computeBacktopOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36703
|
-
return Object.assign({}, getConfig().layoutBody.backtopConfig, props.backtopConfig, {
|
|
36704
|
-
target: '#' + backtopId
|
|
36734
|
+
const {
|
|
36735
|
+
yThumbHeight,
|
|
36736
|
+
xThumbWidth
|
|
36737
|
+
} = reactData;
|
|
36738
|
+
const xOpts = computeXOpts.value;
|
|
36739
|
+
const yOpts = computeYOpts.value;
|
|
36740
|
+
return scrollbar_domUtils.buildClass(['vxe-scrollbar', `ov-x--${xOpts.visible || 'visible'}`, `ov-y--${yOpts.visible || 'visible'}`, native ? 'is--native' : 'is--virtual', className], {
|
|
36741
|
+
'ov-x--auto-hide': xOpts.autoHide,
|
|
36742
|
+
'ov-y--auto-hide': yOpts.autoHide,
|
|
36743
|
+
'overflow-y': yThumbHeight,
|
|
36744
|
+
'overflow-x': xThumbWidth
|
|
36705
36745
|
});
|
|
36706
36746
|
});
|
|
36707
|
-
const
|
|
36708
|
-
|
|
36747
|
+
const computeViewClss = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36748
|
+
const {
|
|
36749
|
+
viewClassName
|
|
36750
|
+
} = props;
|
|
36751
|
+
return scrollbar_domUtils.buildClass(['vxe-scrollbar--view', viewClassName]);
|
|
36752
|
+
});
|
|
36753
|
+
const computeViewInnerClss = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36754
|
+
const {
|
|
36755
|
+
viewInnerClassName
|
|
36756
|
+
} = props;
|
|
36757
|
+
return scrollbar_domUtils.buildClass(['vxe-scrollbar--view-inner', viewInnerClassName]);
|
|
36758
|
+
});
|
|
36759
|
+
const computeXOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36760
|
+
return Object.assign({}, scrollbar_getConfig().scrollbar.xConfig, props.xConfig);
|
|
36761
|
+
});
|
|
36762
|
+
const computeYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36763
|
+
return Object.assign({}, scrollbar_getConfig().scrollbar.yConfig, props.yConfig);
|
|
36764
|
+
});
|
|
36765
|
+
const refMaps = {
|
|
36766
|
+
refElem
|
|
36709
36767
|
};
|
|
36710
|
-
const
|
|
36768
|
+
const computeMaps = {};
|
|
36769
|
+
const $xeScrollbar = {
|
|
36711
36770
|
xID,
|
|
36712
36771
|
props,
|
|
36713
36772
|
context,
|
|
36714
|
-
internalData,
|
|
36715
36773
|
reactData,
|
|
36774
|
+
internalData,
|
|
36716
36775
|
getRefMaps: () => refMaps,
|
|
36717
36776
|
getComputeMaps: () => computeMaps
|
|
36718
36777
|
};
|
|
36719
36778
|
const dispatchEvent = (type, params, evnt) => {
|
|
36720
|
-
emit(type,
|
|
36721
|
-
$
|
|
36779
|
+
emit(type, scrollbar_createEvent(evnt, {
|
|
36780
|
+
$scrollbar: $xeScrollbar
|
|
36722
36781
|
}, params));
|
|
36723
36782
|
};
|
|
36724
|
-
const
|
|
36725
|
-
dispatchEvent
|
|
36783
|
+
const scrollbarMethods = {
|
|
36784
|
+
dispatchEvent,
|
|
36785
|
+
scrollTo(left, top) {
|
|
36786
|
+
const viewEl = refViewElem.value;
|
|
36787
|
+
if (viewEl) {
|
|
36788
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(left)) {
|
|
36789
|
+
viewEl.scrollTo(left, top || 0);
|
|
36790
|
+
} else {
|
|
36791
|
+
viewEl.scrollTo(left);
|
|
36792
|
+
}
|
|
36793
|
+
}
|
|
36794
|
+
},
|
|
36795
|
+
scrollIntoView() {
|
|
36796
|
+
const viewEl = refViewElem.value;
|
|
36797
|
+
if (viewEl) {
|
|
36798
|
+
viewEl.scrollIntoView();
|
|
36799
|
+
}
|
|
36800
|
+
},
|
|
36801
|
+
recalculate() {
|
|
36802
|
+
updateThumbSize();
|
|
36803
|
+
updateThumbOffset();
|
|
36804
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
36805
|
+
}
|
|
36726
36806
|
};
|
|
36727
|
-
const
|
|
36728
|
-
|
|
36729
|
-
|
|
36730
|
-
|
|
36731
|
-
loading,
|
|
36732
|
-
padding,
|
|
36733
|
-
showBacktop
|
|
36734
|
-
} = props;
|
|
36735
|
-
const backtopOpts = computeBacktopOpts.value;
|
|
36736
|
-
const vSize = computeSize.value;
|
|
36737
|
-
const defaultSlot = slots.default;
|
|
36738
|
-
const backtopSlot = slots.backtop;
|
|
36739
|
-
const backtopTopSlot = slots.backtopTop || slots['backtop-top'];
|
|
36740
|
-
const backtopBottomSlot = slots.backtopBottom || slots['backtop-bottom'];
|
|
36741
|
-
const backtopScopeSlots = {};
|
|
36742
|
-
if (backtopSlot) {
|
|
36743
|
-
backtopScopeSlots.default = backtopSlot;
|
|
36807
|
+
const updateThumbSize = () => {
|
|
36808
|
+
const viewEl = refViewElem.value;
|
|
36809
|
+
if (!viewEl) {
|
|
36810
|
+
return;
|
|
36744
36811
|
}
|
|
36745
|
-
|
|
36746
|
-
|
|
36812
|
+
const trackXEl = refTrackXElem.value;
|
|
36813
|
+
const xThumbWidth = trackXEl ? getThumbSize(viewEl.clientWidth, viewEl.scrollWidth, trackXEl.clientWidth) : 0;
|
|
36814
|
+
const thumbXElem = refThumbXElem.value;
|
|
36815
|
+
if (thumbXElem) {
|
|
36816
|
+
thumbXElem.style.width = xThumbWidth + 'px';
|
|
36747
36817
|
}
|
|
36748
|
-
|
|
36749
|
-
|
|
36818
|
+
reactData.xThumbWidth = xThumbWidth;
|
|
36819
|
+
const trackYEl = refTrackYElem.value;
|
|
36820
|
+
const yThumbHeight = trackYEl ? getThumbSize(viewEl.clientHeight, viewEl.scrollHeight, trackYEl.clientHeight) : 0;
|
|
36821
|
+
const thumbYElem = refThumbYElem.value;
|
|
36822
|
+
if (thumbYElem) {
|
|
36823
|
+
thumbYElem.style.height = yThumbHeight + 'px';
|
|
36750
36824
|
}
|
|
36751
|
-
|
|
36752
|
-
ref: refElem,
|
|
36753
|
-
class: ['vxe-layout-body', {
|
|
36754
|
-
[`size--${vSize}`]: vSize,
|
|
36755
|
-
'is--loading': loading,
|
|
36756
|
-
'is--padding': padding
|
|
36757
|
-
}]
|
|
36758
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
36759
|
-
id: showBacktop ? backtopId : '',
|
|
36760
|
-
class: 'vxe-layout-body--inner'
|
|
36761
|
-
}, defaultSlot ? defaultSlot({}) : []),
|
|
36762
|
-
/**
|
|
36763
|
-
* 加载中
|
|
36764
|
-
*/
|
|
36765
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_loading, {
|
|
36766
|
-
class: 'vxe-list-view--loading',
|
|
36767
|
-
modelValue: loading
|
|
36768
|
-
}),
|
|
36769
|
-
/**
|
|
36770
|
-
* 回到顶部
|
|
36771
|
-
*/
|
|
36772
|
-
showBacktop ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_backtop, backtopOpts, backtopScopeSlots) : renderEmptyElement($xeLayoutBody)]);
|
|
36825
|
+
reactData.yThumbHeight = yThumbHeight;
|
|
36773
36826
|
};
|
|
36774
|
-
|
|
36775
|
-
|
|
36776
|
-
|
|
36777
|
-
|
|
36778
|
-
|
|
36779
|
-
|
|
36780
|
-
|
|
36781
|
-
|
|
36782
|
-
|
|
36783
|
-
|
|
36784
|
-
|
|
36785
|
-
const
|
|
36786
|
-
|
|
36787
|
-
|
|
36827
|
+
const updateThumbOffset = () => {
|
|
36828
|
+
const viewEl = refViewElem.value;
|
|
36829
|
+
if (!viewEl) {
|
|
36830
|
+
return;
|
|
36831
|
+
}
|
|
36832
|
+
const {
|
|
36833
|
+
xThumbWidth,
|
|
36834
|
+
yThumbHeight
|
|
36835
|
+
} = reactData;
|
|
36836
|
+
const trackXEl = refTrackXElem.value;
|
|
36837
|
+
const thumbXElem = refThumbXElem.value;
|
|
36838
|
+
const xThumbLeft = trackXEl && xThumbWidth ? getThumbOffsetSize(viewEl.scrollLeft, viewEl.clientWidth, viewEl.scrollWidth, trackXEl.clientWidth, xThumbWidth) : 0;
|
|
36839
|
+
internalData.xThumbLeft = xThumbLeft;
|
|
36840
|
+
if (thumbXElem && xThumbWidth) {
|
|
36841
|
+
thumbXElem.style.width = xThumbWidth + 'px';
|
|
36842
|
+
thumbXElem.style.transform = `translateX(${xThumbLeft}px)`;
|
|
36843
|
+
}
|
|
36844
|
+
const trackYEl = refTrackYElem.value;
|
|
36845
|
+
const thumbYElem = refThumbYElem.value;
|
|
36846
|
+
const yThumbTop = trackYEl && yThumbHeight ? getThumbOffsetSize(viewEl.scrollTop, viewEl.clientHeight, viewEl.scrollHeight, trackYEl.clientHeight, yThumbHeight) : 0;
|
|
36847
|
+
internalData.yThumbTop = yThumbTop;
|
|
36848
|
+
if (thumbYElem && yThumbHeight) {
|
|
36849
|
+
thumbYElem.style.height = yThumbHeight + 'px';
|
|
36850
|
+
thumbYElem.style.transform = `translateY(${yThumbTop}px)`;
|
|
36851
|
+
}
|
|
36852
|
+
};
|
|
36853
|
+
const scrollEvent = evnt => {
|
|
36854
|
+
const {
|
|
36855
|
+
xThumbWidth,
|
|
36856
|
+
yThumbHeight
|
|
36857
|
+
} = reactData;
|
|
36858
|
+
const {
|
|
36859
|
+
lastScrollTop,
|
|
36860
|
+
lastScrollLeft
|
|
36861
|
+
} = internalData;
|
|
36862
|
+
const xOpts = computeXOpts.value;
|
|
36863
|
+
const yOpts = computeYOpts.value;
|
|
36864
|
+
const viewEl = evnt.currentTarget;
|
|
36865
|
+
const {
|
|
36866
|
+
scrollTop,
|
|
36867
|
+
scrollLeft,
|
|
36868
|
+
clientWidth,
|
|
36869
|
+
clientHeight,
|
|
36870
|
+
scrollHeight,
|
|
36871
|
+
scrollWidth
|
|
36872
|
+
} = viewEl;
|
|
36873
|
+
let direction = '';
|
|
36874
|
+
let isTopBoundary = false;
|
|
36875
|
+
let isBottomBoundary = false;
|
|
36876
|
+
let isLeftBoundary = false;
|
|
36877
|
+
let isRightBoundary = false;
|
|
36878
|
+
if (lastScrollTop !== scrollTop) {
|
|
36879
|
+
const yThreshold = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(yOpts.threshold) || 1;
|
|
36880
|
+
if (lastScrollTop < scrollTop) {
|
|
36881
|
+
direction = 'bottom';
|
|
36882
|
+
if (yThumbHeight > 0 && scrollTop + clientHeight >= scrollHeight - yThreshold) {
|
|
36883
|
+
isBottomBoundary = true;
|
|
36884
|
+
}
|
|
36885
|
+
} else {
|
|
36886
|
+
direction = 'top';
|
|
36887
|
+
if (yThumbHeight > 0 && scrollTop <= yThreshold) {
|
|
36888
|
+
isTopBoundary = true;
|
|
36889
|
+
}
|
|
36890
|
+
}
|
|
36891
|
+
}
|
|
36892
|
+
if (lastScrollLeft !== scrollLeft) {
|
|
36893
|
+
const xThreshold = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(xOpts.threshold) || 1;
|
|
36894
|
+
if (lastScrollLeft < scrollLeft) {
|
|
36895
|
+
direction = 'right';
|
|
36896
|
+
if (xThumbWidth > 0 && scrollLeft + clientWidth >= scrollWidth - xThreshold) {
|
|
36897
|
+
isRightBoundary = true;
|
|
36898
|
+
}
|
|
36899
|
+
} else {
|
|
36900
|
+
direction = 'left';
|
|
36901
|
+
if (xThumbWidth > 0 && scrollLeft <= xThreshold) {
|
|
36902
|
+
isLeftBoundary = true;
|
|
36903
|
+
}
|
|
36904
|
+
}
|
|
36905
|
+
}
|
|
36906
|
+
updateThumbOffset();
|
|
36907
|
+
internalData.lastScrollTop = scrollTop;
|
|
36908
|
+
internalData.lastScrollLeft = scrollLeft;
|
|
36909
|
+
if (isBottomBoundary || isTopBoundary || isRightBoundary || isLeftBoundary) {
|
|
36910
|
+
dispatchEvent('scroll-boundary', {
|
|
36911
|
+
direction: direction,
|
|
36912
|
+
isTop: isTopBoundary,
|
|
36913
|
+
isBottom: isBottomBoundary,
|
|
36914
|
+
isLeft: isLeftBoundary,
|
|
36915
|
+
isRight: isRightBoundary,
|
|
36916
|
+
scrollTop: scrollTop,
|
|
36917
|
+
scrollLeft: scrollLeft,
|
|
36918
|
+
clientWidth: clientWidth,
|
|
36919
|
+
clientHeight: clientHeight,
|
|
36920
|
+
scrollHeight: scrollHeight,
|
|
36921
|
+
scrollWidth: scrollWidth
|
|
36922
|
+
}, evnt);
|
|
36923
|
+
}
|
|
36924
|
+
dispatchEvent('scroll', {
|
|
36925
|
+
direction: direction,
|
|
36926
|
+
isTop: yThumbHeight > 0 && scrollTop <= 0,
|
|
36927
|
+
isBottom: yThumbHeight > 0 && scrollTop + clientHeight >= scrollHeight,
|
|
36928
|
+
isLeft: xThumbWidth > 0 && scrollLeft <= 0,
|
|
36929
|
+
isRight: xThumbWidth > 0 && scrollLeft + clientWidth >= scrollWidth,
|
|
36930
|
+
scrollTop: scrollTop,
|
|
36931
|
+
scrollLeft: scrollLeft,
|
|
36932
|
+
clientWidth: clientWidth,
|
|
36933
|
+
clientHeight: clientHeight,
|
|
36934
|
+
scrollHeight: scrollHeight,
|
|
36935
|
+
scrollWidth: scrollWidth
|
|
36936
|
+
}, evnt);
|
|
36937
|
+
};
|
|
36938
|
+
const clickTrackXEvent = evnt => {
|
|
36939
|
+
const trackEl = evnt.currentTarget;
|
|
36940
|
+
if (trackEl !== evnt.target) {
|
|
36941
|
+
return;
|
|
36942
|
+
}
|
|
36943
|
+
const viewEl = refViewElem.value;
|
|
36944
|
+
if (!viewEl) {
|
|
36945
|
+
return;
|
|
36946
|
+
}
|
|
36947
|
+
const {
|
|
36948
|
+
xThumbWidth
|
|
36949
|
+
} = reactData;
|
|
36950
|
+
const trackRect = trackEl.getBoundingClientRect();
|
|
36951
|
+
viewEl.scrollTo({
|
|
36952
|
+
left: getScrollFromClick(evnt.clientX - trackRect.left, viewEl.clientWidth, viewEl.scrollWidth, trackEl.clientWidth, xThumbWidth),
|
|
36953
|
+
behavior: 'auto'
|
|
36954
|
+
});
|
|
36955
|
+
};
|
|
36956
|
+
const clickTrackYEvent = evnt => {
|
|
36957
|
+
const trackEl = evnt.currentTarget;
|
|
36958
|
+
if (trackEl !== evnt.target) {
|
|
36959
|
+
return;
|
|
36960
|
+
}
|
|
36961
|
+
const viewEl = refViewElem.value;
|
|
36962
|
+
if (!viewEl) {
|
|
36963
|
+
return;
|
|
36964
|
+
}
|
|
36965
|
+
const {
|
|
36966
|
+
yThumbHeight
|
|
36967
|
+
} = reactData;
|
|
36968
|
+
const trackRect = trackEl.getBoundingClientRect();
|
|
36969
|
+
viewEl.scrollTo({
|
|
36970
|
+
top: getScrollFromClick(evnt.clientY - trackRect.top, viewEl.clientHeight, viewEl.scrollHeight, trackEl.clientHeight, yThumbHeight),
|
|
36971
|
+
behavior: 'auto'
|
|
36972
|
+
});
|
|
36973
|
+
};
|
|
36974
|
+
const pointerdownThumbXEvent = evnt => {
|
|
36975
|
+
const thumbEl = evnt.currentTarget;
|
|
36976
|
+
internalData.isThumbDrag = true;
|
|
36977
|
+
thumbEl.setPointerCapture(evnt.pointerId);
|
|
36978
|
+
const viewEl = refViewElem.value;
|
|
36979
|
+
if (!viewEl) {
|
|
36980
|
+
return;
|
|
36981
|
+
}
|
|
36982
|
+
const {
|
|
36983
|
+
xThumbWidth
|
|
36984
|
+
} = reactData;
|
|
36985
|
+
const trackEl = thumbEl.parentElement;
|
|
36986
|
+
const trackRect = trackEl.getBoundingClientRect();
|
|
36987
|
+
const pointerPosition = evnt.clientX - trackRect.left;
|
|
36988
|
+
// 记录 thumb 的偏移
|
|
36989
|
+
const thumbOffset = getThumbOffsetSize(viewEl.scrollLeft, viewEl.clientWidth, viewEl.scrollWidth, trackEl.clientWidth, xThumbWidth);
|
|
36990
|
+
internalData.thumbDragOffset = pointerPosition - thumbOffset;
|
|
36991
|
+
};
|
|
36992
|
+
const pointermoveThumbXEvent = evnt => {
|
|
36993
|
+
const thumbEl = evnt.currentTarget;
|
|
36994
|
+
if (!thumbEl.hasPointerCapture(evnt.pointerId)) {
|
|
36995
|
+
return;
|
|
36996
|
+
}
|
|
36997
|
+
const {
|
|
36998
|
+
isThumbDrag,
|
|
36999
|
+
thumbDragOffset
|
|
37000
|
+
} = internalData;
|
|
37001
|
+
if (isThumbDrag) {
|
|
37002
|
+
const viewEl = refViewElem.value;
|
|
37003
|
+
if (!viewEl) {
|
|
37004
|
+
return;
|
|
37005
|
+
}
|
|
37006
|
+
const {
|
|
37007
|
+
xThumbWidth
|
|
37008
|
+
} = reactData;
|
|
37009
|
+
const thumbEl = evnt.currentTarget;
|
|
37010
|
+
const trackEl = thumbEl.parentElement;
|
|
37011
|
+
const trackRect = trackEl.getBoundingClientRect();
|
|
37012
|
+
// 更新偏移
|
|
37013
|
+
viewEl.scrollLeft = getScrollFromDrag(evnt.clientX - trackRect.left, thumbDragOffset, viewEl.clientWidth, viewEl.scrollWidth, trackEl.clientWidth, xThumbWidth);
|
|
37014
|
+
}
|
|
37015
|
+
};
|
|
37016
|
+
const cleatPointerThumbEvent = evnt => {
|
|
37017
|
+
const thumbEl = evnt.currentTarget;
|
|
37018
|
+
thumbEl.releasePointerCapture(evnt.pointerId);
|
|
37019
|
+
internalData.isThumbDrag = false;
|
|
37020
|
+
};
|
|
37021
|
+
const pointerdownThumbYEvent = evnt => {
|
|
37022
|
+
const thumbEl = evnt.currentTarget;
|
|
37023
|
+
internalData.isThumbDrag = true;
|
|
37024
|
+
thumbEl.setPointerCapture(evnt.pointerId);
|
|
37025
|
+
const viewEl = refViewElem.value;
|
|
37026
|
+
if (!viewEl) {
|
|
37027
|
+
return;
|
|
37028
|
+
}
|
|
37029
|
+
const {
|
|
37030
|
+
yThumbHeight
|
|
37031
|
+
} = reactData;
|
|
37032
|
+
const trackEl = thumbEl.parentElement;
|
|
37033
|
+
const trackRect = trackEl.getBoundingClientRect();
|
|
37034
|
+
const pointerPosition = evnt.clientY - trackRect.top;
|
|
37035
|
+
// 记录 thumb 的偏移
|
|
37036
|
+
const thumbOffset = getThumbOffsetSize(viewEl.scrollTop, viewEl.clientHeight, viewEl.scrollHeight, trackEl.clientHeight, yThumbHeight);
|
|
37037
|
+
internalData.thumbDragOffset = pointerPosition - thumbOffset;
|
|
37038
|
+
};
|
|
37039
|
+
const pointermoveThumbYEvent = evnt => {
|
|
37040
|
+
const thumbEl = evnt.currentTarget;
|
|
37041
|
+
if (!thumbEl.hasPointerCapture(evnt.pointerId)) {
|
|
37042
|
+
return;
|
|
37043
|
+
}
|
|
37044
|
+
const {
|
|
37045
|
+
isThumbDrag,
|
|
37046
|
+
thumbDragOffset
|
|
37047
|
+
} = internalData;
|
|
37048
|
+
if (isThumbDrag) {
|
|
37049
|
+
const viewEl = refViewElem.value;
|
|
37050
|
+
if (!viewEl) {
|
|
37051
|
+
return;
|
|
37052
|
+
}
|
|
37053
|
+
const {
|
|
37054
|
+
yThumbHeight
|
|
37055
|
+
} = reactData;
|
|
37056
|
+
const thumbEl = evnt.currentTarget;
|
|
37057
|
+
const trackEl = thumbEl.parentElement;
|
|
37058
|
+
const trackRect = trackEl.getBoundingClientRect();
|
|
37059
|
+
// 更新偏移
|
|
37060
|
+
viewEl.scrollTop = getScrollFromDrag(evnt.clientY - trackRect.top, thumbDragOffset, viewEl.clientHeight, viewEl.scrollHeight, trackEl.clientHeight, yThumbHeight);
|
|
37061
|
+
}
|
|
37062
|
+
};
|
|
37063
|
+
const scrollbarPrivateMethods = {};
|
|
37064
|
+
Object.assign($xeScrollbar, scrollbarMethods, scrollbarPrivateMethods);
|
|
37065
|
+
const renderVN = () => {
|
|
37066
|
+
const {
|
|
37067
|
+
id,
|
|
37068
|
+
native,
|
|
37069
|
+
loading,
|
|
37070
|
+
viewAttrs
|
|
37071
|
+
} = props;
|
|
37072
|
+
const wrapperStyle = computeWrapperStyle.value;
|
|
37073
|
+
const wrapperClss = computeWrapperClss.value;
|
|
37074
|
+
const viewClss = computeViewClss.value;
|
|
37075
|
+
const viewInnerClss = computeViewInnerClss.value;
|
|
37076
|
+
const xOpts = computeXOpts.value;
|
|
37077
|
+
const yOpts = computeYOpts.value;
|
|
37078
|
+
const defaultSlot = slots.default;
|
|
37079
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37080
|
+
ref: refElem,
|
|
37081
|
+
id: id || null,
|
|
37082
|
+
class: wrapperClss,
|
|
37083
|
+
style: wrapperStyle
|
|
37084
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37085
|
+
ref: refViewElem,
|
|
37086
|
+
class: viewClss,
|
|
37087
|
+
onScroll: scrollEvent,
|
|
37088
|
+
...viewAttrs
|
|
37089
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37090
|
+
key: 'vi',
|
|
37091
|
+
ref: refViewInnerElem,
|
|
37092
|
+
class: viewInnerClss
|
|
37093
|
+
}, defaultSlot ? defaultSlot({}) : [])]), native || xOpts.visible === 'hidden' ? scrollbar_renderEmptyElement($xeScrollbar) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37094
|
+
ref: refTrackXElem,
|
|
37095
|
+
class: 'vxe-scrollbar--track-x',
|
|
37096
|
+
onClick: clickTrackXEvent
|
|
37097
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37098
|
+
ref: refThumbXElem,
|
|
37099
|
+
class: 'vxe-scrollbar--thumb-x',
|
|
37100
|
+
onPointerdown: pointerdownThumbXEvent,
|
|
37101
|
+
onPointermove: pointermoveThumbXEvent,
|
|
37102
|
+
onPointerup: cleatPointerThumbEvent,
|
|
37103
|
+
onPointercancel: cleatPointerThumbEvent,
|
|
37104
|
+
onLostpointercapture: cleatPointerThumbEvent
|
|
37105
|
+
})]), native || yOpts.visible === 'hidden' ? scrollbar_renderEmptyElement($xeScrollbar) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37106
|
+
ref: refTrackYElem,
|
|
37107
|
+
class: 'vxe-scrollbar--track-y',
|
|
37108
|
+
onClick: clickTrackYEvent
|
|
37109
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37110
|
+
ref: refThumbYElem,
|
|
37111
|
+
class: 'vxe-scrollbar--thumb-y',
|
|
37112
|
+
onPointerdown: pointerdownThumbYEvent,
|
|
37113
|
+
onPointermove: pointermoveThumbYEvent,
|
|
37114
|
+
onPointerup: cleatPointerThumbEvent,
|
|
37115
|
+
onPointercancel: cleatPointerThumbEvent,
|
|
37116
|
+
onLostpointercapture: cleatPointerThumbEvent
|
|
37117
|
+
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_loading, {
|
|
37118
|
+
class: 'vxe-scrollbar--loading',
|
|
37119
|
+
modelValue: loading
|
|
37120
|
+
})]);
|
|
37121
|
+
};
|
|
37122
|
+
const reFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
37123
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.height, () => {
|
|
37124
|
+
reFlag.value++;
|
|
37125
|
+
});
|
|
37126
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.width, () => {
|
|
37127
|
+
reFlag.value++;
|
|
37128
|
+
});
|
|
37129
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.minHeight, () => {
|
|
37130
|
+
reFlag.value++;
|
|
37131
|
+
});
|
|
37132
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.minWidth, () => {
|
|
37133
|
+
reFlag.value++;
|
|
37134
|
+
});
|
|
37135
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.maxHeight, () => {
|
|
37136
|
+
reFlag.value++;
|
|
37137
|
+
});
|
|
37138
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.maxWidth, () => {
|
|
37139
|
+
reFlag.value++;
|
|
37140
|
+
});
|
|
37141
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.native, () => {
|
|
37142
|
+
reFlag.value++;
|
|
37143
|
+
});
|
|
37144
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.syncResize, () => {
|
|
37145
|
+
reFlag.value++;
|
|
37146
|
+
});
|
|
37147
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(reFlag, () => {
|
|
37148
|
+
$xeScrollbar.recalculate().then(() => {
|
|
37149
|
+
$xeScrollbar.recalculate();
|
|
37150
|
+
});
|
|
37151
|
+
});
|
|
37152
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
37153
|
+
const {
|
|
37154
|
+
autoResize
|
|
37155
|
+
} = props;
|
|
37156
|
+
const viewEl = refViewElem.value;
|
|
37157
|
+
const viewInnerEl = refViewInnerElem.value;
|
|
37158
|
+
if (autoResize) {
|
|
37159
|
+
const resizeObserver = scrollbar_globalResize.create(() => {
|
|
37160
|
+
if (props.autoResize) {
|
|
37161
|
+
reFlag.value++;
|
|
37162
|
+
}
|
|
37163
|
+
});
|
|
37164
|
+
if (viewEl) {
|
|
37165
|
+
resizeObserver.observe(viewEl);
|
|
37166
|
+
}
|
|
37167
|
+
if (viewInnerEl) {
|
|
37168
|
+
resizeObserver.observe(viewInnerEl);
|
|
37169
|
+
}
|
|
37170
|
+
internalData.resizeObserver = resizeObserver;
|
|
37171
|
+
}
|
|
37172
|
+
reFlag.value++;
|
|
37173
|
+
});
|
|
37174
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
37175
|
+
const {
|
|
37176
|
+
resizeObserver
|
|
37177
|
+
} = internalData;
|
|
37178
|
+
if (resizeObserver) {
|
|
37179
|
+
resizeObserver.disconnect();
|
|
37180
|
+
}
|
|
37181
|
+
});
|
|
37182
|
+
$xeScrollbar.renderVN = renderVN;
|
|
37183
|
+
return $xeScrollbar;
|
|
37184
|
+
},
|
|
37185
|
+
render() {
|
|
37186
|
+
return this.renderVN();
|
|
37187
|
+
}
|
|
37188
|
+
}));
|
|
37189
|
+
;// ./packages/scrollbar/index.ts
|
|
37190
|
+
|
|
37191
|
+
|
|
37192
|
+
|
|
37193
|
+
const VxeScrollbar = Object.assign({}, scrollbar, {
|
|
37194
|
+
install(app) {
|
|
37195
|
+
app.component(scrollbar.name, scrollbar);
|
|
37196
|
+
}
|
|
37197
|
+
});
|
|
37198
|
+
dynamicApp.use(VxeScrollbar);
|
|
37199
|
+
VxeUI.component(scrollbar);
|
|
37200
|
+
const Scrollbar = VxeScrollbar;
|
|
37201
|
+
/* harmony default export */ var packages_scrollbar = (VxeScrollbar);
|
|
37202
|
+
;// ./packages/layout-aside/src/layout-aside.ts
|
|
37203
|
+
|
|
37204
|
+
|
|
37205
|
+
|
|
37206
|
+
|
|
37207
|
+
|
|
37208
|
+
|
|
37209
|
+
/* harmony default export */ var layout_aside = (defineVxeComponent({
|
|
37210
|
+
name: 'VxeLayoutAside',
|
|
37211
|
+
props: {
|
|
37212
|
+
width: [String, Number],
|
|
37213
|
+
collapsed: Boolean,
|
|
37214
|
+
collapseWidth: [String, Number],
|
|
37215
|
+
loading: Boolean,
|
|
37216
|
+
padding: Boolean,
|
|
37217
|
+
collapseConfig: Object,
|
|
37218
|
+
scrollbarConfig: Object,
|
|
37219
|
+
size: {
|
|
37220
|
+
type: String,
|
|
37221
|
+
default: () => getConfig().layoutAside.size || getConfig().size
|
|
37222
|
+
}
|
|
37223
|
+
},
|
|
37224
|
+
emits: [],
|
|
37225
|
+
setup(props, context) {
|
|
37226
|
+
const {
|
|
37227
|
+
slots,
|
|
37228
|
+
emit
|
|
37229
|
+
} = context;
|
|
37230
|
+
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
37231
|
+
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
37232
|
+
const {
|
|
37233
|
+
computeSize
|
|
37234
|
+
} = useSize(props);
|
|
37235
|
+
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
|
|
37236
|
+
const refMaps = {
|
|
37237
|
+
refElem
|
|
37238
|
+
};
|
|
37239
|
+
const computeCollapseOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
37240
|
+
return Object.assign({}, getConfig().layoutAside.collapseConfig, props.collapseConfig);
|
|
37241
|
+
});
|
|
37242
|
+
const computeScrollbarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
37243
|
+
return Object.assign({}, getConfig().layoutAside.scrollbarConfig, props.scrollbarConfig);
|
|
37244
|
+
});
|
|
37245
|
+
const computeVarStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
37246
|
+
const {
|
|
37247
|
+
width,
|
|
37248
|
+
collapseWidth
|
|
37249
|
+
} = props;
|
|
37250
|
+
const stys = {};
|
|
37251
|
+
if (collapseWidth) {
|
|
37252
|
+
stys['--vxe-ui-layout-aside-collapse-width'] = toCssUnit(collapseWidth);
|
|
37253
|
+
}
|
|
37254
|
+
if (width) {
|
|
37255
|
+
stys['--vxe-ui-layout-aside-default-width'] = toCssUnit(width);
|
|
37256
|
+
}
|
|
37257
|
+
return stys;
|
|
37258
|
+
});
|
|
37259
|
+
const computeMaps = {
|
|
37260
|
+
computeSize,
|
|
37261
|
+
computeVarStyle
|
|
37262
|
+
};
|
|
37263
|
+
const $xeLayoutAside = {
|
|
37264
|
+
xID,
|
|
37265
|
+
props,
|
|
37266
|
+
context,
|
|
37267
|
+
reactData,
|
|
37268
|
+
getRefMaps: () => refMaps,
|
|
37269
|
+
getComputeMaps: () => computeMaps
|
|
37270
|
+
};
|
|
37271
|
+
const dispatchEvent = (type, params, evnt) => {
|
|
37272
|
+
emit(type, createEvent(evnt, {
|
|
37273
|
+
$layoutAside: $xeLayoutAside
|
|
37274
|
+
}, params));
|
|
37275
|
+
};
|
|
37276
|
+
const layoutAsideMethods = {
|
|
37277
|
+
dispatchEvent
|
|
37278
|
+
};
|
|
37279
|
+
const layoutAsidePrivateMethods = {};
|
|
37280
|
+
Object.assign($xeLayoutAside, layoutAsideMethods, layoutAsidePrivateMethods);
|
|
37281
|
+
const renderVN = () => {
|
|
37282
|
+
const {
|
|
37283
|
+
collapsed,
|
|
37284
|
+
loading,
|
|
37285
|
+
padding
|
|
37286
|
+
} = props;
|
|
37287
|
+
const varStyle = computeVarStyle.value;
|
|
37288
|
+
const vSize = computeSize.value;
|
|
37289
|
+
const collapseOpts = computeCollapseOpts.value;
|
|
37290
|
+
const scrollbarOpts = computeScrollbarOpts.value;
|
|
37291
|
+
const {
|
|
37292
|
+
native,
|
|
37293
|
+
yConfig,
|
|
37294
|
+
className,
|
|
37295
|
+
viewAttrs,
|
|
37296
|
+
viewClassName,
|
|
37297
|
+
viewInnerClassName
|
|
37298
|
+
} = scrollbarOpts;
|
|
37299
|
+
const defaultSlot = slots.default;
|
|
37300
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('aside', {
|
|
37301
|
+
ref: refElem,
|
|
37302
|
+
class: ['vxe-layout-aside', {
|
|
37303
|
+
[`size--${vSize}`]: vSize,
|
|
37304
|
+
'is--animat': collapseOpts.animation !== false,
|
|
37305
|
+
'is--padding': padding,
|
|
37306
|
+
'is--collapse': collapsed,
|
|
37307
|
+
'is--loading': loading
|
|
37308
|
+
}],
|
|
37309
|
+
style: varStyle
|
|
37310
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_scrollbar, {
|
|
37311
|
+
loading,
|
|
37312
|
+
native,
|
|
37313
|
+
xConfig: {
|
|
37314
|
+
visible: 'hidden'
|
|
37315
|
+
},
|
|
37316
|
+
yConfig,
|
|
37317
|
+
className: 'vxe-layout-aside--scrollbar' + (className ? ' ' + className : ''),
|
|
37318
|
+
viewAttrs,
|
|
37319
|
+
viewClassName: 'vxe-layout-aside--view' + (viewClassName ? ' ' + viewClassName : ''),
|
|
37320
|
+
viewInnerClassName: 'vxe-layout-aside--inner' + (viewInnerClassName ? ' ' + viewInnerClassName : '')
|
|
37321
|
+
}, {
|
|
37322
|
+
default: () => {
|
|
37323
|
+
return defaultSlot ? defaultSlot({}) : [];
|
|
37324
|
+
}
|
|
37325
|
+
})]);
|
|
37326
|
+
};
|
|
37327
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeLayoutAside', $xeLayoutAside);
|
|
37328
|
+
$xeLayoutAside.renderVN = renderVN;
|
|
37329
|
+
return $xeLayoutAside;
|
|
37330
|
+
},
|
|
37331
|
+
render() {
|
|
37332
|
+
return this.renderVN();
|
|
37333
|
+
}
|
|
37334
|
+
}));
|
|
37335
|
+
;// ./packages/layout-aside/index.ts
|
|
37336
|
+
|
|
37337
|
+
|
|
37338
|
+
|
|
37339
|
+
const VxeLayoutAside = Object.assign({}, layout_aside, {
|
|
37340
|
+
install(app) {
|
|
37341
|
+
app.component(layout_aside.name, layout_aside);
|
|
37342
|
+
}
|
|
37343
|
+
});
|
|
37344
|
+
dynamicApp.use(VxeLayoutAside);
|
|
37345
|
+
VxeUI.component(layout_aside);
|
|
37346
|
+
const LayoutAside = VxeLayoutAside;
|
|
37347
|
+
/* harmony default export */ var packages_layout_aside = (VxeLayoutAside);
|
|
37348
|
+
;// ./packages/layout-body/src/layout-body.ts
|
|
37349
|
+
|
|
37350
|
+
|
|
37351
|
+
|
|
37352
|
+
|
|
37353
|
+
|
|
37354
|
+
|
|
37355
|
+
function layout_body_createInternalData() {
|
|
37356
|
+
return {};
|
|
37357
|
+
}
|
|
37358
|
+
function layout_body_createReactData() {
|
|
37359
|
+
return {};
|
|
37360
|
+
}
|
|
37361
|
+
/* harmony default export */ var layout_body = (defineVxeComponent({
|
|
37362
|
+
name: 'VxeLayoutBody',
|
|
37363
|
+
props: {
|
|
37364
|
+
loading: Boolean,
|
|
37365
|
+
padding: Boolean,
|
|
37366
|
+
showBacktop: {
|
|
37367
|
+
type: Boolean,
|
|
37368
|
+
default: () => getConfig().layoutBody.showBacktop
|
|
37369
|
+
},
|
|
37370
|
+
backtopConfig: Object,
|
|
37371
|
+
scrollbarConfig: Object,
|
|
37372
|
+
size: {
|
|
37373
|
+
type: String,
|
|
37374
|
+
default: () => getConfig().layoutBody.size || getConfig().size
|
|
37375
|
+
}
|
|
37376
|
+
},
|
|
37377
|
+
emits: [],
|
|
37378
|
+
setup(props, context) {
|
|
37379
|
+
const {
|
|
37380
|
+
slots,
|
|
37381
|
+
emit
|
|
37382
|
+
} = context;
|
|
37383
|
+
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
37384
|
+
const backtopId = `vxe_layout_body_backtop_${xID}`;
|
|
37385
|
+
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
37386
|
+
const {
|
|
37387
|
+
computeSize
|
|
37388
|
+
} = useSize(props);
|
|
37389
|
+
const internalData = layout_body_createInternalData();
|
|
37390
|
+
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(layout_body_createReactData());
|
|
37391
|
+
const refMaps = {
|
|
37392
|
+
refElem
|
|
37393
|
+
};
|
|
37394
|
+
const computeBacktopOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
37395
|
+
return Object.assign({}, getConfig().layoutBody.backtopConfig, props.backtopConfig, {
|
|
37396
|
+
target: '#' + backtopId
|
|
37397
|
+
});
|
|
37398
|
+
});
|
|
37399
|
+
const computeScrollbarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
37400
|
+
return Object.assign({}, getConfig().layoutBody.scrollbarConfig, props.scrollbarConfig);
|
|
37401
|
+
});
|
|
37402
|
+
const computeMaps = {
|
|
37403
|
+
computeSize
|
|
37404
|
+
};
|
|
37405
|
+
const $xeLayoutBody = {
|
|
37406
|
+
xID,
|
|
37407
|
+
props,
|
|
37408
|
+
context,
|
|
37409
|
+
internalData,
|
|
37410
|
+
reactData,
|
|
37411
|
+
getRefMaps: () => refMaps,
|
|
37412
|
+
getComputeMaps: () => computeMaps
|
|
37413
|
+
};
|
|
37414
|
+
const dispatchEvent = (type, params, evnt) => {
|
|
37415
|
+
emit(type, createEvent(evnt, {
|
|
37416
|
+
$layoutBody: $xeLayoutBody
|
|
37417
|
+
}, params));
|
|
37418
|
+
};
|
|
37419
|
+
const layoutBodyMethods = {
|
|
37420
|
+
dispatchEvent
|
|
37421
|
+
};
|
|
37422
|
+
const layoutBodyPrivateMethods = {};
|
|
37423
|
+
Object.assign($xeLayoutBody, layoutBodyMethods, layoutBodyPrivateMethods);
|
|
37424
|
+
const renderVN = () => {
|
|
37425
|
+
const {
|
|
37426
|
+
loading,
|
|
37427
|
+
padding,
|
|
37428
|
+
showBacktop
|
|
37429
|
+
} = props;
|
|
37430
|
+
const backtopOpts = computeBacktopOpts.value;
|
|
37431
|
+
const scrollbarOpts = computeScrollbarOpts.value;
|
|
37432
|
+
const {
|
|
37433
|
+
native,
|
|
37434
|
+
xConfig,
|
|
37435
|
+
yConfig,
|
|
37436
|
+
className,
|
|
37437
|
+
viewAttrs,
|
|
37438
|
+
viewClassName,
|
|
37439
|
+
viewInnerClassName
|
|
37440
|
+
} = scrollbarOpts;
|
|
37441
|
+
const vSize = computeSize.value;
|
|
37442
|
+
const defaultSlot = slots.default;
|
|
37443
|
+
const backtopSlot = slots.backtop;
|
|
37444
|
+
const backtopTopSlot = slots.backtopTop || slots['backtop-top'];
|
|
37445
|
+
const backtopBottomSlot = slots.backtopBottom || slots['backtop-bottom'];
|
|
37446
|
+
const backtopScopeSlots = {};
|
|
37447
|
+
if (backtopSlot) {
|
|
37448
|
+
backtopScopeSlots.default = backtopSlot;
|
|
37449
|
+
}
|
|
37450
|
+
if (backtopTopSlot) {
|
|
37451
|
+
backtopScopeSlots.top = backtopTopSlot;
|
|
37452
|
+
}
|
|
37453
|
+
if (backtopBottomSlot) {
|
|
37454
|
+
backtopScopeSlots.bottom = backtopBottomSlot;
|
|
37455
|
+
}
|
|
37456
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37457
|
+
ref: refElem,
|
|
37458
|
+
class: ['vxe-layout-body', {
|
|
37459
|
+
[`size--${vSize}`]: vSize,
|
|
37460
|
+
'is--loading': loading,
|
|
37461
|
+
'is--padding': padding
|
|
37462
|
+
}]
|
|
37463
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_scrollbar, {
|
|
37464
|
+
loading,
|
|
37465
|
+
native,
|
|
37466
|
+
xConfig,
|
|
37467
|
+
yConfig,
|
|
37468
|
+
className: 'vxe-layout-body--scrollbar' + (className ? ' ' + className : ''),
|
|
37469
|
+
viewAttrs: {
|
|
37470
|
+
...viewAttrs,
|
|
37471
|
+
id: showBacktop ? backtopId || null : null
|
|
37472
|
+
},
|
|
37473
|
+
viewClassName: 'vxe-layout-body--view' + (viewClassName ? ' ' + viewClassName : ''),
|
|
37474
|
+
viewInnerClassName: 'vxe-layout-body--inner' + (viewInnerClassName ? ' ' + viewInnerClassName : '')
|
|
37475
|
+
}, {
|
|
37476
|
+
default: () => defaultSlot ? defaultSlot({}) : []
|
|
37477
|
+
}),
|
|
37478
|
+
/**
|
|
37479
|
+
* 回到顶部
|
|
37480
|
+
*/
|
|
37481
|
+
showBacktop ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_backtop, backtopOpts, backtopScopeSlots) : renderEmptyElement($xeLayoutBody)]);
|
|
37482
|
+
};
|
|
37483
|
+
$xeLayoutBody.renderVN = renderVN;
|
|
37484
|
+
return $xeLayoutBody;
|
|
37485
|
+
},
|
|
37486
|
+
render() {
|
|
37487
|
+
return this.renderVN();
|
|
37488
|
+
}
|
|
37489
|
+
}));
|
|
37490
|
+
;// ./packages/layout-body/index.ts
|
|
37491
|
+
|
|
37492
|
+
|
|
37493
|
+
|
|
37494
|
+
const VxeLayoutBody = Object.assign({}, layout_body, {
|
|
37495
|
+
install(app) {
|
|
37496
|
+
app.component(layout_body.name, layout_body);
|
|
36788
37497
|
}
|
|
36789
37498
|
});
|
|
36790
37499
|
dynamicApp.use(VxeLayoutBody);
|
|
@@ -37194,6 +37903,7 @@ const Link = VxeLink;
|
|
|
37194
37903
|
|
|
37195
37904
|
|
|
37196
37905
|
|
|
37906
|
+
|
|
37197
37907
|
const {
|
|
37198
37908
|
errLog: menu_errLog
|
|
37199
37909
|
} = createComponentLog('menu');
|
|
@@ -37256,6 +37966,7 @@ let nemuUniqueKey = 100000000;
|
|
|
37256
37966
|
default: () => menu_getConfig().menu.size || menu_getConfig().size
|
|
37257
37967
|
},
|
|
37258
37968
|
menuConfig: Object,
|
|
37969
|
+
scrollbarConfig: Object,
|
|
37259
37970
|
appendTo: {
|
|
37260
37971
|
type: [String, Function],
|
|
37261
37972
|
default: () => menu_getConfig().menu.appendTo
|
|
@@ -37305,6 +38016,9 @@ let nemuUniqueKey = 100000000;
|
|
|
37305
38016
|
const propsOpts = computePropsOpts.value;
|
|
37306
38017
|
return propsOpts.routerLink || 'routerLink';
|
|
37307
38018
|
});
|
|
38019
|
+
const computeScrollbarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
38020
|
+
return Object.assign({}, menu_getConfig().menu.scrollbarConfig, props.scrollbarConfig);
|
|
38021
|
+
});
|
|
37308
38022
|
const computeCurrBorder = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
37309
38023
|
const {
|
|
37310
38024
|
border
|
|
@@ -37898,6 +38612,7 @@ let nemuUniqueKey = 100000000;
|
|
|
37898
38612
|
const isCollapsed = computeIsCollapsed.value;
|
|
37899
38613
|
const currBorder = computeCurrBorder.value;
|
|
37900
38614
|
const varStyle = computeVarStyle.value;
|
|
38615
|
+
const scrollbarOpts = computeScrollbarOpts.value;
|
|
37901
38616
|
const headerSlot = slots.header;
|
|
37902
38617
|
const footerSlot = slots.footer;
|
|
37903
38618
|
let ons = {};
|
|
@@ -37939,16 +38654,19 @@ let nemuUniqueKey = 100000000;
|
|
|
37939
38654
|
...ons
|
|
37940
38655
|
}, isCollapsed ? [headerSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37941
38656
|
class: 'vxe-menu--header'
|
|
37942
|
-
}, headerSlot(stParams)) : renderEmptyElement($xeMenu), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
37943
|
-
class: 'vxe-menu--body'
|
|
37944
|
-
|
|
38657
|
+
}, headerSlot(stParams)) : renderEmptyElement($xeMenu), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_scrollbar, {
|
|
38658
|
+
class: 'vxe-menu--body',
|
|
38659
|
+
...scrollbarOpts
|
|
38660
|
+
}, {
|
|
38661
|
+
default: () => menuList.map(child => renderDefaultChildren(child, menuList))
|
|
38662
|
+
}), footerSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37945
38663
|
class: 'vxe-menu--footer'
|
|
37946
38664
|
}, footerSlot(stParams)) : renderEmptyElement($xeMenu)] : [])]),
|
|
37947
38665
|
/**
|
|
37948
38666
|
* 加载中
|
|
37949
38667
|
*/
|
|
37950
38668
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_loading, {
|
|
37951
|
-
class: 'vxe-
|
|
38669
|
+
class: 'vxe-menu-view--loading',
|
|
37952
38670
|
modelValue: loading
|
|
37953
38671
|
})]);
|
|
37954
38672
|
};
|
|
@@ -41942,7 +42660,7 @@ function select_createInternalData() {
|
|
|
41942
42660
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
41943
42661
|
class: 'vxe-select-slots',
|
|
41944
42662
|
ref: 'hideOption'
|
|
41945
|
-
}, defaultSlot ? defaultSlot({}) : []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
42663
|
+
}, defaultSlot ? defaultSlot({}) : []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_input, {
|
|
41946
42664
|
ref: refInput,
|
|
41947
42665
|
clearable: props.clearable,
|
|
41948
42666
|
placeholder: inpPlaceholder,
|
|
@@ -41981,7 +42699,7 @@ function select_createInternalData() {
|
|
|
41981
42699
|
style: popupWrapperStyle
|
|
41982
42700
|
}, [filterable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
41983
42701
|
class: 'vxe-select--panel-search'
|
|
41984
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
42702
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_input, {
|
|
41985
42703
|
ref: refInpSearch,
|
|
41986
42704
|
class: 'vxe-select-search--input',
|
|
41987
42705
|
modelValue: reactData.searchValue,
|
|
@@ -42001,11 +42719,11 @@ function select_createInternalData() {
|
|
|
42001
42719
|
class: 'vxe-select--header-button'
|
|
42002
42720
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
42003
42721
|
class: 'vxe-select--header-btns'
|
|
42004
|
-
}, [showCheckedButton && multiple ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
42722
|
+
}, [showCheckedButton && multiple ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
42005
42723
|
content: getI18n('vxe.select.allChecked'),
|
|
42006
42724
|
mode: 'text',
|
|
42007
42725
|
onClick: allCheckedPanelEvent
|
|
42008
|
-
}) : renderEmptyElement($xeSelect), showClearButton ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
42726
|
+
}) : renderEmptyElement($xeSelect), showClearButton ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
42009
42727
|
content: getI18n('vxe.select.clear'),
|
|
42010
42728
|
mode: 'text',
|
|
42011
42729
|
onClick: clearCheckedPanelEvent
|
|
@@ -42034,7 +42752,7 @@ function select_createInternalData() {
|
|
|
42034
42752
|
class: 'vxe-select--total-btns'
|
|
42035
42753
|
}, getI18n('vxe.select.total', [selectVals.length, optList.length])) : renderEmptyElement($xeSelect), showCloseButton && multiple ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
42036
42754
|
class: 'vxe-select--oper-btns'
|
|
42037
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
42755
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
42038
42756
|
content: getI18n('vxe.select.close'),
|
|
42039
42757
|
mode: 'text',
|
|
42040
42758
|
onClick: closePanelEvent
|
|
@@ -45426,215 +46144,18 @@ const Rate = VxeRate;
|
|
|
45426
46144
|
|
|
45427
46145
|
|
|
45428
46146
|
|
|
45429
|
-
/* harmony default export */ var result = (defineVxeComponent({
|
|
45430
|
-
name: 'VxeResult',
|
|
45431
|
-
props: {
|
|
45432
|
-
imageUrl: String,
|
|
45433
|
-
imageStyle: Object,
|
|
45434
|
-
icon: String,
|
|
45435
|
-
type: [String, Number],
|
|
45436
|
-
status: [String, Number],
|
|
45437
|
-
title: [String, Number],
|
|
45438
|
-
content: [String, Number]
|
|
45439
|
-
},
|
|
45440
|
-
emits: [],
|
|
45441
|
-
setup(props, context) {
|
|
45442
|
-
const {
|
|
45443
|
-
emit,
|
|
45444
|
-
slots
|
|
45445
|
-
} = context;
|
|
45446
|
-
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
45447
|
-
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
45448
|
-
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
|
|
45449
|
-
const refMaps = {
|
|
45450
|
-
refElem
|
|
45451
|
-
};
|
|
45452
|
-
const computeMaps = {};
|
|
45453
|
-
const $xeResult = {
|
|
45454
|
-
xID,
|
|
45455
|
-
props,
|
|
45456
|
-
context,
|
|
45457
|
-
reactData,
|
|
45458
|
-
getRefMaps: () => refMaps,
|
|
45459
|
-
getComputeMaps: () => computeMaps
|
|
45460
|
-
};
|
|
45461
|
-
const dispatchEvent = (type, params, evnt) => {
|
|
45462
|
-
emit(type, createEvent(evnt, {
|
|
45463
|
-
$result: $xeResult
|
|
45464
|
-
}, params));
|
|
45465
|
-
};
|
|
45466
|
-
const resultMethods = {
|
|
45467
|
-
dispatchEvent
|
|
45468
|
-
};
|
|
45469
|
-
const resultPrivateMethods = {};
|
|
45470
|
-
Object.assign($xeResult, resultMethods, resultPrivateMethods);
|
|
45471
|
-
const renderVN = () => {
|
|
45472
|
-
const {
|
|
45473
|
-
imageUrl,
|
|
45474
|
-
imageStyle,
|
|
45475
|
-
icon,
|
|
45476
|
-
title,
|
|
45477
|
-
type,
|
|
45478
|
-
content
|
|
45479
|
-
} = props;
|
|
45480
|
-
const status = props.status || type;
|
|
45481
|
-
const slotExtra = slots.extra;
|
|
45482
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45483
|
-
ref: refElem,
|
|
45484
|
-
class: ['vxe-result', {
|
|
45485
|
-
[`theme--${status}`]: status
|
|
45486
|
-
}]
|
|
45487
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45488
|
-
class: 'vxe-result--inner'
|
|
45489
|
-
}, [imageUrl ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45490
|
-
class: 'vxe-result--img-wrapper'
|
|
45491
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('img', {
|
|
45492
|
-
src: imageUrl,
|
|
45493
|
-
style: imageStyle
|
|
45494
|
-
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45495
|
-
class: 'vxe-result--icon-wrapper'
|
|
45496
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
45497
|
-
class: [icon, type ? getIcon()[`RESULT_${type}`.toLocaleUpperCase()] : '']
|
|
45498
|
-
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45499
|
-
class: 'vxe-result--title-wrapper'
|
|
45500
|
-
}, `${title || ''}`), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45501
|
-
class: 'vxe-result--content-wrapper'
|
|
45502
|
-
}, `${content || ''}`), slotExtra ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45503
|
-
class: 'vxe-result--extra-wrapper'
|
|
45504
|
-
}, slotExtra({})) : renderEmptyElement($xeResult)])]);
|
|
45505
|
-
};
|
|
45506
|
-
$xeResult.renderVN = renderVN;
|
|
45507
|
-
return $xeResult;
|
|
45508
|
-
},
|
|
45509
|
-
render() {
|
|
45510
|
-
return this.renderVN();
|
|
45511
|
-
}
|
|
45512
|
-
}));
|
|
45513
|
-
;// ./packages/result/index.ts
|
|
45514
|
-
|
|
45515
|
-
|
|
45516
|
-
|
|
45517
|
-
const VxeResult = Object.assign({}, result, {
|
|
45518
|
-
install(app) {
|
|
45519
|
-
app.component(result.name, result);
|
|
45520
|
-
}
|
|
45521
|
-
});
|
|
45522
|
-
dynamicApp.use(VxeResult);
|
|
45523
|
-
VxeUI.component(result);
|
|
45524
|
-
const Result = VxeResult;
|
|
45525
|
-
/* harmony default export */ var packages_result = (VxeResult);
|
|
45526
|
-
;// ./packages/scrollbar/src/util.ts
|
|
45527
|
-
/**
|
|
45528
|
-
* 计算滚动条滑块的长度
|
|
45529
|
-
*/
|
|
45530
|
-
function getThumbSize(viewportSize, contentSize, trackSize) {
|
|
45531
|
-
if (contentSize <= viewportSize) {
|
|
45532
|
-
return 0;
|
|
45533
|
-
}
|
|
45534
|
-
const ratio = viewportSize / contentSize;
|
|
45535
|
-
const ideal = trackSize * ratio;
|
|
45536
|
-
return Math.max(20, Math.min(ideal, trackSize));
|
|
45537
|
-
}
|
|
45538
|
-
/**
|
|
45539
|
-
* 计算滚动条滑块的偏移位置
|
|
45540
|
-
*/
|
|
45541
|
-
function getThumbOffsetSize(offsetSize, viewportSize, contentSize, trackSize, thumbSize) {
|
|
45542
|
-
const maxScroll = contentSize - viewportSize;
|
|
45543
|
-
if (maxScroll <= 0) {
|
|
45544
|
-
return 0;
|
|
45545
|
-
}
|
|
45546
|
-
const maxThumbOffset = trackSize - thumbSize;
|
|
45547
|
-
if (maxThumbOffset <= 0) {
|
|
45548
|
-
return 0;
|
|
45549
|
-
}
|
|
45550
|
-
const clamped = Math.min(Math.max(offsetSize, 0), maxScroll);
|
|
45551
|
-
const ratio = clamped / maxScroll;
|
|
45552
|
-
return ratio * maxThumbOffset;
|
|
45553
|
-
}
|
|
45554
|
-
/**
|
|
45555
|
-
* 根据点击轨道的位置,计算滑块的偏移位置
|
|
45556
|
-
*/
|
|
45557
|
-
function getScrollFromClick(clickPosition, viewportSize, contentSize, trackSize, thumbSize) {
|
|
45558
|
-
const maxThumbOffset = trackSize - thumbSize;
|
|
45559
|
-
const maxScroll = contentSize - viewportSize;
|
|
45560
|
-
if (maxScroll <= 0 || maxThumbOffset <= 0) {
|
|
45561
|
-
return 0;
|
|
45562
|
-
}
|
|
45563
|
-
let thumbOffset = clickPosition - thumbSize / 2;
|
|
45564
|
-
thumbOffset = Math.min(Math.max(thumbOffset, 0), maxThumbOffset);
|
|
45565
|
-
const scrollOffset = thumbOffset / maxThumbOffset * maxScroll;
|
|
45566
|
-
return scrollOffset;
|
|
45567
|
-
}
|
|
45568
|
-
/**
|
|
45569
|
-
* 拖拽 thumb 时,根据鼠标位置计算滑块的偏移位置
|
|
45570
|
-
*/
|
|
45571
|
-
function getScrollFromDrag(pointerPosition, dragOffset, viewportSize, contentSize, trackSize, thumbSize) {
|
|
45572
|
-
const maxScroll = contentSize - viewportSize;
|
|
45573
|
-
const maxThumbOffset = trackSize - thumbSize;
|
|
45574
|
-
if (maxScroll <= 0 || maxThumbOffset <= 0) {
|
|
45575
|
-
return 0;
|
|
45576
|
-
}
|
|
45577
|
-
let thumbOffset = pointerPosition - dragOffset;
|
|
45578
|
-
thumbOffset = Math.min(Math.max(thumbOffset, 0), maxThumbOffset);
|
|
45579
|
-
return thumbOffset / maxThumbOffset * maxScroll;
|
|
45580
|
-
}
|
|
45581
|
-
;// ./packages/scrollbar/src/scrollbar.ts
|
|
45582
|
-
|
|
45583
|
-
|
|
45584
|
-
|
|
45585
|
-
|
|
45586
|
-
|
|
45587
|
-
|
|
45588
|
-
|
|
45589
|
-
const {
|
|
45590
|
-
getConfig: scrollbar_getConfig,
|
|
45591
|
-
createEvent: scrollbar_createEvent,
|
|
45592
|
-
domUtils: scrollbar_domUtils,
|
|
45593
|
-
globalResize: scrollbar_globalResize,
|
|
45594
|
-
renderEmptyElement: scrollbar_renderEmptyElement
|
|
45595
|
-
} = VxeUI;
|
|
45596
|
-
function scrollbar_createReactData() {
|
|
45597
|
-
return {
|
|
45598
|
-
yThumbHeight: 0,
|
|
45599
|
-
xThumbWidth: 0
|
|
45600
|
-
};
|
|
45601
|
-
}
|
|
45602
|
-
function scrollbar_createInternalData() {
|
|
45603
|
-
return {
|
|
45604
|
-
// resizeObserver: undefined,
|
|
45605
|
-
// isThumbDrag: false,
|
|
45606
|
-
thumbDragOffset: 0,
|
|
45607
|
-
yThumbTop: 0,
|
|
45608
|
-
xThumbLeft: 0,
|
|
45609
|
-
lastScrollTop: 0,
|
|
45610
|
-
lastScrollLeft: 0
|
|
45611
|
-
};
|
|
45612
|
-
}
|
|
45613
|
-
/* harmony default export */ var scrollbar = (defineVxeComponent({
|
|
45614
|
-
name: 'VxeScrollbar',
|
|
45615
|
-
props: {
|
|
45616
|
-
width: [String, Number],
|
|
45617
|
-
height: [String, Number],
|
|
45618
|
-
minWidth: [String, Number],
|
|
45619
|
-
minHeight: [String, Number],
|
|
45620
|
-
maxWidth: [String, Number],
|
|
45621
|
-
maxHeight: [String, Number],
|
|
45622
|
-
loading: Boolean,
|
|
45623
|
-
native: {
|
|
45624
|
-
type: Boolean,
|
|
45625
|
-
default: () => scrollbar_getConfig().scrollbar.native
|
|
45626
|
-
},
|
|
45627
|
-
xConfig: Object,
|
|
45628
|
-
yConfig: Object,
|
|
45629
|
-
className: String,
|
|
45630
|
-
viewClassName: String,
|
|
45631
|
-
autoResize: {
|
|
45632
|
-
type: Boolean,
|
|
45633
|
-
default: () => scrollbar_getConfig().scrollbar.autoResize
|
|
45634
|
-
},
|
|
45635
|
-
syncResize: [Boolean, String, Number]
|
|
46147
|
+
/* harmony default export */ var result = (defineVxeComponent({
|
|
46148
|
+
name: 'VxeResult',
|
|
46149
|
+
props: {
|
|
46150
|
+
imageUrl: String,
|
|
46151
|
+
imageStyle: Object,
|
|
46152
|
+
icon: String,
|
|
46153
|
+
type: [String, Number],
|
|
46154
|
+
status: [String, Number],
|
|
46155
|
+
title: [String, Number],
|
|
46156
|
+
content: [String, Number]
|
|
45636
46157
|
},
|
|
45637
|
-
emits: [
|
|
46158
|
+
emits: [],
|
|
45638
46159
|
setup(props, context) {
|
|
45639
46160
|
const {
|
|
45640
46161
|
emit,
|
|
@@ -45642,485 +46163,84 @@ function scrollbar_createInternalData() {
|
|
|
45642
46163
|
} = context;
|
|
45643
46164
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
45644
46165
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
45645
|
-
const
|
|
45646
|
-
const refViewInnerElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
45647
|
-
const refTrackXElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
45648
|
-
const refTrackYElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
45649
|
-
const refThumbXElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
45650
|
-
const refThumbYElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
45651
|
-
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(scrollbar_createReactData());
|
|
45652
|
-
const internalData = scrollbar_createInternalData();
|
|
45653
|
-
const computeWrapperStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45654
|
-
const {
|
|
45655
|
-
width,
|
|
45656
|
-
height,
|
|
45657
|
-
minWidth,
|
|
45658
|
-
minHeight,
|
|
45659
|
-
maxWidth,
|
|
45660
|
-
maxHeight
|
|
45661
|
-
} = props;
|
|
45662
|
-
const xOpts = computeXOpts.value;
|
|
45663
|
-
const yOpts = computeYOpts.value;
|
|
45664
|
-
const stys = {};
|
|
45665
|
-
if (width) {
|
|
45666
|
-
stys.width = toCssUnit(width);
|
|
45667
|
-
}
|
|
45668
|
-
if (height) {
|
|
45669
|
-
stys.height = toCssUnit(height);
|
|
45670
|
-
}
|
|
45671
|
-
if (minWidth) {
|
|
45672
|
-
stys.minWidth = toCssUnit(minWidth);
|
|
45673
|
-
}
|
|
45674
|
-
if (minHeight) {
|
|
45675
|
-
stys.minHeight = toCssUnit(minHeight);
|
|
45676
|
-
}
|
|
45677
|
-
if (maxWidth) {
|
|
45678
|
-
stys.maxWidth = toCssUnit(maxWidth);
|
|
45679
|
-
}
|
|
45680
|
-
if (maxHeight) {
|
|
45681
|
-
stys.maxHeight = toCssUnit(maxHeight);
|
|
45682
|
-
}
|
|
45683
|
-
if (yOpts.width) {
|
|
45684
|
-
stys['--vxe-ui-scrollbar-y-width'] = toCssUnit(yOpts.width);
|
|
45685
|
-
}
|
|
45686
|
-
if (xOpts.height) {
|
|
45687
|
-
stys['--vxe-ui-scrollbar-x-height'] = toCssUnit(xOpts.height);
|
|
45688
|
-
}
|
|
45689
|
-
return stys;
|
|
45690
|
-
});
|
|
45691
|
-
const computeWrapperClss = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45692
|
-
const {
|
|
45693
|
-
native,
|
|
45694
|
-
className
|
|
45695
|
-
} = props;
|
|
45696
|
-
const xOpts = computeXOpts.value;
|
|
45697
|
-
const yOpts = computeYOpts.value;
|
|
45698
|
-
return scrollbar_domUtils.buildClass(['vxe-scrollbar', `ov-x--${xOpts.visible || 'visible'}`, `ov-y--${yOpts.visible || 'visible'}`, native ? 'is--native' : 'is--virtual', className], {
|
|
45699
|
-
'ov-x--auto-hide': xOpts.autoHide,
|
|
45700
|
-
'ov-y--auto-hide': yOpts.autoHide
|
|
45701
|
-
});
|
|
45702
|
-
});
|
|
45703
|
-
const computeViewClss = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45704
|
-
const {
|
|
45705
|
-
viewClassName
|
|
45706
|
-
} = props;
|
|
45707
|
-
return scrollbar_domUtils.buildClass(['vxe-scrollbar--view', viewClassName]);
|
|
45708
|
-
});
|
|
45709
|
-
const computeXOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45710
|
-
return Object.assign({}, scrollbar_getConfig().scrollbar.xConfig, props.xConfig);
|
|
45711
|
-
});
|
|
45712
|
-
const computeYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45713
|
-
return Object.assign({}, scrollbar_getConfig().scrollbar.yConfig, props.yConfig);
|
|
45714
|
-
});
|
|
46166
|
+
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
|
|
45715
46167
|
const refMaps = {
|
|
45716
46168
|
refElem
|
|
45717
46169
|
};
|
|
45718
46170
|
const computeMaps = {};
|
|
45719
|
-
const $
|
|
46171
|
+
const $xeResult = {
|
|
45720
46172
|
xID,
|
|
45721
46173
|
props,
|
|
45722
46174
|
context,
|
|
45723
46175
|
reactData,
|
|
45724
|
-
internalData,
|
|
45725
46176
|
getRefMaps: () => refMaps,
|
|
45726
46177
|
getComputeMaps: () => computeMaps
|
|
45727
46178
|
};
|
|
45728
46179
|
const dispatchEvent = (type, params, evnt) => {
|
|
45729
|
-
emit(type,
|
|
45730
|
-
$
|
|
46180
|
+
emit(type, createEvent(evnt, {
|
|
46181
|
+
$result: $xeResult
|
|
45731
46182
|
}, params));
|
|
45732
46183
|
};
|
|
45733
|
-
const
|
|
45734
|
-
dispatchEvent
|
|
45735
|
-
scrollTo(left, top) {
|
|
45736
|
-
const viewEl = refViewElem.value;
|
|
45737
|
-
if (viewEl) {
|
|
45738
|
-
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(left)) {
|
|
45739
|
-
viewEl.scrollTo(left, top || 0);
|
|
45740
|
-
} else {
|
|
45741
|
-
viewEl.scrollTo(left);
|
|
45742
|
-
}
|
|
45743
|
-
}
|
|
45744
|
-
},
|
|
45745
|
-
scrollIntoView() {
|
|
45746
|
-
const viewEl = refViewElem.value;
|
|
45747
|
-
if (viewEl) {
|
|
45748
|
-
viewEl.scrollIntoView();
|
|
45749
|
-
}
|
|
45750
|
-
},
|
|
45751
|
-
recalculate() {
|
|
45752
|
-
updateThumbSize();
|
|
45753
|
-
updateThumbOffset();
|
|
45754
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
45755
|
-
}
|
|
45756
|
-
};
|
|
45757
|
-
const updateThumbSize = () => {
|
|
45758
|
-
const viewEl = refViewElem.value;
|
|
45759
|
-
if (!viewEl) {
|
|
45760
|
-
return;
|
|
45761
|
-
}
|
|
45762
|
-
const trackXEl = refTrackXElem.value;
|
|
45763
|
-
const xThumbWidth = trackXEl ? getThumbSize(viewEl.clientWidth, viewEl.scrollWidth, trackXEl.clientWidth) : 0;
|
|
45764
|
-
const thumbXElem = refThumbXElem.value;
|
|
45765
|
-
if (thumbXElem) {
|
|
45766
|
-
thumbXElem.style.width = xThumbWidth + 'px';
|
|
45767
|
-
}
|
|
45768
|
-
reactData.xThumbWidth = xThumbWidth;
|
|
45769
|
-
const trackYEl = refTrackYElem.value;
|
|
45770
|
-
const yThumbHeight = trackYEl ? getThumbSize(viewEl.clientHeight, viewEl.scrollHeight, trackYEl.clientHeight) : 0;
|
|
45771
|
-
const thumbYElem = refThumbYElem.value;
|
|
45772
|
-
if (thumbYElem) {
|
|
45773
|
-
thumbYElem.style.height = yThumbHeight + 'px';
|
|
45774
|
-
}
|
|
45775
|
-
reactData.yThumbHeight = yThumbHeight;
|
|
45776
|
-
};
|
|
45777
|
-
const updateThumbOffset = () => {
|
|
45778
|
-
const viewEl = refViewElem.value;
|
|
45779
|
-
if (!viewEl) {
|
|
45780
|
-
return;
|
|
45781
|
-
}
|
|
45782
|
-
const {
|
|
45783
|
-
xThumbWidth,
|
|
45784
|
-
yThumbHeight
|
|
45785
|
-
} = reactData;
|
|
45786
|
-
const trackXEl = refTrackXElem.value;
|
|
45787
|
-
const thumbXElem = refThumbXElem.value;
|
|
45788
|
-
const xThumbLeft = trackXEl && xThumbWidth ? getThumbOffsetSize(viewEl.scrollLeft, viewEl.clientWidth, viewEl.scrollWidth, trackXEl.clientWidth, xThumbWidth) : 0;
|
|
45789
|
-
internalData.xThumbLeft = xThumbLeft;
|
|
45790
|
-
if (thumbXElem && xThumbWidth) {
|
|
45791
|
-
thumbXElem.style.width = xThumbWidth + 'px';
|
|
45792
|
-
thumbXElem.style.transform = `translateX(${xThumbLeft}px)`;
|
|
45793
|
-
}
|
|
45794
|
-
const trackYEl = refTrackYElem.value;
|
|
45795
|
-
const thumbYElem = refThumbYElem.value;
|
|
45796
|
-
const yThumbTop = trackYEl && yThumbHeight ? getThumbOffsetSize(viewEl.scrollTop, viewEl.clientHeight, viewEl.scrollHeight, trackYEl.clientHeight, yThumbHeight) : 0;
|
|
45797
|
-
internalData.yThumbTop = yThumbTop;
|
|
45798
|
-
if (thumbYElem && yThumbHeight) {
|
|
45799
|
-
thumbYElem.style.height = yThumbHeight + 'px';
|
|
45800
|
-
thumbYElem.style.transform = `translateY(${yThumbTop}px)`;
|
|
45801
|
-
}
|
|
45802
|
-
};
|
|
45803
|
-
const scrollEvent = evnt => {
|
|
45804
|
-
const {
|
|
45805
|
-
xThumbWidth,
|
|
45806
|
-
yThumbHeight
|
|
45807
|
-
} = reactData;
|
|
45808
|
-
const {
|
|
45809
|
-
lastScrollTop,
|
|
45810
|
-
lastScrollLeft
|
|
45811
|
-
} = internalData;
|
|
45812
|
-
const xOpts = computeXOpts.value;
|
|
45813
|
-
const yOpts = computeYOpts.value;
|
|
45814
|
-
const viewEl = evnt.currentTarget;
|
|
45815
|
-
const {
|
|
45816
|
-
scrollTop,
|
|
45817
|
-
scrollLeft,
|
|
45818
|
-
clientWidth,
|
|
45819
|
-
clientHeight,
|
|
45820
|
-
scrollHeight,
|
|
45821
|
-
scrollWidth
|
|
45822
|
-
} = viewEl;
|
|
45823
|
-
let direction = '';
|
|
45824
|
-
let isTopBoundary = false;
|
|
45825
|
-
let isBottomBoundary = false;
|
|
45826
|
-
let isLeftBoundary = false;
|
|
45827
|
-
let isRightBoundary = false;
|
|
45828
|
-
if (lastScrollTop !== scrollTop) {
|
|
45829
|
-
const yThreshold = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(yOpts.threshold) || 1;
|
|
45830
|
-
if (lastScrollTop < scrollTop) {
|
|
45831
|
-
direction = 'bottom';
|
|
45832
|
-
if (yThumbHeight > 0 && scrollTop + clientHeight >= scrollHeight - yThreshold) {
|
|
45833
|
-
isBottomBoundary = true;
|
|
45834
|
-
}
|
|
45835
|
-
} else {
|
|
45836
|
-
direction = 'top';
|
|
45837
|
-
if (yThumbHeight > 0 && scrollTop <= yThreshold) {
|
|
45838
|
-
isTopBoundary = true;
|
|
45839
|
-
}
|
|
45840
|
-
}
|
|
45841
|
-
}
|
|
45842
|
-
if (lastScrollLeft !== scrollLeft) {
|
|
45843
|
-
const xThreshold = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(xOpts.threshold) || 1;
|
|
45844
|
-
if (lastScrollLeft < scrollLeft) {
|
|
45845
|
-
direction = 'right';
|
|
45846
|
-
if (xThumbWidth > 0 && scrollLeft + clientWidth >= scrollWidth - xThreshold) {
|
|
45847
|
-
isRightBoundary = true;
|
|
45848
|
-
}
|
|
45849
|
-
} else {
|
|
45850
|
-
direction = 'left';
|
|
45851
|
-
if (xThumbWidth > 0 && scrollLeft <= xThreshold) {
|
|
45852
|
-
isLeftBoundary = true;
|
|
45853
|
-
}
|
|
45854
|
-
}
|
|
45855
|
-
}
|
|
45856
|
-
updateThumbOffset();
|
|
45857
|
-
internalData.lastScrollTop = scrollTop;
|
|
45858
|
-
internalData.lastScrollLeft = scrollLeft;
|
|
45859
|
-
if (isBottomBoundary || isTopBoundary || isRightBoundary || isLeftBoundary) {
|
|
45860
|
-
dispatchEvent('scroll-boundary', {
|
|
45861
|
-
direction: direction,
|
|
45862
|
-
isTop: isTopBoundary,
|
|
45863
|
-
isBottom: isBottomBoundary,
|
|
45864
|
-
isLeft: isLeftBoundary,
|
|
45865
|
-
isRight: isRightBoundary,
|
|
45866
|
-
scrollTop: scrollTop,
|
|
45867
|
-
scrollLeft: scrollLeft,
|
|
45868
|
-
clientWidth: clientWidth,
|
|
45869
|
-
clientHeight: clientHeight,
|
|
45870
|
-
scrollHeight: scrollHeight,
|
|
45871
|
-
scrollWidth: scrollWidth
|
|
45872
|
-
}, evnt);
|
|
45873
|
-
}
|
|
45874
|
-
dispatchEvent('scroll', {
|
|
45875
|
-
direction: direction,
|
|
45876
|
-
isTop: yThumbHeight > 0 && scrollTop <= 0,
|
|
45877
|
-
isBottom: yThumbHeight > 0 && scrollTop + clientHeight >= scrollHeight,
|
|
45878
|
-
isLeft: xThumbWidth > 0 && scrollLeft <= 0,
|
|
45879
|
-
isRight: xThumbWidth > 0 && scrollLeft + clientWidth >= scrollWidth,
|
|
45880
|
-
scrollTop: scrollTop,
|
|
45881
|
-
scrollLeft: scrollLeft,
|
|
45882
|
-
clientWidth: clientWidth,
|
|
45883
|
-
clientHeight: clientHeight,
|
|
45884
|
-
scrollHeight: scrollHeight,
|
|
45885
|
-
scrollWidth: scrollWidth
|
|
45886
|
-
}, evnt);
|
|
45887
|
-
};
|
|
45888
|
-
const clickTrackXEvent = evnt => {
|
|
45889
|
-
const trackEl = evnt.currentTarget;
|
|
45890
|
-
if (trackEl !== evnt.target) {
|
|
45891
|
-
return;
|
|
45892
|
-
}
|
|
45893
|
-
const viewEl = refViewElem.value;
|
|
45894
|
-
if (!viewEl) {
|
|
45895
|
-
return;
|
|
45896
|
-
}
|
|
45897
|
-
const {
|
|
45898
|
-
xThumbWidth
|
|
45899
|
-
} = reactData;
|
|
45900
|
-
const trackRect = trackEl.getBoundingClientRect();
|
|
45901
|
-
viewEl.scrollTo({
|
|
45902
|
-
left: getScrollFromClick(evnt.clientX - trackRect.left, viewEl.clientWidth, viewEl.scrollWidth, trackEl.clientWidth, xThumbWidth),
|
|
45903
|
-
behavior: 'auto'
|
|
45904
|
-
});
|
|
45905
|
-
};
|
|
45906
|
-
const clickTrackYEvent = evnt => {
|
|
45907
|
-
const trackEl = evnt.currentTarget;
|
|
45908
|
-
if (trackEl !== evnt.target) {
|
|
45909
|
-
return;
|
|
45910
|
-
}
|
|
45911
|
-
const viewEl = refViewElem.value;
|
|
45912
|
-
if (!viewEl) {
|
|
45913
|
-
return;
|
|
45914
|
-
}
|
|
45915
|
-
const {
|
|
45916
|
-
yThumbHeight
|
|
45917
|
-
} = reactData;
|
|
45918
|
-
const trackRect = trackEl.getBoundingClientRect();
|
|
45919
|
-
viewEl.scrollTo({
|
|
45920
|
-
top: getScrollFromClick(evnt.clientY - trackRect.top, viewEl.clientHeight, viewEl.scrollHeight, trackEl.clientHeight, yThumbHeight),
|
|
45921
|
-
behavior: 'auto'
|
|
45922
|
-
});
|
|
45923
|
-
};
|
|
45924
|
-
const pointerdownThumbXEvent = evnt => {
|
|
45925
|
-
const thumbEl = evnt.currentTarget;
|
|
45926
|
-
internalData.isThumbDrag = true;
|
|
45927
|
-
thumbEl.setPointerCapture(evnt.pointerId);
|
|
45928
|
-
const viewEl = refViewElem.value;
|
|
45929
|
-
if (!viewEl) {
|
|
45930
|
-
return;
|
|
45931
|
-
}
|
|
45932
|
-
const {
|
|
45933
|
-
xThumbWidth
|
|
45934
|
-
} = reactData;
|
|
45935
|
-
const trackEl = thumbEl.parentElement;
|
|
45936
|
-
const trackRect = trackEl.getBoundingClientRect();
|
|
45937
|
-
const pointerPosition = evnt.clientX - trackRect.left;
|
|
45938
|
-
// 记录 thumb 的偏移
|
|
45939
|
-
const thumbOffset = getThumbOffsetSize(viewEl.scrollLeft, viewEl.clientWidth, viewEl.scrollWidth, trackEl.clientWidth, xThumbWidth);
|
|
45940
|
-
internalData.thumbDragOffset = pointerPosition - thumbOffset;
|
|
45941
|
-
};
|
|
45942
|
-
const pointermoveThumbXEvent = evnt => {
|
|
45943
|
-
const thumbEl = evnt.currentTarget;
|
|
45944
|
-
if (!thumbEl.hasPointerCapture(evnt.pointerId)) {
|
|
45945
|
-
return;
|
|
45946
|
-
}
|
|
45947
|
-
const {
|
|
45948
|
-
isThumbDrag,
|
|
45949
|
-
thumbDragOffset
|
|
45950
|
-
} = internalData;
|
|
45951
|
-
if (isThumbDrag) {
|
|
45952
|
-
const viewEl = refViewElem.value;
|
|
45953
|
-
if (!viewEl) {
|
|
45954
|
-
return;
|
|
45955
|
-
}
|
|
45956
|
-
const {
|
|
45957
|
-
xThumbWidth
|
|
45958
|
-
} = reactData;
|
|
45959
|
-
const thumbEl = evnt.currentTarget;
|
|
45960
|
-
const trackEl = thumbEl.parentElement;
|
|
45961
|
-
const trackRect = trackEl.getBoundingClientRect();
|
|
45962
|
-
// 更新偏移
|
|
45963
|
-
viewEl.scrollLeft = getScrollFromDrag(evnt.clientX - trackRect.left, thumbDragOffset, viewEl.clientWidth, viewEl.scrollWidth, trackEl.clientWidth, xThumbWidth);
|
|
45964
|
-
}
|
|
45965
|
-
};
|
|
45966
|
-
const cleatPointerThumbEvent = evnt => {
|
|
45967
|
-
const thumbEl = evnt.currentTarget;
|
|
45968
|
-
thumbEl.releasePointerCapture(evnt.pointerId);
|
|
45969
|
-
internalData.isThumbDrag = false;
|
|
45970
|
-
};
|
|
45971
|
-
const pointerdownThumbYEvent = evnt => {
|
|
45972
|
-
const thumbEl = evnt.currentTarget;
|
|
45973
|
-
internalData.isThumbDrag = true;
|
|
45974
|
-
thumbEl.setPointerCapture(evnt.pointerId);
|
|
45975
|
-
const viewEl = refViewElem.value;
|
|
45976
|
-
if (!viewEl) {
|
|
45977
|
-
return;
|
|
45978
|
-
}
|
|
45979
|
-
const {
|
|
45980
|
-
yThumbHeight
|
|
45981
|
-
} = reactData;
|
|
45982
|
-
const trackEl = thumbEl.parentElement;
|
|
45983
|
-
const trackRect = trackEl.getBoundingClientRect();
|
|
45984
|
-
const pointerPosition = evnt.clientY - trackRect.top;
|
|
45985
|
-
// 记录 thumb 的偏移
|
|
45986
|
-
const thumbOffset = getThumbOffsetSize(viewEl.scrollTop, viewEl.clientHeight, viewEl.scrollHeight, trackEl.clientHeight, yThumbHeight);
|
|
45987
|
-
internalData.thumbDragOffset = pointerPosition - thumbOffset;
|
|
45988
|
-
};
|
|
45989
|
-
const pointermoveThumbYEvent = evnt => {
|
|
45990
|
-
const thumbEl = evnt.currentTarget;
|
|
45991
|
-
if (!thumbEl.hasPointerCapture(evnt.pointerId)) {
|
|
45992
|
-
return;
|
|
45993
|
-
}
|
|
45994
|
-
const {
|
|
45995
|
-
isThumbDrag,
|
|
45996
|
-
thumbDragOffset
|
|
45997
|
-
} = internalData;
|
|
45998
|
-
if (isThumbDrag) {
|
|
45999
|
-
const viewEl = refViewElem.value;
|
|
46000
|
-
if (!viewEl) {
|
|
46001
|
-
return;
|
|
46002
|
-
}
|
|
46003
|
-
const {
|
|
46004
|
-
yThumbHeight
|
|
46005
|
-
} = reactData;
|
|
46006
|
-
const thumbEl = evnt.currentTarget;
|
|
46007
|
-
const trackEl = thumbEl.parentElement;
|
|
46008
|
-
const trackRect = trackEl.getBoundingClientRect();
|
|
46009
|
-
// 更新偏移
|
|
46010
|
-
viewEl.scrollTop = getScrollFromDrag(evnt.clientY - trackRect.top, thumbDragOffset, viewEl.clientHeight, viewEl.scrollHeight, trackEl.clientHeight, yThumbHeight);
|
|
46011
|
-
}
|
|
46184
|
+
const resultMethods = {
|
|
46185
|
+
dispatchEvent
|
|
46012
46186
|
};
|
|
46013
|
-
const
|
|
46014
|
-
Object.assign($
|
|
46187
|
+
const resultPrivateMethods = {};
|
|
46188
|
+
Object.assign($xeResult, resultMethods, resultPrivateMethods);
|
|
46015
46189
|
const renderVN = () => {
|
|
46016
46190
|
const {
|
|
46017
|
-
|
|
46018
|
-
|
|
46191
|
+
imageUrl,
|
|
46192
|
+
imageStyle,
|
|
46193
|
+
icon,
|
|
46194
|
+
title,
|
|
46195
|
+
type,
|
|
46196
|
+
content
|
|
46019
46197
|
} = props;
|
|
46020
|
-
const
|
|
46021
|
-
const
|
|
46022
|
-
const viewClss = computeViewClss.value;
|
|
46023
|
-
const xOpts = computeXOpts.value;
|
|
46024
|
-
const yOpts = computeYOpts.value;
|
|
46025
|
-
const defaultSlot = slots.default;
|
|
46198
|
+
const status = props.status || type;
|
|
46199
|
+
const slotExtra = slots.extra;
|
|
46026
46200
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46027
46201
|
ref: refElem,
|
|
46028
|
-
class:
|
|
46029
|
-
|
|
46030
|
-
|
|
46031
|
-
ref: refViewElem,
|
|
46032
|
-
class: viewClss,
|
|
46033
|
-
onScroll: scrollEvent
|
|
46034
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46035
|
-
ref: refViewInnerElem,
|
|
46036
|
-
class: 'vxe-scrollbar--view-inner'
|
|
46037
|
-
}, defaultSlot ? defaultSlot({}) : [])]), native || xOpts.visible === 'hidden' ? scrollbar_renderEmptyElement($xeScrollbar) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46038
|
-
ref: refTrackXElem,
|
|
46039
|
-
class: 'vxe-scrollbar--track-x',
|
|
46040
|
-
onClick: clickTrackXEvent
|
|
46041
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46042
|
-
ref: refThumbXElem,
|
|
46043
|
-
class: 'vxe-scrollbar--thumb-x',
|
|
46044
|
-
onPointerdown: pointerdownThumbXEvent,
|
|
46045
|
-
onPointermove: pointermoveThumbXEvent,
|
|
46046
|
-
onPointerup: cleatPointerThumbEvent,
|
|
46047
|
-
onPointercancel: cleatPointerThumbEvent,
|
|
46048
|
-
onLostpointercapture: cleatPointerThumbEvent
|
|
46049
|
-
})]), native || yOpts.visible === 'hidden' ? scrollbar_renderEmptyElement($xeScrollbar) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46050
|
-
ref: refTrackYElem,
|
|
46051
|
-
class: 'vxe-scrollbar--track-y',
|
|
46052
|
-
onClick: clickTrackYEvent
|
|
46202
|
+
class: ['vxe-result', {
|
|
46203
|
+
[`theme--${status}`]: status
|
|
46204
|
+
}]
|
|
46053
46205
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46054
|
-
|
|
46055
|
-
|
|
46056
|
-
|
|
46057
|
-
|
|
46058
|
-
|
|
46059
|
-
|
|
46060
|
-
|
|
46061
|
-
|
|
46062
|
-
|
|
46063
|
-
|
|
46064
|
-
})])
|
|
46206
|
+
class: 'vxe-result--inner'
|
|
46207
|
+
}, [imageUrl ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46208
|
+
class: 'vxe-result--img-wrapper'
|
|
46209
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('img', {
|
|
46210
|
+
src: imageUrl,
|
|
46211
|
+
style: imageStyle
|
|
46212
|
+
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46213
|
+
class: 'vxe-result--icon-wrapper'
|
|
46214
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
46215
|
+
class: [icon, type ? getIcon()[`RESULT_${type}`.toLocaleUpperCase()] : '']
|
|
46216
|
+
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46217
|
+
class: 'vxe-result--title-wrapper'
|
|
46218
|
+
}, `${title || ''}`), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46219
|
+
class: 'vxe-result--content-wrapper'
|
|
46220
|
+
}, `${content || ''}`), slotExtra ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46221
|
+
class: 'vxe-result--extra-wrapper'
|
|
46222
|
+
}, slotExtra({})) : renderEmptyElement($xeResult)])]);
|
|
46065
46223
|
};
|
|
46066
|
-
|
|
46067
|
-
|
|
46068
|
-
reFlag.value++;
|
|
46069
|
-
});
|
|
46070
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.syncResize, () => {
|
|
46071
|
-
reFlag.value++;
|
|
46072
|
-
});
|
|
46073
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(reFlag, () => {
|
|
46074
|
-
$xeScrollbar.recalculate().then(() => {
|
|
46075
|
-
$xeScrollbar.recalculate();
|
|
46076
|
-
});
|
|
46077
|
-
});
|
|
46078
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
46079
|
-
const {
|
|
46080
|
-
autoResize
|
|
46081
|
-
} = props;
|
|
46082
|
-
const viewInnerEl = refViewInnerElem.value;
|
|
46083
|
-
if (autoResize && viewInnerEl) {
|
|
46084
|
-
const resizeObserver = scrollbar_globalResize.create(() => {
|
|
46085
|
-
if (props.autoResize) {
|
|
46086
|
-
reFlag.value++;
|
|
46087
|
-
}
|
|
46088
|
-
});
|
|
46089
|
-
resizeObserver.observe(viewInnerEl);
|
|
46090
|
-
internalData.resizeObserver = resizeObserver;
|
|
46091
|
-
}
|
|
46092
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
46093
|
-
$xeScrollbar.recalculate();
|
|
46094
|
-
});
|
|
46095
|
-
});
|
|
46096
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
46097
|
-
const {
|
|
46098
|
-
resizeObserver
|
|
46099
|
-
} = internalData;
|
|
46100
|
-
if (resizeObserver) {
|
|
46101
|
-
resizeObserver.disconnect();
|
|
46102
|
-
}
|
|
46103
|
-
});
|
|
46104
|
-
$xeScrollbar.renderVN = renderVN;
|
|
46105
|
-
return $xeScrollbar;
|
|
46224
|
+
$xeResult.renderVN = renderVN;
|
|
46225
|
+
return $xeResult;
|
|
46106
46226
|
},
|
|
46107
46227
|
render() {
|
|
46108
46228
|
return this.renderVN();
|
|
46109
46229
|
}
|
|
46110
46230
|
}));
|
|
46111
|
-
;// ./packages/
|
|
46231
|
+
;// ./packages/result/index.ts
|
|
46112
46232
|
|
|
46113
46233
|
|
|
46114
46234
|
|
|
46115
|
-
const
|
|
46235
|
+
const VxeResult = Object.assign({}, result, {
|
|
46116
46236
|
install(app) {
|
|
46117
|
-
app.component(
|
|
46237
|
+
app.component(result.name, result);
|
|
46118
46238
|
}
|
|
46119
46239
|
});
|
|
46120
|
-
dynamicApp.use(
|
|
46121
|
-
VxeUI.component(
|
|
46122
|
-
const
|
|
46123
|
-
/* harmony default export */ var
|
|
46240
|
+
dynamicApp.use(VxeResult);
|
|
46241
|
+
VxeUI.component(result);
|
|
46242
|
+
const Result = VxeResult;
|
|
46243
|
+
/* harmony default export */ var packages_result = (VxeResult);
|
|
46124
46244
|
;// ./packages/row/src/row.ts
|
|
46125
46245
|
|
|
46126
46246
|
|
|
@@ -50702,7 +50822,7 @@ const scrollbarOffsetSize = 20;
|
|
|
50702
50822
|
}]
|
|
50703
50823
|
}, renderTabContent(tabList)), footerSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
50704
50824
|
class: 'vxe-tabs-pane--footer'
|
|
50705
|
-
}, callSlot(footerSlot, defParams)) : renderEmptyElement($xeTabs), showLoading && isLoading ? renderEmptyElement($xeTabs) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
50825
|
+
}, callSlot(footerSlot, defParams)) : renderEmptyElement($xeTabs), showLoading && isLoading ? renderEmptyElement($xeTabs) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_loading, {
|
|
50706
50826
|
class: 'vxe-tabs--loading',
|
|
50707
50827
|
modelValue: isLoading
|
|
50708
50828
|
})]);
|
|
@@ -51280,19 +51400,6 @@ dynamicApp.use(VxeTextEllipsis);
|
|
|
51280
51400
|
VxeUI.component(text_ellipsis);
|
|
51281
51401
|
const TextEllipsis = VxeTextEllipsis;
|
|
51282
51402
|
/* harmony default export */ var packages_text_ellipsis = (VxeTextEllipsis);
|
|
51283
|
-
;// ./packages/text/index.ts
|
|
51284
|
-
|
|
51285
|
-
|
|
51286
|
-
|
|
51287
|
-
const VxeText = Object.assign({}, src_text, {
|
|
51288
|
-
install(app) {
|
|
51289
|
-
app.component(src_text.name, src_text);
|
|
51290
|
-
}
|
|
51291
|
-
});
|
|
51292
|
-
dynamicApp.use(VxeText);
|
|
51293
|
-
VxeUI.component(src_text);
|
|
51294
|
-
const Text = VxeText;
|
|
51295
|
-
/* harmony default export */ var packages_text = (VxeText);
|
|
51296
51403
|
;// ./packages/textarea/src/textarea.ts
|
|
51297
51404
|
|
|
51298
51405
|
|
|
@@ -59040,7 +59147,7 @@ function upload_createInternalData() {
|
|
|
59040
59147
|
percent: cacheItem.percent
|
|
59041
59148
|
}) : getI18n('vxe.upload.uploadProgress', [cacheItem.percent])) : renderEmptyElement($xeUpload), !isLoading && (isError && showErrorStatus || isPending && showSubmitButton && !autoSubmit) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
59042
59149
|
class: 'vxe-upload--file-item-rebtn'
|
|
59043
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
59150
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
59044
59151
|
icon: isError ? getIcon().UPLOAD_IMAGE_RE_UPLOAD : getIcon().UPLOAD_IMAGE_UPLOAD,
|
|
59045
59152
|
mode: 'text',
|
|
59046
59153
|
status: 'primary',
|
|
@@ -59110,7 +59217,7 @@ function upload_createInternalData() {
|
|
|
59110
59217
|
isMoreView,
|
|
59111
59218
|
options: fileList,
|
|
59112
59219
|
$upload: $xeUpload
|
|
59113
|
-
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
59220
|
+
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
59114
59221
|
class: 'vxe-upload--file-action-button',
|
|
59115
59222
|
content: isMoreView || showButtonText ? buttonText ? `${external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(buttonText) ? buttonText({}) : buttonText}` : getI18n('vxe.upload.fileBtnText') : '',
|
|
59116
59223
|
icon: showButtonIcon ? buttonIcon || getIcon().UPLOAD_FILE_ADD : '',
|
|
@@ -59171,7 +59278,7 @@ function upload_createInternalData() {
|
|
|
59171
59278
|
class: 'vxe-upload--file-over-more'
|
|
59172
59279
|
}, moreBtnSlot ? vn_getSlotVNs(moreBtnSlot({
|
|
59173
59280
|
options: fileList
|
|
59174
|
-
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
59281
|
+
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
59175
59282
|
mode: 'text',
|
|
59176
59283
|
content: moreButtonText ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(moreButtonText) ? moreButtonText({
|
|
59177
59284
|
$upload: $xeUpload,
|
|
@@ -59264,7 +59371,7 @@ function upload_createInternalData() {
|
|
|
59264
59371
|
src: getThumbnailFileUrl(item)
|
|
59265
59372
|
})]), !isLoading && (isError && showErrorStatus || isPending && showSubmitButton && !autoSubmit) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
59266
59373
|
class: 'vxe-upload--image-item-rebtn'
|
|
59267
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
59374
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
59268
59375
|
icon: isError ? getIcon().UPLOAD_IMAGE_RE_UPLOAD : getIcon().UPLOAD_IMAGE_UPLOAD,
|
|
59269
59376
|
mode: 'text',
|
|
59270
59377
|
status: 'primary',
|
|
@@ -59388,7 +59495,7 @@ function upload_createInternalData() {
|
|
|
59388
59495
|
class: 'vxe-upload--image-over-more'
|
|
59389
59496
|
}, moreBtnSlot ? vn_getSlotVNs(moreBtnSlot({
|
|
59390
59497
|
options: fileList
|
|
59391
|
-
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
59498
|
+
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
59392
59499
|
mode: 'text',
|
|
59393
59500
|
content: moreButtonText ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(moreButtonText) ? moreButtonText({
|
|
59394
59501
|
$upload: $xeUpload,
|
|
@@ -59403,7 +59510,7 @@ function upload_createInternalData() {
|
|
|
59403
59510
|
class: 'vxe-upload--image-over-more'
|
|
59404
59511
|
}, moreBtnSlot ? vn_getSlotVNs(moreBtnSlot({
|
|
59405
59512
|
options: fileList
|
|
59406
|
-
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
59513
|
+
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(packages_button, {
|
|
59407
59514
|
mode: 'text',
|
|
59408
59515
|
content: moreButtonText ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(moreButtonText) ? moreButtonText({
|
|
59409
59516
|
$upload: $xeUpload,
|
|
@@ -59975,7 +60082,7 @@ components_setTheme('light');
|
|
|
59975
60082
|
* 已废弃,被 VxeUI.loading 替换
|
|
59976
60083
|
* @deprecated
|
|
59977
60084
|
*/
|
|
59978
|
-
const
|
|
60085
|
+
const components_loading = LoadingController;
|
|
59979
60086
|
/**
|
|
59980
60087
|
* 已废弃,被 VxeUI.modal 替换
|
|
59981
60088
|
* @deprecated
|