bkui-vue 2.0.1-beta.113 → 2.0.1-beta.115
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 +13951 -13942
- 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 +47 -39
- package/lib/alert/index.d.ts +73 -126
- package/lib/alert/index.js +50 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +21 -16
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +42 -31
- package/lib/badge/index.d.ts +119 -152
- package/lib/badge/index.js +43 -37
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -40
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +55 -46
- package/lib/card/index.d.ts +128 -157
- package/lib/card/index.js +67 -55
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +149 -119
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +143 -175
- package/lib/checkbox/index.js +89 -79
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +464 -517
- package/lib/collapse/index.d.ts +156 -175
- package/lib/collapse/index.js +67 -60
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +23 -16
- 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 +98 -82
- package/lib/config-provider/index.d.ts +160 -227
- package/lib/config-provider/index.js +51 -43
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +55 -47
- 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 +380 -351
- package/lib/date-picker/index.js +171 -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 +323 -310
- package/lib/directives/index.js +344 -336
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +23 -16
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +66 -52
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +76 -70
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +22 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +104 -83
- package/lib/icon/angle-double-down-line.js +31 -29
- package/lib/icon/angle-double-left-line.js +31 -29
- package/lib/icon/angle-double-left.js +31 -29
- package/lib/icon/angle-double-right-line.js +31 -29
- package/lib/icon/angle-double-right.js +31 -29
- package/lib/icon/angle-double-up-line.js +31 -29
- package/lib/icon/angle-down-fill.js +31 -29
- package/lib/icon/angle-down-line.js +31 -29
- package/lib/icon/angle-down.js +31 -29
- package/lib/icon/angle-left.js +31 -29
- package/lib/icon/angle-right.js +31 -29
- package/lib/icon/angle-up-fill.js +31 -29
- package/lib/icon/angle-up.js +31 -29
- package/lib/icon/archive-fill.js +31 -29
- package/lib/icon/arrows-left.js +31 -29
- package/lib/icon/arrows-right.js +31 -29
- package/lib/icon/assistant.js +31 -29
- package/lib/icon/audio-fill.js +31 -29
- package/lib/icon/bk.js +31 -29
- package/lib/icon/circle.js +31 -29
- package/lib/icon/close-line.js +31 -29
- package/lib/icon/close.js +31 -29
- package/lib/icon/code.js +31 -29
- package/lib/icon/cog-shape.js +31 -29
- package/lib/icon/collapse-left.js +31 -29
- package/lib/icon/copy-shape.js +31 -29
- package/lib/icon/copy.js +31 -29
- package/lib/icon/data-shape.js +31 -29
- package/lib/icon/del.js +31 -29
- package/lib/icon/doc-fill.js +31 -29
- package/lib/icon/done.js +31 -29
- package/lib/icon/down-shape.js +31 -29
- package/lib/icon/down-small.js +31 -29
- package/lib/icon/edit-line.js +31 -29
- package/lib/icon/ellipsis.js +31 -29
- package/lib/icon/enlarge-line.js +31 -29
- package/lib/icon/error.js +31 -29
- package/lib/icon/excel-fill.js +31 -29
- package/lib/icon/exclamation-circle-shape.js +31 -29
- package/lib/icon/eye.js +31 -29
- package/lib/icon/filliscreen-line.js +31 -29
- package/lib/icon/fix-line.js +31 -29
- package/lib/icon/fix-shape.js +31 -29
- package/lib/icon/folder-open.js +31 -29
- package/lib/icon/folder-shape-open.js +31 -29
- package/lib/icon/folder-shape.js +31 -29
- package/lib/icon/folder.js +31 -29
- package/lib/icon/funnel.js +31 -29
- package/lib/icon/grag-fill.js +31 -29
- package/lib/icon/help-document-fill.js +31 -29
- package/lib/icon/help-fill.js +31 -29
- package/lib/icon/help.js +31 -29
- package/lib/icon/image-fill.js +31 -29
- package/lib/icon/img-error.js +31 -29
- package/lib/icon/img-placehoulder.js +31 -29
- package/lib/icon/info-line.js +31 -29
- package/lib/icon/info.js +31 -29
- package/lib/icon/left-shape.js +31 -29
- package/lib/icon/left-turn-line.js +31 -29
- package/lib/icon/loading.js +31 -29
- package/lib/icon/narrow-line.js +31 -29
- package/lib/icon/original.js +31 -29
- package/lib/icon/pdf-fill.js +31 -29
- package/lib/icon/play-shape.js +31 -29
- package/lib/icon/plus.js +31 -29
- package/lib/icon/ppt-fill.js +31 -29
- package/lib/icon/qq.js +31 -29
- package/lib/icon/right-shape.js +31 -29
- package/lib/icon/right-turn-line.js +31 -29
- package/lib/icon/search.js +31 -29
- package/lib/icon/share.js +31 -29
- package/lib/icon/spinner.js +31 -29
- package/lib/icon/success.js +31 -29
- package/lib/icon/switcher-loading.js +31 -29
- package/lib/icon/text-all.js +31 -29
- package/lib/icon/text-file.js +31 -29
- package/lib/icon/text-fill.js +31 -29
- package/lib/icon/transfer.js +31 -29
- package/lib/icon/tree-application-shape.js +31 -29
- package/lib/icon/unfull-screen.js +31 -29
- package/lib/icon/unvisible.js +31 -29
- package/lib/icon/up-shape.js +31 -29
- package/lib/icon/upload.js +31 -29
- package/lib/icon/video-fill.js +31 -29
- package/lib/icon/warn.js +31 -29
- package/lib/icon/weixin-pro.js +31 -29
- package/lib/icon/weixin.js +31 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +76 -61
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +328 -315
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +91 -83
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +27 -19
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +56 -51
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.d.ts +55 -116
- package/lib/menu/index.js +67 -58
- package/lib/message/index.js +72 -67
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +171 -185
- package/lib/modal/index.js +58 -48
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +35 -25
- package/lib/notify/index.js +57 -48
- package/lib/overflow-title/index.d.ts +343 -256
- package/lib/overflow-title/index.js +51 -38
- package/lib/pagination/index.d.ts +184 -198
- package/lib/pagination/index.js +112 -103
- package/lib/plugin-popover/index.js +7 -5
- package/lib/plugins/index.js +7 -5
- package/lib/pop-confirm/index.d.ts +115 -153
- package/lib/pop-confirm/index.js +53 -36
- package/lib/pop-confirm/pop-confirm.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 +291 -179
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +15 -11
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +299 -295
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +47 -40
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +91 -140
- package/lib/radio/index.js +85 -79
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +44 -39
- package/lib/resize-layout/index.d.ts +168 -192
- package/lib/resize-layout/index.js +50 -43
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +63 -63
- package/lib/search-select/index.d.ts +678 -895
- package/lib/search-select/index.js +397 -379
- 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 +1375 -1217
- package/lib/select/index.js +456 -419
- package/lib/select/select.d.ts +132 -169
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +109 -103
- package/lib/sideslider/index.d.ts +197 -201
- package/lib/sideslider/index.js +312 -303
- package/lib/slider/index.d.ts +214 -210
- package/lib/slider/index.js +305 -294
- package/lib/steps/index.d.ts +110 -149
- package/lib/steps/index.js +303 -298
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +42 -36
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +50 -44
- package/lib/tab/index.d.ts +151 -183
- package/lib/tab/index.js +72 -59
- 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 +457 -362
- package/lib/table/index.js +589 -547
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +104 -150
- package/lib/table-column/index.js +13 -9
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +56 -46
- package/lib/tag-input/index.d.ts +744 -529
- package/lib/tag-input/index.js +148 -128
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +439 -386
- package/lib/time-picker/index.js +13 -9
- package/lib/timeline/index.d.ts +64 -131
- package/lib/timeline/index.js +27 -21
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +56 -40
- package/lib/tree/index.d.ts +350 -308
- package/lib/tree/index.js +171 -150
- 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 +474 -465
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +333 -241
- package/lib/virtual-render/index.js +84 -72
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/popover/index.js
CHANGED
@@ -38,23 +38,31 @@ __webpack_require__.d(__webpack_exports__, {
|
|
38
38
|
"default": () => (/* binding */ src)
|
39
39
|
});
|
40
40
|
|
41
|
-
;//
|
42
|
-
var x = y => {
|
43
|
-
var
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
var
|
52
|
-
const
|
53
|
-
;//
|
54
|
-
var
|
55
|
-
var
|
56
|
-
|
57
|
-
|
41
|
+
;// external "../shared"
|
42
|
+
var x = (y) => {
|
43
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
44
|
+
}
|
45
|
+
var y = (x) => (() => (x))
|
46
|
+
const shared_namespaceObject = x({ ["PlacementEnum"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum), ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["RenderType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["placementType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType), ["renderDirectiveType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType), ["renderType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType), ["triggerType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType), ["withInstall"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall) });
|
47
|
+
;// external "vue"
|
48
|
+
var external_vue_x = (y) => {
|
49
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
50
|
+
}
|
51
|
+
var external_vue_y = (x) => (() => (x))
|
52
|
+
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) });
|
53
|
+
;// external "../directives"
|
54
|
+
var directives_x = (y) => {
|
55
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
56
|
+
}
|
57
|
+
var directives_y = (x) => (() => (x))
|
58
|
+
const directives_namespaceObject = directives_x({ ["clickoutside"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside) });
|
59
|
+
;// external "../config-provider"
|
60
|
+
var config_provider_x = (y) => {
|
61
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
62
|
+
}
|
63
|
+
var config_provider_y = (x) => (() => (x))
|
64
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
65
|
+
;// ../../packages/popover/src/arrow.tsx
|
58
66
|
|
59
67
|
/*
|
60
68
|
* Tencent is pleased to support the open source community by making
|
@@ -82,7 +90,8 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
82
90
|
* IN THE SOFTWARE.
|
83
91
|
*/
|
84
92
|
|
85
|
-
|
93
|
+
|
94
|
+
/* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
|
86
95
|
name: 'PopArrow',
|
87
96
|
render: function render() {
|
88
97
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
@@ -93,39 +102,39 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
93
102
|
}, null);
|
94
103
|
}
|
95
104
|
}));
|
96
|
-
;//
|
97
|
-
function _typeof(
|
105
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
106
|
+
function _typeof(o) {
|
98
107
|
"@babel/helpers - typeof";
|
99
108
|
|
100
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
101
|
-
return typeof
|
102
|
-
} : function (
|
103
|
-
return
|
104
|
-
}, _typeof(
|
109
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
110
|
+
return typeof o;
|
111
|
+
} : function (o) {
|
112
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
113
|
+
}, _typeof(o);
|
105
114
|
}
|
106
|
-
;//
|
115
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
107
116
|
|
108
|
-
function
|
109
|
-
if (
|
110
|
-
var
|
111
|
-
if (
|
112
|
-
var
|
113
|
-
if (
|
117
|
+
function toPrimitive(t, r) {
|
118
|
+
if ("object" != _typeof(t) || !t) return t;
|
119
|
+
var e = t[Symbol.toPrimitive];
|
120
|
+
if (void 0 !== e) {
|
121
|
+
var i = e.call(t, r || "default");
|
122
|
+
if ("object" != _typeof(i)) return i;
|
114
123
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
115
124
|
}
|
116
|
-
return (
|
125
|
+
return ("string" === r ? String : Number)(t);
|
117
126
|
}
|
118
|
-
;//
|
127
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
119
128
|
|
120
129
|
|
121
|
-
function
|
122
|
-
var
|
123
|
-
return _typeof(
|
130
|
+
function toPropertyKey(t) {
|
131
|
+
var i = toPrimitive(t, "string");
|
132
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
124
133
|
}
|
125
|
-
;//
|
134
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
126
135
|
|
127
136
|
function _defineProperty(obj, key, value) {
|
128
|
-
key =
|
137
|
+
key = toPropertyKey(key);
|
129
138
|
if (key in obj) {
|
130
139
|
Object.defineProperty(obj, key, {
|
131
140
|
value: value,
|
@@ -138,9 +147,8 @@ function _defineProperty(obj, key, value) {
|
|
138
147
|
}
|
139
148
|
return obj;
|
140
149
|
}
|
141
|
-
;//
|
150
|
+
;// ../../packages/popover/src/const.tsx
|
142
151
|
|
143
|
-
var _EMIT_EVENT_TYPES;
|
144
152
|
/* eslint-disable @typescript-eslint/naming-convention */
|
145
153
|
/*
|
146
154
|
* Tencent is pleased to support the open source community by making
|
@@ -184,8 +192,8 @@ var EVENT_COMMON_FN = function EVENT_COMMON_FN(e) {
|
|
184
192
|
var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
|
185
193
|
return true;
|
186
194
|
};
|
187
|
-
var EMIT_EVENT_TYPES = (
|
188
|
-
;//
|
195
|
+
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);
|
196
|
+
;// ../../packages/popover/src/content.tsx
|
189
197
|
|
190
198
|
/*
|
191
199
|
* Tencent is pleased to support the open source community by making
|
@@ -214,7 +222,8 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
214
222
|
*/
|
215
223
|
|
216
224
|
|
217
|
-
|
225
|
+
|
226
|
+
/* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
|
218
227
|
name: 'PopContent',
|
219
228
|
props: {
|
220
229
|
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
@@ -234,7 +243,7 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
234
243
|
}
|
235
244
|
return val;
|
236
245
|
};
|
237
|
-
var style = computed(function () {
|
246
|
+
var style = (0,external_vue_namespaceObject.computed)(function () {
|
238
247
|
return {
|
239
248
|
width: resolveValToPix(props.width),
|
240
249
|
height: resolveValToPix(props.height),
|
@@ -242,8 +251,8 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
242
251
|
maxWidth: resolveValToPix(props.maxWidth)
|
243
252
|
};
|
244
253
|
});
|
245
|
-
var refContent = ref(null);
|
246
|
-
var refTimer = ref(null);
|
254
|
+
var refContent = (0,external_vue_namespaceObject.ref)(null);
|
255
|
+
var refTimer = (0,external_vue_namespaceObject.ref)(null);
|
247
256
|
var handleClick = function handleClick(evt) {
|
248
257
|
evt.stopPropagation();
|
249
258
|
emit('click', evt);
|
@@ -263,11 +272,11 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
263
272
|
if (props.eventDelay === 0) {
|
264
273
|
return;
|
265
274
|
}
|
266
|
-
(_refContent$value = refContent.value) === null || _refContent$value === void 0
|
275
|
+
(_refContent$value = refContent.value) === null || _refContent$value === void 0 || _refContent$value.style.setProperty('pointer-events', val);
|
267
276
|
};
|
268
277
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
269
278
|
resolveClassName = _usePrefix.resolveClassName;
|
270
|
-
var contentClassName = computed(function () {
|
279
|
+
var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
|
271
280
|
return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
|
272
281
|
});
|
273
282
|
return {
|
@@ -291,8 +300,8 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
291
300
|
_this$$slots3;
|
292
301
|
var resolveContentStyle = function resolveContentStyle(slot) {
|
293
302
|
var _slot$;
|
294
|
-
if (Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
295
|
-
nextTick(function () {
|
303
|
+
if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
304
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
296
305
|
_this.setContentPointerEvent('none');
|
297
306
|
_this.resetPointerEvent();
|
298
307
|
});
|
@@ -308,11 +317,13 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
308
317
|
}, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
|
309
318
|
}
|
310
319
|
}));
|
311
|
-
;//
|
312
|
-
var external_vue_types_x = y => {
|
313
|
-
var
|
314
|
-
|
315
|
-
|
320
|
+
;// external "vue-types"
|
321
|
+
var external_vue_types_x = (y) => {
|
322
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
323
|
+
}
|
324
|
+
var external_vue_types_y = (x) => (() => (x))
|
325
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
|
326
|
+
;// ../../packages/popover/src/props.ts
|
316
327
|
|
317
328
|
|
318
329
|
var EventProps = {
|
@@ -415,7 +426,7 @@ var PopoverProps = {
|
|
415
426
|
*/
|
416
427
|
forceClickoutside: shared_namespaceObject.PropTypes.bool.def(false)
|
417
428
|
};
|
418
|
-
;//
|
429
|
+
;// ../../packages/popover/src/reference.tsx
|
419
430
|
/*
|
420
431
|
* Tencent is pleased to support the open source community by making
|
421
432
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -449,7 +460,7 @@ var PopoverProps = {
|
|
449
460
|
return (_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '';
|
450
461
|
}
|
451
462
|
}));
|
452
|
-
;//
|
463
|
+
;// ../../packages/popover/src/root.tsx
|
453
464
|
|
454
465
|
/*
|
455
466
|
* Tencent is pleased to support the open source community by making
|
@@ -477,7 +488,8 @@ var PopoverProps = {
|
|
477
488
|
* IN THE SOFTWARE.
|
478
489
|
*/
|
479
490
|
|
480
|
-
|
491
|
+
|
492
|
+
/* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
|
481
493
|
props: {
|
482
494
|
"class": shared_namespaceObject.PropTypes.string.def(''),
|
483
495
|
mode: shared_namespaceObject.PropTypes.string.def('')
|
@@ -487,45 +499,45 @@ var PopoverProps = {
|
|
487
499
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]);
|
488
500
|
}
|
489
501
|
}));
|
490
|
-
;//
|
502
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
491
503
|
function _arrayWithHoles(arr) {
|
492
504
|
if (Array.isArray(arr)) return arr;
|
493
505
|
}
|
494
|
-
;//
|
495
|
-
function _iterableToArrayLimit(
|
496
|
-
var
|
497
|
-
if (null !=
|
498
|
-
var
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
506
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
507
|
+
function _iterableToArrayLimit(r, l) {
|
508
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
509
|
+
if (null != t) {
|
510
|
+
var e,
|
511
|
+
n,
|
512
|
+
i,
|
513
|
+
u,
|
514
|
+
a = [],
|
515
|
+
f = !0,
|
516
|
+
o = !1;
|
505
517
|
try {
|
506
|
-
if (
|
507
|
-
if (Object(
|
508
|
-
|
509
|
-
} else for (; !(
|
510
|
-
} catch (
|
511
|
-
|
518
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
519
|
+
if (Object(t) !== t) return;
|
520
|
+
f = !1;
|
521
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
522
|
+
} catch (r) {
|
523
|
+
o = !0, n = r;
|
512
524
|
} finally {
|
513
525
|
try {
|
514
|
-
if (!
|
526
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
515
527
|
} finally {
|
516
|
-
if (
|
528
|
+
if (o) throw n;
|
517
529
|
}
|
518
530
|
}
|
519
|
-
return
|
531
|
+
return a;
|
520
532
|
}
|
521
533
|
}
|
522
|
-
;//
|
534
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
523
535
|
function _arrayLikeToArray(arr, len) {
|
524
536
|
if (len == null || len > arr.length) len = arr.length;
|
525
537
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
526
538
|
return arr2;
|
527
539
|
}
|
528
|
-
;//
|
540
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
529
541
|
|
530
542
|
function _unsupportedIterableToArray(o, minLen) {
|
531
543
|
if (!o) return;
|
@@ -535,11 +547,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
535
547
|
if (n === "Map" || n === "Set") return Array.from(o);
|
536
548
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
537
549
|
}
|
538
|
-
;//
|
550
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
539
551
|
function _nonIterableRest() {
|
540
552
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
541
553
|
}
|
542
|
-
;//
|
554
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
543
555
|
|
544
556
|
|
545
557
|
|
@@ -547,7 +559,12 @@ function _nonIterableRest() {
|
|
547
559
|
function _slicedToArray(arr, i) {
|
548
560
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
549
561
|
}
|
550
|
-
;//
|
562
|
+
;// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
563
|
+
/**
|
564
|
+
* Custom positioning reference element.
|
565
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
566
|
+
*/
|
567
|
+
|
551
568
|
const sides = ['top', 'right', 'bottom', 'left'];
|
552
569
|
const alignments = ['start', 'end'];
|
553
570
|
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
@@ -673,7 +690,7 @@ function rectToClientRect(rect) {
|
|
673
690
|
|
674
691
|
|
675
692
|
|
676
|
-
;//
|
693
|
+
;// ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
677
694
|
|
678
695
|
|
679
696
|
|
@@ -735,7 +752,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
735
752
|
|
736
753
|
/**
|
737
754
|
* Computes the `x` and `y` coordinates that will place the floating element
|
738
|
-
* next to a reference element
|
755
|
+
* next to a given reference element.
|
739
756
|
*
|
740
757
|
* This export does not have any `platform` interface logic. You will need to
|
741
758
|
* write one for the platform you are using Floating UI with.
|
@@ -813,7 +830,6 @@ const computePosition = async (reference, floating, config) => {
|
|
813
830
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
814
831
|
}
|
815
832
|
i = -1;
|
816
|
-
continue;
|
817
833
|
}
|
818
834
|
}
|
819
835
|
return {
|
@@ -876,6 +892,7 @@ async function detectOverflow(state, options) {
|
|
876
892
|
y: 1
|
877
893
|
};
|
878
894
|
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
895
|
+
elements,
|
879
896
|
rect,
|
880
897
|
offsetParent,
|
881
898
|
strategy
|
@@ -903,7 +920,8 @@ const arrow = options => ({
|
|
903
920
|
placement,
|
904
921
|
rects,
|
905
922
|
platform,
|
906
|
-
elements
|
923
|
+
elements,
|
924
|
+
middlewareData
|
907
925
|
} = state;
|
908
926
|
// Since `element` is required, we don't Partial<> the type.
|
909
927
|
const {
|
@@ -951,16 +969,20 @@ const arrow = options => ({
|
|
951
969
|
|
952
970
|
// If the reference is small enough that the arrow's padding causes it to
|
953
971
|
// 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
|
972
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
973
|
+
// a single reset is performed when this is true.
|
974
|
+
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;
|
975
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
958
976
|
return {
|
959
|
-
[axis]: coords[axis]
|
977
|
+
[axis]: coords[axis] + alignmentOffset,
|
960
978
|
data: {
|
961
979
|
[axis]: offset,
|
962
|
-
centerOffset: center - offset
|
963
|
-
|
980
|
+
centerOffset: center - offset - alignmentOffset,
|
981
|
+
...(shouldAddOffset && {
|
982
|
+
alignmentOffset
|
983
|
+
})
|
984
|
+
},
|
985
|
+
reset: shouldAddOffset
|
964
986
|
};
|
965
987
|
}
|
966
988
|
});
|
@@ -1082,7 +1104,7 @@ const flip = function (options) {
|
|
1082
1104
|
name: 'flip',
|
1083
1105
|
options,
|
1084
1106
|
async fn(state) {
|
1085
|
-
var _middlewareData$flip;
|
1107
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
1086
1108
|
const {
|
1087
1109
|
placement,
|
1088
1110
|
middlewareData,
|
@@ -1100,6 +1122,14 @@ const flip = function (options) {
|
|
1100
1122
|
flipAlignment = true,
|
1101
1123
|
...detectOverflowOptions
|
1102
1124
|
} = floating_ui_utils_evaluate(options, state);
|
1125
|
+
|
1126
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
1127
|
+
// added, we should skip any logic now since `flip()` has already done its
|
1128
|
+
// work.
|
1129
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
1130
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1131
|
+
return {};
|
1132
|
+
}
|
1103
1133
|
const side = floating_ui_utils_getSide(placement);
|
1104
1134
|
const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
|
1105
1135
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
@@ -1377,6 +1407,7 @@ const inline = function (options) {
|
|
1377
1407
|
|
1378
1408
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
1379
1409
|
// Derivable.
|
1410
|
+
|
1380
1411
|
async function convertValueToCoords(state, options) {
|
1381
1412
|
const {
|
1382
1413
|
placement,
|
@@ -1390,8 +1421,6 @@ async function convertValueToCoords(state, options) {
|
|
1390
1421
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
1391
1422
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
1392
1423
|
const rawValue = floating_ui_utils_evaluate(options, state);
|
1393
|
-
|
1394
|
-
// eslint-disable-next-line prefer-const
|
1395
1424
|
let {
|
1396
1425
|
mainAxis,
|
1397
1426
|
crossAxis,
|
@@ -1433,15 +1462,27 @@ const offset = function (options) {
|
|
1433
1462
|
name: 'offset',
|
1434
1463
|
options,
|
1435
1464
|
async fn(state) {
|
1465
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
1436
1466
|
const {
|
1437
1467
|
x,
|
1438
|
-
y
|
1468
|
+
y,
|
1469
|
+
placement,
|
1470
|
+
middlewareData
|
1439
1471
|
} = state;
|
1440
1472
|
const diffCoords = await convertValueToCoords(state, options);
|
1473
|
+
|
1474
|
+
// If the placement is the same and the arrow caused an alignment offset
|
1475
|
+
// then we don't need to change the positioning coordinates.
|
1476
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1477
|
+
return {};
|
1478
|
+
}
|
1441
1479
|
return {
|
1442
1480
|
x: x + diffCoords.x,
|
1443
1481
|
y: y + diffCoords.y,
|
1444
|
-
data:
|
1482
|
+
data: {
|
1483
|
+
...diffCoords,
|
1484
|
+
placement
|
1485
|
+
}
|
1445
1486
|
};
|
1446
1487
|
}
|
1447
1488
|
};
|
@@ -1673,7 +1714,7 @@ const size = function (options) {
|
|
1673
1714
|
|
1674
1715
|
|
1675
1716
|
|
1676
|
-
;//
|
1717
|
+
;// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
1677
1718
|
function getNodeName(node) {
|
1678
1719
|
if (isNode(node)) {
|
1679
1720
|
return (node.nodeName || '').toLowerCase();
|
@@ -1685,7 +1726,7 @@ function getNodeName(node) {
|
|
1685
1726
|
}
|
1686
1727
|
function getWindow(node) {
|
1687
1728
|
var _node$ownerDocument;
|
1688
|
-
return (node == null
|
1729
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
1689
1730
|
}
|
1690
1731
|
function getDocumentElement(node) {
|
1691
1732
|
var _ref;
|
@@ -1726,6 +1767,17 @@ function isContainingBlock(element) {
|
|
1726
1767
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1727
1768
|
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
1769
|
}
|
1770
|
+
function getContainingBlock(element) {
|
1771
|
+
let currentNode = getParentNode(element);
|
1772
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1773
|
+
if (isContainingBlock(currentNode)) {
|
1774
|
+
return currentNode;
|
1775
|
+
} else {
|
1776
|
+
currentNode = getParentNode(currentNode);
|
1777
|
+
}
|
1778
|
+
}
|
1779
|
+
return null;
|
1780
|
+
}
|
1729
1781
|
function isWebKit() {
|
1730
1782
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
1731
1783
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
@@ -1773,23 +1825,26 @@ function getNearestOverflowAncestor(node) {
|
|
1773
1825
|
}
|
1774
1826
|
return getNearestOverflowAncestor(parentNode);
|
1775
1827
|
}
|
1776
|
-
function getOverflowAncestors(node, list) {
|
1828
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
1777
1829
|
var _node$ownerDocument2;
|
1778
1830
|
if (list === void 0) {
|
1779
1831
|
list = [];
|
1780
1832
|
}
|
1833
|
+
if (traverseIframes === void 0) {
|
1834
|
+
traverseIframes = true;
|
1835
|
+
}
|
1781
1836
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
1782
1837
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
1783
1838
|
const win = getWindow(scrollableAncestor);
|
1784
1839
|
if (isBody) {
|
1785
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
1840
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
1786
1841
|
}
|
1787
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
1842
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
1788
1843
|
}
|
1789
1844
|
|
1790
1845
|
|
1791
1846
|
|
1792
|
-
;//
|
1847
|
+
;// ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
1793
1848
|
|
1794
1849
|
|
1795
1850
|
|
@@ -2064,7 +2119,7 @@ function getClippingElementAncestors(element, cache) {
|
|
2064
2119
|
if (cachedResult) {
|
2065
2120
|
return cachedResult;
|
2066
2121
|
}
|
2067
|
-
let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
2122
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
2068
2123
|
let currentContainingBlockComputedStyle = null;
|
2069
2124
|
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
2070
2125
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
@@ -2119,7 +2174,14 @@ function getClippingRect(_ref) {
|
|
2119
2174
|
}
|
2120
2175
|
|
2121
2176
|
function getDimensions(element) {
|
2122
|
-
|
2177
|
+
const {
|
2178
|
+
width,
|
2179
|
+
height
|
2180
|
+
} = getCssDimensions(element);
|
2181
|
+
return {
|
2182
|
+
width,
|
2183
|
+
height
|
2184
|
+
};
|
2123
2185
|
}
|
2124
2186
|
|
2125
2187
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
@@ -2161,17 +2223,6 @@ function getTrueOffsetParent(element, polyfill) {
|
|
2161
2223
|
}
|
2162
2224
|
return element.offsetParent;
|
2163
2225
|
}
|
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
2226
|
|
2176
2227
|
// Gets the closest ancestor positioned element. Handles some edge cases,
|
2177
2228
|
// such as table ancestors and cross browser bugs.
|
@@ -2376,10 +2427,66 @@ function autoUpdate(reference, floating, update, options) {
|
|
2376
2427
|
};
|
2377
2428
|
}
|
2378
2429
|
|
2430
|
+
/**
|
2431
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
2432
|
+
* that has the most space available automatically, without needing to specify a
|
2433
|
+
* preferred placement. Alternative to `flip`.
|
2434
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
2435
|
+
*/
|
2436
|
+
const floating_ui_dom_autoPlacement = autoPlacement;
|
2437
|
+
|
2438
|
+
/**
|
2439
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
2440
|
+
* keep it in view when it will overflow the clipping boundary.
|
2441
|
+
* @see https://floating-ui.com/docs/shift
|
2442
|
+
*/
|
2443
|
+
const floating_ui_dom_shift = shift;
|
2444
|
+
|
2445
|
+
/**
|
2446
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
2447
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
2448
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
2449
|
+
* @see https://floating-ui.com/docs/flip
|
2450
|
+
*/
|
2451
|
+
const floating_ui_dom_flip = flip;
|
2452
|
+
|
2453
|
+
/**
|
2454
|
+
* Provides data that allows you to change the size of the floating element —
|
2455
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
2456
|
+
* width of the reference element.
|
2457
|
+
* @see https://floating-ui.com/docs/size
|
2458
|
+
*/
|
2459
|
+
const floating_ui_dom_size = (/* unused pure expression or super */ null && (size$1));
|
2460
|
+
|
2461
|
+
/**
|
2462
|
+
* Provides data to hide the floating element in applicable situations, such as
|
2463
|
+
* when it is not in the same clipping context as the reference element.
|
2464
|
+
* @see https://floating-ui.com/docs/hide
|
2465
|
+
*/
|
2466
|
+
const floating_ui_dom_hide = hide;
|
2467
|
+
|
2468
|
+
/**
|
2469
|
+
* Provides data to position an inner element of the floating element so that it
|
2470
|
+
* appears centered to the reference element.
|
2471
|
+
* @see https://floating-ui.com/docs/arrow
|
2472
|
+
*/
|
2473
|
+
const floating_ui_dom_arrow = arrow;
|
2474
|
+
|
2475
|
+
/**
|
2476
|
+
* Provides improved positioning for inline reference elements that can span
|
2477
|
+
* over multiple lines, such as hyperlinks or range selections.
|
2478
|
+
* @see https://floating-ui.com/docs/inline
|
2479
|
+
*/
|
2480
|
+
const floating_ui_dom_inline = inline;
|
2481
|
+
|
2482
|
+
/**
|
2483
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
2484
|
+
*/
|
2485
|
+
const floating_ui_dom_limitShift = (/* unused pure expression or super */ null && (limitShift$1));
|
2486
|
+
|
2379
2487
|
/**
|
2380
2488
|
* Computes the `x` and `y` coordinates that will place the floating element
|
2381
|
-
* next to a reference element
|
2382
|
-
* strategy.
|
2489
|
+
* next to a given reference element.
|
2383
2490
|
*/
|
2384
2491
|
const floating_ui_dom_computePosition = (reference, floating, options) => {
|
2385
2492
|
// This caches the expensive `getClippingElementAncestors` function so that
|
@@ -2402,20 +2509,24 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
|
|
2402
2509
|
|
2403
2510
|
|
2404
2511
|
|
2405
|
-
;//
|
2406
|
-
var isElement_x = y => {
|
2407
|
-
var
|
2408
|
-
|
2409
|
-
|
2410
|
-
|
2411
|
-
|
2412
|
-
|
2413
|
-
|
2512
|
+
;// external "lodash/isElement"
|
2513
|
+
var isElement_x = (y) => {
|
2514
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2515
|
+
}
|
2516
|
+
var isElement_y = (x) => (() => (x))
|
2517
|
+
const isElement_namespaceObject = isElement_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"]) });
|
2518
|
+
;// external "lodash/random"
|
2519
|
+
var random_x = (y) => {
|
2520
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2521
|
+
}
|
2522
|
+
var random_y = (x) => (() => (x))
|
2523
|
+
const random_namespaceObject = random_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__["default"]) });
|
2524
|
+
;// ../../node_modules/uuid/dist/esm-browser/native.js
|
2414
2525
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
2415
2526
|
/* harmony default export */ const esm_browser_native = ({
|
2416
2527
|
randomUUID
|
2417
2528
|
});
|
2418
|
-
;//
|
2529
|
+
;// ../../node_modules/uuid/dist/esm-browser/rng.js
|
2419
2530
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
2420
2531
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
2421
2532
|
// generators (like Math.random()).
|
@@ -2434,7 +2545,7 @@ function rng() {
|
|
2434
2545
|
|
2435
2546
|
return getRandomValues(rnds8);
|
2436
2547
|
}
|
2437
|
-
;//
|
2548
|
+
;// ../../node_modules/uuid/dist/esm-browser/stringify.js
|
2438
2549
|
|
2439
2550
|
/**
|
2440
2551
|
* Convert array of 16 byte values to UUID string format of the form:
|
@@ -2468,7 +2579,7 @@ function stringify(arr, offset = 0) {
|
|
2468
2579
|
}
|
2469
2580
|
|
2470
2581
|
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
2471
|
-
;//
|
2582
|
+
;// ../../node_modules/uuid/dist/esm-browser/v4.js
|
2472
2583
|
|
2473
2584
|
|
2474
2585
|
|
@@ -2498,7 +2609,7 @@ function v4(options, buf, offset) {
|
|
2498
2609
|
}
|
2499
2610
|
|
2500
2611
|
/* harmony default export */ const esm_browser_v4 = (v4);
|
2501
|
-
;//
|
2612
|
+
;// ../../packages/popover/src/utils.ts
|
2502
2613
|
/*
|
2503
2614
|
* Tencent is pleased to support the open source community by making
|
2504
2615
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2568,7 +2679,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
2568
2679
|
var random = function random() {
|
2569
2680
|
return "".concat((0,random_namespaceObject["default"])(0, 999999), "_").concat(Date.now(), "_").concat((0,random_namespaceObject["default"])(0, 999999));
|
2570
2681
|
};
|
2571
|
-
;//
|
2682
|
+
;// ../../packages/popover/src/use-floating.tsx
|
2572
2683
|
|
2573
2684
|
|
2574
2685
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -2725,7 +2836,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2725
2836
|
};
|
2726
2837
|
var resolvePopOptions = function resolvePopOptions(elArrow, props) {
|
2727
2838
|
var modifiers = resolveModifiers();
|
2728
|
-
var middleware = [offset(modifiers.offset || props.offset),
|
2839
|
+
var middleware = [offset(modifiers.offset || props.offset), floating_ui_dom_shift({
|
2729
2840
|
padding: props.padding
|
2730
2841
|
})];
|
2731
2842
|
var options = {
|
@@ -2733,17 +2844,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2733
2844
|
middleware: middleware
|
2734
2845
|
};
|
2735
2846
|
if (props.arrow) {
|
2736
|
-
middleware.push(
|
2847
|
+
middleware.push(floating_ui_dom_arrow({
|
2737
2848
|
element: elArrow
|
2738
2849
|
}));
|
2739
2850
|
}
|
2740
2851
|
if (isAutoPlacementAvailable()) {
|
2741
|
-
middleware.push(
|
2852
|
+
middleware.push(floating_ui_dom_autoPlacement());
|
2742
2853
|
}
|
2743
|
-
middleware.unshift(
|
2744
|
-
middleware.push(
|
2854
|
+
middleware.unshift(floating_ui_dom_inline());
|
2855
|
+
middleware.push(floating_ui_dom_flip());
|
2745
2856
|
if (isHideMiddlewareAvailable()) {
|
2746
|
-
options.middleware.push(
|
2857
|
+
options.middleware.push(floating_ui_dom_hide());
|
2747
2858
|
}
|
2748
2859
|
/**
|
2749
2860
|
* 如果是全屏元素或者指定的虚拟元素
|
@@ -3032,7 +3143,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
3032
3143
|
cleanup: cleanup
|
3033
3144
|
};
|
3034
3145
|
});
|
3035
|
-
;//
|
3146
|
+
;// ../../packages/popover/src/use-popper-id.ts
|
3036
3147
|
/*
|
3037
3148
|
* Tencent is pleased to support the open source community by making
|
3038
3149
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3122,7 +3233,7 @@ var parentNodeReferId = null;
|
|
3122
3233
|
getPrefixId: getPrefixId
|
3123
3234
|
};
|
3124
3235
|
});
|
3125
|
-
;//
|
3236
|
+
;// ../../packages/popover/src/use-popover-init.ts
|
3126
3237
|
|
3127
3238
|
/*
|
3128
3239
|
* Tencent is pleased to support the open source community by making
|
@@ -3183,7 +3294,7 @@ var parentNodeReferId = null;
|
|
3183
3294
|
getFullscreenRoot = _useFloating.getFullscreenRoot,
|
3184
3295
|
stopHide = _useFloating.stopHide;
|
3185
3296
|
var resetPopover = function resetPopover() {
|
3186
|
-
cleanup === null || cleanup === void 0
|
3297
|
+
cleanup === null || cleanup === void 0 || cleanup();
|
3187
3298
|
createPopInstance();
|
3188
3299
|
};
|
3189
3300
|
var showFn = function showFn() {
|
@@ -3291,13 +3402,13 @@ var parentNodeReferId = null;
|
|
3291
3402
|
getPrefixId = _usePopperId.getPrefixId;
|
3292
3403
|
var setFullscreenTag = function setFullscreenTag() {
|
3293
3404
|
var _fullScreenTarget$val2;
|
3294
|
-
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0
|
3405
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3295
3406
|
};
|
3296
3407
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3297
3408
|
var _fullScreenTarget$val3, _fullScreenTarget$val4;
|
3298
3409
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3299
3410
|
((_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
|
3411
|
+
element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
|
3301
3412
|
});
|
3302
3413
|
};
|
3303
3414
|
var boundary = (0,external_vue_namespaceObject.ref)();
|
@@ -3382,7 +3493,7 @@ var parentNodeReferId = null;
|
|
3382
3493
|
uniqKey: uniqKey
|
3383
3494
|
};
|
3384
3495
|
});
|
3385
|
-
;//
|
3496
|
+
;// ../../packages/popover/src/popover.tsx
|
3386
3497
|
|
3387
3498
|
/*
|
3388
3499
|
* Tencent is pleased to support the open source community by making
|
@@ -3419,10 +3530,11 @@ var parentNodeReferId = null;
|
|
3419
3530
|
|
3420
3531
|
|
3421
3532
|
|
3533
|
+
|
3422
3534
|
function _isSlot(s) {
|
3423
3535
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
3424
3536
|
}
|
3425
|
-
/* harmony default export */ const popover = (defineComponent({
|
3537
|
+
/* harmony default export */ const popover = ((0,external_vue_namespaceObject.defineComponent)({
|
3426
3538
|
name: 'Popover',
|
3427
3539
|
components: {
|
3428
3540
|
Content: content,
|
@@ -3435,13 +3547,13 @@ function _isSlot(s) {
|
|
3435
3547
|
props: PopoverProps,
|
3436
3548
|
emits: EMIT_EVENT_TYPES,
|
3437
3549
|
setup: function setup(props, ctx) {
|
3438
|
-
var _toRefs = toRefs(props),
|
3550
|
+
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
3439
3551
|
reference = _toRefs.reference;
|
3440
|
-
var refDefaultReference = ref();
|
3441
|
-
var refContent = ref();
|
3442
|
-
var refArrow = ref();
|
3443
|
-
var refRoot = ref();
|
3444
|
-
var refReference = computed(function () {
|
3552
|
+
var refDefaultReference = (0,external_vue_namespaceObject.ref)();
|
3553
|
+
var refContent = (0,external_vue_namespaceObject.ref)();
|
3554
|
+
var refArrow = (0,external_vue_namespaceObject.ref)();
|
3555
|
+
var refRoot = (0,external_vue_namespaceObject.ref)();
|
3556
|
+
var refReference = (0,external_vue_namespaceObject.computed)(function () {
|
3445
3557
|
return reference.value || refDefaultReference.value;
|
3446
3558
|
});
|
3447
3559
|
var _usePopoverInit = use_popover_init(props, ctx, {
|
@@ -3467,7 +3579,7 @@ function _isSlot(s) {
|
|
3467
3579
|
boundary = _usePopoverInit.boundary,
|
3468
3580
|
uniqKey = _usePopoverInit.uniqKey;
|
3469
3581
|
if (!props.always && !props.disabled) {
|
3470
|
-
watch(function () {
|
3582
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
3471
3583
|
return props.isShow;
|
3472
3584
|
}, function () {
|
3473
3585
|
props.isShow ? showPopover() : hidePopover();
|
@@ -3475,7 +3587,7 @@ function _isSlot(s) {
|
|
3475
3587
|
immediate: true
|
3476
3588
|
});
|
3477
3589
|
}
|
3478
|
-
watch(function () {
|
3590
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
3479
3591
|
return [props.disabled];
|
3480
3592
|
}, function (val) {
|
3481
3593
|
if (val[0]) {
|
@@ -3485,15 +3597,15 @@ function _isSlot(s) {
|
|
3485
3597
|
}
|
3486
3598
|
});
|
3487
3599
|
updateBoundary();
|
3488
|
-
onMounted(onMountedFn);
|
3489
|
-
onBeforeUnmount(onUnmountedFn);
|
3490
|
-
var isRenderModeShow = computed(function () {
|
3600
|
+
(0,external_vue_namespaceObject.onMounted)(onMountedFn);
|
3601
|
+
(0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
|
3602
|
+
var isRenderModeShow = (0,external_vue_namespaceObject.computed)(function () {
|
3491
3603
|
return props.renderDirective === 'show';
|
3492
3604
|
});
|
3493
|
-
var transBoundary = computed(function () {
|
3605
|
+
var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
|
3494
3606
|
return isRenderModeShow.value || localIsShow.value && !props.disableTeleport;
|
3495
3607
|
});
|
3496
|
-
var contentIsShow = computed(function () {
|
3608
|
+
var contentIsShow = (0,external_vue_namespaceObject.computed)(function () {
|
3497
3609
|
if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
|
3498
3610
|
return true;
|
3499
3611
|
}
|
@@ -3559,7 +3671,7 @@ function _isSlot(s) {
|
|
3559
3671
|
_this$$slots4;
|
3560
3672
|
var renderReferSlot = function renderReferSlot(slot) {
|
3561
3673
|
var _slot$;
|
3562
|
-
if (Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
3674
|
+
if (external_vue_namespaceObject.Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
3563
3675
|
return (0,external_vue_namespaceObject.createVNode)("span", null, [slot]);
|
3564
3676
|
}
|
3565
3677
|
return slot;
|
@@ -3584,7 +3696,7 @@ function _isSlot(s) {
|
|
3584
3696
|
"default": function _default() {
|
3585
3697
|
return [_slot2];
|
3586
3698
|
}
|
3587
|
-
}), (0,external_vue_namespaceObject.createVNode)(Teleport, {
|
3699
|
+
}), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
|
3588
3700
|
"disabled": !_this.transBoundary,
|
3589
3701
|
"to": _this.boundary
|
3590
3702
|
}, {
|
@@ -3623,7 +3735,7 @@ function _isSlot(s) {
|
|
3623
3735
|
});
|
3624
3736
|
}
|
3625
3737
|
}));
|
3626
|
-
;//
|
3738
|
+
;// ../../packages/popover/src/plugin-popover.tsx
|
3627
3739
|
|
3628
3740
|
|
3629
3741
|
function plugin_popover_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -3692,36 +3804,36 @@ function createPopoverComponent(options) {
|
|
3692
3804
|
var refReference = (0,external_vue_namespaceObject.ref)();
|
3693
3805
|
var show = function show() {
|
3694
3806
|
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
|
3807
|
+
(_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
3808
|
};
|
3697
3809
|
var hide = function hide() {
|
3698
3810
|
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
|
3811
|
+
(_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
3812
|
};
|
3701
3813
|
var stopHide = function stopHide() {
|
3702
3814
|
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
|
3815
|
+
(_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
3816
|
};
|
3705
3817
|
var updateTarget = function updateTarget(target) {
|
3706
3818
|
var _refReference$value4, _refReference$value4$;
|
3707
3819
|
refProps.target = target;
|
3708
|
-
(_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0
|
3820
|
+
(_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
3821
|
};
|
3710
3822
|
var handleContentMouseenter = function handleContentMouseenter() {
|
3711
3823
|
var _resolvedOptions$onCo;
|
3712
|
-
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0
|
3824
|
+
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 || _resolvedOptions$onCo.call(resolvedOptions);
|
3713
3825
|
};
|
3714
3826
|
var handleContentMouseleave = function handleContentMouseleave() {
|
3715
3827
|
var _resolvedOptions$onCo2;
|
3716
|
-
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0
|
3828
|
+
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 || _resolvedOptions$onCo2.call(resolvedOptions);
|
3717
3829
|
};
|
3718
3830
|
var handlePopoverHidden = function handlePopoverHidden() {
|
3719
3831
|
var _resolvedOptions$onHi;
|
3720
|
-
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0
|
3832
|
+
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 || _resolvedOptions$onHi.call(resolvedOptions);
|
3721
3833
|
};
|
3722
3834
|
var handlePopoverShow = function handlePopoverShow() {
|
3723
3835
|
var _resolvedOptions$onSh;
|
3724
|
-
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0
|
3836
|
+
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 || _resolvedOptions$onSh.call(resolvedOptions);
|
3725
3837
|
};
|
3726
3838
|
expose({
|
3727
3839
|
show: show,
|
@@ -3770,7 +3882,7 @@ function createPopoverComponent(options) {
|
|
3770
3882
|
}
|
3771
3883
|
$PopoverInstance.unmount();
|
3772
3884
|
$PopoverInstance = null;
|
3773
|
-
(_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0
|
3885
|
+
(_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 || _$PopoverInstanceEl.remove();
|
3774
3886
|
};
|
3775
3887
|
function close() {
|
3776
3888
|
uninstall();
|
@@ -3781,17 +3893,17 @@ function createPopoverComponent(options) {
|
|
3781
3893
|
install();
|
3782
3894
|
if (target) {
|
3783
3895
|
var _$PopoverInstanceVm;
|
3784
|
-
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0
|
3896
|
+
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.updateTarget(target);
|
3785
3897
|
}
|
3786
|
-
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0
|
3898
|
+
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.show();
|
3787
3899
|
}
|
3788
3900
|
function update(e) {
|
3789
3901
|
var _$PopoverInstanceVm3;
|
3790
|
-
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0
|
3902
|
+
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.updateTarget(e);
|
3791
3903
|
}
|
3792
3904
|
function hide() {
|
3793
3905
|
var _$PopoverInstanceVm4;
|
3794
|
-
(_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0
|
3906
|
+
(_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 || _$PopoverInstanceVm4.hide();
|
3795
3907
|
}
|
3796
3908
|
immediate && install();
|
3797
3909
|
return {
|
@@ -3809,7 +3921,7 @@ function createPopoverComponent(options) {
|
|
3809
3921
|
}
|
3810
3922
|
};
|
3811
3923
|
}
|
3812
|
-
;//
|
3924
|
+
;// ../../packages/popover/src/index.ts
|
3813
3925
|
/**
|
3814
3926
|
* Tencent is pleased to support the open source community by making
|
3815
3927
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|