bkui-vue 2.0.1 → 2.0.2-beta.10
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 +23 -23
- package/dist/index.esm.js +5684 -5650
- package/dist/index.umd.js +27 -27
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/index.js +1669 -181
- package/lib/color-picker/index.js +1613 -170
- package/lib/components.d.ts +1 -2
- package/lib/components.js +1 -2
- package/lib/date-picker/date-picker.css +220 -4
- package/lib/date-picker/date-picker.less +5 -5
- package/lib/date-picker/date-picker.variable.css +237 -21
- package/lib/date-picker/index.js +1882 -470
- package/lib/directives/index.js +228 -111
- package/lib/form/index.js +1570 -162
- package/lib/image/index.js +1468 -164
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -2
- package/lib/input/index.js +1301 -13
- package/lib/pop-confirm/index.d.ts +16 -2
- package/lib/pop-confirm/index.js +13 -5
- package/lib/pop-confirm/pop-confirm.d.ts +5 -1
- package/lib/popover/index.js +1356 -68
- package/lib/search-select/index.js +1329 -108
- package/lib/select/index.js +1237 -16
- package/lib/slider/index.js +2 -1
- package/lib/tab/index.js +1277 -10
- package/lib/table/index.js +1346 -125
- package/lib/tag-input/index.js +1278 -16
- package/lib/tree/index.d.ts +4 -0
- package/lib/tree/index.js +47 -23
- package/lib/tree/props.d.ts +1 -0
- package/lib/tree/tree.css +18 -0
- package/lib/tree/tree.d.ts +2 -0
- package/lib/tree/tree.less +24 -0
- package/lib/tree/tree.variable.css +18 -0
- package/lib/tree/use-node-action.d.ts +1 -1
- package/package.json +1 -1
- package/lib/plugin-popover/index.d.ts +0 -27
- package/lib/plugin-popover/index.js +0 -65
- package/lib/plugins/index.d.ts +0 -1
- package/lib/plugins/index.js +0 -64
package/lib/table/index.js
CHANGED
@@ -4,7 +4,10 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../sh
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
7
|
-
import * as
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
8
11
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
9
12
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
|
10
13
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
@@ -22,7 +25,6 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../
|
|
22
25
|
import "../checkbox/checkbox.less";
|
23
26
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
24
27
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEmpty_e109fd6b__ from "lodash/isEmpty";
|
25
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
26
28
|
import "../popover/popover.less";
|
27
29
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__ from "../button";
|
28
30
|
import "../button/button.less";
|
@@ -31,6 +33,611 @@ import "../input/input.less";
|
|
31
33
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__ from "../icon/";
|
32
34
|
/******/ var __webpack_modules__ = ({
|
33
35
|
|
36
|
+
/***/ 2439:
|
37
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
38
|
+
|
39
|
+
module.exports = __webpack_require__(2527);
|
40
|
+
|
41
|
+
|
42
|
+
/***/ }),
|
43
|
+
|
44
|
+
/***/ 7430:
|
45
|
+
/***/ ((module) => {
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Copyright (c) 2015, Facebook, Inc.
|
49
|
+
* All rights reserved.
|
50
|
+
*
|
51
|
+
* This source code is licensed under the BSD-style license found in the
|
52
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
53
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
54
|
+
*
|
55
|
+
* @providesModule ExecutionEnvironment
|
56
|
+
*/
|
57
|
+
|
58
|
+
/*jslint evil: true */
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
var canUseDOM = !!(
|
63
|
+
typeof window !== 'undefined' &&
|
64
|
+
window.document &&
|
65
|
+
window.document.createElement
|
66
|
+
);
|
67
|
+
|
68
|
+
/**
|
69
|
+
* Simple, lightweight module assisting with the detection and context of
|
70
|
+
* Worker. Helps avoid circular dependencies and allows code to reason about
|
71
|
+
* whether or not they are in a Worker, even if they never include the main
|
72
|
+
* `ReactWorker` dependency.
|
73
|
+
*/
|
74
|
+
var ExecutionEnvironment = {
|
75
|
+
|
76
|
+
canUseDOM: canUseDOM,
|
77
|
+
|
78
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
79
|
+
|
80
|
+
canUseEventListeners:
|
81
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
82
|
+
|
83
|
+
canUseViewport: canUseDOM && !!window.screen,
|
84
|
+
|
85
|
+
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
86
|
+
|
87
|
+
};
|
88
|
+
|
89
|
+
module.exports = ExecutionEnvironment;
|
90
|
+
|
91
|
+
|
92
|
+
/***/ }),
|
93
|
+
|
94
|
+
/***/ 6377:
|
95
|
+
/***/ ((module) => {
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Copyright 2004-present Facebook. All Rights Reserved.
|
99
|
+
*
|
100
|
+
* @providesModule UserAgent_DEPRECATED
|
101
|
+
*/
|
102
|
+
|
103
|
+
/**
|
104
|
+
* Provides entirely client-side User Agent and OS detection. You should prefer
|
105
|
+
* the non-deprecated UserAgent module when possible, which exposes our
|
106
|
+
* authoritative server-side PHP-based detection to the client.
|
107
|
+
*
|
108
|
+
* Usage is straightforward:
|
109
|
+
*
|
110
|
+
* if (UserAgent_DEPRECATED.ie()) {
|
111
|
+
* // IE
|
112
|
+
* }
|
113
|
+
*
|
114
|
+
* You can also do version checks:
|
115
|
+
*
|
116
|
+
* if (UserAgent_DEPRECATED.ie() >= 7) {
|
117
|
+
* // IE7 or better
|
118
|
+
* }
|
119
|
+
*
|
120
|
+
* The browser functions will return NaN if the browser does not match, so
|
121
|
+
* you can also do version compares the other way:
|
122
|
+
*
|
123
|
+
* if (UserAgent_DEPRECATED.ie() < 7) {
|
124
|
+
* // IE6 or worse
|
125
|
+
* }
|
126
|
+
*
|
127
|
+
* Note that the version is a float and may include a minor version number,
|
128
|
+
* so you should always use range operators to perform comparisons, not
|
129
|
+
* strict equality.
|
130
|
+
*
|
131
|
+
* **Note:** You should **strongly** prefer capability detection to browser
|
132
|
+
* version detection where it's reasonable:
|
133
|
+
*
|
134
|
+
* http://www.quirksmode.org/js/support.html
|
135
|
+
*
|
136
|
+
* Further, we have a large number of mature wrapper functions and classes
|
137
|
+
* which abstract away many browser irregularities. Check the documentation,
|
138
|
+
* grep for things, or ask on javascript@lists.facebook.com before writing yet
|
139
|
+
* another copy of "event || window.event".
|
140
|
+
*
|
141
|
+
*/
|
142
|
+
|
143
|
+
var _populated = false;
|
144
|
+
|
145
|
+
// Browsers
|
146
|
+
var _ie, _firefox, _opera, _webkit, _chrome;
|
147
|
+
|
148
|
+
// Actual IE browser for compatibility mode
|
149
|
+
var _ie_real_version;
|
150
|
+
|
151
|
+
// Platforms
|
152
|
+
var _osx, _windows, _linux, _android;
|
153
|
+
|
154
|
+
// Architectures
|
155
|
+
var _win64;
|
156
|
+
|
157
|
+
// Devices
|
158
|
+
var _iphone, _ipad, _native;
|
159
|
+
|
160
|
+
var _mobile;
|
161
|
+
|
162
|
+
function _populate() {
|
163
|
+
if (_populated) {
|
164
|
+
return;
|
165
|
+
}
|
166
|
+
|
167
|
+
_populated = true;
|
168
|
+
|
169
|
+
// To work around buggy JS libraries that can't handle multi-digit
|
170
|
+
// version numbers, Opera 10's user agent string claims it's Opera
|
171
|
+
// 9, then later includes a Version/X.Y field:
|
172
|
+
//
|
173
|
+
// Opera/9.80 (foo) Presto/2.2.15 Version/10.10
|
174
|
+
var uas = navigator.userAgent;
|
175
|
+
var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
|
176
|
+
var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
|
177
|
+
|
178
|
+
_iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
|
179
|
+
_ipad = /\b(iP[ao]d)/.exec(uas);
|
180
|
+
_android = /Android/i.exec(uas);
|
181
|
+
_native = /FBAN\/\w+;/i.exec(uas);
|
182
|
+
_mobile = /Mobile/i.exec(uas);
|
183
|
+
|
184
|
+
// Note that the IE team blog would have you believe you should be checking
|
185
|
+
// for 'Win64; x64'. But MSDN then reveals that you can actually be coming
|
186
|
+
// from either x64 or ia64; so ultimately, you should just check for Win64
|
187
|
+
// as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
|
188
|
+
// Windows will send 'WOW64' instead.
|
189
|
+
_win64 = !!(/Win64/.exec(uas));
|
190
|
+
|
191
|
+
if (agent) {
|
192
|
+
_ie = agent[1] ? parseFloat(agent[1]) : (
|
193
|
+
agent[5] ? parseFloat(agent[5]) : NaN);
|
194
|
+
// IE compatibility mode
|
195
|
+
if (_ie && document && document.documentMode) {
|
196
|
+
_ie = document.documentMode;
|
197
|
+
}
|
198
|
+
// grab the "true" ie version from the trident token if available
|
199
|
+
var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
|
200
|
+
_ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
|
201
|
+
|
202
|
+
_firefox = agent[2] ? parseFloat(agent[2]) : NaN;
|
203
|
+
_opera = agent[3] ? parseFloat(agent[3]) : NaN;
|
204
|
+
_webkit = agent[4] ? parseFloat(agent[4]) : NaN;
|
205
|
+
if (_webkit) {
|
206
|
+
// We do not add the regexp to the above test, because it will always
|
207
|
+
// match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
|
208
|
+
// the userAgent string.
|
209
|
+
agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
|
210
|
+
_chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
|
211
|
+
} else {
|
212
|
+
_chrome = NaN;
|
213
|
+
}
|
214
|
+
} else {
|
215
|
+
_ie = _firefox = _opera = _chrome = _webkit = NaN;
|
216
|
+
}
|
217
|
+
|
218
|
+
if (os) {
|
219
|
+
if (os[1]) {
|
220
|
+
// Detect OS X version. If no version number matches, set _osx to true.
|
221
|
+
// Version examples: 10, 10_6_1, 10.7
|
222
|
+
// Parses version number as a float, taking only first two sets of
|
223
|
+
// digits. If only one set of digits is found, returns just the major
|
224
|
+
// version number.
|
225
|
+
var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
|
226
|
+
|
227
|
+
_osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
|
228
|
+
} else {
|
229
|
+
_osx = false;
|
230
|
+
}
|
231
|
+
_windows = !!os[2];
|
232
|
+
_linux = !!os[3];
|
233
|
+
} else {
|
234
|
+
_osx = _windows = _linux = false;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
|
238
|
+
var UserAgent_DEPRECATED = {
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Check if the UA is Internet Explorer.
|
242
|
+
*
|
243
|
+
*
|
244
|
+
* @return float|NaN Version number (if match) or NaN.
|
245
|
+
*/
|
246
|
+
ie: function() {
|
247
|
+
return _populate() || _ie;
|
248
|
+
},
|
249
|
+
|
250
|
+
/**
|
251
|
+
* Check if we're in Internet Explorer compatibility mode.
|
252
|
+
*
|
253
|
+
* @return bool true if in compatibility mode, false if
|
254
|
+
* not compatibility mode or not ie
|
255
|
+
*/
|
256
|
+
ieCompatibilityMode: function() {
|
257
|
+
return _populate() || (_ie_real_version > _ie);
|
258
|
+
},
|
259
|
+
|
260
|
+
|
261
|
+
/**
|
262
|
+
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
263
|
+
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
264
|
+
* this when we don't need it -- tracked by #601957.
|
265
|
+
*/
|
266
|
+
ie64: function() {
|
267
|
+
return UserAgent_DEPRECATED.ie() && _win64;
|
268
|
+
},
|
269
|
+
|
270
|
+
/**
|
271
|
+
* Check if the UA is Firefox.
|
272
|
+
*
|
273
|
+
*
|
274
|
+
* @return float|NaN Version number (if match) or NaN.
|
275
|
+
*/
|
276
|
+
firefox: function() {
|
277
|
+
return _populate() || _firefox;
|
278
|
+
},
|
279
|
+
|
280
|
+
|
281
|
+
/**
|
282
|
+
* Check if the UA is Opera.
|
283
|
+
*
|
284
|
+
*
|
285
|
+
* @return float|NaN Version number (if match) or NaN.
|
286
|
+
*/
|
287
|
+
opera: function() {
|
288
|
+
return _populate() || _opera;
|
289
|
+
},
|
290
|
+
|
291
|
+
|
292
|
+
/**
|
293
|
+
* Check if the UA is WebKit.
|
294
|
+
*
|
295
|
+
*
|
296
|
+
* @return float|NaN Version number (if match) or NaN.
|
297
|
+
*/
|
298
|
+
webkit: function() {
|
299
|
+
return _populate() || _webkit;
|
300
|
+
},
|
301
|
+
|
302
|
+
/**
|
303
|
+
* For Push
|
304
|
+
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
305
|
+
*/
|
306
|
+
safari: function() {
|
307
|
+
return UserAgent_DEPRECATED.webkit();
|
308
|
+
},
|
309
|
+
|
310
|
+
/**
|
311
|
+
* Check if the UA is a Chrome browser.
|
312
|
+
*
|
313
|
+
*
|
314
|
+
* @return float|NaN Version number (if match) or NaN.
|
315
|
+
*/
|
316
|
+
chrome : function() {
|
317
|
+
return _populate() || _chrome;
|
318
|
+
},
|
319
|
+
|
320
|
+
|
321
|
+
/**
|
322
|
+
* Check if the user is running Windows.
|
323
|
+
*
|
324
|
+
* @return bool `true' if the user's OS is Windows.
|
325
|
+
*/
|
326
|
+
windows: function() {
|
327
|
+
return _populate() || _windows;
|
328
|
+
},
|
329
|
+
|
330
|
+
|
331
|
+
/**
|
332
|
+
* Check if the user is running Mac OS X.
|
333
|
+
*
|
334
|
+
* @return float|bool Returns a float if a version number is detected,
|
335
|
+
* otherwise true/false.
|
336
|
+
*/
|
337
|
+
osx: function() {
|
338
|
+
return _populate() || _osx;
|
339
|
+
},
|
340
|
+
|
341
|
+
/**
|
342
|
+
* Check if the user is running Linux.
|
343
|
+
*
|
344
|
+
* @return bool `true' if the user's OS is some flavor of Linux.
|
345
|
+
*/
|
346
|
+
linux: function() {
|
347
|
+
return _populate() || _linux;
|
348
|
+
},
|
349
|
+
|
350
|
+
/**
|
351
|
+
* Check if the user is running on an iPhone or iPod platform.
|
352
|
+
*
|
353
|
+
* @return bool `true' if the user is running some flavor of the
|
354
|
+
* iPhone OS.
|
355
|
+
*/
|
356
|
+
iphone: function() {
|
357
|
+
return _populate() || _iphone;
|
358
|
+
},
|
359
|
+
|
360
|
+
mobile: function() {
|
361
|
+
return _populate() || (_iphone || _ipad || _android || _mobile);
|
362
|
+
},
|
363
|
+
|
364
|
+
nativeApp: function() {
|
365
|
+
// webviews inside of the native apps
|
366
|
+
return _populate() || _native;
|
367
|
+
},
|
368
|
+
|
369
|
+
android: function() {
|
370
|
+
return _populate() || _android;
|
371
|
+
},
|
372
|
+
|
373
|
+
ipad: function() {
|
374
|
+
return _populate() || _ipad;
|
375
|
+
}
|
376
|
+
};
|
377
|
+
|
378
|
+
module.exports = UserAgent_DEPRECATED;
|
379
|
+
|
380
|
+
|
381
|
+
/***/ }),
|
382
|
+
|
383
|
+
/***/ 3541:
|
384
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
385
|
+
|
386
|
+
/**
|
387
|
+
* Copyright 2013-2015, Facebook, Inc.
|
388
|
+
* All rights reserved.
|
389
|
+
*
|
390
|
+
* This source code is licensed under the BSD-style license found in the
|
391
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
392
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
393
|
+
*
|
394
|
+
* @providesModule isEventSupported
|
395
|
+
*/
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
var ExecutionEnvironment = __webpack_require__(7430);
|
400
|
+
|
401
|
+
var useHasFeature;
|
402
|
+
if (ExecutionEnvironment.canUseDOM) {
|
403
|
+
useHasFeature =
|
404
|
+
document.implementation &&
|
405
|
+
document.implementation.hasFeature &&
|
406
|
+
// always returns true in newer browsers as per the standard.
|
407
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
408
|
+
document.implementation.hasFeature('', '') !== true;
|
409
|
+
}
|
410
|
+
|
411
|
+
/**
|
412
|
+
* Checks if an event is supported in the current execution environment.
|
413
|
+
*
|
414
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
415
|
+
* `reset`, `load`, `error`, and `select`.
|
416
|
+
*
|
417
|
+
* Borrows from Modernizr.
|
418
|
+
*
|
419
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
420
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
421
|
+
* @return {boolean} True if the event is supported.
|
422
|
+
* @internal
|
423
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
424
|
+
*/
|
425
|
+
function isEventSupported(eventNameSuffix, capture) {
|
426
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
427
|
+
capture && !('addEventListener' in document)) {
|
428
|
+
return false;
|
429
|
+
}
|
430
|
+
|
431
|
+
var eventName = 'on' + eventNameSuffix;
|
432
|
+
var isSupported = eventName in document;
|
433
|
+
|
434
|
+
if (!isSupported) {
|
435
|
+
var element = document.createElement('div');
|
436
|
+
element.setAttribute(eventName, 'return;');
|
437
|
+
isSupported = typeof element[eventName] === 'function';
|
438
|
+
}
|
439
|
+
|
440
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
441
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
442
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
443
|
+
}
|
444
|
+
|
445
|
+
return isSupported;
|
446
|
+
}
|
447
|
+
|
448
|
+
module.exports = isEventSupported;
|
449
|
+
|
450
|
+
|
451
|
+
/***/ }),
|
452
|
+
|
453
|
+
/***/ 2527:
|
454
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
455
|
+
|
456
|
+
/**
|
457
|
+
* Copyright (c) 2015, Facebook, Inc.
|
458
|
+
* All rights reserved.
|
459
|
+
*
|
460
|
+
* This source code is licensed under the BSD-style license found in the
|
461
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
462
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
463
|
+
*
|
464
|
+
* @providesModule normalizeWheel
|
465
|
+
* @typechecks
|
466
|
+
*/
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
var UserAgent_DEPRECATED = __webpack_require__(6377);
|
471
|
+
|
472
|
+
var isEventSupported = __webpack_require__(3541);
|
473
|
+
|
474
|
+
|
475
|
+
// Reasonable defaults
|
476
|
+
var PIXEL_STEP = 10;
|
477
|
+
var LINE_HEIGHT = 40;
|
478
|
+
var PAGE_HEIGHT = 800;
|
479
|
+
|
480
|
+
/**
|
481
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
482
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
483
|
+
* your questions.
|
484
|
+
*
|
485
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
486
|
+
* like your bestest friend. * hugs *
|
487
|
+
*
|
488
|
+
* As of today, there are 4 DOM event types you can listen to:
|
489
|
+
*
|
490
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
491
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
492
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
493
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
494
|
+
*
|
495
|
+
* So what to do? The is the best:
|
496
|
+
*
|
497
|
+
* normalizeWheel.getEventType();
|
498
|
+
*
|
499
|
+
* In your event callback, use this code to get sane interpretation of the
|
500
|
+
* deltas. This code will return an object with properties:
|
501
|
+
*
|
502
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
503
|
+
* spinY -- " - y plane
|
504
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
505
|
+
* pixelY -- " - y plane
|
506
|
+
*
|
507
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
508
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
509
|
+
* significantly on different platforms and browsers, forgetting that you can
|
510
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
511
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
512
|
+
* linear speed or acceleration.
|
513
|
+
*
|
514
|
+
* This code does its best to normalize the deltas for you:
|
515
|
+
*
|
516
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
517
|
+
* dragged). This is super useful for zoom support where you want to
|
518
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
519
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
520
|
+
* resolve a single slow step on a wheel to 1.
|
521
|
+
*
|
522
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
523
|
+
* get the crazy differences between browsers, but at least it'll be in
|
524
|
+
* pixels!
|
525
|
+
*
|
526
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
527
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
528
|
+
* This matches the newer 'wheel' event.
|
529
|
+
*
|
530
|
+
* Why are there spinX, spinY (or pixels)?
|
531
|
+
*
|
532
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
533
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
534
|
+
*
|
535
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
536
|
+
*
|
537
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
538
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
539
|
+
* you know.
|
540
|
+
*
|
541
|
+
* Implementation info:
|
542
|
+
*
|
543
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
544
|
+
* average mouse:
|
545
|
+
*
|
546
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
547
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
548
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
549
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
550
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
551
|
+
*
|
552
|
+
* On the trackpad:
|
553
|
+
*
|
554
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
555
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
556
|
+
*
|
557
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
558
|
+
* also missing delta values.
|
559
|
+
*
|
560
|
+
* The 'wheel' event is more standard:
|
561
|
+
*
|
562
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
563
|
+
*
|
564
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
565
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
566
|
+
* backward compatibility with older events. Those other values help us
|
567
|
+
* better normalize spin speed. Example of what the browsers provide:
|
568
|
+
*
|
569
|
+
* | event.wheelDelta | event.detail
|
570
|
+
* ------------------+------------------+--------------
|
571
|
+
* Safari v5/OS X | -120 | 0
|
572
|
+
* Safari v5/Win7 | -120 | 0
|
573
|
+
* Chrome v17/OS X | -120 | 0
|
574
|
+
* Chrome v17/Win7 | -120 | 0
|
575
|
+
* IE9/Win7 | -120 | undefined
|
576
|
+
* Firefox v4/OS X | undefined | 1
|
577
|
+
* Firefox v4/Win7 | undefined | 3
|
578
|
+
*
|
579
|
+
*/
|
580
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
581
|
+
var sX = 0, sY = 0, // spinX, spinY
|
582
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
583
|
+
|
584
|
+
// Legacy
|
585
|
+
if ('detail' in event) { sY = event.detail; }
|
586
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
587
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
588
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
589
|
+
|
590
|
+
// side scrolling on FF with DOMMouseScroll
|
591
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
592
|
+
sX = sY;
|
593
|
+
sY = 0;
|
594
|
+
}
|
595
|
+
|
596
|
+
pX = sX * PIXEL_STEP;
|
597
|
+
pY = sY * PIXEL_STEP;
|
598
|
+
|
599
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
600
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
601
|
+
|
602
|
+
if ((pX || pY) && event.deltaMode) {
|
603
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
604
|
+
pX *= LINE_HEIGHT;
|
605
|
+
pY *= LINE_HEIGHT;
|
606
|
+
} else { // delta in PAGE units
|
607
|
+
pX *= PAGE_HEIGHT;
|
608
|
+
pY *= PAGE_HEIGHT;
|
609
|
+
}
|
610
|
+
}
|
611
|
+
|
612
|
+
// Fall-back if spin cannot be determined
|
613
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
614
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
615
|
+
|
616
|
+
return { spinX : sX,
|
617
|
+
spinY : sY,
|
618
|
+
pixelX : pX,
|
619
|
+
pixelY : pY };
|
620
|
+
}
|
621
|
+
|
622
|
+
|
623
|
+
/**
|
624
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
625
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
626
|
+
* 'wheel' event, making spin speed determination impossible.
|
627
|
+
*/
|
628
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
629
|
+
return (UserAgent_DEPRECATED.firefox())
|
630
|
+
? 'DOMMouseScroll'
|
631
|
+
: (isEventSupported('wheel'))
|
632
|
+
? 'wheel'
|
633
|
+
: 'mousewheel';
|
634
|
+
};
|
635
|
+
|
636
|
+
module.exports = normalizeWheel;
|
637
|
+
|
638
|
+
|
639
|
+
/***/ }),
|
640
|
+
|
34
641
|
/***/ 7609:
|
35
642
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
36
643
|
|
@@ -462,7 +1069,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
462
1069
|
;// CONCATENATED MODULE: external "../shared"
|
463
1070
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
464
1071
|
var y = x => () => x
|
465
|
-
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["throttle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.throttle, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
1072
|
+
const shared_namespaceObject = x({ ["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, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["throttle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.throttle, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
466
1073
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
|
467
1074
|
function _objectDestructuringEmpty(obj) {
|
468
1075
|
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
@@ -470,7 +1077,7 @@ function _objectDestructuringEmpty(obj) {
|
|
470
1077
|
;// CONCATENATED MODULE: external "vue"
|
471
1078
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
472
1079
|
var external_vue_y = x => () => x
|
473
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isRef, ["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, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
1080
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isRef, ["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, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
474
1081
|
;// CONCATENATED MODULE: external "lodash/isEqual"
|
475
1082
|
var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
476
1083
|
var isEqual_y = x => () => x
|
@@ -1085,8 +1692,353 @@ var tableProps = {
|
|
1085
1692
|
}
|
1086
1693
|
})
|
1087
1694
|
};
|
1088
|
-
;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
|
1089
|
-
|
1695
|
+
;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
|
1696
|
+
|
1697
|
+
/*
|
1698
|
+
* Tencent is pleased to support the open source community by making
|
1699
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1700
|
+
*
|
1701
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1702
|
+
*
|
1703
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1704
|
+
*
|
1705
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1706
|
+
*
|
1707
|
+
* ---------------------------------------------------
|
1708
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1709
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1710
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1711
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1712
|
+
*
|
1713
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1714
|
+
* the Software.
|
1715
|
+
*
|
1716
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1717
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1718
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1719
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1720
|
+
* IN THE SOFTWARE.
|
1721
|
+
*/
|
1722
|
+
|
1723
|
+
|
1724
|
+
|
1725
|
+
|
1726
|
+
|
1727
|
+
var TableColumnProp = {
|
1728
|
+
label: LabelFunctionStringType,
|
1729
|
+
field: LabelFunctionStringType,
|
1730
|
+
render: RenderFunctionStringType,
|
1731
|
+
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
1732
|
+
minWidth: StringNumberType(COL_MIN_WIDTH),
|
1733
|
+
columnKey: shared_namespaceObject.PropTypes.string.def(''),
|
1734
|
+
showOverflowTooltip: IOverflowTooltipPropType,
|
1735
|
+
type: columnType,
|
1736
|
+
resizable: shared_namespaceObject.PropTypes.bool.def(true),
|
1737
|
+
fixed: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, fixedType]).def(false),
|
1738
|
+
sort: ISortType,
|
1739
|
+
filter: IFilterType,
|
1740
|
+
colspan: SpanFunctionStringType.def(1),
|
1741
|
+
rowspan: SpanFunctionStringType.def(1),
|
1742
|
+
align: TableAlign,
|
1743
|
+
className: RowClassFunctionStringType,
|
1744
|
+
prop: LabelFunctionStringType,
|
1745
|
+
index: shared_namespaceObject.PropTypes.number.def(undefined)
|
1746
|
+
};
|
1747
|
+
/* harmony default export */ const table_column = ((0,external_vue_namespaceObject.defineComponent)({
|
1748
|
+
name: 'TableColumn',
|
1749
|
+
props: TableColumnProp,
|
1750
|
+
setup: function setup(props, _ref) {
|
1751
|
+
_objectDestructuringEmpty(_ref);
|
1752
|
+
var initTableColumns = (0,external_vue_namespaceObject.inject)(PROVIDE_KEY_INIT_COL, function () {});
|
1753
|
+
var lastPropsVal = {};
|
1754
|
+
var isPropsEqual = function isPropsEqual(sorce, target) {
|
1755
|
+
var rawProps = (0,external_vue_namespaceObject.toRaw)(target);
|
1756
|
+
var keys = Object.keys(rawProps);
|
1757
|
+
return keys.every(function (key) {
|
1758
|
+
if (typeof rawProps[key] === 'function') {
|
1759
|
+
return sorce[key] !== undefined;
|
1760
|
+
}
|
1761
|
+
if (key === 'children') {
|
1762
|
+
return true;
|
1763
|
+
}
|
1764
|
+
return (0,isEqual_namespaceObject["default"])(sorce[key], target[key]);
|
1765
|
+
});
|
1766
|
+
};
|
1767
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
1768
|
+
return [props];
|
1769
|
+
}, function () {
|
1770
|
+
if (!isPropsEqual(lastPropsVal, props)) {
|
1771
|
+
initTableColumns();
|
1772
|
+
Object.assign(lastPropsVal, (0,external_vue_namespaceObject.toRaw)(props));
|
1773
|
+
}
|
1774
|
+
}, {
|
1775
|
+
immediate: true,
|
1776
|
+
deep: true
|
1777
|
+
});
|
1778
|
+
(0,external_vue_namespaceObject.onUnmounted)(function () {
|
1779
|
+
initTableColumns();
|
1780
|
+
});
|
1781
|
+
},
|
1782
|
+
render: function render() {
|
1783
|
+
try {
|
1784
|
+
var _this$$slots$default, _this$$slots;
|
1785
|
+
var renderDefault = (_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots, {
|
1786
|
+
row: {},
|
1787
|
+
column: {},
|
1788
|
+
$index: -1
|
1789
|
+
});
|
1790
|
+
var children = [renderDefault];
|
1791
|
+
var vnode = (0,external_vue_namespaceObject.h)('div', children);
|
1792
|
+
return vnode;
|
1793
|
+
} catch (_unused) {
|
1794
|
+
return (0,external_vue_namespaceObject.h)('div', []);
|
1795
|
+
}
|
1796
|
+
}
|
1797
|
+
}));
|
1798
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
1799
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
1800
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
1801
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
1802
|
+
/*
|
1803
|
+
* Tencent is pleased to support the open source community by making
|
1804
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1805
|
+
*
|
1806
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1807
|
+
*
|
1808
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1809
|
+
*
|
1810
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1811
|
+
*
|
1812
|
+
* ---------------------------------------------------
|
1813
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1814
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1815
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1816
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1817
|
+
*
|
1818
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1819
|
+
* the Software.
|
1820
|
+
*
|
1821
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1822
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1823
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1824
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1825
|
+
* IN THE SOFTWARE.
|
1826
|
+
*/
|
1827
|
+
var isElement = function isElement(e) {
|
1828
|
+
if (typeof Element === 'undefined') return false;
|
1829
|
+
return e instanceof Element;
|
1830
|
+
};
|
1831
|
+
var nodeList = new Map();
|
1832
|
+
var startClick;
|
1833
|
+
document.addEventListener('mousedown', function (e) {
|
1834
|
+
return startClick = e;
|
1835
|
+
});
|
1836
|
+
document.addEventListener('mouseup', function (e) {
|
1837
|
+
var _iterator = _createForOfIteratorHelper(nodeList.values()),
|
1838
|
+
_step;
|
1839
|
+
try {
|
1840
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
1841
|
+
var handlers = _step.value;
|
1842
|
+
var _iterator2 = _createForOfIteratorHelper(handlers),
|
1843
|
+
_step2;
|
1844
|
+
try {
|
1845
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
1846
|
+
var documentHandler = _step2.value.documentHandler;
|
1847
|
+
documentHandler(e, startClick);
|
1848
|
+
}
|
1849
|
+
} catch (err) {
|
1850
|
+
_iterator2.e(err);
|
1851
|
+
} finally {
|
1852
|
+
_iterator2.f();
|
1853
|
+
}
|
1854
|
+
}
|
1855
|
+
} catch (err) {
|
1856
|
+
_iterator.e(err);
|
1857
|
+
} finally {
|
1858
|
+
_iterator.f();
|
1859
|
+
}
|
1860
|
+
});
|
1861
|
+
function createDocumentHandler(el, binding) {
|
1862
|
+
var excludes = [];
|
1863
|
+
if (Array.isArray(binding.arg)) {
|
1864
|
+
excludes = binding.arg;
|
1865
|
+
} else if (isElement(binding.arg)) {
|
1866
|
+
excludes.push(binding.arg);
|
1867
|
+
}
|
1868
|
+
return function (mouseup, mousedown) {
|
1869
|
+
var popperRef = binding.instance.popperRef;
|
1870
|
+
var mouseUpTarget = mouseup.target;
|
1871
|
+
var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
|
1872
|
+
var isBound = !binding || !binding.instance;
|
1873
|
+
var isTargetExists = !mouseUpTarget || !mouseDownTarget;
|
1874
|
+
var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
|
1875
|
+
var isSelf = el === mouseUpTarget;
|
1876
|
+
var isTargetExcluded = excludes.length && excludes.some(function (item) {
|
1877
|
+
return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
|
1878
|
+
}) || excludes.length && excludes.includes(mouseDownTarget);
|
1879
|
+
var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
|
1880
|
+
if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
|
1881
|
+
return;
|
1882
|
+
}
|
1883
|
+
binding.value(mouseup, mousedown);
|
1884
|
+
};
|
1885
|
+
}
|
1886
|
+
var ClickOutside = {
|
1887
|
+
beforeMount: function beforeMount(el, binding) {
|
1888
|
+
if (!nodeList.has(el)) {
|
1889
|
+
nodeList.set(el, []);
|
1890
|
+
}
|
1891
|
+
nodeList.get(el).push({
|
1892
|
+
documentHandler: createDocumentHandler(el, binding),
|
1893
|
+
bindingFn: binding.value
|
1894
|
+
});
|
1895
|
+
},
|
1896
|
+
updated: function updated(el, binding) {
|
1897
|
+
if (!nodeList.has(el)) {
|
1898
|
+
nodeList.set(el, []);
|
1899
|
+
}
|
1900
|
+
var handlers = nodeList.get(el);
|
1901
|
+
var oldHandlerIndex = handlers.findIndex(function (item) {
|
1902
|
+
return item.bindingFn === binding.oldValue;
|
1903
|
+
});
|
1904
|
+
var newHandler = {
|
1905
|
+
documentHandler: createDocumentHandler(el, binding),
|
1906
|
+
bindingFn: binding.value
|
1907
|
+
};
|
1908
|
+
if (oldHandlerIndex >= 0) {
|
1909
|
+
// replace the old handler to the new handler
|
1910
|
+
handlers.splice(oldHandlerIndex, 1, newHandler);
|
1911
|
+
} else {
|
1912
|
+
handlers.push(newHandler);
|
1913
|
+
}
|
1914
|
+
},
|
1915
|
+
unmounted: function unmounted(el) {
|
1916
|
+
// remove all listeners when a component unmounted
|
1917
|
+
nodeList["delete"](el);
|
1918
|
+
}
|
1919
|
+
};
|
1920
|
+
ClickOutside.install = function (app) {
|
1921
|
+
app.directive('bkTooltips', ClickOutside);
|
1922
|
+
};
|
1923
|
+
/* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
|
1924
|
+
;// CONCATENATED MODULE: external "../popover"
|
1925
|
+
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1926
|
+
var popover_y = x => () => x
|
1927
|
+
const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
1928
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
|
1929
|
+
|
1930
|
+
/*
|
1931
|
+
* Tencent is pleased to support the open source community by making
|
1932
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1933
|
+
*
|
1934
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1935
|
+
*
|
1936
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1937
|
+
*
|
1938
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1939
|
+
*
|
1940
|
+
* ---------------------------------------------------
|
1941
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1942
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1943
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1944
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1945
|
+
*
|
1946
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1947
|
+
* the Software.
|
1948
|
+
*
|
1949
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1950
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1951
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1952
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1953
|
+
* IN THE SOFTWARE.
|
1954
|
+
*/
|
1955
|
+
|
1956
|
+
var resolveOptions = function resolveOptions(el, binding) {
|
1957
|
+
var options = {
|
1958
|
+
content: '',
|
1959
|
+
target: el
|
1960
|
+
};
|
1961
|
+
if (typeof_typeof(binding) === 'object') {
|
1962
|
+
Object.assign(options, binding);
|
1963
|
+
if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
|
1964
|
+
Object.assign(options, binding.popoverOption);
|
1965
|
+
}
|
1966
|
+
} else {
|
1967
|
+
options.content = binding;
|
1968
|
+
}
|
1969
|
+
return options;
|
1970
|
+
};
|
1971
|
+
var createInstance = function createInstance(el, binding) {
|
1972
|
+
var instance = null;
|
1973
|
+
var createTimer = null;
|
1974
|
+
var hidePopTimer = null;
|
1975
|
+
var options = resolveOptions(el, binding);
|
1976
|
+
var disabled = options.disabled;
|
1977
|
+
if (disabled || instance) {
|
1978
|
+
return;
|
1979
|
+
}
|
1980
|
+
var handleContentEnter = function handleContentEnter() {
|
1981
|
+
hidePopTimer && clearTimeout(hidePopTimer);
|
1982
|
+
hidePopTimer = null;
|
1983
|
+
};
|
1984
|
+
var handleContentLeave = function handleContentLeave() {
|
1985
|
+
var _instance, _instance2;
|
1986
|
+
if (createTimer) {
|
1987
|
+
clearTimeout(createTimer);
|
1988
|
+
}
|
1989
|
+
(_instance = instance) === null || _instance === void 0 || _instance.hide();
|
1990
|
+
(_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
|
1991
|
+
instance = null;
|
1992
|
+
};
|
1993
|
+
var handleMouseEnter = function handleMouseEnter() {
|
1994
|
+
handleContentLeave();
|
1995
|
+
createTimer && clearTimeout(createTimer);
|
1996
|
+
createTimer = setTimeout(function () {
|
1997
|
+
var targetOptions = resolveOptions(el, binding);
|
1998
|
+
targetOptions.isShow = true;
|
1999
|
+
targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
|
2000
|
+
targetOptions.allowHtml = true;
|
2001
|
+
Object.assign(targetOptions, {
|
2002
|
+
onContentMouseenter: handleContentEnter,
|
2003
|
+
onContentMouseleave: handleContentLeave
|
2004
|
+
});
|
2005
|
+
instance = (0,popover_namespaceObject.$bkPopover)(targetOptions);
|
2006
|
+
}, 300);
|
2007
|
+
};
|
2008
|
+
var handleMouseLeave = function handleMouseLeave() {
|
2009
|
+
hidePopTimer = setTimeout(function () {
|
2010
|
+
var _instance3, _instance4;
|
2011
|
+
if (createTimer) {
|
2012
|
+
clearTimeout(createTimer);
|
2013
|
+
}
|
2014
|
+
(_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
|
2015
|
+
(_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
|
2016
|
+
instance = null;
|
2017
|
+
}, 120);
|
2018
|
+
};
|
2019
|
+
el.addEventListener('mouseenter', handleMouseEnter);
|
2020
|
+
el.addEventListener('mouseleave', handleMouseLeave);
|
2021
|
+
var destroyInstance = function destroyInstance(element) {
|
2022
|
+
var _ref, _ref2;
|
2023
|
+
handleMouseLeave();
|
2024
|
+
(_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
|
2025
|
+
(_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
|
2026
|
+
};
|
2027
|
+
return {
|
2028
|
+
destroyInstance: destroyInstance,
|
2029
|
+
instance: instance
|
2030
|
+
};
|
2031
|
+
};
|
2032
|
+
var ellipsis = {
|
2033
|
+
mounted: function mounted(el, binding) {
|
2034
|
+
createInstance(el, binding);
|
2035
|
+
}
|
2036
|
+
};
|
2037
|
+
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
2038
|
+
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
2039
|
+
var normalize_wheel = __webpack_require__(2439);
|
2040
|
+
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
2041
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
|
1090
2042
|
/*
|
1091
2043
|
* Tencent is pleased to support the open source community by making
|
1092
2044
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1113,85 +2065,395 @@ var tableProps = {
|
|
1113
2065
|
* IN THE SOFTWARE.
|
1114
2066
|
*/
|
1115
2067
|
|
2068
|
+
var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
2069
|
+
var mousewheelHandler = function mousewheelHandler(element, callback) {
|
2070
|
+
if (element !== null && element !== void 0 && element.addEventListener) {
|
2071
|
+
element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
|
2072
|
+
var normalized = normalize_wheel_default()(e);
|
2073
|
+
callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
|
2074
|
+
});
|
2075
|
+
}
|
2076
|
+
};
|
2077
|
+
var mousewheel = {
|
2078
|
+
beforeMount: function beforeMount(el, binding) {
|
2079
|
+
mousewheelHandler(el, binding.value);
|
2080
|
+
}
|
2081
|
+
};
|
2082
|
+
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
2083
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
2084
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
2085
|
+
if (len == null || len > arr.length) len = arr.length;
|
2086
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
2087
|
+
return arr2;
|
2088
|
+
}
|
2089
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1116
2090
|
|
2091
|
+
function _arrayWithoutHoles(arr) {
|
2092
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
2093
|
+
}
|
2094
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
2095
|
+
function _iterableToArray(iter) {
|
2096
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
2097
|
+
}
|
2098
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1117
2099
|
|
2100
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
2101
|
+
if (!o) return;
|
2102
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
2103
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
2104
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
2105
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
2106
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
2107
|
+
}
|
2108
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
2109
|
+
function _nonIterableSpread() {
|
2110
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
2111
|
+
}
|
2112
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1118
2113
|
|
1119
2114
|
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
2115
|
+
|
2116
|
+
|
2117
|
+
function _toConsumableArray(arr) {
|
2118
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
2119
|
+
}
|
2120
|
+
;// CONCATENATED MODULE: external "@popperjs/core"
|
2121
|
+
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2122
|
+
var core_y = x => () => x
|
2123
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
|
2124
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
|
2125
|
+
|
2126
|
+
|
2127
|
+
|
2128
|
+
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; }
|
2129
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2130
|
+
/*
|
2131
|
+
* Tencent is pleased to support the open source community by making
|
2132
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2133
|
+
*
|
2134
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
2135
|
+
*
|
2136
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2137
|
+
*
|
2138
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
2139
|
+
*
|
2140
|
+
* ---------------------------------------------------
|
2141
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
2142
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
2143
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
2144
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2145
|
+
*
|
2146
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2147
|
+
* the Software.
|
2148
|
+
*
|
2149
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2150
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2151
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2152
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2153
|
+
* IN THE SOFTWARE.
|
2154
|
+
*/
|
2155
|
+
|
2156
|
+
|
2157
|
+
|
2158
|
+
var tooltips_nodeList = new WeakMap();
|
2159
|
+
var tooltips = {
|
2160
|
+
beforeMount: function beforeMount(el, binding) {
|
2161
|
+
var opts = getOpts(binding);
|
2162
|
+
var trigger = opts.trigger,
|
2163
|
+
showOnInit = opts.showOnInit;
|
2164
|
+
var popper = renderContent(opts);
|
2165
|
+
var delayTimeout = null;
|
2166
|
+
if (showOnInit) {
|
2167
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
2168
|
+
show(el);
|
2169
|
+
});
|
2170
|
+
}
|
2171
|
+
if (trigger === 'hover') {
|
2172
|
+
var hideTimeout = null;
|
2173
|
+
el.addEventListener('mouseenter', function () {
|
2174
|
+
delayTimeout = setTimeout(function () {
|
2175
|
+
show(el);
|
2176
|
+
clearTimeout(hideTimeout);
|
2177
|
+
clearTimeout(delayTimeout);
|
2178
|
+
}, opts.delay);
|
2179
|
+
});
|
2180
|
+
popper.addEventListener('mouseenter', function () {
|
2181
|
+
clearTimeout(hideTimeout);
|
2182
|
+
});
|
2183
|
+
el.addEventListener('mouseleave', function () {
|
2184
|
+
clearTimeout(delayTimeout);
|
2185
|
+
hideTimeout = setTimeout(function () {
|
2186
|
+
hide(el);
|
2187
|
+
}, 100);
|
2188
|
+
});
|
2189
|
+
el.addEventListener('click', function () {
|
2190
|
+
hide(el);
|
2191
|
+
});
|
2192
|
+
popper.addEventListener('mouseleave', function () {
|
2193
|
+
clearTimeout(delayTimeout);
|
2194
|
+
hideTimeout = setTimeout(function () {
|
2195
|
+
hide(el);
|
2196
|
+
}, 100);
|
2197
|
+
});
|
2198
|
+
} else if (trigger === 'click') {
|
2199
|
+
document.body.addEventListener('click', function (event) {
|
2200
|
+
if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
|
2201
|
+
delayTimeout = setTimeout(function () {
|
2202
|
+
show(el);
|
2203
|
+
clearTimeout(delayTimeout);
|
2204
|
+
}, opts.delay);
|
2205
|
+
} else if (popper.hasAttribute('data-show')) {
|
2206
|
+
hide(el);
|
1156
2207
|
}
|
1157
|
-
return (0,isEqual_namespaceObject["default"])(sorce[key], target[key]);
|
1158
2208
|
});
|
1159
|
-
}
|
1160
|
-
(
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
initTableColumns();
|
1165
|
-
Object.assign(lastPropsVal, (0,external_vue_namespaceObject.toRaw)(props));
|
1166
|
-
}
|
1167
|
-
}, {
|
1168
|
-
immediate: true,
|
1169
|
-
deep: true
|
1170
|
-
});
|
1171
|
-
(0,external_vue_namespaceObject.onUnmounted)(function () {
|
1172
|
-
initTableColumns();
|
2209
|
+
}
|
2210
|
+
tooltips_nodeList.set(el, {
|
2211
|
+
opts: opts,
|
2212
|
+
popper: popper,
|
2213
|
+
popperInstance: null
|
1173
2214
|
});
|
1174
2215
|
},
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
var renderDefault = (_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots, {
|
1179
|
-
row: {},
|
1180
|
-
column: {},
|
1181
|
-
$index: -1
|
1182
|
-
});
|
1183
|
-
var children = [renderDefault];
|
1184
|
-
var vnode = (0,external_vue_namespaceObject.h)('div', children);
|
1185
|
-
return vnode;
|
1186
|
-
} catch (_unused) {
|
1187
|
-
return (0,external_vue_namespaceObject.h)('div', []);
|
2216
|
+
updated: function updated(el, binding) {
|
2217
|
+
if (tooltips_nodeList.get(el)) {
|
2218
|
+
tooltips_nodeList.get(el).opts = getOpts(binding);
|
1188
2219
|
}
|
2220
|
+
},
|
2221
|
+
unmounted: function unmounted(el) {
|
2222
|
+
hide(el);
|
2223
|
+
tooltips_nodeList["delete"](el);
|
1189
2224
|
}
|
1190
|
-
}
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
2225
|
+
};
|
2226
|
+
/**
|
2227
|
+
* 初始化配置
|
2228
|
+
* @returns tooltips配置
|
2229
|
+
*/
|
2230
|
+
function initOptions() {
|
2231
|
+
var defaultOpts = {
|
2232
|
+
arrow: true,
|
2233
|
+
disabled: false,
|
2234
|
+
trigger: 'hover',
|
2235
|
+
theme: 'dark',
|
2236
|
+
content: '',
|
2237
|
+
showOnInit: false,
|
2238
|
+
placement: 'top',
|
2239
|
+
distance: 8,
|
2240
|
+
extCls: '',
|
2241
|
+
sameWidth: false,
|
2242
|
+
delay: 0,
|
2243
|
+
onShow: function onShow() {},
|
2244
|
+
onHide: function onHide() {}
|
2245
|
+
};
|
2246
|
+
return defaultOpts;
|
2247
|
+
}
|
2248
|
+
/**
|
2249
|
+
* 获取配置
|
2250
|
+
* @returns tooltips配置
|
2251
|
+
*/
|
2252
|
+
function getOpts(binding) {
|
2253
|
+
var opts = initOptions();
|
2254
|
+
if (typeof_typeof(binding.value) === 'object') {
|
2255
|
+
Object.assign(opts, binding.value);
|
2256
|
+
} else {
|
2257
|
+
opts.content = binding.value;
|
2258
|
+
}
|
2259
|
+
return opts;
|
2260
|
+
}
|
2261
|
+
/**
|
2262
|
+
* 创建tooltips DOM
|
2263
|
+
* @param opts
|
2264
|
+
* @returns
|
2265
|
+
*/
|
2266
|
+
function renderContext(value, content) {
|
2267
|
+
if (typeof value === 'string') {
|
2268
|
+
content.innerText = value;
|
2269
|
+
} else {
|
2270
|
+
// 如果 content 是 Vue 组件的实例,则挂载它
|
2271
|
+
var container = document.createElement('div');
|
2272
|
+
var vnode = (0,external_vue_namespaceObject.h)(value);
|
2273
|
+
(0,external_vue_namespaceObject.render)(vnode, container);
|
2274
|
+
content.innerHTML = container.innerHTML;
|
2275
|
+
}
|
2276
|
+
}
|
2277
|
+
function renderContent(opts) {
|
2278
|
+
var value = opts.content,
|
2279
|
+
hasArrow = opts.arrow,
|
2280
|
+
theme = opts.theme,
|
2281
|
+
extCls = opts.extCls;
|
2282
|
+
var isLight = theme === 'light';
|
2283
|
+
var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
|
2284
|
+
var content = document.createElement('div');
|
2285
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
2286
|
+
content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
|
2287
|
+
content.innerText = value;
|
2288
|
+
content.style.zIndex = String(zIndex);
|
2289
|
+
renderContext(value, content);
|
2290
|
+
if (hasArrow) {
|
2291
|
+
var arrow = renderArrow();
|
2292
|
+
content.appendChild(arrow);
|
2293
|
+
}
|
2294
|
+
return content;
|
2295
|
+
}
|
2296
|
+
/**
|
2297
|
+
* 渲染箭头dom
|
2298
|
+
* @returns arrow DOM
|
2299
|
+
*/
|
2300
|
+
function renderArrow() {
|
2301
|
+
var arrow = document.createElement('div');
|
2302
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
2303
|
+
arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
|
2304
|
+
arrow.setAttribute('data-popper-arrow', '');
|
2305
|
+
return arrow;
|
2306
|
+
}
|
2307
|
+
/**
|
2308
|
+
* 创建popper实例
|
2309
|
+
* @param el
|
2310
|
+
* @param popper
|
2311
|
+
* @returns popper实例
|
2312
|
+
*/
|
2313
|
+
function createPopperInstance(el, popper) {
|
2314
|
+
var _nodeList$get = tooltips_nodeList.get(el),
|
2315
|
+
opts = _nodeList$get.opts;
|
2316
|
+
var placement = opts.placement,
|
2317
|
+
distance = opts.distance,
|
2318
|
+
sameWidth = opts.sameWidth;
|
2319
|
+
var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
|
2320
|
+
placement: placement,
|
2321
|
+
modifiers: [{
|
2322
|
+
name: 'offset',
|
2323
|
+
options: {
|
2324
|
+
offset: [0, distance]
|
2325
|
+
}
|
2326
|
+
}, {
|
2327
|
+
name: 'arrow',
|
2328
|
+
options: {
|
2329
|
+
padding: 5
|
2330
|
+
}
|
2331
|
+
}].concat(_toConsumableArray(sameWidth ? [{
|
2332
|
+
name: 'sameWidth',
|
2333
|
+
enabled: true,
|
2334
|
+
phase: 'beforeWrite',
|
2335
|
+
requires: ['computeStyles'],
|
2336
|
+
fn: function fn(_ref) {
|
2337
|
+
var state = _ref.state;
|
2338
|
+
state.styles.popper.width = "".concat(state.rects.reference.width, "px");
|
2339
|
+
},
|
2340
|
+
effect: function effect(_ref2) {
|
2341
|
+
var state = _ref2.state;
|
2342
|
+
state.elements.popper.style.overflowWrap = 'break-word';
|
2343
|
+
state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
|
2344
|
+
}
|
2345
|
+
}] : []))
|
2346
|
+
});
|
2347
|
+
return popperInstance;
|
2348
|
+
}
|
2349
|
+
/**
|
2350
|
+
* 显示
|
2351
|
+
* @param el
|
2352
|
+
*/
|
2353
|
+
function show(el) {
|
2354
|
+
var _nodeList$get2 = tooltips_nodeList.get(el),
|
2355
|
+
popper = _nodeList$get2.popper,
|
2356
|
+
opts = _nodeList$get2.opts;
|
2357
|
+
var disabled = opts.disabled,
|
2358
|
+
content = opts.content,
|
2359
|
+
hasArrow = opts.arrow,
|
2360
|
+
onShow = opts.onShow,
|
2361
|
+
boundary = opts.boundary,
|
2362
|
+
_opts$modifiers = opts.modifiers,
|
2363
|
+
modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
|
2364
|
+
if (disabled) return;
|
2365
|
+
renderContext(content, popper);
|
2366
|
+
if (hasArrow) {
|
2367
|
+
var arrow = renderArrow();
|
2368
|
+
popper.appendChild(arrow);
|
2369
|
+
}
|
2370
|
+
var container = document.body;
|
2371
|
+
if (boundary) {
|
2372
|
+
if (boundary === 'parent') {
|
2373
|
+
container = el.parentElement;
|
2374
|
+
} else if (boundary instanceof HTMLElement) {
|
2375
|
+
container = boundary;
|
2376
|
+
}
|
2377
|
+
}
|
2378
|
+
container.appendChild(popper);
|
2379
|
+
var popperInstance = createPopperInstance(el, popper);
|
2380
|
+
onShow();
|
2381
|
+
// Make the tooltip visible
|
2382
|
+
popper.setAttribute('data-show', '');
|
2383
|
+
// Enable the event listeners
|
2384
|
+
popperInstance.setOptions(function (options) {
|
2385
|
+
return _objectSpread(_objectSpread({}, options), {}, {
|
2386
|
+
modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
|
2387
|
+
name: 'eventListeners',
|
2388
|
+
enabled: true
|
2389
|
+
}])
|
2390
|
+
});
|
2391
|
+
});
|
2392
|
+
// Update its position
|
2393
|
+
popperInstance.forceUpdate();
|
2394
|
+
tooltips_nodeList.get(el).popperInstance = popperInstance;
|
2395
|
+
}
|
2396
|
+
/**
|
2397
|
+
* 隐藏
|
2398
|
+
* @param el
|
2399
|
+
*/
|
2400
|
+
function hide(el) {
|
2401
|
+
if (!tooltips_nodeList.get(el)) return;
|
2402
|
+
var _nodeList$get3 = tooltips_nodeList.get(el),
|
2403
|
+
popper = _nodeList$get3.popper,
|
2404
|
+
popperInstance = _nodeList$get3.popperInstance,
|
2405
|
+
opts = _nodeList$get3.opts;
|
2406
|
+
var onHide = opts.onHide;
|
2407
|
+
if (popper && document.body.contains(popper)) {
|
2408
|
+
var _popper$parentNode;
|
2409
|
+
popper.removeAttribute('data-show');
|
2410
|
+
popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
|
2411
|
+
popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
|
2412
|
+
onHide();
|
2413
|
+
}
|
2414
|
+
}
|
2415
|
+
/* harmony default export */ const src_tooltips = (tooltips);
|
2416
|
+
;// CONCATENATED MODULE: external "../loading"
|
2417
|
+
var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2418
|
+
var external_loading_y = x => () => x
|
2419
|
+
const external_loading_namespaceObject = external_loading_x({ });
|
2420
|
+
;// CONCATENATED MODULE: external "../overflow-title"
|
2421
|
+
var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2422
|
+
var external_overflow_title_y = x => () => x
|
2423
|
+
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
2424
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
|
2425
|
+
/*
|
2426
|
+
* Tencent is pleased to support the open source community by making
|
2427
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2428
|
+
*
|
2429
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
2430
|
+
*
|
2431
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2432
|
+
*
|
2433
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
2434
|
+
*
|
2435
|
+
* ---------------------------------------------------
|
2436
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
2437
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
2438
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
2439
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2440
|
+
*
|
2441
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2442
|
+
* the Software.
|
2443
|
+
*
|
2444
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2445
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2446
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2447
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2448
|
+
* IN THE SOFTWARE.
|
2449
|
+
*/
|
2450
|
+
|
2451
|
+
|
2452
|
+
|
2453
|
+
|
2454
|
+
|
2455
|
+
|
2456
|
+
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
1195
2457
|
;// CONCATENATED MODULE: external "lodash/debounce"
|
1196
2458
|
var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1197
2459
|
var debounce_y = x => () => x
|
@@ -1757,43 +3019,6 @@ function v4(options, buf, offset) {
|
|
1757
3019
|
resolveColumns: resolveColumns
|
1758
3020
|
};
|
1759
3021
|
});
|
1760
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1761
|
-
function _arrayLikeToArray(arr, len) {
|
1762
|
-
if (len == null || len > arr.length) len = arr.length;
|
1763
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1764
|
-
return arr2;
|
1765
|
-
}
|
1766
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1767
|
-
|
1768
|
-
function _arrayWithoutHoles(arr) {
|
1769
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
1770
|
-
}
|
1771
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1772
|
-
function _iterableToArray(iter) {
|
1773
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1774
|
-
}
|
1775
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1776
|
-
|
1777
|
-
function _unsupportedIterableToArray(o, minLen) {
|
1778
|
-
if (!o) return;
|
1779
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
1780
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1781
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1782
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
1783
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
1784
|
-
}
|
1785
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1786
|
-
function _nonIterableSpread() {
|
1787
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1788
|
-
}
|
1789
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
function _toConsumableArray(arr) {
|
1795
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1796
|
-
}
|
1797
3022
|
;// CONCATENATED MODULE: external "../config-provider"
|
1798
3023
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1799
3024
|
var config_provider_y = x => () => x
|
@@ -2737,8 +3962,8 @@ var index = (function () {
|
|
2737
3962
|
|
2738
3963
|
|
2739
3964
|
var _this = undefined;
|
2740
|
-
function
|
2741
|
-
function
|
3965
|
+
function utils_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; }
|
3966
|
+
function utils_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? utils_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : utils_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2742
3967
|
/*
|
2743
3968
|
* Tencent is pleased to support the open source community by making
|
2744
3969
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3052,7 +4277,7 @@ var hasRootScrollY = function hasRootScrollY(root, querySelector) {
|
|
3052
4277
|
var getColumnClass = function getColumnClass(column) {
|
3053
4278
|
var colIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
3054
4279
|
var uuid = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
3055
|
-
return
|
4280
|
+
return utils_objectSpread(utils_objectSpread({}, uuid ? _defineProperty({}, "".concat(uuid, "-column-").concat(colIndex), true) : {}), {}, {
|
3056
4281
|
column_fixed: !!column.fixed,
|
3057
4282
|
column_fixed_left: !!column.fixed,
|
3058
4283
|
column_fixed_right: column.fixed === 'right'
|
@@ -3180,7 +4405,7 @@ var resolveSort = function resolveSort(sort, column) {
|
|
3180
4405
|
if (typeof_typeof(sort) === 'object' && sort !== null) {
|
3181
4406
|
var _sort$value;
|
3182
4407
|
if (typeof sort.sortFn === 'function') {
|
3183
|
-
return
|
4408
|
+
return utils_objectSpread({
|
3184
4409
|
value: 'custom'
|
3185
4410
|
}, sort);
|
3186
4411
|
}
|
@@ -3229,7 +4454,7 @@ var resolveColumnSortProp = function resolveColumnSortProp(col, props) {
|
|
3229
4454
|
};
|
3230
4455
|
var resolveColumnFilterProp = function resolveColumnFilterProp(col) {
|
3231
4456
|
if (typeof_typeof(col.filter) === 'object') {
|
3232
|
-
return
|
4457
|
+
return utils_objectSpread(utils_objectSpread({}, col.filter), {}, {
|
3233
4458
|
enabled: true
|
3234
4459
|
});
|
3235
4460
|
}
|
@@ -5132,7 +6357,7 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
5132
6357
|
if (isTipsEnabled.value) {
|
5133
6358
|
var bindings = (0,external_vue_namespaceObject.ref)(resolveTooltipOption());
|
5134
6359
|
if (bkEllipsisIns === null) {
|
5135
|
-
bkEllipsisIns = (
|
6360
|
+
bkEllipsisIns = createInstance(target, {
|
5136
6361
|
disabled: bindings.value.disabled,
|
5137
6362
|
content: bindings.value.content,
|
5138
6363
|
mode: bindings.value.mode,
|
@@ -5522,10 +6747,6 @@ const isEmpty_namespaceObject = isEmpty_x({ ["default"]: () => __WEBPACK_EXTERNA
|
|
5522
6747
|
renderCell: renderCell
|
5523
6748
|
};
|
5524
6749
|
});
|
5525
|
-
;// CONCATENATED MODULE: external "../popover"
|
5526
|
-
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
5527
|
-
var popover_y = x => () => x
|
5528
|
-
const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
5529
6750
|
;// CONCATENATED MODULE: external "../popover/popover.less"
|
5530
6751
|
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
5531
6752
|
var popover_less_y = x => () => x
|
@@ -5727,7 +6948,7 @@ var ROW_HEIGHT = 32;
|
|
5727
6948
|
/* harmony default export */ const head_filter = ((0,external_vue_namespaceObject.defineComponent)({
|
5728
6949
|
name: 'HeadFilter',
|
5729
6950
|
directives: {
|
5730
|
-
bkTooltips:
|
6951
|
+
bkTooltips: src_tooltips
|
5731
6952
|
},
|
5732
6953
|
props: {
|
5733
6954
|
column: IColumnType,
|
@@ -6063,7 +7284,7 @@ function _nonIterableRest() {
|
|
6063
7284
|
|
6064
7285
|
|
6065
7286
|
function _slicedToArray(arr, i) {
|
6066
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
7287
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
6067
7288
|
}
|
6068
7289
|
;// CONCATENATED MODULE: external "../icon/"
|
6069
7290
|
var _x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
@@ -7822,7 +9043,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
7822
9043
|
/* harmony default export */ const table = ((0,external_vue_namespaceObject.defineComponent)({
|
7823
9044
|
name: 'Table',
|
7824
9045
|
directives: {
|
7825
|
-
bkTooltips:
|
9046
|
+
bkTooltips: src_tooltips
|
7826
9047
|
},
|
7827
9048
|
props: tableProps,
|
7828
9049
|
emits: EMIT_EVENT_TYPES,
|