vxe-pc-ui 3.17.23 → 3.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/es/dynamics/index.js +23 -4
- package/es/icon/style.css +1 -1
- package/es/loading/index.js +2 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tooltip/index.js +48 -1
- package/es/tooltip/src/tooltip.js +6 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/dynamics/index.js +21 -4
- 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 +84 -9
- package/lib/index.umd.min.js +1 -1
- package/lib/loading/index.js +2 -0
- 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 +46 -1
- package/lib/tooltip/index.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +6 -1
- 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/package.json +1 -1
- package/packages/dynamics/index.ts +28 -7
- package/packages/loading/index.ts +2 -0
- package/packages/tooltip/index.ts +49 -1
- package/packages/tooltip/src/tooltip.ts +7 -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.1788176060767.ttf → iconfont.1788249693859.ttf} +0 -0
- /package/es/icon/{iconfont.1788176060767.woff → iconfont.1788249693859.woff} +0 -0
- /package/es/icon/{iconfont.1788176060767.woff2 → iconfont.1788249693859.woff2} +0 -0
- /package/es/{iconfont.1788176060767.ttf → iconfont.1788249693859.ttf} +0 -0
- /package/es/{iconfont.1788176060767.woff → iconfont.1788249693859.woff} +0 -0
- /package/es/{iconfont.1788176060767.woff2 → iconfont.1788249693859.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788176060767.ttf → iconfont.1788249693859.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788176060767.woff → iconfont.1788249693859.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788176060767.woff2 → iconfont.1788249693859.woff2} +0 -0
- /package/lib/{iconfont.1788176060767.ttf → iconfont.1788249693859.ttf} +0 -0
- /package/lib/{iconfont.1788176060767.woff → iconfont.1788249693859.woff} +0 -0
- /package/lib/{iconfont.1788176060767.woff2 → iconfont.1788249693859.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -11244,6 +11244,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
11244
11244
|
Tip: function() { return /* reexport */ Tip; },
|
|
11245
11245
|
Tips: function() { return /* reexport */ Tips; },
|
|
11246
11246
|
Tooltip: function() { return /* reexport */ Tooltip; },
|
|
11247
|
+
TooltipController: function() { return /* reexport */ TooltipController; },
|
|
11247
11248
|
Tour: function() { return /* reexport */ Tour; },
|
|
11248
11249
|
Transfer: function() { return /* reexport */ Transfer; },
|
|
11249
11250
|
Tree: function() { return /* reexport */ Tree; },
|
|
@@ -11493,6 +11494,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
11493
11494
|
Tip: function() { return Tip; },
|
|
11494
11495
|
Tips: function() { return Tips; },
|
|
11495
11496
|
Tooltip: function() { return Tooltip; },
|
|
11497
|
+
TooltipController: function() { return TooltipController; },
|
|
11496
11498
|
Tour: function() { return Tour; },
|
|
11497
11499
|
Transfer: function() { return Transfer; },
|
|
11498
11500
|
Tree: function() { return Tree; },
|
|
@@ -13166,7 +13168,9 @@ var DynamicApp = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
|
|
|
13166
13168
|
drawers: drawers,
|
|
13167
13169
|
globalLoading: null,
|
|
13168
13170
|
globalWatermark: null,
|
|
13169
|
-
globalContextMenu: null
|
|
13171
|
+
globalContextMenu: null,
|
|
13172
|
+
globalTooltip: null,
|
|
13173
|
+
isTipInit: false
|
|
13170
13174
|
};
|
|
13171
13175
|
},
|
|
13172
13176
|
methods: {
|
|
@@ -13177,11 +13181,13 @@ var DynamicApp = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
|
|
|
13177
13181
|
var VxeUILoadingComponent = VxeUI.getComponent('vxe-loading');
|
|
13178
13182
|
var VxeUIWatermarkComponent = VxeUI.getComponent('vxe-watermark');
|
|
13179
13183
|
var VxeUIContextMenuComponent = VxeUI.getComponent('vxe-context-menu');
|
|
13184
|
+
var VxeUITooltipComponent = VxeUI.getComponent('vxe-tooltip');
|
|
13180
13185
|
var modals = $xeDynamicApp.modals,
|
|
13181
13186
|
drawers = $xeDynamicApp.drawers,
|
|
13182
13187
|
globalLoading = $xeDynamicApp.globalLoading,
|
|
13183
13188
|
globalWatermark = $xeDynamicApp.globalWatermark,
|
|
13184
|
-
globalContextMenu = $xeDynamicApp.globalContextMenu
|
|
13189
|
+
globalContextMenu = $xeDynamicApp.globalContextMenu,
|
|
13190
|
+
globalTooltip = $xeDynamicApp.globalTooltip;
|
|
13185
13191
|
var cmOns;
|
|
13186
13192
|
if (globalContextMenu) {
|
|
13187
13193
|
var events = globalContextMenu.events || {};
|
|
@@ -13210,8 +13216,16 @@ var DynamicApp = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
|
|
|
13210
13216
|
}
|
|
13211
13217
|
};
|
|
13212
13218
|
}
|
|
13219
|
+
var tpOOns = {};
|
|
13220
|
+
if (globalTooltip) {
|
|
13221
|
+
tpOOns = {
|
|
13222
|
+
modelValue: function modelValue(value) {
|
|
13223
|
+
globalTooltip.value = value;
|
|
13224
|
+
}
|
|
13225
|
+
};
|
|
13226
|
+
}
|
|
13213
13227
|
return h('div', {}, [modals.length ? h('div', {
|
|
13214
|
-
key:
|
|
13228
|
+
key: 'ml',
|
|
13215
13229
|
class: 'vxe-dynamics--modal'
|
|
13216
13230
|
}, modals.map(function (item) {
|
|
13217
13231
|
return h(VxeUIModalComponent, {
|
|
@@ -13220,7 +13234,7 @@ var DynamicApp = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
|
|
|
13220
13234
|
on: item.on
|
|
13221
13235
|
});
|
|
13222
13236
|
})) : renderEmptyElement($xeDynamicApp), drawers.length ? h('div', {
|
|
13223
|
-
key:
|
|
13237
|
+
key: 'dr',
|
|
13224
13238
|
class: 'vxe-dynamics--drawer'
|
|
13225
13239
|
}, drawers.map(function (item) {
|
|
13226
13240
|
return h(VxeUIDrawerComponent, {
|
|
@@ -13238,6 +13252,11 @@ var DynamicApp = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
|
|
|
13238
13252
|
key: 'cm',
|
|
13239
13253
|
props: globalContextMenu,
|
|
13240
13254
|
on: cmOns
|
|
13255
|
+
}) : renderEmptyElement($xeDynamicApp), dynamicStore.isTipInit ? h(VxeUITooltipComponent, {
|
|
13256
|
+
key: 'tip',
|
|
13257
|
+
ref: 'refTooltip',
|
|
13258
|
+
props: globalTooltip || {},
|
|
13259
|
+
on: tpOOns
|
|
13241
13260
|
}) : renderEmptyElement($xeDynamicApp)]);
|
|
13242
13261
|
}
|
|
13243
13262
|
},
|
|
@@ -13265,7 +13284,7 @@ var es_array_join = __webpack_require__(8598);
|
|
|
13265
13284
|
|
|
13266
13285
|
|
|
13267
13286
|
var log_log = VxeUI.log;
|
|
13268
|
-
var uiVersion = "ui v".concat("3.17.
|
|
13287
|
+
var uiVersion = "ui v".concat("3.17.24");
|
|
13269
13288
|
function createComponentLog(name) {
|
|
13270
13289
|
var tableVersion = VxeUI.tableVersion ? "table v".concat(VxeUI.tableVersion) : '';
|
|
13271
13290
|
var ganttVersion = VxeUI.ganttVersion ? "gantt v".concat(VxeUI.ganttVersion) : '';
|
|
@@ -13285,7 +13304,7 @@ var errLog = log_log.create('error', uiVersion);
|
|
|
13285
13304
|
|
|
13286
13305
|
|
|
13287
13306
|
|
|
13288
|
-
var ui_version = "3.17.
|
|
13307
|
+
var ui_version = "3.17.24";
|
|
13289
13308
|
VxeUI.uiVersion = ui_version;
|
|
13290
13309
|
VxeUI.dynamicApp = dynamicApp;
|
|
13291
13310
|
function config(options) {
|
|
@@ -16115,6 +16134,8 @@ function enModelValue(nodeid) {
|
|
|
16115
16134
|
function deModelValue(nodeid) {
|
|
16116
16135
|
return nodeid ? decodeURIComponent("".concat(nodeid)) : nodeid;
|
|
16117
16136
|
}
|
|
16137
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
16138
|
+
var es_promise = __webpack_require__(3362);
|
|
16118
16139
|
;// ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
16119
16140
|
function _arrayLikeToArray(r, a) {
|
|
16120
16141
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -16223,7 +16244,7 @@ function createInternalData() {
|
|
|
16223
16244
|
return getConfig().tooltip.size || getConfig().size;
|
|
16224
16245
|
}
|
|
16225
16246
|
},
|
|
16226
|
-
selector: String,
|
|
16247
|
+
selector: [String, Element],
|
|
16227
16248
|
trigger: {
|
|
16228
16249
|
type: String,
|
|
16229
16250
|
default: function _default() {
|
|
@@ -16660,6 +16681,11 @@ function createInternalData() {
|
|
|
16660
16681
|
wheelEvent: function wheelEvent(evnt) {
|
|
16661
16682
|
evnt.stopPropagation();
|
|
16662
16683
|
},
|
|
16684
|
+
// pooltipPrivateMethods
|
|
16685
|
+
handleCloseEvent: function handleCloseEvent() {
|
|
16686
|
+
var $xeTooltip = this;
|
|
16687
|
+
$xeTooltip.targetMouseleaveEvent();
|
|
16688
|
+
},
|
|
16663
16689
|
//
|
|
16664
16690
|
// Render
|
|
16665
16691
|
//
|
|
@@ -16845,13 +16871,60 @@ function createInternalData() {
|
|
|
16845
16871
|
|
|
16846
16872
|
|
|
16847
16873
|
|
|
16874
|
+
|
|
16875
|
+
|
|
16848
16876
|
var VxeTooltip = Object.assign({}, tooltip, {
|
|
16849
16877
|
install: function install(app) {
|
|
16850
16878
|
app.component(tooltip.name, tooltip);
|
|
16851
16879
|
}
|
|
16852
16880
|
});
|
|
16881
|
+
var TooltipController = {
|
|
16882
|
+
open: function open(target, options) {
|
|
16883
|
+
var opts = Object.assign({}, options, {
|
|
16884
|
+
key: 'tip',
|
|
16885
|
+
value: true,
|
|
16886
|
+
trigger: 'hover',
|
|
16887
|
+
selector: target,
|
|
16888
|
+
appendTo: null
|
|
16889
|
+
});
|
|
16890
|
+
var $tooltip = dynamicStore.$refs.refTooltip;
|
|
16891
|
+
dynamicStore.globalTooltip = opts;
|
|
16892
|
+
if ($tooltip) {
|
|
16893
|
+
$tooltip.open(target, opts.content);
|
|
16894
|
+
} else {
|
|
16895
|
+
dynamicStore.isTipInit = true;
|
|
16896
|
+
checkDynamic();
|
|
16897
|
+
}
|
|
16898
|
+
return Promise.resolve();
|
|
16899
|
+
},
|
|
16900
|
+
close: function close() {
|
|
16901
|
+
var $tooltip = dynamicStore.$refs.refTooltip;
|
|
16902
|
+
if ($tooltip) {
|
|
16903
|
+
$tooltip.handleCloseEvent();
|
|
16904
|
+
} else {
|
|
16905
|
+
var globalTooltip = dynamicStore.globalTooltip;
|
|
16906
|
+
if (globalTooltip) {
|
|
16907
|
+
globalTooltip.value = false;
|
|
16908
|
+
}
|
|
16909
|
+
}
|
|
16910
|
+
return Promise.resolve();
|
|
16911
|
+
},
|
|
16912
|
+
destroy: function destroy() {
|
|
16913
|
+
var $tooltip = dynamicStore.$refs.refTooltip;
|
|
16914
|
+
if ($tooltip) {
|
|
16915
|
+
return $tooltip.close().then(function () {
|
|
16916
|
+
dynamicStore.globalTooltip = null;
|
|
16917
|
+
dynamicStore.isTipInit = false;
|
|
16918
|
+
});
|
|
16919
|
+
}
|
|
16920
|
+
dynamicStore.globalTooltip = null;
|
|
16921
|
+
dynamicStore.isTipInit = false;
|
|
16922
|
+
return Promise.resolve();
|
|
16923
|
+
}
|
|
16924
|
+
};
|
|
16853
16925
|
dynamicApp.use(VxeTooltip);
|
|
16854
16926
|
VxeUI.component(tooltip);
|
|
16927
|
+
VxeUI.tooltip = TooltipController;
|
|
16855
16928
|
var Tooltip = VxeTooltip;
|
|
16856
16929
|
/* harmony default export */ var packages_tooltip = (VxeTooltip);
|
|
16857
16930
|
;// ./packages/button/src/button.ts
|
|
@@ -21396,8 +21469,6 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
21396
21469
|
};
|
|
21397
21470
|
}
|
|
21398
21471
|
|
|
21399
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
21400
|
-
var es_promise = __webpack_require__(3362);
|
|
21401
21472
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js
|
|
21402
21473
|
var es_promise_finally = __webpack_require__(9391);
|
|
21403
21474
|
;// ./packages/cascader/src/util.ts
|
|
@@ -40921,6 +40992,8 @@ var DateRangePicker = VxeDateRangePicker;
|
|
|
40921
40992
|
|
|
40922
40993
|
|
|
40923
40994
|
|
|
40995
|
+
|
|
40996
|
+
|
|
40924
40997
|
var VxeLoading = Object.assign({}, src_loading, {
|
|
40925
40998
|
install: function install(app) {
|
|
40926
40999
|
app.component(src_loading.name, src_loading);
|
|
@@ -40935,9 +41008,11 @@ var LoadingController = {
|
|
|
40935
41008
|
icon: opts.icon
|
|
40936
41009
|
};
|
|
40937
41010
|
checkDynamic();
|
|
41011
|
+
return Promise.resolve();
|
|
40938
41012
|
},
|
|
40939
41013
|
close: function close() {
|
|
40940
41014
|
dynamicStore.globalLoading = null;
|
|
41015
|
+
return Promise.resolve();
|
|
40941
41016
|
}
|
|
40942
41017
|
};
|
|
40943
41018
|
dynamicApp.use(VxeLoading);
|