vxe-pc-ui 4.17.22 → 4.17.24
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 +139 -24
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/dynamics/index.js +28 -8
- package/es/icon/style.css +1 -1
- package/es/input/src/input.js +12 -2
- package/es/input/style.css +10 -1
- package/es/input/style.min.css +1 -1
- package/es/loading/index.js +4 -2
- package/es/number-input/src/number-input.js +24 -6
- package/es/number-input/style.css +17 -2
- package/es/number-input/style.min.css +1 -1
- package/es/password-input/src/password-input.js +12 -2
- package/es/password-input/style.css +10 -0
- package/es/password-input/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tooltip/index.js +50 -1
- package/es/tooltip/src/tooltip.js +5 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-input/style.css +10 -1
- package/es/vxe-input/style.min.css +1 -1
- package/es/vxe-number-input/style.css +17 -2
- package/es/vxe-number-input/style.min.css +1 -1
- package/es/vxe-password-input/style.css +10 -0
- package/es/vxe-password-input/style.min.css +1 -1
- package/es/watermark/index.js +3 -1
- package/lib/dynamics/index.js +22 -6
- package/lib/dynamics/index.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +127 -16
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +9 -1
- package/lib/input/src/input.min.js +1 -1
- package/lib/input/style/style.css +10 -1
- package/lib/input/style/style.min.css +1 -1
- package/lib/loading/index.js +6 -2
- package/lib/loading/index.min.js +1 -1
- package/lib/number-input/src/number-input.js +18 -2
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/number-input/style/style.css +17 -2
- package/lib/number-input/style/style.min.css +1 -1
- package/lib/password-input/src/password-input.js +9 -1
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/password-input/style/style.css +10 -0
- package/lib/password-input/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tooltip/index.js +52 -1
- package/lib/tooltip/index.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +5 -2
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-input/style/style.css +10 -1
- package/lib/vxe-input/style/style.min.css +1 -1
- package/lib/vxe-number-input/style/style.css +17 -2
- package/lib/vxe-number-input/style/style.min.css +1 -1
- package/lib/vxe-password-input/style/style.css +10 -0
- package/lib/vxe-password-input/style/style.min.css +1 -1
- package/lib/watermark/index.js +3 -1
- package/lib/watermark/index.min.js +1 -1
- package/package.json +1 -1
- package/packages/dynamics/index.ts +47 -19
- package/packages/input/src/input.ts +12 -2
- package/packages/loading/index.ts +4 -2
- package/packages/number-input/src/number-input.ts +25 -6
- package/packages/password-input/src/password-input.ts +12 -2
- package/packages/tooltip/index.ts +51 -1
- package/packages/tooltip/src/tooltip.ts +7 -3
- package/packages/watermark/index.ts +3 -1
- package/styles/components/input.scss +10 -1
- package/styles/components/number-input.scss +25 -2
- package/styles/components/password-input.scss +10 -0
- package/types/components/input.d.ts +3 -0
- package/types/components/loading.d.ts +2 -2
- package/types/components/number-input.d.ts +3 -0
- package/types/components/password-input.d.ts +3 -0
- package/types/components/tooltip.d.ts +21 -1
- package/types/ui/index.d.ts +2 -0
- /package/es/icon/{iconfont.1788170314536.ttf → iconfont.1788249701081.ttf} +0 -0
- /package/es/icon/{iconfont.1788170314536.woff → iconfont.1788249701081.woff} +0 -0
- /package/es/icon/{iconfont.1788170314536.woff2 → iconfont.1788249701081.woff2} +0 -0
- /package/es/{iconfont.1788170314536.ttf → iconfont.1788249701081.ttf} +0 -0
- /package/es/{iconfont.1788170314536.woff → iconfont.1788249701081.woff} +0 -0
- /package/es/{iconfont.1788170314536.woff2 → iconfont.1788249701081.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788170314536.ttf → iconfont.1788249701081.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788170314536.woff → iconfont.1788249701081.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788170314536.woff2 → iconfont.1788249701081.woff2} +0 -0
- /package/lib/{iconfont.1788170314536.ttf → iconfont.1788249701081.ttf} +0 -0
- /package/lib/{iconfont.1788170314536.woff → iconfont.1788249701081.woff} +0 -0
- /package/lib/{iconfont.1788170314536.woff2 → iconfont.1788249701081.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import * as core from '@vxe-ui/core';
|
|
2
2
|
import { VxeUI, setConfig as setConfig$1, setIcon, getConfig as getConfig$3, createEvent, getIcon as getIcon$2, renderEmptyElement, useSize, usePermission, permission, globalEvents, renderer, getI18n as getI18n$2, globalResize, menus as menus$3, GLOBAL_EVENT_KEYS, getSlotVNs as getSlotVNs$1, commands, formats, getComponent, validators } from '@vxe-ui/core';
|
|
3
3
|
export * from '@vxe-ui/core';
|
|
4
|
-
import { defineComponent, reactive, h, createCommentVNode, createApp,
|
|
4
|
+
import { defineComponent, ref, reactive, h, createCommentVNode, createApp, inject, computed, watch, onMounted, onUnmounted, provide, nextTick, onBeforeUnmount, resolveComponent, Teleport, onActivated, onDeactivated, TransitionGroup } from 'vue';
|
|
5
5
|
import XEUtils from 'xe-utils';
|
|
6
6
|
import DomZIndex from 'dom-zindex';
|
|
7
7
|
|
|
8
8
|
const defineVxeComponent = defineComponent;
|
|
9
9
|
|
|
10
10
|
let dynamicContainerElem;
|
|
11
|
+
const refTooltip = ref();
|
|
11
12
|
const dynamicStore = reactive({
|
|
12
13
|
modals: [],
|
|
13
14
|
drawers: [],
|
|
14
15
|
globalLoading: null,
|
|
15
16
|
globalWatermark: null,
|
|
16
|
-
globalContextMenu: null
|
|
17
|
+
globalContextMenu: null,
|
|
18
|
+
globalTooltip: null,
|
|
19
|
+
isTipInit: false
|
|
17
20
|
});
|
|
18
21
|
/**
|
|
19
22
|
* 动态组件
|
|
@@ -25,13 +28,15 @@ const VxeDynamics = defineVxeComponent({
|
|
|
25
28
|
const VxeUILoadingComponent = VxeUI.getComponent('vxe-loading');
|
|
26
29
|
const VxeUIWatermarkComponent = VxeUI.getComponent('vxe-watermark');
|
|
27
30
|
const VxeUIContextMenuComponent = VxeUI.getComponent('vxe-context-menu');
|
|
31
|
+
const VxeUITooltipComponent = VxeUI.getComponent('vxe-tooltip');
|
|
28
32
|
return () => {
|
|
29
|
-
const { modals, drawers, globalWatermark, globalLoading, globalContextMenu } = dynamicStore;
|
|
33
|
+
const { modals, drawers, globalWatermark, globalLoading, globalContextMenu, globalTooltip } = dynamicStore;
|
|
30
34
|
let cmOpts = globalContextMenu;
|
|
31
35
|
if (globalContextMenu) {
|
|
32
36
|
const events = globalContextMenu.events || {};
|
|
33
37
|
const { optionClick, show, hide } = events;
|
|
34
38
|
cmOpts = Object.assign({}, globalContextMenu, {
|
|
39
|
+
key: 'cm',
|
|
35
40
|
onShow(params) {
|
|
36
41
|
if (show) {
|
|
37
42
|
show(params);
|
|
@@ -50,22 +55,37 @@ const VxeDynamics = defineVxeComponent({
|
|
|
50
55
|
}
|
|
51
56
|
}, { events: undefined });
|
|
52
57
|
}
|
|
58
|
+
let tpOpts = globalTooltip || {};
|
|
59
|
+
if (globalTooltip) {
|
|
60
|
+
tpOpts = Object.assign({}, globalTooltip, {
|
|
61
|
+
'onUpdate:modelValue'(value) {
|
|
62
|
+
globalTooltip.modelValue = value;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
53
66
|
return [
|
|
54
67
|
modals.length
|
|
55
68
|
? h('div', {
|
|
56
|
-
key:
|
|
69
|
+
key: 'ml',
|
|
57
70
|
class: 'vxe-dynamics--modal'
|
|
58
71
|
}, modals.map((item) => h(VxeUIModalComponent, item)))
|
|
59
72
|
: createCommentVNode(),
|
|
60
73
|
drawers.length
|
|
61
74
|
? h('div', {
|
|
62
|
-
key:
|
|
75
|
+
key: 'dr',
|
|
63
76
|
class: 'vxe-dynamics--drawer'
|
|
64
77
|
}, drawers.map((item) => h(VxeUIDrawerComponent, item)))
|
|
65
78
|
: createCommentVNode(),
|
|
66
|
-
globalWatermark
|
|
67
|
-
|
|
68
|
-
|
|
79
|
+
globalWatermark
|
|
80
|
+
? h(VxeUIWatermarkComponent, globalWatermark)
|
|
81
|
+
: createCommentVNode(),
|
|
82
|
+
globalLoading
|
|
83
|
+
? h(VxeUILoadingComponent, globalLoading)
|
|
84
|
+
: createCommentVNode(),
|
|
85
|
+
globalContextMenu ? h(VxeUIContextMenuComponent, cmOpts) : createCommentVNode(),
|
|
86
|
+
dynamicStore.isTipInit
|
|
87
|
+
? h(VxeUITooltipComponent, Object.assign({ ref: refTooltip }, tpOpts))
|
|
88
|
+
: createCommentVNode()
|
|
69
89
|
];
|
|
70
90
|
};
|
|
71
91
|
}
|
|
@@ -81,7 +101,7 @@ function checkDynamic() {
|
|
|
81
101
|
}
|
|
82
102
|
|
|
83
103
|
const { log } = VxeUI;
|
|
84
|
-
const uiVersion = `ui v${"4.17.
|
|
104
|
+
const uiVersion = `ui v${"4.17.24"}`;
|
|
85
105
|
function createComponentLog(name) {
|
|
86
106
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
87
107
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -95,7 +115,7 @@ function createComponentLog(name) {
|
|
|
95
115
|
const warnLog$i = log.create('warn', uiVersion);
|
|
96
116
|
log.create('error', uiVersion);
|
|
97
117
|
|
|
98
|
-
const version = "4.17.
|
|
118
|
+
const version = "4.17.24";
|
|
99
119
|
VxeUI.uiVersion = version;
|
|
100
120
|
VxeUI.dynamicApp = dynamicApp;
|
|
101
121
|
function config(options) {
|
|
@@ -2667,7 +2687,7 @@ var VxeTooltipComponent = defineVxeComponent({
|
|
|
2667
2687
|
type: String,
|
|
2668
2688
|
default: () => getConfig$3().tooltip.size || getConfig$3().size
|
|
2669
2689
|
},
|
|
2670
|
-
selector: String,
|
|
2690
|
+
selector: [String, Element],
|
|
2671
2691
|
trigger: {
|
|
2672
2692
|
type: String,
|
|
2673
2693
|
default: () => getConfig$3().tooltip.trigger || 'hover'
|
|
@@ -2997,7 +3017,10 @@ var VxeTooltipComponent = defineVxeComponent({
|
|
|
2997
3017
|
const wheelEvent = (evnt) => {
|
|
2998
3018
|
evnt.stopPropagation();
|
|
2999
3019
|
};
|
|
3000
|
-
|
|
3020
|
+
const tooltipPrivateMethods = {
|
|
3021
|
+
handleCloseEvent: targetMouseleaveEvent
|
|
3022
|
+
};
|
|
3023
|
+
Object.assign($xeTooltip, tooltipMethods, tooltipPrivateMethods);
|
|
3001
3024
|
const renderContent = () => {
|
|
3002
3025
|
const { useHtml, useHTML } = props;
|
|
3003
3026
|
const { tipContent } = reactData;
|
|
@@ -3153,8 +3176,57 @@ const VxeTooltip = Object.assign({}, VxeTooltipComponent, {
|
|
|
3153
3176
|
app.component(VxeTooltipComponent.name, VxeTooltipComponent);
|
|
3154
3177
|
}
|
|
3155
3178
|
});
|
|
3179
|
+
const TooltipController = {
|
|
3180
|
+
open(target, options) {
|
|
3181
|
+
const opts = Object.assign({}, options, {
|
|
3182
|
+
key: 'tip',
|
|
3183
|
+
modelValue: true,
|
|
3184
|
+
trigger: 'hover',
|
|
3185
|
+
selector: target,
|
|
3186
|
+
appendTo: null
|
|
3187
|
+
});
|
|
3188
|
+
const $tooltip = refTooltip.value;
|
|
3189
|
+
dynamicStore.globalTooltip = opts;
|
|
3190
|
+
if ($tooltip) {
|
|
3191
|
+
$tooltip.open(target, opts.content);
|
|
3192
|
+
}
|
|
3193
|
+
else {
|
|
3194
|
+
dynamicStore.isTipInit = true;
|
|
3195
|
+
checkDynamic();
|
|
3196
|
+
}
|
|
3197
|
+
return Promise.resolve();
|
|
3198
|
+
},
|
|
3199
|
+
close() {
|
|
3200
|
+
const $tooltip = refTooltip.value;
|
|
3201
|
+
if ($tooltip) {
|
|
3202
|
+
$tooltip.handleCloseEvent();
|
|
3203
|
+
}
|
|
3204
|
+
else {
|
|
3205
|
+
const { globalTooltip } = dynamicStore;
|
|
3206
|
+
if (globalTooltip) {
|
|
3207
|
+
globalTooltip.modelValue = false;
|
|
3208
|
+
}
|
|
3209
|
+
}
|
|
3210
|
+
return Promise.resolve();
|
|
3211
|
+
},
|
|
3212
|
+
destroy() {
|
|
3213
|
+
const $tooltip = refTooltip.value;
|
|
3214
|
+
if ($tooltip) {
|
|
3215
|
+
return $tooltip.close().then(() => {
|
|
3216
|
+
dynamicStore.globalTooltip = null;
|
|
3217
|
+
dynamicStore.isTipInit = false;
|
|
3218
|
+
});
|
|
3219
|
+
}
|
|
3220
|
+
const { globalTooltip } = dynamicStore;
|
|
3221
|
+
if (globalTooltip) {
|
|
3222
|
+
globalTooltip.modelValue = false;
|
|
3223
|
+
}
|
|
3224
|
+
return Promise.resolve();
|
|
3225
|
+
}
|
|
3226
|
+
};
|
|
3156
3227
|
dynamicApp.use(VxeTooltip);
|
|
3157
3228
|
VxeUI.component(VxeTooltipComponent);
|
|
3229
|
+
VxeUI.tooltip = TooltipController;
|
|
3158
3230
|
const Tooltip = VxeTooltip;
|
|
3159
3231
|
|
|
3160
3232
|
const { warnLog: warnLog$h } = createComponentLog('button');
|
|
@@ -9078,6 +9150,10 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
9078
9150
|
type: String,
|
|
9079
9151
|
default: null
|
|
9080
9152
|
},
|
|
9153
|
+
floatContent: {
|
|
9154
|
+
type: String,
|
|
9155
|
+
default: () => getConfig$3().input.floatContent
|
|
9156
|
+
},
|
|
9081
9157
|
maxLength: {
|
|
9082
9158
|
type: [String, Number],
|
|
9083
9159
|
default: () => getConfig$3().input.maxLength
|
|
@@ -11607,7 +11683,7 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
11607
11683
|
return createCommentVNode();
|
|
11608
11684
|
};
|
|
11609
11685
|
const renderVN = () => {
|
|
11610
|
-
const { className, inputClassName, controls, type, title, align, showWordCount, countMethod, name, autoComplete, autocomplete } = props;
|
|
11686
|
+
const { className, inputClassName, controls, type, title, floatContent, align, showWordCount, countMethod, name, autoComplete, autocomplete } = props;
|
|
11611
11687
|
const { inputValue, visiblePanel, isActivated } = reactData;
|
|
11612
11688
|
const vSize = computeSize.value;
|
|
11613
11689
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -11628,6 +11704,7 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
11628
11704
|
const isWordCount = showWordCount && ['text', 'search'].includes(type);
|
|
11629
11705
|
const prefix = renderPrefixIcon();
|
|
11630
11706
|
const suffix = renderSuffixIcon();
|
|
11707
|
+
const floatSlot = slots.float;
|
|
11631
11708
|
return h('div', {
|
|
11632
11709
|
ref: refElem,
|
|
11633
11710
|
class: ['vxe-input', `type--${type}`, className, {
|
|
@@ -11670,6 +11747,11 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
11670
11747
|
})
|
|
11671
11748
|
]),
|
|
11672
11749
|
suffix || createCommentVNode(),
|
|
11750
|
+
floatContent || floatSlot
|
|
11751
|
+
? h('span', {
|
|
11752
|
+
class: 'vxe-input--float-wrapper'
|
|
11753
|
+
}, floatSlot ? floatSlot({}) : getText(floatContent))
|
|
11754
|
+
: renderEmptyElement($xeInput),
|
|
11673
11755
|
// 下拉面板
|
|
11674
11756
|
renderPanel(),
|
|
11675
11757
|
// 字数统计
|
|
@@ -15183,6 +15265,10 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
15183
15265
|
default: null
|
|
15184
15266
|
},
|
|
15185
15267
|
placeholder: String,
|
|
15268
|
+
floatContent: {
|
|
15269
|
+
type: String,
|
|
15270
|
+
default: () => getConfig$3().numberInput.floatContent
|
|
15271
|
+
},
|
|
15186
15272
|
maxLength: {
|
|
15187
15273
|
type: [String, Number],
|
|
15188
15274
|
default: () => getConfig$3().numberInput.maxLength
|
|
@@ -16119,6 +16205,16 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
16119
16205
|
renderMinusBtn()
|
|
16120
16206
|
]);
|
|
16121
16207
|
};
|
|
16208
|
+
const renderFloat = () => {
|
|
16209
|
+
const { floatContent } = props;
|
|
16210
|
+
const floatSlot = slots.float;
|
|
16211
|
+
if (floatContent || floatSlot) {
|
|
16212
|
+
return h('span', {
|
|
16213
|
+
class: 'vxe-number-input--float-wrapper'
|
|
16214
|
+
}, floatSlot ? floatSlot({}) : getText(floatContent));
|
|
16215
|
+
}
|
|
16216
|
+
return renderEmptyElement($xeNumberInput);
|
|
16217
|
+
};
|
|
16122
16218
|
const renderVN = () => {
|
|
16123
16219
|
const { className, controls, type, align, prefixIcon, suffixIcon } = props;
|
|
16124
16220
|
const { inputValue, isActivated } = reactData;
|
|
@@ -16141,7 +16237,7 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
16141
16237
|
const isControls = isEnableConf(controlOpts) && (controls === false ? controls : showButton);
|
|
16142
16238
|
return h('div', {
|
|
16143
16239
|
ref: refElem,
|
|
16144
|
-
class: ['vxe-number-input', `type--${type}`, `ctl--${layout === 'right' || layout === 'left' ? layout : 'default'}
|
|
16240
|
+
class: ['vxe-number-input', `type--${type}`, isControls ? (`ctl--${layout === 'right' || layout === 'left' ? layout : 'default'}`) : '', className, {
|
|
16145
16241
|
[`size--${vSize}`]: vSize,
|
|
16146
16242
|
[`is--${align}`]: align,
|
|
16147
16243
|
'is--controls': isControls && !inputReadonly,
|
|
@@ -16156,20 +16252,24 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
16156
16252
|
? (layout === 'right'
|
|
16157
16253
|
? [
|
|
16158
16254
|
renderInput(),
|
|
16159
|
-
renderSideControl()
|
|
16255
|
+
renderSideControl(),
|
|
16256
|
+
renderFloat()
|
|
16160
16257
|
]
|
|
16161
16258
|
: (layout === 'left'
|
|
16162
16259
|
? [
|
|
16163
16260
|
renderSideControl(),
|
|
16164
|
-
renderInput()
|
|
16261
|
+
renderInput(),
|
|
16262
|
+
renderFloat()
|
|
16165
16263
|
]
|
|
16166
16264
|
: [
|
|
16167
16265
|
renderMinusBtn(),
|
|
16168
16266
|
renderInput(),
|
|
16169
|
-
renderPlusBtn()
|
|
16267
|
+
renderPlusBtn(),
|
|
16268
|
+
renderFloat()
|
|
16170
16269
|
]))
|
|
16171
16270
|
: [
|
|
16172
|
-
renderInput()
|
|
16271
|
+
renderInput(),
|
|
16272
|
+
renderFloat()
|
|
16173
16273
|
]);
|
|
16174
16274
|
};
|
|
16175
16275
|
$xeNumberInput.renderVN = renderVN;
|
|
@@ -23363,15 +23463,17 @@ const VxeLoading = Object.assign({}, VxeLoadingComponent, {
|
|
|
23363
23463
|
const LoadingController = {
|
|
23364
23464
|
open(options) {
|
|
23365
23465
|
const opts = Object.assign({}, options);
|
|
23366
|
-
dynamicStore.globalLoading = {
|
|
23466
|
+
dynamicStore.globalLoading = Object.assign({
|
|
23367
23467
|
modelValue: true,
|
|
23368
23468
|
text: opts.text,
|
|
23369
23469
|
icon: opts.icon
|
|
23370
|
-
};
|
|
23470
|
+
}, { key: 'gl' });
|
|
23371
23471
|
checkDynamic();
|
|
23472
|
+
return Promise.resolve();
|
|
23372
23473
|
},
|
|
23373
23474
|
close() {
|
|
23374
23475
|
dynamicStore.globalLoading = null;
|
|
23476
|
+
return Promise.resolve();
|
|
23375
23477
|
}
|
|
23376
23478
|
};
|
|
23377
23479
|
dynamicApp.use(VxeLoading);
|
|
@@ -33886,6 +33988,10 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
33886
33988
|
disabled: Boolean,
|
|
33887
33989
|
maxLength: [String, Number],
|
|
33888
33990
|
placeholder: String,
|
|
33991
|
+
floatContent: {
|
|
33992
|
+
type: String,
|
|
33993
|
+
default: () => getConfig$3().passwordInput.floatContent
|
|
33994
|
+
},
|
|
33889
33995
|
autoComplete: {
|
|
33890
33996
|
type: String,
|
|
33891
33997
|
default: 'off'
|
|
@@ -34196,7 +34302,7 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
34196
34302
|
: null;
|
|
34197
34303
|
};
|
|
34198
34304
|
const renderVN = () => {
|
|
34199
|
-
const { className, inputClassName, name, readonly, autocomplete, autoComplete, maxLength } = props;
|
|
34305
|
+
const { className, inputClassName, name, readonly, floatContent, autocomplete, autoComplete, maxLength } = props;
|
|
34200
34306
|
const { inputValue, isActivated } = reactData;
|
|
34201
34307
|
const isDisabled = computeIsDisabled.value;
|
|
34202
34308
|
const formReadonly = computeFormReadonly.value;
|
|
@@ -34213,6 +34319,7 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
34213
34319
|
const inputReadonly = computeInputReadonly.value;
|
|
34214
34320
|
const prefix = renderPrefixIcon();
|
|
34215
34321
|
const suffix = renderSuffixIcon();
|
|
34322
|
+
const floatSlot = slots.float;
|
|
34216
34323
|
return h('div', {
|
|
34217
34324
|
ref: refElem,
|
|
34218
34325
|
class: ['vxe-password-input', className, {
|
|
@@ -34247,7 +34354,12 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
34247
34354
|
onBlur: blurEvent
|
|
34248
34355
|
})
|
|
34249
34356
|
]),
|
|
34250
|
-
suffix || renderEmptyElement($xePasswordInput)
|
|
34357
|
+
suffix || renderEmptyElement($xePasswordInput),
|
|
34358
|
+
floatContent || floatSlot
|
|
34359
|
+
? h('span', {
|
|
34360
|
+
class: 'vxe-password-input--float-wrapper'
|
|
34361
|
+
}, floatSlot ? floatSlot({}) : getText(floatContent))
|
|
34362
|
+
: renderEmptyElement($xePasswordInput)
|
|
34251
34363
|
]);
|
|
34252
34364
|
};
|
|
34253
34365
|
watch(() => props.modelValue, (val) => {
|
|
@@ -48304,7 +48416,9 @@ VxeUI.component(VxeWatermarkComponent);
|
|
|
48304
48416
|
const WatermarkController = {
|
|
48305
48417
|
load(options) {
|
|
48306
48418
|
checkDynamic();
|
|
48307
|
-
dynamicStore.globalWatermark = Object.assign({}, options
|
|
48419
|
+
dynamicStore.globalWatermark = Object.assign({}, options, {
|
|
48420
|
+
key: 'gw'
|
|
48421
|
+
});
|
|
48308
48422
|
return Promise.resolve();
|
|
48309
48423
|
},
|
|
48310
48424
|
clear() {
|
|
@@ -48548,6 +48662,7 @@ var VxeUIExport = /*#__PURE__*/Object.freeze({
|
|
|
48548
48662
|
Tip: Tip,
|
|
48549
48663
|
Tips: Tips,
|
|
48550
48664
|
Tooltip: Tooltip,
|
|
48665
|
+
TooltipController: TooltipController,
|
|
48551
48666
|
Tour: Tour,
|
|
48552
48667
|
Transfer: Transfer,
|
|
48553
48668
|
Tree: Tree,
|
|
@@ -48660,4 +48775,4 @@ var VxeUIExport = /*#__PURE__*/Object.freeze({
|
|
|
48660
48775
|
watermark: watermark
|
|
48661
48776
|
});
|
|
48662
48777
|
|
|
48663
|
-
export { Alert, Anchor, AnchorLink, Avatar, Backtop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonGroup, Calendar, Card, Carousel, CarouselItem, Cascader, Checkbox, CheckboxButton, CheckboxGroup, Col, Collapse, CollapsePane, ColorPicker, ContextMenu, ContextMenuController, Countdown, DatePanel, DatePicker, DateRangePicker, Drawer, DrawerController, Empty, Form, FormGather, FormGroup, FormItem, Icon, IconPicker, Image$1 as Image, ImageGroup, ImagePreview, Input, LayoutAside, LayoutBody, LayoutContainer, LayoutFooter, LayoutHeader, Link, List, Loading, LoadingController, Menu, Modal, ModalController, NoticeBar, NumberInput, Optgroup, Option, Pager, PasswordInput, Print, PrintPageBreak, Pulldown, Radio, RadioButton, RadioGroup, Rate, Result, Row, Segmented, Select, Slider, Space, Split, SplitPane, Splitter, SplitterPanel, Steps, Switch, TabPane, TableSelect, TableTransfer, Tabs, Tag, Text, TextEllipsis, Textarea, Timeline, TimelineItem, Tip, Tips, Tooltip, Tour, Transfer, Tree, TreeSelect, Upload, VxeAlert, VxeAnchor, VxeAnchorLink, VxeAvatar, VxeBacktop, VxeBadge, VxeBreadcrumb, VxeBreadcrumbItem, VxeButton, VxeButtonGroup, VxeCalendar, VxeCard, VxeCarousel, VxeCarouselItem, VxeCascader, VxeCheckbox, VxeCheckboxButton, VxeCheckboxGroup, VxeCol, VxeCollapse, VxeCollapsePane, VxeColorPicker, VxeContextMenu, VxeCountdown, VxeDatePanel, VxeDatePicker, VxeDateRangePicker, VxeDrawer, VxeEmpty, VxeForm, VxeFormGather, VxeFormGroup, VxeFormItem, VxeIcon, VxeIconPicker, VxeImage, VxeImageGroup, VxeImagePreview, VxeInput, VxeLayoutAside, VxeLayoutBody, VxeLayoutContainer, VxeLayoutFooter, VxeLayoutHeader, VxeLink, VxeList, VxeLoading, VxeMenu, VxeModal, VxeNoticeBar, VxeNumberInput, VxeOptgroup, VxeOption, VxePager, VxePasswordInput, VxePrint, VxePrintPageBreak, VxePulldown, VxeRadio, VxeRadioButton, VxeRadioGroup, VxeRate, VxeResult, VxeRow, VxeSegmented, VxeSelect, VxeSlider, VxeSpace, VxeSplit, VxeSplitPane, VxeSplitter, VxeSplitterPanel, VxeSteps, VxeSwitch, VxeTabPane, VxeTableSelect, VxeTableTransfer, VxeTabs, VxeTag, VxeText, VxeTextEllipsis, VxeTextarea, VxeTimeline, VxeTimelineItem, VxeTip, VxeTooltip, VxeTour, VxeTransfer, VxeTree, VxeTreeSelect, VxeUpload, VxeWatermark, Watermark, WatermarkController, config, VxeUIExport as default, drawer, install, loading, modal, print, readFile, saveFile, setup, version, watermark };
|
|
48778
|
+
export { Alert, Anchor, AnchorLink, Avatar, Backtop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonGroup, Calendar, Card, Carousel, CarouselItem, Cascader, Checkbox, CheckboxButton, CheckboxGroup, Col, Collapse, CollapsePane, ColorPicker, ContextMenu, ContextMenuController, Countdown, DatePanel, DatePicker, DateRangePicker, Drawer, DrawerController, Empty, Form, FormGather, FormGroup, FormItem, Icon, IconPicker, Image$1 as Image, ImageGroup, ImagePreview, Input, LayoutAside, LayoutBody, LayoutContainer, LayoutFooter, LayoutHeader, Link, List, Loading, LoadingController, Menu, Modal, ModalController, NoticeBar, NumberInput, Optgroup, Option, Pager, PasswordInput, Print, PrintPageBreak, Pulldown, Radio, RadioButton, RadioGroup, Rate, Result, Row, Segmented, Select, Slider, Space, Split, SplitPane, Splitter, SplitterPanel, Steps, Switch, TabPane, TableSelect, TableTransfer, Tabs, Tag, Text, TextEllipsis, Textarea, Timeline, TimelineItem, Tip, Tips, Tooltip, TooltipController, Tour, Transfer, Tree, TreeSelect, Upload, VxeAlert, VxeAnchor, VxeAnchorLink, VxeAvatar, VxeBacktop, VxeBadge, VxeBreadcrumb, VxeBreadcrumbItem, VxeButton, VxeButtonGroup, VxeCalendar, VxeCard, VxeCarousel, VxeCarouselItem, VxeCascader, VxeCheckbox, VxeCheckboxButton, VxeCheckboxGroup, VxeCol, VxeCollapse, VxeCollapsePane, VxeColorPicker, VxeContextMenu, VxeCountdown, VxeDatePanel, VxeDatePicker, VxeDateRangePicker, VxeDrawer, VxeEmpty, VxeForm, VxeFormGather, VxeFormGroup, VxeFormItem, VxeIcon, VxeIconPicker, VxeImage, VxeImageGroup, VxeImagePreview, VxeInput, VxeLayoutAside, VxeLayoutBody, VxeLayoutContainer, VxeLayoutFooter, VxeLayoutHeader, VxeLink, VxeList, VxeLoading, VxeMenu, VxeModal, VxeNoticeBar, VxeNumberInput, VxeOptgroup, VxeOption, VxePager, VxePasswordInput, VxePrint, VxePrintPageBreak, VxePulldown, VxeRadio, VxeRadioButton, VxeRadioGroup, VxeRate, VxeResult, VxeRow, VxeSegmented, VxeSelect, VxeSlider, VxeSpace, VxeSplit, VxeSplitPane, VxeSplitter, VxeSplitterPanel, VxeSteps, VxeSwitch, VxeTabPane, VxeTableSelect, VxeTableTransfer, VxeTabs, VxeTag, VxeText, VxeTextEllipsis, VxeTextarea, VxeTimeline, VxeTimelineItem, VxeTip, VxeTooltip, VxeTour, VxeTransfer, VxeTree, VxeTreeSelect, VxeUpload, VxeWatermark, Watermark, WatermarkController, config, VxeUIExport as default, drawer, install, loading, modal, print, readFile, saveFile, setup, version, watermark };
|