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