vxe-pc-ui 4.6.7 → 4.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/alert/src/alert.js +5 -5
- package/es/anchor/src/anchor-link.js +3 -2
- package/es/anchor/src/anchor.js +3 -3
- package/es/breadcrumb/src/breadcrumb-item.js +3 -2
- package/es/button/src/button-group.js +3 -3
- package/es/button/src/button.js +5 -4
- package/es/card/src/card.js +7 -7
- package/es/carousel/src/carousel.js +3 -3
- package/es/countdown/src/countdown.js +4 -4
- package/es/form/src/form-group.js +5 -3
- package/es/form/src/form-item.js +6 -4
- package/es/form-design/src/default-setting-form.js +1 -1
- package/es/form-design/src/form-view.js +6 -6
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +4 -4
- package/es/image/src/group.js +3 -1
- package/es/image/src/image.js +3 -1
- package/es/image/src/preview.js +33 -19
- package/es/image/src/util.js +1 -0
- package/es/list-design/src/list-view.js +3 -3
- package/es/loading/src/loading.js +3 -3
- package/es/menu/src/menu.js +9 -9
- package/es/modal/src/modal.js +14 -14
- package/es/password-input/src/password-input.js +7 -7
- package/es/print/src/print.js +6 -6
- package/es/pulldown/src/pulldown.js +4 -4
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/src/switch.js +4 -4
- package/es/tabs/src/tabs.js +9 -9
- package/es/tag/src/tag.js +3 -3
- package/es/tip/src/tip.js +5 -5
- package/es/tree/src/tree.js +7 -7
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +26 -26
- package/lib/alert/src/alert.js +3 -3
- package/lib/alert/src/alert.min.js +1 -1
- package/lib/anchor/src/anchor-link.js +2 -1
- package/lib/anchor/src/anchor-link.min.js +1 -1
- package/lib/anchor/src/anchor.js +3 -3
- package/lib/anchor/src/anchor.min.js +1 -1
- package/lib/breadcrumb/src/breadcrumb-item.js +2 -1
- package/lib/breadcrumb/src/breadcrumb-item.min.js +1 -1
- package/lib/button/src/button-group.js +6 -6
- package/lib/button/src/button-group.min.js +1 -1
- package/lib/button/src/button.js +2 -2
- package/lib/button/src/button.min.js +1 -1
- package/lib/card/src/card.js +4 -4
- 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 +2 -2
- package/lib/countdown/src/countdown.min.js +1 -1
- package/lib/form/src/form-group.js +3 -1
- package/lib/form/src/form-group.min.js +1 -1
- package/lib/form/src/form-item.js +4 -2
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form-design/src/default-setting-form.js +12 -12
- package/lib/form-design/src/default-setting-form.min.js +1 -1
- package/lib/form-design/src/form-view.js +4 -4
- package/lib/form-design/src/form-view.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 +2 -2
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/image/src/group.js +3 -0
- package/lib/image/src/group.min.js +1 -1
- package/lib/image/src/image.js +3 -0
- package/lib/image/src/image.min.js +1 -1
- package/lib/image/src/preview.js +20 -8
- package/lib/image/src/preview.min.js +1 -1
- package/lib/image/src/util.js +1 -0
- package/lib/image/src/util.min.js +1 -1
- package/lib/index.umd.js +129 -104
- package/lib/index.umd.min.js +1 -1
- package/lib/list-design/src/list-view.js +1 -1
- package/lib/list-design/src/list-view.min.js +1 -1
- package/lib/loading/src/loading.js +1 -1
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/menu/src/menu.js +6 -6
- package/lib/menu/src/menu.min.js +1 -1
- package/lib/modal/src/modal.js +10 -10
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/password-input/src/password-input.js +4 -4
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/print/src/print.js +4 -4
- package/lib/print/src/print.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +2 -2
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/src/switch.js +2 -2
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/tabs/src/tabs.js +8 -8
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/tag/src/tag.js +1 -1
- package/lib/tag/src/tag.min.js +1 -1
- package/lib/tip/src/tip.js +3 -3
- package/lib/tip/src/tip.min.js +1 -1
- package/lib/tree/src/tree.js +5 -5
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/upload/src/upload.js +22 -22
- package/lib/upload/src/upload.min.js +1 -1
- package/package.json +1 -1
- package/packages/alert/src/alert.ts +5 -5
- package/packages/anchor/src/anchor-link.ts +3 -2
- package/packages/anchor/src/anchor.ts +3 -3
- package/packages/breadcrumb/src/breadcrumb-item.ts +3 -2
- package/packages/button/src/button-group.ts +3 -3
- package/packages/button/src/button.ts +5 -4
- package/packages/card/src/card.ts +7 -7
- package/packages/carousel/src/carousel.ts +3 -3
- package/packages/countdown/src/countdown.ts +4 -4
- package/packages/form/src/form-group.ts +7 -3
- package/packages/form/src/form-item.ts +7 -4
- package/packages/form-design/src/default-setting-form.ts +1 -1
- package/packages/form-design/src/form-view.ts +6 -6
- package/packages/icon-picker/src/icon-picker.ts +4 -4
- package/packages/image/src/group.ts +3 -1
- package/packages/image/src/image.ts +3 -1
- package/packages/image/src/preview.ts +37 -22
- package/packages/image/src/util.ts +1 -0
- package/packages/list-design/src/list-view.ts +3 -3
- package/packages/loading/src/loading.ts +3 -3
- package/packages/menu/src/menu.ts +9 -9
- package/packages/modal/src/modal.ts +14 -14
- package/packages/password-input/src/password-input.ts +7 -7
- package/packages/print/src/print.ts +6 -6
- package/packages/pulldown/src/pulldown.ts +5 -5
- package/packages/switch/src/switch.ts +4 -4
- package/packages/tabs/src/tabs.ts +9 -9
- package/packages/tag/src/tag.ts +3 -3
- package/packages/tip/src/tip.ts +5 -5
- package/packages/tree/src/tree.ts +7 -7
- package/packages/upload/src/upload.ts +26 -26
- package/types/components/button.d.ts +2 -1
- package/types/components/image-group.d.ts +3 -0
- package/types/components/image-preview.d.ts +32 -0
- package/types/components/image.d.ts +2 -0
- package/types/components/table-module/filter.d.ts +2 -7
- package/types/components/table.d.ts +10 -5
- /package/es/icon/{iconfont.1747176327959.ttf → iconfont.1747279440023.ttf} +0 -0
- /package/es/icon/{iconfont.1747176327959.woff → iconfont.1747279440023.woff} +0 -0
- /package/es/icon/{iconfont.1747176327959.woff2 → iconfont.1747279440023.woff2} +0 -0
- /package/es/{iconfont.1747176327959.ttf → iconfont.1747279440023.ttf} +0 -0
- /package/es/{iconfont.1747176327959.woff → iconfont.1747279440023.woff} +0 -0
- /package/es/{iconfont.1747176327959.woff2 → iconfont.1747279440023.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1747176327959.ttf → iconfont.1747279440023.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1747176327959.woff → iconfont.1747279440023.woff} +0 -0
- /package/lib/icon/style/{iconfont.1747176327959.woff2 → iconfont.1747279440023.woff2} +0 -0
- /package/lib/{iconfont.1747176327959.ttf → iconfont.1747279440023.ttf} +0 -0
- /package/lib/{iconfont.1747176327959.woff → iconfont.1747279440023.woff} +0 -0
- /package/lib/{iconfont.1747176327959.woff2 → iconfont.1747279440023.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -4213,14 +4213,14 @@ function checkDynamic() {
|
|
|
4213
4213
|
}
|
|
4214
4214
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
4215
4215
|
|
|
4216
|
-
const log_version = `ui v${"4.6.
|
|
4216
|
+
const log_version = `ui v${"4.6.9"}`;
|
|
4217
4217
|
const warnLog = log.create('warn', log_version);
|
|
4218
4218
|
const errLog = log.create('error', log_version);
|
|
4219
4219
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
4220
4220
|
|
|
4221
4221
|
|
|
4222
4222
|
|
|
4223
|
-
const ui_version = "4.6.
|
|
4223
|
+
const ui_version = "4.6.9";
|
|
4224
4224
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
4225
4225
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
4226
4226
|
function config(options) {
|
|
@@ -4892,18 +4892,18 @@ function getSlotVNs(vns) {
|
|
|
4892
4892
|
class: 'vxe-alert--icon'
|
|
4893
4893
|
}, iconSlot ? getSlotVNs(iconSlot({})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
4894
4894
|
class: icon || getIcon()[`ALERT_${status?.toUpperCase()}`]
|
|
4895
|
-
})]) : (
|
|
4895
|
+
})]) : renderEmptyElement($xeAlert), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
4896
4896
|
class: 'vxe-alert--body'
|
|
4897
4897
|
}, [titleSlot || title ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
4898
4898
|
class: 'vxe-alert--title'
|
|
4899
|
-
}, titleSlot ? getSlotVNs(titleSlot({})) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(title)) : (
|
|
4899
|
+
}, titleSlot ? getSlotVNs(titleSlot({})) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(title)) : renderEmptyElement($xeAlert), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
4900
4900
|
class: 'vxe-alert--content'
|
|
4901
4901
|
}, defaultSlot ? getSlotVNs(defaultSlot({})) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(content))]), showClose ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
4902
4902
|
class: 'vxe-alert--close-btn',
|
|
4903
4903
|
onClick: closeEvent
|
|
4904
4904
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
4905
4905
|
class: getIcon().ALERT_CLOSE
|
|
4906
|
-
})]) : (
|
|
4906
|
+
})]) : renderEmptyElement($xeAlert)]);
|
|
4907
4907
|
};
|
|
4908
4908
|
$xeAlert.renderVN = renderVN;
|
|
4909
4909
|
return $xeAlert;
|
|
@@ -5193,6 +5193,7 @@ function destroyAnchorLink($xeAnchor, linkConfig) {
|
|
|
5193
5193
|
|
|
5194
5194
|
|
|
5195
5195
|
|
|
5196
|
+
|
|
5196
5197
|
/* harmony default export */ var anchor_link = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
5197
5198
|
name: 'VxeAnchorLink',
|
|
5198
5199
|
props: {
|
|
@@ -5280,7 +5281,7 @@ function destroyAnchorLink($xeAnchor, linkConfig) {
|
|
|
5280
5281
|
onClick: clickEvent
|
|
5281
5282
|
}, defaultSlot ? defaultSlot({}) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(content)), subSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
5282
5283
|
class: 'vxe-anchor-link--sub-items'
|
|
5283
|
-
}, subSlot({})) : (
|
|
5284
|
+
}, subSlot({})) : renderEmptyElement($xeAnchorLink)]);
|
|
5284
5285
|
};
|
|
5285
5286
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeAnchorLink', $xeAnchorLink);
|
|
5286
5287
|
$xeAnchorLink.renderVN = renderVN;
|
|
@@ -5484,7 +5485,7 @@ function destroyAnchorLink($xeAnchor, linkConfig) {
|
|
|
5484
5485
|
}, defaultSlot ? defaultSlot({}) : renderSubItems(options)), showMarker ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
5485
5486
|
ref: refMarkerElem,
|
|
5486
5487
|
class: 'vxe-anchor--marker'
|
|
5487
|
-
}) : (
|
|
5488
|
+
}) : renderEmptyElement($xeAnchor)]);
|
|
5488
5489
|
};
|
|
5489
5490
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
|
|
5490
5491
|
reactData.activeHref = val;
|
|
@@ -5785,6 +5786,7 @@ const Badge = VxeBadge;
|
|
|
5785
5786
|
;// CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb-item.ts
|
|
5786
5787
|
|
|
5787
5788
|
|
|
5789
|
+
|
|
5788
5790
|
/* harmony default export */ var breadcrumb_item = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
5789
5791
|
name: 'VxeBreadcrumbItem',
|
|
5790
5792
|
props: {
|
|
@@ -5854,7 +5856,7 @@ const Badge = VxeBadge;
|
|
|
5854
5856
|
class: 'vxe-breadcrumb-item--content-text'
|
|
5855
5857
|
}, defaultSlot ? defaultSlot({}) : `${title || ''}`)]), separator ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
5856
5858
|
class: 'vxe-breadcrumb-item--separator'
|
|
5857
|
-
}, `${separator}`) : (
|
|
5859
|
+
}, `${separator}`) : renderEmptyElement($xeBreadcrumbItem)]);
|
|
5858
5860
|
};
|
|
5859
5861
|
$xeBreadcrumbItem.renderVN = renderVN;
|
|
5860
5862
|
return $xeBreadcrumbItem;
|
|
@@ -6540,7 +6542,7 @@ const VxeButtonComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defi
|
|
|
6540
6542
|
default: null
|
|
6541
6543
|
}
|
|
6542
6544
|
},
|
|
6543
|
-
emits: ['click', 'mouseenter', 'mouseleave', 'dropdown-click'],
|
|
6545
|
+
emits: ['click', 'mouseenter', 'mouseleave', 'dropdown-click', 'dropdownClick'],
|
|
6544
6546
|
setup(props, context) {
|
|
6545
6547
|
const {
|
|
6546
6548
|
slots,
|
|
@@ -7005,7 +7007,7 @@ const VxeButtonComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defi
|
|
|
7005
7007
|
const vSize = computeSize.value;
|
|
7006
7008
|
const dropdownsSlot = slots.dropdowns;
|
|
7007
7009
|
if (!permissionInfo.visible) {
|
|
7008
|
-
return (
|
|
7010
|
+
return renderEmptyElement($xeButton);
|
|
7009
7011
|
}
|
|
7010
7012
|
if (dropdownsSlot || downBtnList.length) {
|
|
7011
7013
|
const btnOns = {};
|
|
@@ -7273,7 +7275,7 @@ const Button = VxeButton;
|
|
|
7273
7275
|
const permissionInfo = computePermissionInfo.value;
|
|
7274
7276
|
const defaultSlot = slots.default;
|
|
7275
7277
|
if (!permissionInfo.visible) {
|
|
7276
|
-
return (
|
|
7278
|
+
return renderEmptyElement($xeButtonGroup);
|
|
7277
7279
|
}
|
|
7278
7280
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7279
7281
|
class: ['vxe-button-group', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
@@ -8815,7 +8817,7 @@ const Calendar = VxeCalendar;
|
|
|
8815
8817
|
const loadingIcon = computeLoadingIcon.value;
|
|
8816
8818
|
const loadingText = computeLoadingText.value;
|
|
8817
8819
|
if (!initialized && !modelValue) {
|
|
8818
|
-
return (
|
|
8820
|
+
return renderEmptyElement($xeLoading);
|
|
8819
8821
|
}
|
|
8820
8822
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
8821
8823
|
class: ['vxe-loading', {
|
|
@@ -8957,17 +8959,17 @@ const Calendar = VxeCalendar;
|
|
|
8957
8959
|
}]
|
|
8958
8960
|
}, titleSlot ? getSlotVNs(titleSlot({})) : `${title || ''}`), extraSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
8959
8961
|
class: 'vxe-card--header-extra'
|
|
8960
|
-
}, getSlotVNs(extraSlot({}))) : (
|
|
8962
|
+
}, getSlotVNs(extraSlot({}))) : renderEmptyElement($xeCard)]) : renderEmptyElement($xeCard), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
8961
8963
|
class: 'vxe-card--body'
|
|
8962
8964
|
}, [leftSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
8963
8965
|
class: 'vxe-card--body-left'
|
|
8964
|
-
}, getSlotVNs(leftSlot({}))) : (
|
|
8966
|
+
}, getSlotVNs(leftSlot({}))) : renderEmptyElement($xeCard), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
8965
8967
|
class: 'vxe-card--body-content'
|
|
8966
8968
|
}, defaultSlot ? getSlotVNs(defaultSlot({})) : []), rightSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
8967
8969
|
class: 'vxe-card--body-right'
|
|
8968
|
-
}, getSlotVNs(rightSlot({}))) : (
|
|
8970
|
+
}, getSlotVNs(rightSlot({}))) : renderEmptyElement($xeCard)]), footerSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
8969
8971
|
class: 'vxe-card--footer'
|
|
8970
|
-
}, getSlotVNs(footerSlot({}))) : (
|
|
8972
|
+
}, getSlotVNs(footerSlot({}))) : renderEmptyElement($xeCard),
|
|
8971
8973
|
/**
|
|
8972
8974
|
* 加载中
|
|
8973
8975
|
*/
|
|
@@ -9333,7 +9335,7 @@ const Card = VxeCard;
|
|
|
9333
9335
|
style: height ? {
|
|
9334
9336
|
height: toCssUnit(height)
|
|
9335
9337
|
} : null
|
|
9336
|
-
}, [renderItemWrapper(list)]), showIndicators ? renderIndicators(list) : (
|
|
9338
|
+
}, [renderItemWrapper(list)]), showIndicators ? renderIndicators(list) : renderEmptyElement($xeCarousel), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
9337
9339
|
class: 'vxe-carousel--btn-wrapper'
|
|
9338
9340
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
9339
9341
|
class: 'vxe-carousel--previous-btn',
|
|
@@ -14590,7 +14592,7 @@ const ColorPicker = VxeColorPicker;
|
|
|
14590
14592
|
content: prefixOpts.content,
|
|
14591
14593
|
icon: prefixOpts.icon,
|
|
14592
14594
|
status: prefixOpts.status
|
|
14593
|
-
})]) : (
|
|
14595
|
+
})]) : renderEmptyElement($xeCountdown), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
14594
14596
|
class: 'vxe-countdown--content'
|
|
14595
14597
|
}, defaultSlot ? getSlotVNs(defaultSlot({
|
|
14596
14598
|
currentValue: currNum,
|
|
@@ -14604,7 +14606,7 @@ const ColorPicker = VxeColorPicker;
|
|
|
14604
14606
|
content: suffixOpts.content,
|
|
14605
14607
|
icon: suffixOpts.icon,
|
|
14606
14608
|
status: suffixOpts.status
|
|
14607
|
-
})]) : (
|
|
14609
|
+
})]) : renderEmptyElement($xeCountdown)]);
|
|
14608
14610
|
};
|
|
14609
14611
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, () => {
|
|
14610
14612
|
updateCount();
|
|
@@ -22648,7 +22650,7 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
|
|
|
22648
22650
|
onClick: scrollLeftEvent
|
|
22649
22651
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
22650
22652
|
class: getIcon().TABS_TAB_BUTTON_LEFT
|
|
22651
|
-
})]) : (
|
|
22653
|
+
})]) : renderEmptyElement($xeTabs), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
22652
22654
|
class: 'vxe-tabs-header--wrapper'
|
|
22653
22655
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
22654
22656
|
ref: refHeadWrapperElem,
|
|
@@ -22693,7 +22695,7 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
|
|
|
22693
22695
|
class: 'vxe-tabs-header--item-icon'
|
|
22694
22696
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
22695
22697
|
class: icon
|
|
22696
|
-
})]) : (
|
|
22698
|
+
})]) : renderEmptyElement($xeTabs), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
22697
22699
|
class: 'vxe-tabs-header--item-name'
|
|
22698
22700
|
}, titleSlot ? callSlot(titleSlot, {
|
|
22699
22701
|
name,
|
|
@@ -22705,14 +22707,14 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
|
|
|
22705
22707
|
}
|
|
22706
22708
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
22707
22709
|
class: isLoading ? getIcon().TABS_TAB_REFRESH_LOADING : getIcon().TABS_TAB_REFRESH
|
|
22708
|
-
})]) : (
|
|
22710
|
+
})]) : renderEmptyElement($xeTabs), (showClose || isEnableConf(closeConfig) || closeOpts.enabled) && (!closeVisibleMethod || closeVisibleMethod(params)) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
22709
22711
|
class: 'vxe-tabs-header--close-btn',
|
|
22710
22712
|
onClick(evnt) {
|
|
22711
22713
|
handleCloseTabEvent(evnt, item, index, tabList);
|
|
22712
22714
|
}
|
|
22713
22715
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
22714
22716
|
class: getIcon().TABS_TAB_CLOSE
|
|
22715
|
-
})]) : (
|
|
22717
|
+
})]) : renderEmptyElement($xeTabs)])]);
|
|
22716
22718
|
}).concat([(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
22717
22719
|
key: 'line',
|
|
22718
22720
|
class: `vxe-tabs-header--active-line type--${type || 'default'}`,
|
|
@@ -22725,9 +22727,9 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
|
|
|
22725
22727
|
onClick: scrollRightEvent
|
|
22726
22728
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
22727
22729
|
class: getIcon().TABS_TAB_BUTTON_RIGHT
|
|
22728
|
-
})]) : (
|
|
22730
|
+
})]) : renderEmptyElement($xeTabs), extraSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
22729
22731
|
class: 'vxe-tabs-header--extra'
|
|
22730
|
-
}, getSlotVNs(extraSlot({}))) : (
|
|
22732
|
+
}, getSlotVNs(extraSlot({}))) : renderEmptyElement($xeTabs)]);
|
|
22731
22733
|
};
|
|
22732
22734
|
const renderTabPane = item => {
|
|
22733
22735
|
const {
|
|
@@ -22747,7 +22749,7 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
|
|
|
22747
22749
|
}]
|
|
22748
22750
|
}, defaultSlot ? callSlot(defaultSlot, {
|
|
22749
22751
|
name
|
|
22750
|
-
}) : []) : (
|
|
22752
|
+
}) : []) : renderEmptyElement($xeTabs);
|
|
22751
22753
|
};
|
|
22752
22754
|
const renderTabContent = tabList => {
|
|
22753
22755
|
const {
|
|
@@ -22758,7 +22760,7 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
|
|
|
22758
22760
|
} = reactData;
|
|
22759
22761
|
const activeDefaultTab = tabList.find(item => item.name === activeName);
|
|
22760
22762
|
if (destroyOnClose) {
|
|
22761
|
-
return [activeDefaultTab ? renderTabPane(activeDefaultTab) : (
|
|
22763
|
+
return [activeDefaultTab ? renderTabPane(activeDefaultTab) : renderEmptyElement($xeTabs)];
|
|
22762
22764
|
}
|
|
22763
22765
|
return tabList.map(item => renderTabPane(item));
|
|
22764
22766
|
};
|
|
@@ -23057,6 +23059,7 @@ const formItemProps = {
|
|
|
23057
23059
|
setup(props, {
|
|
23058
23060
|
slots
|
|
23059
23061
|
}) {
|
|
23062
|
+
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
23060
23063
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
23061
23064
|
const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', {});
|
|
23062
23065
|
const $xeFormGroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeFormGroup', null);
|
|
@@ -23095,14 +23098,14 @@ const formItemProps = {
|
|
|
23095
23098
|
$grid: $xeGrid
|
|
23096
23099
|
};
|
|
23097
23100
|
if (visible === false) {
|
|
23098
|
-
return (
|
|
23101
|
+
return renderEmptyElement($xeFormitem);
|
|
23099
23102
|
}
|
|
23100
23103
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
23101
23104
|
ref: refElem,
|
|
23102
23105
|
key: item.id,
|
|
23103
23106
|
class: getItemClass($xeForm, item),
|
|
23104
23107
|
style: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemStyle) ? itemStyle(params) : itemStyle
|
|
23105
|
-
}, [renderTitle($xeForm, item), showContent === false ? (
|
|
23108
|
+
}, [renderTitle($xeForm, item), showContent === false ? renderEmptyElement($xeFormitem) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
23106
23109
|
class: getItemContentClass($xeForm, item),
|
|
23107
23110
|
style: Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(contentStyle) ? contentStyle(params) : contentStyle)
|
|
23108
23111
|
}, [renderItemContent($xeForm, item)])]);
|
|
@@ -23115,6 +23118,7 @@ const formItemProps = {
|
|
|
23115
23118
|
});
|
|
23116
23119
|
};
|
|
23117
23120
|
const $xeFormitem = {
|
|
23121
|
+
xID,
|
|
23118
23122
|
formItem,
|
|
23119
23123
|
renderVN
|
|
23120
23124
|
};
|
|
@@ -23323,11 +23327,11 @@ const formItemProps = {
|
|
|
23323
23327
|
class: 'vxe-switch--label vxe-switch--label-on'
|
|
23324
23328
|
}, [openIcon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
23325
23329
|
class: ['vxe-switch--label-icon', openIcon]
|
|
23326
|
-
}) : (
|
|
23330
|
+
}) : renderEmptyElement($xeSwitch), onShowLabel]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
23327
23331
|
class: 'vxe-switch--label vxe-switch--label-off'
|
|
23328
23332
|
}, [closeIcon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
23329
23333
|
class: ['vxe-switch--label-icon', closeIcon]
|
|
23330
|
-
}) : (
|
|
23334
|
+
}) : renderEmptyElement($xeSwitch), offShowLabel]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
23331
23335
|
class: ['vxe-switch--icon']
|
|
23332
23336
|
}, openActiveIcon || closeActiveIcon ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
23333
23337
|
class: isChecked ? openActiveIcon : closeActiveIcon
|
|
@@ -24739,25 +24743,25 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
24739
24743
|
class: 'vxe-modal--corner-wrapper'
|
|
24740
24744
|
}, getSlotVNs(cornerSlot({
|
|
24741
24745
|
$modal: $xeModal
|
|
24742
|
-
}))) : (
|
|
24746
|
+
}))) : renderEmptyElement($xeModal), (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(showMinimize) ? showMinimize : showZoom) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
24743
24747
|
class: ['vxe-modal--zoom-btn', 'trigger--btn'],
|
|
24744
24748
|
title: i18n_getI18n(`vxe.modal.zoom${zoomStatus === 'minimize' ? 'Out' : 'Min'}`),
|
|
24745
24749
|
onClick: toggleZoomMinEvent
|
|
24746
24750
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
24747
24751
|
class: zoomStatus === 'minimize' ? getIcon().MODAL_ZOOM_REVERT : getIcon().MODAL_ZOOM_MIN
|
|
24748
|
-
})]) : (
|
|
24752
|
+
})]) : renderEmptyElement($xeModal), (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(showMaximize) ? showMaximize : showZoom) && zoomStatus !== 'minimize' ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
24749
24753
|
class: ['vxe-modal--zoom-btn', 'trigger--btn'],
|
|
24750
24754
|
title: i18n_getI18n(`vxe.modal.zoom${zoomStatus === 'maximize' ? 'Out' : 'In'}`),
|
|
24751
24755
|
onClick: toggleZoomMaxEvent
|
|
24752
24756
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
24753
24757
|
class: zoomStatus === 'maximize' ? getIcon().MODAL_ZOOM_OUT : getIcon().MODAL_ZOOM_IN
|
|
24754
|
-
})]) : (
|
|
24758
|
+
})]) : renderEmptyElement($xeModal), showClose ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
24755
24759
|
class: ['vxe-modal--close-btn', 'trigger--btn'],
|
|
24756
24760
|
title: i18n_getI18n('vxe.modal.close'),
|
|
24757
24761
|
onClick: closeEvent
|
|
24758
24762
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
24759
24763
|
class: getIcon().MODAL_CLOSE
|
|
24760
|
-
})]) : (
|
|
24764
|
+
})]) : renderEmptyElement($xeModal)])];
|
|
24761
24765
|
};
|
|
24762
24766
|
const renderHeader = () => {
|
|
24763
24767
|
const {
|
|
@@ -24785,7 +24789,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
24785
24789
|
$modal: $xeModal
|
|
24786
24790
|
})) : renderTitles());
|
|
24787
24791
|
}
|
|
24788
|
-
return (
|
|
24792
|
+
return renderEmptyElement($xeModal);
|
|
24789
24793
|
};
|
|
24790
24794
|
const renderBody = () => {
|
|
24791
24795
|
const {
|
|
@@ -24818,13 +24822,13 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
24818
24822
|
class: 'vxe-modal--body-left'
|
|
24819
24823
|
}, getSlotVNs(leftSlot({
|
|
24820
24824
|
$modal: $xeModal
|
|
24821
|
-
}))) : (
|
|
24825
|
+
}))) : renderEmptyElement($xeModal), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
24822
24826
|
class: 'vxe-modal--body-default'
|
|
24823
24827
|
}, contVNs), rightSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
24824
24828
|
class: 'vxe-modal--body-right'
|
|
24825
24829
|
}, getSlotVNs(rightSlot({
|
|
24826
24830
|
$modal: $xeModal
|
|
24827
|
-
}))) : (
|
|
24831
|
+
}))) : renderEmptyElement($xeModal), isMsg ? renderEmptyElement($xeModal) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(loading, {
|
|
24828
24832
|
class: 'vxe-modal--loading',
|
|
24829
24833
|
modelValue: props.loading
|
|
24830
24834
|
})]);
|
|
@@ -24882,7 +24886,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
24882
24886
|
$modal: $xeModal
|
|
24883
24887
|
})) : [renderDefaultFooter()]);
|
|
24884
24888
|
}
|
|
24885
|
-
return (
|
|
24889
|
+
return renderEmptyElement($xeModal);
|
|
24886
24890
|
};
|
|
24887
24891
|
const renderVN = () => {
|
|
24888
24892
|
const {
|
|
@@ -24956,7 +24960,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
24956
24960
|
class: 'vxe-modal--status-wrapper'
|
|
24957
24961
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
24958
24962
|
class: ['vxe-modal--status-icon', iconStatus || getIcon()[`MODAL_${status}`.toLocaleUpperCase()]]
|
|
24959
|
-
})]) : (
|
|
24963
|
+
})]) : renderEmptyElement($xeModal)]) : renderEmptyElement($xeModal), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
24960
24964
|
class: 'vxe-modal--container'
|
|
24961
24965
|
}, !reactData.initialized || destroyOnClose && !reactData.visible ? [] : [renderHeader(), renderBody(), renderFooter(), !isMsg && resize ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
24962
24966
|
class: 'vxe-modal--resize'
|
|
@@ -24966,7 +24970,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
24966
24970
|
type: type,
|
|
24967
24971
|
onMousedown: dragEvent
|
|
24968
24972
|
});
|
|
24969
|
-
})) : (
|
|
24973
|
+
})) : renderEmptyElement($xeModal)])])])]);
|
|
24970
24974
|
};
|
|
24971
24975
|
$xeModal.renderVN = renderVN;
|
|
24972
24976
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.width, recalculate);
|
|
@@ -25068,6 +25072,7 @@ const createDefaultFormViewMobileFormConfig = params => {
|
|
|
25068
25072
|
const {
|
|
25069
25073
|
slots
|
|
25070
25074
|
} = context;
|
|
25075
|
+
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
25071
25076
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
25072
25077
|
const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', {});
|
|
25073
25078
|
const $xeParentFormGroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeFormGroup', null);
|
|
@@ -25108,7 +25113,7 @@ const createDefaultFormViewMobileFormConfig = params => {
|
|
|
25108
25113
|
$grid: $xeGrid
|
|
25109
25114
|
};
|
|
25110
25115
|
if (visible === false) {
|
|
25111
|
-
return (
|
|
25116
|
+
return renderEmptyElement($xeFormGroup);
|
|
25112
25117
|
}
|
|
25113
25118
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
25114
25119
|
ref: refElem,
|
|
@@ -25121,6 +25126,7 @@ const createDefaultFormViewMobileFormConfig = params => {
|
|
|
25121
25126
|
}, defaultSlot ? defaultSlot({}) : [])]);
|
|
25122
25127
|
};
|
|
25123
25128
|
const $xeFormGroup = {
|
|
25129
|
+
xID,
|
|
25124
25130
|
formItem,
|
|
25125
25131
|
renderVN
|
|
25126
25132
|
};
|
|
@@ -25452,7 +25458,7 @@ const createDefaultFormViewMobileFormConfig = params => {
|
|
|
25452
25458
|
class: 'vxe-form-view--top'
|
|
25453
25459
|
}, getSlotVNs(topSlot({
|
|
25454
25460
|
$formView: $xeFormView
|
|
25455
|
-
}))) : (
|
|
25461
|
+
}))) : renderEmptyElement($xeFormView), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_form, {
|
|
25456
25462
|
ref: formRef,
|
|
25457
25463
|
...formConfig,
|
|
25458
25464
|
data: modelValue,
|
|
@@ -25473,7 +25479,7 @@ const createDefaultFormViewMobileFormConfig = params => {
|
|
|
25473
25479
|
default() {
|
|
25474
25480
|
return headerSlot({});
|
|
25475
25481
|
}
|
|
25476
|
-
}) : (
|
|
25482
|
+
}) : renderEmptyElement($xeFormView), ...widgetObjList.map(widget => {
|
|
25477
25483
|
const {
|
|
25478
25484
|
name
|
|
25479
25485
|
} = widget;
|
|
@@ -25517,13 +25523,13 @@ const createDefaultFormViewMobileFormConfig = params => {
|
|
|
25517
25523
|
default() {
|
|
25518
25524
|
return footerSlot({});
|
|
25519
25525
|
}
|
|
25520
|
-
}) : (
|
|
25526
|
+
}) : renderEmptyElement($xeFormView)];
|
|
25521
25527
|
}
|
|
25522
25528
|
}), bottomSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
25523
25529
|
class: 'vxe-form-view--bottom'
|
|
25524
25530
|
}, getSlotVNs(bottomSlot({
|
|
25525
25531
|
$formView: $xeFormView
|
|
25526
|
-
}))) : (
|
|
25532
|
+
}))) : renderEmptyElement($xeFormView)]);
|
|
25527
25533
|
};
|
|
25528
25534
|
$xeFormView.renderVN = renderVN;
|
|
25529
25535
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.config, value => {
|
|
@@ -28957,7 +28963,7 @@ let autoTxtElem;
|
|
|
28957
28963
|
const permissionInfo = computePermissionInfo.value;
|
|
28958
28964
|
const vSize = computeSize.value;
|
|
28959
28965
|
if (!permissionInfo.visible) {
|
|
28960
|
-
return (
|
|
28966
|
+
return renderEmptyElement($xeTip);
|
|
28961
28967
|
}
|
|
28962
28968
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
28963
28969
|
ref: refElem,
|
|
@@ -28970,11 +28976,11 @@ let autoTxtElem;
|
|
|
28970
28976
|
class: 'vxe-tip--icon'
|
|
28971
28977
|
}, iconSlot ? getSlotVNs(iconSlot({})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
28972
28978
|
class: icon
|
|
28973
|
-
})]) : (
|
|
28979
|
+
})]) : renderEmptyElement($xeTip), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
28974
28980
|
class: 'vxe-tip--body'
|
|
28975
28981
|
}, [titleSlot || title ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
28976
28982
|
class: 'vxe-tip--title'
|
|
28977
|
-
}, titleSlot ? getSlotVNs(titleSlot({})) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(title)) : (
|
|
28983
|
+
}, titleSlot ? getSlotVNs(titleSlot({})) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(title)) : renderEmptyElement($xeTip), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
28978
28984
|
class: 'vxe-tip--content'
|
|
28979
28985
|
}, defaultSlot ? getSlotVNs(defaultSlot({})) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(content))])]);
|
|
28980
28986
|
};
|
|
@@ -34608,7 +34614,7 @@ function getNodeUniqueId() {
|
|
|
34608
34614
|
class: ['vxe-radio--icon', isChecked ? getIcon().RADIO_CHECKED : getIcon().RADIO_UNCHECKED]
|
|
34609
34615
|
})]);
|
|
34610
34616
|
}
|
|
34611
|
-
return (
|
|
34617
|
+
return renderEmptyElement($xeTree);
|
|
34612
34618
|
};
|
|
34613
34619
|
const renderCheckbox = (node, nodeid, isChecked) => {
|
|
34614
34620
|
const {
|
|
@@ -34646,7 +34652,7 @@ function getNodeUniqueId() {
|
|
|
34646
34652
|
class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().CHECKBOX_INDETERMINATE : isChecked ? getIcon().CHECKBOX_CHECKED : getIcon().CHECKBOX_UNCHECKED]
|
|
34647
34653
|
})]);
|
|
34648
34654
|
}
|
|
34649
|
-
return (
|
|
34655
|
+
return renderEmptyElement($xeTree);
|
|
34650
34656
|
};
|
|
34651
34657
|
const renderNode = node => {
|
|
34652
34658
|
const {
|
|
@@ -34742,7 +34748,7 @@ function getNodeUniqueId() {
|
|
|
34742
34748
|
isExpand
|
|
34743
34749
|
}) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
34744
34750
|
class: isLazyLoading ? iconLoaded || getIcon().TREE_NODE_LOADED : isExpand ? iconOpen || getIcon().TREE_NODE_OPEN : iconClose || getIcon().TREE_NODE_CLOSE
|
|
34745
|
-
})])] : []) : (
|
|
34751
|
+
})])] : []) : renderEmptyElement($xeTree), renderRadio(node, nodeid, isRadioChecked), renderCheckbox(node, nodeid, isCheckboxChecked), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34746
34752
|
class: 'vxe-tree--node-item-inner'
|
|
34747
34753
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34748
34754
|
class: 'vxe-tree--node-item-title'
|
|
@@ -34754,9 +34760,9 @@ function getNodeUniqueId() {
|
|
|
34754
34760
|
}, getSlotVNs(extraSlot({
|
|
34755
34761
|
node,
|
|
34756
34762
|
isExpand
|
|
34757
|
-
}))) : (
|
|
34763
|
+
}))) : renderEmptyElement($xeTree)])]), hasChild && treeExpandedMaps[nodeid] ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34758
34764
|
class: 'vxe-tree--node-child-wrapper'
|
|
34759
|
-
}, childVns) : (
|
|
34765
|
+
}, childVns) : renderEmptyElement($xeTree)]);
|
|
34760
34766
|
};
|
|
34761
34767
|
const renderNodeList = () => {
|
|
34762
34768
|
const {
|
|
@@ -37388,11 +37394,11 @@ const saveLocalFile = options => {
|
|
|
37388
37394
|
class: 'vxe-upload--file-item-loading-icon'
|
|
37389
37395
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
37390
37396
|
class: getIcon().UPLOAD_LOADING
|
|
37391
|
-
})]) : (
|
|
37397
|
+
})]) : renderEmptyElement($xeUpload), showProgress && isLoading && cacheItem ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37392
37398
|
class: 'vxe-upload--file-item-loading-text'
|
|
37393
37399
|
}, progressText ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFormatString(`${external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(progressText) ? progressText({}) : progressText}`, {
|
|
37394
37400
|
percent: cacheItem.percent
|
|
37395
|
-
}) : i18n_getI18n('vxe.upload.uploadProgress', [cacheItem.percent])) : (
|
|
37401
|
+
}) : i18n_getI18n('vxe.upload.uploadProgress', [cacheItem.percent])) : renderEmptyElement($xeUpload), showErrorStatus && isError ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37396
37402
|
class: 'vxe-upload--image-item-error'
|
|
37397
37403
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_button, {
|
|
37398
37404
|
icon: getIcon().UPLOAD_IMAGE_RE_UPLOAD,
|
|
@@ -37402,7 +37408,7 @@ const saveLocalFile = options => {
|
|
|
37402
37408
|
onClick() {
|
|
37403
37409
|
handleReUpload(item);
|
|
37404
37410
|
}
|
|
37405
|
-
})]) : (
|
|
37411
|
+
})]) : renderEmptyElement($xeUpload), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37406
37412
|
class: 'vxe-upload--file-item-btn-wrapper'
|
|
37407
37413
|
}, [cornerSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37408
37414
|
class: 'vxe-upload--file-item-corner'
|
|
@@ -37410,21 +37416,21 @@ const saveLocalFile = options => {
|
|
|
37410
37416
|
option: item,
|
|
37411
37417
|
isMoreView,
|
|
37412
37418
|
readonly: formReadonly
|
|
37413
|
-
}))) : (
|
|
37419
|
+
}))) : renderEmptyElement($xeUpload), showDownloadButton && !isLoading ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37414
37420
|
class: 'vxe-upload--file-item-download-btn',
|
|
37415
37421
|
onClick(evnt) {
|
|
37416
37422
|
downloadFileEvent(evnt, item);
|
|
37417
37423
|
}
|
|
37418
37424
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
37419
37425
|
class: getIcon().UPLOAD_FILE_DOWNLOAD
|
|
37420
|
-
})]) : (
|
|
37426
|
+
})]) : renderEmptyElement($xeUpload), showRemoveButton && !formReadonly && !isDisabled && !isLoading ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37421
37427
|
class: 'vxe-upload--file-item-remove-btn',
|
|
37422
37428
|
onClick(evnt) {
|
|
37423
37429
|
removeFileEvent(evnt, item, index);
|
|
37424
37430
|
}
|
|
37425
37431
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
37426
37432
|
class: getIcon().UPLOAD_FILE_REMOVE
|
|
37427
|
-
})]) : (
|
|
37433
|
+
})]) : renderEmptyElement($xeUpload)])]);
|
|
37428
37434
|
});
|
|
37429
37435
|
};
|
|
37430
37436
|
const renderFileAction = isMoreView => {
|
|
@@ -37444,11 +37450,11 @@ const saveLocalFile = options => {
|
|
|
37444
37450
|
const defaultSlot = slots.default;
|
|
37445
37451
|
const tipSlot = slots.tip || slots.hint;
|
|
37446
37452
|
if (formReadonly || !showUploadButton) {
|
|
37447
|
-
return (
|
|
37453
|
+
return renderEmptyElement($xeUpload);
|
|
37448
37454
|
}
|
|
37449
37455
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37450
37456
|
class: 'vxe-upload--file-action'
|
|
37451
|
-
}, [autoHiddenButton && overCount ? (
|
|
37457
|
+
}, [autoHiddenButton && overCount ? renderEmptyElement($xeUpload) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37452
37458
|
class: 'vxe-upload--file-action-btn',
|
|
37453
37459
|
onClick: clickEvent
|
|
37454
37460
|
}, defaultSlot ? getSlotVNs(defaultSlot({
|
|
@@ -37462,7 +37468,7 @@ const saveLocalFile = options => {
|
|
|
37462
37468
|
class: 'vxe-upload--file-action-tip'
|
|
37463
37469
|
}, tipSlot ? getSlotVNs(tipSlot({
|
|
37464
37470
|
$upload: $xeUpload
|
|
37465
|
-
})) : `${defTipText}`) : (
|
|
37471
|
+
})) : `${defTipText}`) : renderEmptyElement($xeUpload)]);
|
|
37466
37472
|
};
|
|
37467
37473
|
const renderAllMode = () => {
|
|
37468
37474
|
const {
|
|
@@ -37490,7 +37496,7 @@ const saveLocalFile = options => {
|
|
|
37490
37496
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37491
37497
|
key: 'all',
|
|
37492
37498
|
class: 'vxe-upload--file-wrapper'
|
|
37493
|
-
}, showList ? [showMoreButton && moreConfig && isHorizontal ? (
|
|
37499
|
+
}, showList ? [showMoreButton && moreConfig && isHorizontal ? renderEmptyElement($xeUpload) : renderFileAction(true), currList.length || showMoreButton && isHorizontal ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37494
37500
|
class: ['vxe-upload--file-list-wrapper', {
|
|
37495
37501
|
'is--horizontal': isHorizontal
|
|
37496
37502
|
}]
|
|
@@ -37502,14 +37508,14 @@ const saveLocalFile = options => {
|
|
|
37502
37508
|
default: () => renderFileItemList(currList, false)
|
|
37503
37509
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37504
37510
|
class: 'vxe-upload--file-list'
|
|
37505
|
-
}, renderFileItemList(currList, false)) : (
|
|
37511
|
+
}, renderFileItemList(currList, false)) : renderEmptyElement($xeUpload), showMoreButton && overMaxNum ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37506
37512
|
class: 'vxe-upload--file-over-more'
|
|
37507
37513
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_button, {
|
|
37508
37514
|
mode: 'text',
|
|
37509
37515
|
content: i18n_getI18n('vxe.upload.moreBtnText', [fileList.length]),
|
|
37510
37516
|
status: 'primary',
|
|
37511
37517
|
onClick: handleMoreEvent
|
|
37512
|
-
})]) : (
|
|
37518
|
+
})]) : renderEmptyElement($xeUpload), showMoreButton && moreConfig && isHorizontal ? renderFileAction(false) : renderEmptyElement($xeUpload)]) : renderEmptyElement($xeUpload)] : [renderFileAction(false)]);
|
|
37513
37519
|
};
|
|
37514
37520
|
const renderImageItemList = (currList, isMoreView) => {
|
|
37515
37521
|
const {
|
|
@@ -37571,7 +37577,7 @@ const saveLocalFile = options => {
|
|
|
37571
37577
|
class: 'vxe-upload--image-item-loading-text'
|
|
37572
37578
|
}, progressText ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFormatString(`${external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(progressText) ? progressText({}) : progressText}`, {
|
|
37573
37579
|
percent: cacheItem.percent
|
|
37574
|
-
}) : i18n_getI18n('vxe.upload.uploadProgress', [cacheItem.percent])) : (
|
|
37580
|
+
}) : i18n_getI18n('vxe.upload.uploadProgress', [cacheItem.percent])) : renderEmptyElement($xeUpload)]) : renderEmptyElement($xeUpload), !isLoading ? isError && showErrorStatus ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37575
37581
|
class: 'vxe-upload--image-item-error'
|
|
37576
37582
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_button, {
|
|
37577
37583
|
icon: getIcon().UPLOAD_IMAGE_RE_UPLOAD,
|
|
@@ -37586,7 +37592,7 @@ const saveLocalFile = options => {
|
|
|
37586
37592
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('img', {
|
|
37587
37593
|
class: 'vxe-upload--image-item-img',
|
|
37588
37594
|
src: getThumbnailFileUrl(item)
|
|
37589
|
-
})]) : (
|
|
37595
|
+
})]) : renderEmptyElement($xeUpload), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37590
37596
|
class: 'vxe-upload--image-item-btn-wrapper',
|
|
37591
37597
|
onClick(evnt) {
|
|
37592
37598
|
evnt.stopPropagation();
|
|
@@ -37597,7 +37603,7 @@ const saveLocalFile = options => {
|
|
|
37597
37603
|
option: item,
|
|
37598
37604
|
isMoreView,
|
|
37599
37605
|
readonly: formReadonly
|
|
37600
|
-
}))) : (
|
|
37606
|
+
}))) : renderEmptyElement($xeUpload), showRemoveButton && !formReadonly && !isDisabled && !isLoading ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37601
37607
|
class: 'vxe-upload--image-item-remove-btn',
|
|
37602
37608
|
onClick(evnt) {
|
|
37603
37609
|
evnt.stopPropagation();
|
|
@@ -37605,7 +37611,7 @@ const saveLocalFile = options => {
|
|
|
37605
37611
|
}
|
|
37606
37612
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
37607
37613
|
class: getIcon().UPLOAD_IMAGE_REMOVE
|
|
37608
|
-
})]) : (
|
|
37614
|
+
})]) : renderEmptyElement($xeUpload)])])]);
|
|
37609
37615
|
});
|
|
37610
37616
|
};
|
|
37611
37617
|
const renderImageAction = isMoreView => {
|
|
@@ -37625,7 +37631,7 @@ const saveLocalFile = options => {
|
|
|
37625
37631
|
const defaultSlot = slots.default;
|
|
37626
37632
|
const tipSlot = slots.tip || slots.hint;
|
|
37627
37633
|
if (formReadonly || !showUploadButton || autoHiddenButton && overCount) {
|
|
37628
|
-
return (
|
|
37634
|
+
return renderEmptyElement($xeUpload);
|
|
37629
37635
|
}
|
|
37630
37636
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37631
37637
|
key: 'action',
|
|
@@ -37642,13 +37648,13 @@ const saveLocalFile = options => {
|
|
|
37642
37648
|
class: 'vxe-upload--image-action-icon'
|
|
37643
37649
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
37644
37650
|
class: buttonIcon || getIcon().UPLOAD_IMAGE_ADD
|
|
37645
|
-
})]) : (
|
|
37651
|
+
})]) : renderEmptyElement($xeUpload), isMoreView || showButtonText ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37646
37652
|
class: 'vxe-upload--image-action-content'
|
|
37647
|
-
}, buttonText ? `${external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(buttonText) ? buttonText({}) : buttonText}` : i18n_getI18n('vxe.upload.imgBtnText')) : (
|
|
37653
|
+
}, buttonText ? `${external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(buttonText) ? buttonText({}) : buttonText}` : i18n_getI18n('vxe.upload.imgBtnText')) : renderEmptyElement($xeUpload), showTipText && (defTipText || tipSlot) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37648
37654
|
class: 'vxe-upload--image-action-hint'
|
|
37649
37655
|
}, tipSlot ? getSlotVNs(tipSlot({
|
|
37650
37656
|
$upload: $xeUpload
|
|
37651
|
-
})) : `${defTipText}`) : (
|
|
37657
|
+
})) : `${defTipText}`) : renderEmptyElement($xeUpload)])])]);
|
|
37652
37658
|
};
|
|
37653
37659
|
const renderImageMode = () => {
|
|
37654
37660
|
const {
|
|
@@ -37686,7 +37692,7 @@ const saveLocalFile = options => {
|
|
|
37686
37692
|
content: i18n_getI18n('vxe.upload.moreBtnText', [fileList.length]),
|
|
37687
37693
|
status: 'primary',
|
|
37688
37694
|
onClick: handleMoreEvent
|
|
37689
|
-
})]) : (
|
|
37695
|
+
})]) : renderEmptyElement($xeUpload), renderImageAction(false)])
|
|
37690
37696
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37691
37697
|
class: 'vxe-upload--image-list'
|
|
37692
37698
|
}, renderImageItemList(currList, false).concat([showMoreButton && overMaxNum ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -37696,7 +37702,7 @@ const saveLocalFile = options => {
|
|
|
37696
37702
|
content: i18n_getI18n('vxe.upload.moreBtnText', [fileList.length]),
|
|
37697
37703
|
status: 'primary',
|
|
37698
37704
|
onClick: handleMoreEvent
|
|
37699
|
-
})]) : (
|
|
37705
|
+
})]) : renderEmptyElement($xeUpload), renderImageAction(false)]))] : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37700
37706
|
class: 'vxe-upload--image-list'
|
|
37701
37707
|
}, [renderImageAction(false)])]);
|
|
37702
37708
|
};
|
|
@@ -39678,7 +39684,7 @@ const Icon = VxeIcon;
|
|
|
39678
39684
|
class: item.icon || ''
|
|
39679
39685
|
})]), showIconTitle ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
39680
39686
|
class: 'vxe-ico-picker--item-title'
|
|
39681
|
-
}, `${item.title || ''}`) : (
|
|
39687
|
+
}, `${item.title || ''}`) : renderEmptyElement($xeIconPicker)]);
|
|
39682
39688
|
}));
|
|
39683
39689
|
}));
|
|
39684
39690
|
};
|
|
@@ -39761,7 +39767,7 @@ const Icon = VxeIcon;
|
|
|
39761
39767
|
style: reactData.panelStyle
|
|
39762
39768
|
}, [initialized && (visiblePanel || isAniVisible) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
39763
39769
|
class: 'vxe-ico-picker--panel-wrapper'
|
|
39764
|
-
}, [renderIconWrapper()]) : (
|
|
39770
|
+
}, [renderIconWrapper()]) : renderEmptyElement($xeIconPicker)])])]);
|
|
39765
39771
|
};
|
|
39766
39772
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
|
|
39767
39773
|
reactData.selectIcon = `${val || ''}`;
|
|
@@ -39830,6 +39836,7 @@ const IconPicker = VxeIconPicker;
|
|
|
39830
39836
|
type: Boolean,
|
|
39831
39837
|
default: () => getConfig().imagePreview.showDownloadButton
|
|
39832
39838
|
},
|
|
39839
|
+
toolbarConfig: Object,
|
|
39833
39840
|
beforeDownloadMethod: Function,
|
|
39834
39841
|
downloadMethod: Function
|
|
39835
39842
|
},
|
|
@@ -39857,6 +39864,9 @@ const IconPicker = VxeIconPicker;
|
|
|
39857
39864
|
const computeMarginSize = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
39858
39865
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.marginSize || 0) || 16;
|
|
39859
39866
|
});
|
|
39867
|
+
const computeToolbarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
39868
|
+
return Object.assign({}, getConfig().imagePreview.toolbarConfig, props.toolbarConfig);
|
|
39869
|
+
});
|
|
39860
39870
|
const computeRotateText = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
39861
39871
|
const {
|
|
39862
39872
|
offsetRotate
|
|
@@ -40102,10 +40112,13 @@ const IconPicker = VxeIconPicker;
|
|
|
40102
40112
|
const {
|
|
40103
40113
|
activeIndex
|
|
40104
40114
|
} = reactData;
|
|
40115
|
+
const toolbarOpts = computeToolbarOpts.value;
|
|
40116
|
+
const btnConf = toolbarOpts.download;
|
|
40117
|
+
const btnOpts = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(btnConf) ? {} : btnConf ? Object.assign({}, btnConf) : {};
|
|
40105
40118
|
const imgList = computeImgList.value;
|
|
40106
40119
|
const imgUrl = imgList[activeIndex || 0];
|
|
40107
|
-
const beforeDownloadFn = props.beforeDownloadMethod || getConfig().imagePreview.beforeDownloadMethod;
|
|
40108
|
-
const downloadFn = props.downloadMethod || getConfig().imagePreview.downloadMethod;
|
|
40120
|
+
const beforeDownloadFn = props.beforeDownloadMethod || btnOpts.beforeDownloadMethod || getConfig().imagePreview.beforeDownloadMethod;
|
|
40121
|
+
const downloadFn = props.downloadMethod || btnOpts.downloadMethod || getConfig().imagePreview.downloadMethod;
|
|
40109
40122
|
Promise.resolve(beforeDownloadFn ? beforeDownloadFn({
|
|
40110
40123
|
$imagePreview: $xeImagePreview,
|
|
40111
40124
|
url: imgUrl,
|
|
@@ -40287,15 +40300,19 @@ const IconPicker = VxeIconPicker;
|
|
|
40287
40300
|
}));
|
|
40288
40301
|
};
|
|
40289
40302
|
const renderOperationBtn = (code, icon) => {
|
|
40290
|
-
|
|
40303
|
+
const toolbarOpts = computeToolbarOpts.value;
|
|
40304
|
+
const btnConf = toolbarOpts[code];
|
|
40305
|
+
const btnOpts = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(btnConf) ? {} : btnConf ? Object.assign({}, btnConf) : {};
|
|
40306
|
+
const showBtn = btnConf !== false;
|
|
40307
|
+
return showBtn ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
40291
40308
|
class: 'vxe-image-preview--operation-btn',
|
|
40292
40309
|
title: i18n_getI18n(`vxe.imagePreview.operBtn.${code}`),
|
|
40293
40310
|
onClick(evnt) {
|
|
40294
40311
|
handleOperationBtn(evnt, code);
|
|
40295
40312
|
}
|
|
40296
40313
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
40297
|
-
class: getIcon()[icon]
|
|
40298
|
-
})]);
|
|
40314
|
+
class: btnOpts.icon || getIcon()[icon]
|
|
40315
|
+
})]) : renderEmptyElement($xeImagePreview);
|
|
40299
40316
|
};
|
|
40300
40317
|
const renderBtnWrapper = () => {
|
|
40301
40318
|
const {
|
|
@@ -40308,6 +40325,7 @@ const IconPicker = VxeIconPicker;
|
|
|
40308
40325
|
const imgList = computeImgList.value;
|
|
40309
40326
|
const rotateText = computeRotateText.value;
|
|
40310
40327
|
const scaleText = computeScaleText.value;
|
|
40328
|
+
const toolbarOpts = computeToolbarOpts.value;
|
|
40311
40329
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
40312
40330
|
class: 'vxe-image-preview--btn-wrapper'
|
|
40313
40331
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -40326,14 +40344,14 @@ const IconPicker = VxeIconPicker;
|
|
|
40326
40344
|
}
|
|
40327
40345
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
40328
40346
|
class: getIcon().IMAGE_PREVIEW_PREVIOUS
|
|
40329
|
-
})]) : (
|
|
40347
|
+
})]) : renderEmptyElement($xeImagePreview), imgList.length > 1 ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
40330
40348
|
class: 'vxe-image-preview--next-btn',
|
|
40331
40349
|
onClick() {
|
|
40332
40350
|
handleChange(true);
|
|
40333
40351
|
}
|
|
40334
40352
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
40335
40353
|
class: getIcon().IMAGE_PREVIEW_NEXT
|
|
40336
|
-
})]) : (
|
|
40354
|
+
})]) : renderEmptyElement($xeImagePreview), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
40337
40355
|
class: 'vxe-image-preview--operation-info'
|
|
40338
40356
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
40339
40357
|
class: 'vxe-image-preview--operation-deg'
|
|
@@ -40347,7 +40365,7 @@ const IconPicker = VxeIconPicker;
|
|
|
40347
40365
|
class: 'vxe-image-preview--operation-active-current'
|
|
40348
40366
|
}, `${(activeIndex || 0) + 1}`), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
40349
40367
|
class: 'vxe-image-preview--operation-active-total'
|
|
40350
|
-
}, `/${imgList.length}`)]), renderOperationBtn('zoomOut', 'IMAGE_PREVIEW_ZOOM_OUT'), renderOperationBtn('zoomIn', 'IMAGE_PREVIEW_ZOOM_IN'), renderOperationBtn('pctFull', 'IMAGE_PREVIEW_PCT_FULL'), renderOperationBtn('pct11', 'IMAGE_PREVIEW_PCT_1_1'), renderOperationBtn('rotateLeft', 'IMAGE_PREVIEW_ROTATE_LEFT'), renderOperationBtn('rotateRight', 'IMAGE_PREVIEW_ROTATE_RIGHT'), showPrintButton ? renderOperationBtn('print', 'IMAGE_PREVIEW_PRINT') : (
|
|
40368
|
+
}, `/${imgList.length}`)]), renderOperationBtn('zoomOut', 'IMAGE_PREVIEW_ZOOM_OUT'), renderOperationBtn('zoomIn', 'IMAGE_PREVIEW_ZOOM_IN'), renderOperationBtn('pctFull', 'IMAGE_PREVIEW_PCT_FULL'), renderOperationBtn('pct11', 'IMAGE_PREVIEW_PCT_1_1'), renderOperationBtn('rotateLeft', 'IMAGE_PREVIEW_ROTATE_LEFT'), renderOperationBtn('rotateRight', 'IMAGE_PREVIEW_ROTATE_RIGHT'), showPrintButton || toolbarOpts.print ? renderOperationBtn('print', 'IMAGE_PREVIEW_PRINT') : renderEmptyElement($xeImagePreview), showDownloadButton || toolbarOpts.download ? renderOperationBtn('download', 'IMAGE_PREVIEW_DOWNLOAD') : renderEmptyElement($xeImagePreview)])]);
|
|
40351
40369
|
};
|
|
40352
40370
|
const renderVN = () => {
|
|
40353
40371
|
const {
|
|
@@ -40415,6 +40433,7 @@ const openPreviewImage = options => {
|
|
|
40415
40433
|
urlField: opts.urlField,
|
|
40416
40434
|
marginSize: opts.marginSize,
|
|
40417
40435
|
maskClosable: opts.maskClosable,
|
|
40436
|
+
toolbarConfig: opts.toolbarConfig,
|
|
40418
40437
|
showPrintButton: opts.showPrintButton,
|
|
40419
40438
|
showDownloadButton: opts.showDownloadButton,
|
|
40420
40439
|
beforeDownloadMethod: opts.beforeDownloadMethod,
|
|
@@ -40449,6 +40468,7 @@ const openPreviewImage = options => {
|
|
|
40449
40468
|
type: Boolean,
|
|
40450
40469
|
default: () => getConfig().image.maskClosable
|
|
40451
40470
|
},
|
|
40471
|
+
toolbarConfig: Object,
|
|
40452
40472
|
showPreview: {
|
|
40453
40473
|
type: Boolean,
|
|
40454
40474
|
default: () => getConfig().image.showPreview
|
|
@@ -40549,6 +40569,7 @@ const openPreviewImage = options => {
|
|
|
40549
40569
|
const clickEvent = evnt => {
|
|
40550
40570
|
const {
|
|
40551
40571
|
showPreview,
|
|
40572
|
+
toolbarConfig,
|
|
40552
40573
|
showPrintButton,
|
|
40553
40574
|
showDownloadButton,
|
|
40554
40575
|
maskClosable
|
|
@@ -40563,6 +40584,7 @@ const openPreviewImage = options => {
|
|
|
40563
40584
|
if (showPreview && imgUrl) {
|
|
40564
40585
|
openPreviewImage({
|
|
40565
40586
|
urlList: imgList,
|
|
40587
|
+
toolbarConfig,
|
|
40566
40588
|
showPrintButton,
|
|
40567
40589
|
showDownloadButton,
|
|
40568
40590
|
maskClosable
|
|
@@ -40636,6 +40658,7 @@ const image_Image = VxeImage;
|
|
|
40636
40658
|
type: String,
|
|
40637
40659
|
default: () => getConfig().imageGroup.size || getConfig().size
|
|
40638
40660
|
},
|
|
40661
|
+
toolbarConfig: Object,
|
|
40639
40662
|
showPrintButton: {
|
|
40640
40663
|
type: Boolean,
|
|
40641
40664
|
default: () => getConfig().imageGroup.showPrintButton
|
|
@@ -40697,6 +40720,7 @@ const image_Image = VxeImage;
|
|
|
40697
40720
|
handleClickImgEvent(evnt, params) {
|
|
40698
40721
|
const {
|
|
40699
40722
|
showPreview,
|
|
40723
|
+
toolbarConfig,
|
|
40700
40724
|
showPrintButton,
|
|
40701
40725
|
showDownloadButton
|
|
40702
40726
|
} = props;
|
|
@@ -40708,6 +40732,7 @@ const image_Image = VxeImage;
|
|
|
40708
40732
|
openPreviewImage({
|
|
40709
40733
|
activeIndex: Math.max(0, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(imgList, item => item.url === url)),
|
|
40710
40734
|
urlList: imgList,
|
|
40735
|
+
toolbarConfig,
|
|
40711
40736
|
showPrintButton,
|
|
40712
40737
|
showDownloadButton
|
|
40713
40738
|
});
|
|
@@ -43260,7 +43285,7 @@ const ListDesign = VxeListDesign;
|
|
|
43260
43285
|
ref: refGrid
|
|
43261
43286
|
}), Object.assign({}, slots, {
|
|
43262
43287
|
default: undefined
|
|
43263
|
-
})) : (
|
|
43288
|
+
})) : renderEmptyElement($xeListView)]),
|
|
43264
43289
|
/**
|
|
43265
43290
|
* 加载中
|
|
43266
43291
|
*/
|
|
@@ -44056,7 +44081,7 @@ const List = VxeList;
|
|
|
44056
44081
|
}
|
|
44057
44082
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
44058
44083
|
class: isExpand ? getIcon().MENU_ITEM_EXPAND_OPEN : getIcon().MENU_ITEM_EXPAND_CLOSE
|
|
44059
|
-
})]) : (
|
|
44084
|
+
})]) : renderEmptyElement($xeMenu)];
|
|
44060
44085
|
};
|
|
44061
44086
|
const renderDefaultChildren = item => {
|
|
44062
44087
|
const {
|
|
@@ -44075,7 +44100,7 @@ const List = VxeList;
|
|
|
44075
44100
|
const isCollapsed = computeIsCollapsed.value;
|
|
44076
44101
|
if (item.permissionCode) {
|
|
44077
44102
|
if (!permission.checkVisible(item.permissionCode)) {
|
|
44078
|
-
return (
|
|
44103
|
+
return renderEmptyElement($xeMenu);
|
|
44079
44104
|
}
|
|
44080
44105
|
}
|
|
44081
44106
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -44100,7 +44125,7 @@ const List = VxeList;
|
|
|
44100
44125
|
}
|
|
44101
44126
|
}, renderMenuTitle(item)), hasChild ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
44102
44127
|
class: 'vxe-menu--item-group'
|
|
44103
|
-
}, childList.map(child => renderDefaultChildren(child))) : (
|
|
44128
|
+
}, childList.map(child => renderDefaultChildren(child))) : renderEmptyElement($xeMenu)]);
|
|
44104
44129
|
};
|
|
44105
44130
|
const renderCollapseChildren = item => {
|
|
44106
44131
|
const {
|
|
@@ -44114,7 +44139,7 @@ const List = VxeList;
|
|
|
44114
44139
|
} = item;
|
|
44115
44140
|
if (item.permissionCode) {
|
|
44116
44141
|
if (!permission.checkVisible(item.permissionCode)) {
|
|
44117
|
-
return (
|
|
44142
|
+
return renderEmptyElement($xeMenu);
|
|
44118
44143
|
}
|
|
44119
44144
|
}
|
|
44120
44145
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -44138,7 +44163,7 @@ const List = VxeList;
|
|
|
44138
44163
|
}
|
|
44139
44164
|
}, renderMenuTitle(item)), hasChild ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
44140
44165
|
class: 'vxe-menu--item-group'
|
|
44141
|
-
}, childList.map(child => renderDefaultChildren(child))) : (
|
|
44166
|
+
}, childList.map(child => renderDefaultChildren(child))) : renderEmptyElement($xeMenu)]);
|
|
44142
44167
|
};
|
|
44143
44168
|
const renderVN = () => {
|
|
44144
44169
|
const {
|
|
@@ -44174,7 +44199,7 @@ const List = VxeList;
|
|
|
44174
44199
|
onMouseleave: handleMenuMouseleave
|
|
44175
44200
|
}, [isCollapsed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
44176
44201
|
class: 'vxe-menu--item-list'
|
|
44177
|
-
}, menuList.map(child => renderDefaultChildren(child))) : (
|
|
44202
|
+
}, menuList.map(child => renderDefaultChildren(child))) : renderEmptyElement($xeMenu)]) : renderEmptyElement($xeMenu),
|
|
44178
44203
|
/**
|
|
44179
44204
|
* 加载中
|
|
44180
44205
|
*/
|
|
@@ -45773,12 +45798,12 @@ const Pager = VxePager;
|
|
|
45773
45798
|
onClick: clearValueEvent
|
|
45774
45799
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
45775
45800
|
class: getIcon().INPUT_CLEAR
|
|
45776
|
-
})]) : (
|
|
45801
|
+
})]) : renderEmptyElement($xePasswordInput), controls ? renderPasswordIcon() : renderEmptyElement($xePasswordInput), suffixSlot || suffixIcon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45777
45802
|
class: 'vxe-password-input--suffix-icon',
|
|
45778
45803
|
onClick: clickSuffixEvent
|
|
45779
45804
|
}, suffixSlot ? getSlotVNs(suffixSlot({})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
45780
45805
|
class: suffixIcon
|
|
45781
|
-
})]) : (
|
|
45806
|
+
})]) : renderEmptyElement($xePasswordInput)]) : null;
|
|
45782
45807
|
};
|
|
45783
45808
|
passwordInputMethods = {
|
|
45784
45809
|
dispatchEvent(type, params, evnt) {
|
|
@@ -45842,7 +45867,7 @@ const Pager = VxePager;
|
|
|
45842
45867
|
'show--clear': isClearable && !disabled && !(inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue))
|
|
45843
45868
|
}],
|
|
45844
45869
|
spellcheck: false
|
|
45845
|
-
}, [prefix || (
|
|
45870
|
+
}, [prefix || renderEmptyElement($xePasswordInput), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45846
45871
|
class: 'vxe-password-input--wrapper'
|
|
45847
45872
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('input', {
|
|
45848
45873
|
ref: refInputTarget,
|
|
@@ -45860,7 +45885,7 @@ const Pager = VxePager;
|
|
|
45860
45885
|
onChange: changeEvent,
|
|
45861
45886
|
onFocus: focusEvent,
|
|
45862
45887
|
onBlur: blurEvent
|
|
45863
|
-
})]), suffix || (
|
|
45888
|
+
})]), suffix || renderEmptyElement($xePasswordInput)]);
|
|
45864
45889
|
};
|
|
45865
45890
|
$xePasswordInput.renderVN = renderVN;
|
|
45866
45891
|
return $xePasswordInput;
|
|
@@ -46292,7 +46317,7 @@ const PrintPageBreak = VxePrintPageBreak;
|
|
|
46292
46317
|
class: ['vxe-print-page-break--header', headerAlign ? `align--${headerAlign}` : '']
|
|
46293
46318
|
}, headerHtml ? `${external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerHtml) ? headerHtml(params) : headerHtml || ''}` : [title && (showAllPageTitle || !index) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46294
46319
|
class: 'vxe-print-page-break--header-title'
|
|
46295
|
-
}, `${title || ''}`) : (
|
|
46320
|
+
}, `${title || ''}`) : renderEmptyElement($xePrint)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46296
46321
|
class: 'vxe-print-page-break--body'
|
|
46297
46322
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46298
46323
|
class: 'vxe-print-page-break--left'
|
|
@@ -46304,7 +46329,7 @@ const PrintPageBreak = VxePrintPageBreak;
|
|
|
46304
46329
|
class: ['vxe-print-page-break--footer', footerAlign ? `align--${footerAlign}` : '']
|
|
46305
46330
|
}, footerHtml ? `${external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerHtml) ? footerHtml(params) : footerHtml || ''}` : [showPageNumber ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46306
46331
|
class: 'vxe-print-page-break--footer-page-number'
|
|
46307
|
-
}, `${currentPage}/${pageCount}`) : (
|
|
46332
|
+
}, `${currentPage}/${pageCount}`) : renderEmptyElement($xePrint)])]);
|
|
46308
46333
|
});
|
|
46309
46334
|
};
|
|
46310
46335
|
const renderPageStaticLayouts = () => {
|
|
@@ -46338,7 +46363,7 @@ const PrintPageBreak = VxePrintPageBreak;
|
|
|
46338
46363
|
class: ['vxe-print-page-break--header', headerAlign ? `align--${headerAlign}` : '']
|
|
46339
46364
|
}, headerSlot ? getSlotVNs(headerSlot(params)) : [title && (showAllPageTitle || !index) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46340
46365
|
class: 'vxe-print-page-break--header-title'
|
|
46341
|
-
}, `${title || ''}`) : (
|
|
46366
|
+
}, `${title || ''}`) : renderEmptyElement($xePrint)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46342
46367
|
class: 'vxe-print-page-break--body'
|
|
46343
46368
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46344
46369
|
class: 'vxe-print-page-break--left'
|
|
@@ -46350,7 +46375,7 @@ const PrintPageBreak = VxePrintPageBreak;
|
|
|
46350
46375
|
class: ['vxe-print-page-break--footer', footerAlign ? `align--${footerAlign}` : '']
|
|
46351
46376
|
}, footerSlot ? getSlotVNs(footerSlot(params)) : [showPageNumber ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46352
46377
|
class: 'vxe-print-page-break--footer-page-number'
|
|
46353
|
-
}, `${currentPage}/${pageCount}`) : (
|
|
46378
|
+
}, `${currentPage}/${pageCount}`) : renderEmptyElement($xePrint)])]);
|
|
46354
46379
|
});
|
|
46355
46380
|
};
|
|
46356
46381
|
const renderVN = () => {
|
|
@@ -46767,7 +46792,7 @@ const Print = VxePrint;
|
|
|
46767
46792
|
class: 'vxe-pulldown--panel-header'
|
|
46768
46793
|
}, headerSlot({
|
|
46769
46794
|
$pulldown: $xePulldown
|
|
46770
|
-
})) : (
|
|
46795
|
+
})) : renderEmptyElement($xePulldown), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46771
46796
|
class: 'vxe-pulldown--panel-body'
|
|
46772
46797
|
}, dropdownSlot ? dropdownSlot({
|
|
46773
46798
|
$pulldown: $xePulldown
|
|
@@ -46775,7 +46800,7 @@ const Print = VxePrint;
|
|
|
46775
46800
|
class: 'vxe-pulldown--panel-footer'
|
|
46776
46801
|
}, footerSlot({
|
|
46777
46802
|
$pulldown: $xePulldown
|
|
46778
|
-
})) : (
|
|
46803
|
+
})) : renderEmptyElement($xePulldown)] : [])])])]);
|
|
46779
46804
|
};
|
|
46780
46805
|
$xePulldown.renderVN = renderVN;
|
|
46781
46806
|
return $xePulldown;
|
|
@@ -48674,7 +48699,7 @@ const Tabs = VxeTabs;
|
|
|
48674
48699
|
class: 'vxe-tag--icon'
|
|
48675
48700
|
}, iconSlot ? getSlotVNs(iconSlot({})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
48676
48701
|
class: icon
|
|
48677
|
-
})]) : (
|
|
48702
|
+
})]) : renderEmptyElement($xeTag), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
48678
48703
|
class: 'vxe-tag--content'
|
|
48679
48704
|
}, defaultSlot ? defaultSlot({}) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(content))];
|
|
48680
48705
|
};
|