bkui-vue 2.0.1-beta.112 → 2.0.1-beta.113
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/index.cjs.js +54 -54
- package/dist/index.esm.js +13942 -13951
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +17 -17
- package/lib/alert/index.d.ts +126 -73
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/index.d.ts +117 -69
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +155 -119
- package/lib/button/index.js +20 -19
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +354 -393
- package/lib/cascader/index.js +57 -59
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +175 -143
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +438 -381
- package/lib/collapse/index.d.ts +175 -156
- package/lib/collapse/index.js +27 -28
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +165 -144
- package/lib/color-picker/index.js +40 -42
- package/lib/config-provider/index.d.ts +227 -160
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +26 -28
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/index.d.ts +351 -380
- package/lib/date-picker/index.js +79 -80
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +269 -299
- package/lib/dialog/index.js +228 -227
- package/lib/directives/index.js +29 -29
- package/lib/divider/index.d.ts +111 -57
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +136 -94
- package/lib/dropdown/index.js +22 -24
- package/lib/exception/index.d.ts +102 -41
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +132 -80
- package/lib/form/index.js +22 -21
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/index.d.ts +149 -113
- package/lib/image/index.js +26 -27
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +233 -232
- package/lib/input/index.d.ts +293 -326
- package/lib/input/index.js +48 -46
- package/lib/link/index.d.ts +122 -73
- package/lib/link/index.js +2 -2
- package/lib/loading/index.d.ts +156 -130
- package/lib/loading/index.js +33 -32
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.d.ts +116 -55
- package/lib/menu/index.js +25 -26
- package/lib/message/index.js +25 -24
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +185 -171
- package/lib/modal/index.js +19 -19
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +21 -20
- package/lib/overflow-title/index.d.ts +256 -343
- package/lib/overflow-title/index.js +10 -11
- package/lib/pagination/index.d.ts +198 -184
- package/lib/pagination/index.js +56 -49
- package/lib/pop-confirm/index.d.ts +153 -115
- package/lib/pop-confirm/index.js +4 -5
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +359 -421
- package/lib/popover/index.js +122 -220
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +226 -226
- package/lib/progress/index.d.ts +187 -178
- package/lib/progress/index.js +21 -22
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +140 -91
- package/lib/radio/index.js +48 -46
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +20 -19
- package/lib/resize-layout/index.d.ts +192 -168
- package/lib/resize-layout/index.js +21 -20
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +901 -684
- package/lib/search-select/index.js +274 -274
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +188 -133
- package/lib/search-select/selected.d.ts +188 -133
- package/lib/select/index.d.ts +1333 -1491
- package/lib/select/index.js +280 -279
- package/lib/select/select.d.ts +169 -132
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +56 -54
- package/lib/sideslider/index.d.ts +201 -197
- package/lib/sideslider/index.js +228 -227
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +225 -226
- package/lib/steps/index.d.ts +149 -110
- package/lib/steps/index.js +231 -230
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +174 -152
- package/lib/switcher/index.js +22 -20
- package/lib/tab/index.d.ts +183 -151
- package/lib/tab/index.js +19 -20
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +362 -457
- package/lib/table/index.js +348 -336
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +150 -104
- package/lib/tag/index.d.ts +142 -95
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +540 -755
- package/lib/tag-input/index.js +58 -52
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +386 -439
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +206 -191
- package/lib/tree/index.d.ts +308 -350
- package/lib/tree/index.js +74 -71
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +273 -311
- package/lib/upload/index.js +264 -261
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +241 -333
- package/lib/virtual-render/index.js +29 -29
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/popover/index.js
CHANGED
@@ -45,7 +45,7 @@ const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_M
|
|
45
45
|
;// CONCATENATED MODULE: external "vue"
|
46
46
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
47
47
|
var external_vue_y = x => () => x
|
48
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["
|
48
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
49
49
|
;// CONCATENATED MODULE: external "../directives"
|
50
50
|
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
51
51
|
var directives_y = x => () => x
|
@@ -82,8 +82,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
82
82
|
* IN THE SOFTWARE.
|
83
83
|
*/
|
84
84
|
|
85
|
-
|
86
|
-
/* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
|
85
|
+
/* harmony default export */ const src_arrow = (defineComponent({
|
87
86
|
name: 'PopArrow',
|
88
87
|
render: function render() {
|
89
88
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
@@ -95,38 +94,38 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
95
94
|
}
|
96
95
|
}));
|
97
96
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
98
|
-
function _typeof(
|
97
|
+
function _typeof(obj) {
|
99
98
|
"@babel/helpers - typeof";
|
100
99
|
|
101
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
102
|
-
return typeof
|
103
|
-
} : function (
|
104
|
-
return
|
105
|
-
}, _typeof(
|
100
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
101
|
+
return typeof obj;
|
102
|
+
} : function (obj) {
|
103
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
104
|
+
}, _typeof(obj);
|
106
105
|
}
|
107
106
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
108
107
|
|
109
|
-
function
|
110
|
-
if ("object"
|
111
|
-
var
|
112
|
-
if (
|
113
|
-
var
|
114
|
-
if ("object"
|
108
|
+
function _toPrimitive(input, hint) {
|
109
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
110
|
+
var prim = input[Symbol.toPrimitive];
|
111
|
+
if (prim !== undefined) {
|
112
|
+
var res = prim.call(input, hint || "default");
|
113
|
+
if (_typeof(res) !== "object") return res;
|
115
114
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
116
115
|
}
|
117
|
-
return ("string"
|
116
|
+
return (hint === "string" ? String : Number)(input);
|
118
117
|
}
|
119
118
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
120
119
|
|
121
120
|
|
122
|
-
function
|
123
|
-
var
|
124
|
-
return "symbol"
|
121
|
+
function _toPropertyKey(arg) {
|
122
|
+
var key = _toPrimitive(arg, "string");
|
123
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
125
124
|
}
|
126
125
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
127
126
|
|
128
127
|
function _defineProperty(obj, key, value) {
|
129
|
-
key =
|
128
|
+
key = _toPropertyKey(key);
|
130
129
|
if (key in obj) {
|
131
130
|
Object.defineProperty(obj, key, {
|
132
131
|
value: value,
|
@@ -141,6 +140,7 @@ function _defineProperty(obj, key, value) {
|
|
141
140
|
}
|
142
141
|
;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
|
143
142
|
|
143
|
+
var _EMIT_EVENT_TYPES;
|
144
144
|
/* eslint-disable @typescript-eslint/naming-convention */
|
145
145
|
/*
|
146
146
|
* Tencent is pleased to support the open source community by making
|
@@ -184,7 +184,7 @@ var EVENT_COMMON_FN = function EVENT_COMMON_FN(e) {
|
|
184
184
|
var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
|
185
185
|
return true;
|
186
186
|
};
|
187
|
-
var EMIT_EVENT_TYPES =
|
187
|
+
var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN), _EMIT_EVENT_TYPES);
|
188
188
|
;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
|
189
189
|
|
190
190
|
/*
|
@@ -214,8 +214,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
214
214
|
*/
|
215
215
|
|
216
216
|
|
217
|
-
|
218
|
-
/* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
|
217
|
+
/* harmony default export */ const content = (defineComponent({
|
219
218
|
name: 'PopContent',
|
220
219
|
props: {
|
221
220
|
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
@@ -235,7 +234,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
235
234
|
}
|
236
235
|
return val;
|
237
236
|
};
|
238
|
-
var style =
|
237
|
+
var style = computed(function () {
|
239
238
|
return {
|
240
239
|
width: resolveValToPix(props.width),
|
241
240
|
height: resolveValToPix(props.height),
|
@@ -243,8 +242,8 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
243
242
|
maxWidth: resolveValToPix(props.maxWidth)
|
244
243
|
};
|
245
244
|
});
|
246
|
-
var refContent =
|
247
|
-
var refTimer =
|
245
|
+
var refContent = ref(null);
|
246
|
+
var refTimer = ref(null);
|
248
247
|
var handleClick = function handleClick(evt) {
|
249
248
|
evt.stopPropagation();
|
250
249
|
emit('click', evt);
|
@@ -264,11 +263,11 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
264
263
|
if (props.eventDelay === 0) {
|
265
264
|
return;
|
266
265
|
}
|
267
|
-
(_refContent$value = refContent.value) === null || _refContent$value === void 0
|
266
|
+
(_refContent$value = refContent.value) === null || _refContent$value === void 0 ? void 0 : _refContent$value.style.setProperty('pointer-events', val);
|
268
267
|
};
|
269
268
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
270
269
|
resolveClassName = _usePrefix.resolveClassName;
|
271
|
-
var contentClassName =
|
270
|
+
var contentClassName = computed(function () {
|
272
271
|
return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
|
273
272
|
});
|
274
273
|
return {
|
@@ -292,8 +291,8 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
292
291
|
_this$$slots3;
|
293
292
|
var resolveContentStyle = function resolveContentStyle(slot) {
|
294
293
|
var _slot$;
|
295
|
-
if (
|
296
|
-
|
294
|
+
if (Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
295
|
+
nextTick(function () {
|
297
296
|
_this.setContentPointerEvent('none');
|
298
297
|
_this.resetPointerEvent();
|
299
298
|
});
|
@@ -478,8 +477,7 @@ var PopoverProps = {
|
|
478
477
|
* IN THE SOFTWARE.
|
479
478
|
*/
|
480
479
|
|
481
|
-
|
482
|
-
/* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
|
480
|
+
/* harmony default export */ const root = (defineComponent({
|
483
481
|
props: {
|
484
482
|
"class": shared_namespaceObject.PropTypes.string.def(''),
|
485
483
|
mode: shared_namespaceObject.PropTypes.string.def('')
|
@@ -494,31 +492,31 @@ function _arrayWithHoles(arr) {
|
|
494
492
|
if (Array.isArray(arr)) return arr;
|
495
493
|
}
|
496
494
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
497
|
-
function _iterableToArrayLimit(
|
498
|
-
var
|
499
|
-
if (null !=
|
500
|
-
var
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
495
|
+
function _iterableToArrayLimit(arr, i) {
|
496
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
497
|
+
if (null != _i) {
|
498
|
+
var _s,
|
499
|
+
_e,
|
500
|
+
_x,
|
501
|
+
_r,
|
502
|
+
_arr = [],
|
503
|
+
_n = !0,
|
504
|
+
_d = !1;
|
507
505
|
try {
|
508
|
-
if (
|
509
|
-
if (Object(
|
510
|
-
|
511
|
-
} else for (; !(
|
512
|
-
} catch (
|
513
|
-
|
506
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
507
|
+
if (Object(_i) !== _i) return;
|
508
|
+
_n = !1;
|
509
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
510
|
+
} catch (err) {
|
511
|
+
_d = !0, _e = err;
|
514
512
|
} finally {
|
515
513
|
try {
|
516
|
-
if (!
|
514
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
517
515
|
} finally {
|
518
|
-
if (
|
516
|
+
if (_d) throw _e;
|
519
517
|
}
|
520
518
|
}
|
521
|
-
return
|
519
|
+
return _arr;
|
522
520
|
}
|
523
521
|
}
|
524
522
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -550,11 +548,6 @@ function _slicedToArray(arr, i) {
|
|
550
548
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
551
549
|
}
|
552
550
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
553
|
-
/**
|
554
|
-
* Custom positioning reference element.
|
555
|
-
* @see https://floating-ui.com/docs/virtual-elements
|
556
|
-
*/
|
557
|
-
|
558
551
|
const sides = ['top', 'right', 'bottom', 'left'];
|
559
552
|
const alignments = ['start', 'end'];
|
560
553
|
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
@@ -742,7 +735,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
742
735
|
|
743
736
|
/**
|
744
737
|
* Computes the `x` and `y` coordinates that will place the floating element
|
745
|
-
* next to a given
|
738
|
+
* next to a reference element when it is given a certain positioning strategy.
|
746
739
|
*
|
747
740
|
* This export does not have any `platform` interface logic. You will need to
|
748
741
|
* write one for the platform you are using Floating UI with.
|
@@ -820,6 +813,7 @@ const computePosition = async (reference, floating, config) => {
|
|
820
813
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
821
814
|
}
|
822
815
|
i = -1;
|
816
|
+
continue;
|
823
817
|
}
|
824
818
|
}
|
825
819
|
return {
|
@@ -882,7 +876,6 @@ async function detectOverflow(state, options) {
|
|
882
876
|
y: 1
|
883
877
|
};
|
884
878
|
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
885
|
-
elements,
|
886
879
|
rect,
|
887
880
|
offsetParent,
|
888
881
|
strategy
|
@@ -910,8 +903,7 @@ const arrow = options => ({
|
|
910
903
|
placement,
|
911
904
|
rects,
|
912
905
|
platform,
|
913
|
-
elements
|
914
|
-
middlewareData
|
906
|
+
elements
|
915
907
|
} = state;
|
916
908
|
// Since `element` is required, we don't Partial<> the type.
|
917
909
|
const {
|
@@ -959,20 +951,16 @@ const arrow = options => ({
|
|
959
951
|
|
960
952
|
// If the reference is small enough that the arrow's padding causes it to
|
961
953
|
// to point to nothing for an aligned placement, adjust the offset of the
|
962
|
-
// floating element itself.
|
963
|
-
//
|
964
|
-
const shouldAddOffset =
|
965
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ?
|
954
|
+
// floating element itself. This stops `shift()` from taking action, but can
|
955
|
+
// be worked around by calling it again after the `arrow()` if desired.
|
956
|
+
const shouldAddOffset = floating_ui_utils_getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
957
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? min$1 - center : max - center : 0;
|
966
958
|
return {
|
967
|
-
[axis]: coords[axis]
|
959
|
+
[axis]: coords[axis] - alignmentOffset,
|
968
960
|
data: {
|
969
961
|
[axis]: offset,
|
970
|
-
centerOffset: center - offset
|
971
|
-
|
972
|
-
alignmentOffset
|
973
|
-
})
|
974
|
-
},
|
975
|
-
reset: shouldAddOffset
|
962
|
+
centerOffset: center - offset + alignmentOffset
|
963
|
+
}
|
976
964
|
};
|
977
965
|
}
|
978
966
|
});
|
@@ -1094,7 +1082,7 @@ const flip = function (options) {
|
|
1094
1082
|
name: 'flip',
|
1095
1083
|
options,
|
1096
1084
|
async fn(state) {
|
1097
|
-
var _middlewareData$
|
1085
|
+
var _middlewareData$flip;
|
1098
1086
|
const {
|
1099
1087
|
placement,
|
1100
1088
|
middlewareData,
|
@@ -1112,14 +1100,6 @@ const flip = function (options) {
|
|
1112
1100
|
flipAlignment = true,
|
1113
1101
|
...detectOverflowOptions
|
1114
1102
|
} = floating_ui_utils_evaluate(options, state);
|
1115
|
-
|
1116
|
-
// If a reset by the arrow was caused due to an alignment offset being
|
1117
|
-
// added, we should skip any logic now since `flip()` has already done its
|
1118
|
-
// work.
|
1119
|
-
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
1120
|
-
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1121
|
-
return {};
|
1122
|
-
}
|
1123
1103
|
const side = floating_ui_utils_getSide(placement);
|
1124
1104
|
const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
|
1125
1105
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
@@ -1397,7 +1377,6 @@ const inline = function (options) {
|
|
1397
1377
|
|
1398
1378
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
1399
1379
|
// Derivable.
|
1400
|
-
|
1401
1380
|
async function convertValueToCoords(state, options) {
|
1402
1381
|
const {
|
1403
1382
|
placement,
|
@@ -1411,6 +1390,8 @@ async function convertValueToCoords(state, options) {
|
|
1411
1390
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
1412
1391
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
1413
1392
|
const rawValue = floating_ui_utils_evaluate(options, state);
|
1393
|
+
|
1394
|
+
// eslint-disable-next-line prefer-const
|
1414
1395
|
let {
|
1415
1396
|
mainAxis,
|
1416
1397
|
crossAxis,
|
@@ -1452,27 +1433,15 @@ const offset = function (options) {
|
|
1452
1433
|
name: 'offset',
|
1453
1434
|
options,
|
1454
1435
|
async fn(state) {
|
1455
|
-
var _middlewareData$offse, _middlewareData$arrow;
|
1456
1436
|
const {
|
1457
1437
|
x,
|
1458
|
-
y
|
1459
|
-
placement,
|
1460
|
-
middlewareData
|
1438
|
+
y
|
1461
1439
|
} = state;
|
1462
1440
|
const diffCoords = await convertValueToCoords(state, options);
|
1463
|
-
|
1464
|
-
// If the placement is the same and the arrow caused an alignment offset
|
1465
|
-
// then we don't need to change the positioning coordinates.
|
1466
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1467
|
-
return {};
|
1468
|
-
}
|
1469
1441
|
return {
|
1470
1442
|
x: x + diffCoords.x,
|
1471
1443
|
y: y + diffCoords.y,
|
1472
|
-
data:
|
1473
|
-
...diffCoords,
|
1474
|
-
placement
|
1475
|
-
}
|
1444
|
+
data: diffCoords
|
1476
1445
|
};
|
1477
1446
|
}
|
1478
1447
|
};
|
@@ -1704,7 +1673,7 @@ const size = function (options) {
|
|
1704
1673
|
|
1705
1674
|
|
1706
1675
|
|
1707
|
-
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
1676
|
+
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
|
1708
1677
|
function getNodeName(node) {
|
1709
1678
|
if (isNode(node)) {
|
1710
1679
|
return (node.nodeName || '').toLowerCase();
|
@@ -1716,7 +1685,7 @@ function getNodeName(node) {
|
|
1716
1685
|
}
|
1717
1686
|
function getWindow(node) {
|
1718
1687
|
var _node$ownerDocument;
|
1719
|
-
return (node == null
|
1688
|
+
return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
1720
1689
|
}
|
1721
1690
|
function getDocumentElement(node) {
|
1722
1691
|
var _ref;
|
@@ -1757,17 +1726,6 @@ function isContainingBlock(element) {
|
|
1757
1726
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1758
1727
|
return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
1759
1728
|
}
|
1760
|
-
function getContainingBlock(element) {
|
1761
|
-
let currentNode = getParentNode(element);
|
1762
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1763
|
-
if (isContainingBlock(currentNode)) {
|
1764
|
-
return currentNode;
|
1765
|
-
} else {
|
1766
|
-
currentNode = getParentNode(currentNode);
|
1767
|
-
}
|
1768
|
-
}
|
1769
|
-
return null;
|
1770
|
-
}
|
1771
1729
|
function isWebKit() {
|
1772
1730
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
1773
1731
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
@@ -1815,21 +1773,18 @@ function getNearestOverflowAncestor(node) {
|
|
1815
1773
|
}
|
1816
1774
|
return getNearestOverflowAncestor(parentNode);
|
1817
1775
|
}
|
1818
|
-
function getOverflowAncestors(node, list
|
1776
|
+
function getOverflowAncestors(node, list) {
|
1819
1777
|
var _node$ownerDocument2;
|
1820
1778
|
if (list === void 0) {
|
1821
1779
|
list = [];
|
1822
1780
|
}
|
1823
|
-
if (traverseIframes === void 0) {
|
1824
|
-
traverseIframes = true;
|
1825
|
-
}
|
1826
1781
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
1827
1782
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
1828
1783
|
const win = getWindow(scrollableAncestor);
|
1829
1784
|
if (isBody) {
|
1830
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []
|
1785
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
1831
1786
|
}
|
1832
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor
|
1787
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
1833
1788
|
}
|
1834
1789
|
|
1835
1790
|
|
@@ -2109,7 +2064,7 @@ function getClippingElementAncestors(element, cache) {
|
|
2109
2064
|
if (cachedResult) {
|
2110
2065
|
return cachedResult;
|
2111
2066
|
}
|
2112
|
-
let result = getOverflowAncestors(element
|
2067
|
+
let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
2113
2068
|
let currentContainingBlockComputedStyle = null;
|
2114
2069
|
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
2115
2070
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
@@ -2164,14 +2119,7 @@ function getClippingRect(_ref) {
|
|
2164
2119
|
}
|
2165
2120
|
|
2166
2121
|
function getDimensions(element) {
|
2167
|
-
|
2168
|
-
width,
|
2169
|
-
height
|
2170
|
-
} = getCssDimensions(element);
|
2171
|
-
return {
|
2172
|
-
width,
|
2173
|
-
height
|
2174
|
-
};
|
2122
|
+
return getCssDimensions(element);
|
2175
2123
|
}
|
2176
2124
|
|
2177
2125
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
@@ -2213,6 +2161,17 @@ function getTrueOffsetParent(element, polyfill) {
|
|
2213
2161
|
}
|
2214
2162
|
return element.offsetParent;
|
2215
2163
|
}
|
2164
|
+
function getContainingBlock(element) {
|
2165
|
+
let currentNode = getParentNode(element);
|
2166
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
2167
|
+
if (isContainingBlock(currentNode)) {
|
2168
|
+
return currentNode;
|
2169
|
+
} else {
|
2170
|
+
currentNode = getParentNode(currentNode);
|
2171
|
+
}
|
2172
|
+
}
|
2173
|
+
return null;
|
2174
|
+
}
|
2216
2175
|
|
2217
2176
|
// Gets the closest ancestor positioned element. Handles some edge cases,
|
2218
2177
|
// such as table ancestors and cross browser bugs.
|
@@ -2417,66 +2376,10 @@ function autoUpdate(reference, floating, update, options) {
|
|
2417
2376
|
};
|
2418
2377
|
}
|
2419
2378
|
|
2420
|
-
/**
|
2421
|
-
* Optimizes the visibility of the floating element by choosing the placement
|
2422
|
-
* that has the most space available automatically, without needing to specify a
|
2423
|
-
* preferred placement. Alternative to `flip`.
|
2424
|
-
* @see https://floating-ui.com/docs/autoPlacement
|
2425
|
-
*/
|
2426
|
-
const floating_ui_dom_autoPlacement = autoPlacement;
|
2427
|
-
|
2428
|
-
/**
|
2429
|
-
* Optimizes the visibility of the floating element by shifting it in order to
|
2430
|
-
* keep it in view when it will overflow the clipping boundary.
|
2431
|
-
* @see https://floating-ui.com/docs/shift
|
2432
|
-
*/
|
2433
|
-
const floating_ui_dom_shift = shift;
|
2434
|
-
|
2435
|
-
/**
|
2436
|
-
* Optimizes the visibility of the floating element by flipping the `placement`
|
2437
|
-
* in order to keep it in view when the preferred placement(s) will overflow the
|
2438
|
-
* clipping boundary. Alternative to `autoPlacement`.
|
2439
|
-
* @see https://floating-ui.com/docs/flip
|
2440
|
-
*/
|
2441
|
-
const floating_ui_dom_flip = flip;
|
2442
|
-
|
2443
|
-
/**
|
2444
|
-
* Provides data that allows you to change the size of the floating element —
|
2445
|
-
* for instance, prevent it from overflowing the clipping boundary or match the
|
2446
|
-
* width of the reference element.
|
2447
|
-
* @see https://floating-ui.com/docs/size
|
2448
|
-
*/
|
2449
|
-
const floating_ui_dom_size = (/* unused pure expression or super */ null && (size$1));
|
2450
|
-
|
2451
|
-
/**
|
2452
|
-
* Provides data to hide the floating element in applicable situations, such as
|
2453
|
-
* when it is not in the same clipping context as the reference element.
|
2454
|
-
* @see https://floating-ui.com/docs/hide
|
2455
|
-
*/
|
2456
|
-
const floating_ui_dom_hide = hide;
|
2457
|
-
|
2458
|
-
/**
|
2459
|
-
* Provides data to position an inner element of the floating element so that it
|
2460
|
-
* appears centered to the reference element.
|
2461
|
-
* @see https://floating-ui.com/docs/arrow
|
2462
|
-
*/
|
2463
|
-
const floating_ui_dom_arrow = arrow;
|
2464
|
-
|
2465
|
-
/**
|
2466
|
-
* Provides improved positioning for inline reference elements that can span
|
2467
|
-
* over multiple lines, such as hyperlinks or range selections.
|
2468
|
-
* @see https://floating-ui.com/docs/inline
|
2469
|
-
*/
|
2470
|
-
const floating_ui_dom_inline = inline;
|
2471
|
-
|
2472
|
-
/**
|
2473
|
-
* Built-in `limiter` that will stop `shift()` at a certain point.
|
2474
|
-
*/
|
2475
|
-
const floating_ui_dom_limitShift = (/* unused pure expression or super */ null && (limitShift$1));
|
2476
|
-
|
2477
2379
|
/**
|
2478
2380
|
* Computes the `x` and `y` coordinates that will place the floating element
|
2479
|
-
* next to a given
|
2381
|
+
* next to a reference element when it is given a certain CSS positioning
|
2382
|
+
* strategy.
|
2480
2383
|
*/
|
2481
2384
|
const floating_ui_dom_computePosition = (reference, floating, options) => {
|
2482
2385
|
// This caches the expensive `getClippingElementAncestors` function so that
|
@@ -2822,7 +2725,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2822
2725
|
};
|
2823
2726
|
var resolvePopOptions = function resolvePopOptions(elArrow, props) {
|
2824
2727
|
var modifiers = resolveModifiers();
|
2825
|
-
var middleware = [offset(modifiers.offset || props.offset),
|
2728
|
+
var middleware = [offset(modifiers.offset || props.offset), shift({
|
2826
2729
|
padding: props.padding
|
2827
2730
|
})];
|
2828
2731
|
var options = {
|
@@ -2830,17 +2733,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2830
2733
|
middleware: middleware
|
2831
2734
|
};
|
2832
2735
|
if (props.arrow) {
|
2833
|
-
middleware.push(
|
2736
|
+
middleware.push(arrow({
|
2834
2737
|
element: elArrow
|
2835
2738
|
}));
|
2836
2739
|
}
|
2837
2740
|
if (isAutoPlacementAvailable()) {
|
2838
|
-
middleware.push(
|
2741
|
+
middleware.push(autoPlacement());
|
2839
2742
|
}
|
2840
|
-
middleware.unshift(
|
2841
|
-
middleware.push(
|
2743
|
+
middleware.unshift(inline());
|
2744
|
+
middleware.push(flip());
|
2842
2745
|
if (isHideMiddlewareAvailable()) {
|
2843
|
-
options.middleware.push(
|
2746
|
+
options.middleware.push(hide());
|
2844
2747
|
}
|
2845
2748
|
/**
|
2846
2749
|
* 如果是全屏元素或者指定的虚拟元素
|
@@ -3280,7 +3183,7 @@ var parentNodeReferId = null;
|
|
3280
3183
|
getFullscreenRoot = _useFloating.getFullscreenRoot,
|
3281
3184
|
stopHide = _useFloating.stopHide;
|
3282
3185
|
var resetPopover = function resetPopover() {
|
3283
|
-
cleanup === null || cleanup === void 0
|
3186
|
+
cleanup === null || cleanup === void 0 ? void 0 : cleanup();
|
3284
3187
|
createPopInstance();
|
3285
3188
|
};
|
3286
3189
|
var showFn = function showFn() {
|
@@ -3388,13 +3291,13 @@ var parentNodeReferId = null;
|
|
3388
3291
|
getPrefixId = _usePopperId.getPrefixId;
|
3389
3292
|
var setFullscreenTag = function setFullscreenTag() {
|
3390
3293
|
var _fullScreenTarget$val2;
|
3391
|
-
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0
|
3294
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 ? void 0 : _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3392
3295
|
};
|
3393
3296
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3394
3297
|
var _fullScreenTarget$val3, _fullScreenTarget$val4;
|
3395
3298
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3396
3299
|
((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
|
3397
|
-
element === null || element === void 0
|
3300
|
+
element === null || element === void 0 ? void 0 : element.removeAttribute('data-fllsrn-id');
|
3398
3301
|
});
|
3399
3302
|
};
|
3400
3303
|
var boundary = (0,external_vue_namespaceObject.ref)();
|
@@ -3516,11 +3419,10 @@ var parentNodeReferId = null;
|
|
3516
3419
|
|
3517
3420
|
|
3518
3421
|
|
3519
|
-
|
3520
3422
|
function _isSlot(s) {
|
3521
3423
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
3522
3424
|
}
|
3523
|
-
/* harmony default export */ const popover = (
|
3425
|
+
/* harmony default export */ const popover = (defineComponent({
|
3524
3426
|
name: 'Popover',
|
3525
3427
|
components: {
|
3526
3428
|
Content: content,
|
@@ -3533,13 +3435,13 @@ function _isSlot(s) {
|
|
3533
3435
|
props: PopoverProps,
|
3534
3436
|
emits: EMIT_EVENT_TYPES,
|
3535
3437
|
setup: function setup(props, ctx) {
|
3536
|
-
var _toRefs =
|
3438
|
+
var _toRefs = toRefs(props),
|
3537
3439
|
reference = _toRefs.reference;
|
3538
|
-
var refDefaultReference =
|
3539
|
-
var refContent =
|
3540
|
-
var refArrow =
|
3541
|
-
var refRoot =
|
3542
|
-
var refReference =
|
3440
|
+
var refDefaultReference = ref();
|
3441
|
+
var refContent = ref();
|
3442
|
+
var refArrow = ref();
|
3443
|
+
var refRoot = ref();
|
3444
|
+
var refReference = computed(function () {
|
3543
3445
|
return reference.value || refDefaultReference.value;
|
3544
3446
|
});
|
3545
3447
|
var _usePopoverInit = use_popover_init(props, ctx, {
|
@@ -3565,7 +3467,7 @@ function _isSlot(s) {
|
|
3565
3467
|
boundary = _usePopoverInit.boundary,
|
3566
3468
|
uniqKey = _usePopoverInit.uniqKey;
|
3567
3469
|
if (!props.always && !props.disabled) {
|
3568
|
-
|
3470
|
+
watch(function () {
|
3569
3471
|
return props.isShow;
|
3570
3472
|
}, function () {
|
3571
3473
|
props.isShow ? showPopover() : hidePopover();
|
@@ -3573,7 +3475,7 @@ function _isSlot(s) {
|
|
3573
3475
|
immediate: true
|
3574
3476
|
});
|
3575
3477
|
}
|
3576
|
-
|
3478
|
+
watch(function () {
|
3577
3479
|
return [props.disabled];
|
3578
3480
|
}, function (val) {
|
3579
3481
|
if (val[0]) {
|
@@ -3583,15 +3485,15 @@ function _isSlot(s) {
|
|
3583
3485
|
}
|
3584
3486
|
});
|
3585
3487
|
updateBoundary();
|
3586
|
-
|
3587
|
-
|
3588
|
-
var isRenderModeShow =
|
3488
|
+
onMounted(onMountedFn);
|
3489
|
+
onBeforeUnmount(onUnmountedFn);
|
3490
|
+
var isRenderModeShow = computed(function () {
|
3589
3491
|
return props.renderDirective === 'show';
|
3590
3492
|
});
|
3591
|
-
var transBoundary =
|
3493
|
+
var transBoundary = computed(function () {
|
3592
3494
|
return isRenderModeShow.value || localIsShow.value && !props.disableTeleport;
|
3593
3495
|
});
|
3594
|
-
var contentIsShow =
|
3496
|
+
var contentIsShow = computed(function () {
|
3595
3497
|
if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
|
3596
3498
|
return true;
|
3597
3499
|
}
|
@@ -3657,7 +3559,7 @@ function _isSlot(s) {
|
|
3657
3559
|
_this$$slots4;
|
3658
3560
|
var renderReferSlot = function renderReferSlot(slot) {
|
3659
3561
|
var _slot$;
|
3660
|
-
if (
|
3562
|
+
if (Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
3661
3563
|
return (0,external_vue_namespaceObject.createVNode)("span", null, [slot]);
|
3662
3564
|
}
|
3663
3565
|
return slot;
|
@@ -3682,7 +3584,7 @@ function _isSlot(s) {
|
|
3682
3584
|
"default": function _default() {
|
3683
3585
|
return [_slot2];
|
3684
3586
|
}
|
3685
|
-
}), (0,external_vue_namespaceObject.createVNode)(
|
3587
|
+
}), (0,external_vue_namespaceObject.createVNode)(Teleport, {
|
3686
3588
|
"disabled": !_this.transBoundary,
|
3687
3589
|
"to": _this.boundary
|
3688
3590
|
}, {
|
@@ -3790,36 +3692,36 @@ function createPopoverComponent(options) {
|
|
3790
3692
|
var refReference = (0,external_vue_namespaceObject.ref)();
|
3791
3693
|
var show = function show() {
|
3792
3694
|
var _refReference$value, _refReference$value$s;
|
3793
|
-
(_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0
|
3695
|
+
(_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0 ? void 0 : _refReference$value$s.call(_refReference$value);
|
3794
3696
|
};
|
3795
3697
|
var hide = function hide() {
|
3796
3698
|
var _refReference$value2, _refReference$value2$;
|
3797
|
-
(_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0
|
3699
|
+
(_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 ? void 0 : _refReference$value2$.call(_refReference$value2);
|
3798
3700
|
};
|
3799
3701
|
var stopHide = function stopHide() {
|
3800
3702
|
var _refReference$value3, _refReference$value3$;
|
3801
|
-
(_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0
|
3703
|
+
(_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 ? void 0 : _refReference$value3$.call(_refReference$value3);
|
3802
3704
|
};
|
3803
3705
|
var updateTarget = function updateTarget(target) {
|
3804
3706
|
var _refReference$value4, _refReference$value4$;
|
3805
3707
|
refProps.target = target;
|
3806
|
-
(_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0
|
3708
|
+
(_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 ? void 0 : _refReference$value4$.call(_refReference$value4);
|
3807
3709
|
};
|
3808
3710
|
var handleContentMouseenter = function handleContentMouseenter() {
|
3809
3711
|
var _resolvedOptions$onCo;
|
3810
|
-
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0
|
3712
|
+
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 ? void 0 : _resolvedOptions$onCo.call(resolvedOptions);
|
3811
3713
|
};
|
3812
3714
|
var handleContentMouseleave = function handleContentMouseleave() {
|
3813
3715
|
var _resolvedOptions$onCo2;
|
3814
|
-
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0
|
3716
|
+
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 ? void 0 : _resolvedOptions$onCo2.call(resolvedOptions);
|
3815
3717
|
};
|
3816
3718
|
var handlePopoverHidden = function handlePopoverHidden() {
|
3817
3719
|
var _resolvedOptions$onHi;
|
3818
|
-
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0
|
3720
|
+
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 ? void 0 : _resolvedOptions$onHi.call(resolvedOptions);
|
3819
3721
|
};
|
3820
3722
|
var handlePopoverShow = function handlePopoverShow() {
|
3821
3723
|
var _resolvedOptions$onSh;
|
3822
|
-
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0
|
3724
|
+
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 ? void 0 : _resolvedOptions$onSh.call(resolvedOptions);
|
3823
3725
|
};
|
3824
3726
|
expose({
|
3825
3727
|
show: show,
|
@@ -3868,7 +3770,7 @@ function createPopoverComponent(options) {
|
|
3868
3770
|
}
|
3869
3771
|
$PopoverInstance.unmount();
|
3870
3772
|
$PopoverInstance = null;
|
3871
|
-
(_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0
|
3773
|
+
(_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 ? void 0 : _$PopoverInstanceEl.remove();
|
3872
3774
|
};
|
3873
3775
|
function close() {
|
3874
3776
|
uninstall();
|
@@ -3879,17 +3781,17 @@ function createPopoverComponent(options) {
|
|
3879
3781
|
install();
|
3880
3782
|
if (target) {
|
3881
3783
|
var _$PopoverInstanceVm;
|
3882
|
-
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0
|
3784
|
+
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 ? void 0 : _$PopoverInstanceVm.updateTarget(target);
|
3883
3785
|
}
|
3884
|
-
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0
|
3786
|
+
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 ? void 0 : _$PopoverInstanceVm2.show();
|
3885
3787
|
}
|
3886
3788
|
function update(e) {
|
3887
3789
|
var _$PopoverInstanceVm3;
|
3888
|
-
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0
|
3790
|
+
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 ? void 0 : _$PopoverInstanceVm3.updateTarget(e);
|
3889
3791
|
}
|
3890
3792
|
function hide() {
|
3891
3793
|
var _$PopoverInstanceVm4;
|
3892
|
-
(_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0
|
3794
|
+
(_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 ? void 0 : _$PopoverInstanceVm4.hide();
|
3893
3795
|
}
|
3894
3796
|
immediate && install();
|
3895
3797
|
return {
|