vxe-pc-ui 4.17.23 → 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 +93 -16
- 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/loading/index.js +4 -2
- 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/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 +91 -12
- package/lib/index.umd.min.js +1 -1
- package/lib/loading/index.js +6 -2
- package/lib/loading/index.min.js +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/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/loading/index.ts +4 -2
- package/packages/tooltip/index.ts +51 -1
- package/packages/tooltip/src/tooltip.ts +7 -3
- package/packages/watermark/index.ts +3 -1
- package/types/components/loading.d.ts +2 -2
- package/types/components/tooltip.d.ts +21 -1
- package/types/ui/index.d.ts +2 -0
- /package/es/icon/{iconfont.1788176078548.ttf → iconfont.1788249701081.ttf} +0 -0
- /package/es/icon/{iconfont.1788176078548.woff → iconfont.1788249701081.woff} +0 -0
- /package/es/icon/{iconfont.1788176078548.woff2 → iconfont.1788249701081.woff2} +0 -0
- /package/es/{iconfont.1788176078548.ttf → iconfont.1788249701081.ttf} +0 -0
- /package/es/{iconfont.1788176078548.woff → iconfont.1788249701081.woff} +0 -0
- /package/es/{iconfont.1788176078548.woff2 → iconfont.1788249701081.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788176078548.ttf → iconfont.1788249701081.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788176078548.woff → iconfont.1788249701081.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788176078548.woff2 → iconfont.1788249701081.woff2} +0 -0
- /package/lib/{iconfont.1788176078548.ttf → iconfont.1788249701081.ttf} +0 -0
- /package/lib/{iconfont.1788176078548.woff → iconfont.1788249701081.woff} +0 -0
- /package/lib/{iconfont.1788176078548.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');
|
|
@@ -23391,15 +23463,17 @@ const VxeLoading = Object.assign({}, VxeLoadingComponent, {
|
|
|
23391
23463
|
const LoadingController = {
|
|
23392
23464
|
open(options) {
|
|
23393
23465
|
const opts = Object.assign({}, options);
|
|
23394
|
-
dynamicStore.globalLoading = {
|
|
23466
|
+
dynamicStore.globalLoading = Object.assign({
|
|
23395
23467
|
modelValue: true,
|
|
23396
23468
|
text: opts.text,
|
|
23397
23469
|
icon: opts.icon
|
|
23398
|
-
};
|
|
23470
|
+
}, { key: 'gl' });
|
|
23399
23471
|
checkDynamic();
|
|
23472
|
+
return Promise.resolve();
|
|
23400
23473
|
},
|
|
23401
23474
|
close() {
|
|
23402
23475
|
dynamicStore.globalLoading = null;
|
|
23476
|
+
return Promise.resolve();
|
|
23403
23477
|
}
|
|
23404
23478
|
};
|
|
23405
23479
|
dynamicApp.use(VxeLoading);
|
|
@@ -48342,7 +48416,9 @@ VxeUI.component(VxeWatermarkComponent);
|
|
|
48342
48416
|
const WatermarkController = {
|
|
48343
48417
|
load(options) {
|
|
48344
48418
|
checkDynamic();
|
|
48345
|
-
dynamicStore.globalWatermark = Object.assign({}, options
|
|
48419
|
+
dynamicStore.globalWatermark = Object.assign({}, options, {
|
|
48420
|
+
key: 'gw'
|
|
48421
|
+
});
|
|
48346
48422
|
return Promise.resolve();
|
|
48347
48423
|
},
|
|
48348
48424
|
clear() {
|
|
@@ -48586,6 +48662,7 @@ var VxeUIExport = /*#__PURE__*/Object.freeze({
|
|
|
48586
48662
|
Tip: Tip,
|
|
48587
48663
|
Tips: Tips,
|
|
48588
48664
|
Tooltip: Tooltip,
|
|
48665
|
+
TooltipController: TooltipController,
|
|
48589
48666
|
Tour: Tour,
|
|
48590
48667
|
Transfer: Transfer,
|
|
48591
48668
|
Tree: Tree,
|
|
@@ -48698,4 +48775,4 @@ var VxeUIExport = /*#__PURE__*/Object.freeze({
|
|
|
48698
48775
|
watermark: watermark
|
|
48699
48776
|
});
|
|
48700
48777
|
|
|
48701
|
-
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 };
|