bkui-vue 0.0.1-beta.391 → 0.0.1-beta.392
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/lib/affix/index.js +128 -60
- package/lib/alert/index.js +124 -56
- package/lib/animate-number/index.js +106 -42
- package/lib/backtop/index.js +133 -61
- package/lib/badge/index.js +114 -50
- package/lib/breadcrumb/index.js +133 -67
- package/lib/button/index.js +147 -68
- package/lib/card/index.js +154 -69
- package/lib/cascader/index.js +242 -168
- package/lib/checkbox/index.js +139 -77
- package/lib/code-diff/index.js +121 -79
- package/lib/collapse/index.js +150 -84
- package/lib/color-picker/index.js +245 -193
- package/lib/components.js +671 -434
- package/lib/container/index.js +125 -64
- package/lib/date-picker/index.js +563 -462
- package/lib/dialog/index.js +198 -108
- package/lib/directives/index.js +138 -92
- package/lib/dist.index.js +133 -48
- package/lib/divider/index.js +118 -50
- package/lib/dropdown/index.js +155 -73
- package/lib/exception/index.js +145 -97
- package/lib/fixed-navbar/index.js +107 -43
- package/lib/form/index.js +193 -107
- package/lib/icon/angle-double-down-line.js +90 -30
- package/lib/icon/angle-double-left-line.js +90 -30
- package/lib/icon/angle-double-left.js +90 -30
- package/lib/icon/angle-double-right-line.js +90 -30
- package/lib/icon/angle-double-right.js +90 -30
- package/lib/icon/angle-double-up-line.js +90 -30
- package/lib/icon/angle-down-fill.js +90 -30
- package/lib/icon/angle-down-line.js +90 -30
- package/lib/icon/angle-down.js +90 -30
- package/lib/icon/angle-left.js +90 -30
- package/lib/icon/angle-right.js +90 -30
- package/lib/icon/angle-up-fill.js +90 -30
- package/lib/icon/angle-up.js +90 -30
- package/lib/icon/archive-fill.js +90 -30
- package/lib/icon/arrows-left.js +90 -30
- package/lib/icon/arrows-right.js +90 -30
- package/lib/icon/audio-fill.js +90 -30
- package/lib/icon/bk.js +90 -30
- package/lib/icon/circle.js +90 -30
- package/lib/icon/close-line.js +90 -30
- package/lib/icon/close.js +90 -30
- package/lib/icon/code.js +90 -30
- package/lib/icon/cog-shape.js +90 -30
- package/lib/icon/collapse-left.js +90 -30
- package/lib/icon/copy.js +90 -30
- package/lib/icon/data-shape.js +90 -30
- package/lib/icon/del.js +90 -30
- package/lib/icon/doc-fill.js +90 -30
- package/lib/icon/done.js +90 -30
- package/lib/icon/down-shape.js +90 -30
- package/lib/icon/down-small.js +90 -30
- package/lib/icon/edit-line.js +90 -30
- package/lib/icon/ellipsis.js +90 -30
- package/lib/icon/enlarge-line.js +90 -30
- package/lib/icon/error.js +90 -30
- package/lib/icon/excel-fill.js +90 -30
- package/lib/icon/exclamation-circle-shape.js +90 -30
- package/lib/icon/eye.js +90 -30
- package/lib/icon/filliscreen-line.js +90 -30
- package/lib/icon/folder-open.js +90 -30
- package/lib/icon/folder-shape-open.js +90 -30
- package/lib/icon/folder-shape.js +90 -30
- package/lib/icon/folder.js +90 -30
- package/lib/icon/funnel.js +90 -30
- package/lib/icon/help-document-fill.js +90 -30
- package/lib/icon/help-fill.js +90 -30
- package/lib/icon/help.js +90 -30
- package/lib/icon/image-fill.js +90 -30
- package/lib/icon/img-placehoulder.js +88 -52
- package/lib/icon/index.js +255 -267
- package/lib/icon/info-line.js +88 -52
- package/lib/icon/info.js +88 -52
- package/lib/icon/left-shape.js +88 -52
- package/lib/icon/left-turn-line.js +88 -52
- package/lib/icon/narrow-line.js +88 -52
- package/lib/icon/original.js +88 -52
- package/lib/icon/pdf-fill.js +88 -52
- package/lib/icon/play-shape.js +88 -52
- package/lib/icon/plus.js +88 -52
- package/lib/icon/ppt-fill.js +88 -52
- package/lib/icon/qq.js +88 -52
- package/lib/icon/right-shape.js +88 -52
- package/lib/icon/right-turn-line.js +88 -52
- package/lib/icon/search.js +88 -52
- package/lib/icon/share.js +88 -52
- package/lib/icon/spinner.js +88 -52
- package/lib/icon/success.js +88 -52
- package/lib/icon/switcher-loading.js +88 -52
- package/lib/icon/text-file.js +88 -52
- package/lib/icon/text-fill.js +88 -52
- package/lib/icon/transfer.js +88 -52
- package/lib/icon/tree-application-shape.js +88 -52
- package/lib/icon/unfull-screen.js +88 -52
- package/lib/icon/unvisible.js +88 -52
- package/lib/icon/up-shape.js +88 -52
- package/lib/icon/upload.js +88 -52
- package/lib/icon/video-fill.js +88 -52
- package/lib/icon/warn.js +88 -52
- package/lib/icon/weixin.js +88 -52
- package/lib/image/index.js +213 -164
- package/lib/index.js +134 -50
- package/lib/info-box/index.js +206 -152
- package/lib/input/index.js +167 -99
- package/lib/link/index.js +115 -47
- package/lib/loading/index.js +127 -67
- package/lib/menu/index.js +156 -92
- package/lib/message/index.js +148 -76
- package/lib/modal/index.js +151 -85
- package/lib/navigation/index.js +134 -66
- package/lib/notify/index.js +153 -81
- package/lib/overflow-title/index.js +128 -92
- package/lib/pagination/index.js +220 -131
- package/lib/plugin-popover/index.js +190 -143
- package/lib/plugins/index.js +100 -33
- package/lib/popover/index.js +193 -148
- package/lib/popover2/index.js +99 -35
- package/lib/preset.js +104 -37
- package/lib/process/index.js +134 -92
- package/lib/progress/index.js +127 -63
- package/lib/radio/index.js +142 -81
- package/lib/rate/index.js +127 -63
- package/lib/resize-layout/index.js +147 -79
- package/lib/search-select/index.js +220 -168
- package/lib/select/index.js +394 -315
- package/lib/shared/index.js +203 -228
- package/lib/sideslider/index.js +137 -88
- package/lib/slider/index.js +196 -147
- package/lib/steps/index.js +152 -105
- package/lib/swiper/index.js +126 -62
- package/lib/switcher/index.js +133 -65
- package/lib/tab/index.js +188 -118
- package/lib/table/index.js +572 -457
- package/lib/table-column/index.js +197 -129
- package/lib/tag/index.js +130 -58
- package/lib/tag-input/index.js +277 -175
- package/lib/time-picker/index.js +111 -40
- package/lib/timeline/index.js +114 -50
- package/lib/transfer/index.js +174 -89
- package/lib/tree/index.js +235 -158
- package/lib/upload/index.js +227 -173
- package/lib/virtual-render/index.js +154 -86
- package/package.json +1 -1
package/lib/divider/index.js
CHANGED
@@ -1,47 +1,111 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
+
module.exports = factory(require("../shared"), require("vue"), require("vue-types"));
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
5
|
+
define(["../shared", "vue", "vue-types"], factory);
|
6
|
+
else {
|
7
|
+
var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("vue-types")) : factory(root["../shared"], root["vue"], root["vue-types"]);
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
9
|
+
}
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__210__) => {
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
14
|
+
|
15
|
+
/***/ 4212:
|
16
|
+
/***/ ((module) => {
|
17
|
+
|
18
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
19
|
+
|
20
|
+
/***/ }),
|
21
|
+
|
22
|
+
/***/ 748:
|
23
|
+
/***/ ((module) => {
|
24
|
+
|
25
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
26
|
+
|
27
|
+
/***/ }),
|
28
|
+
|
29
|
+
/***/ 210:
|
30
|
+
/***/ ((module) => {
|
31
|
+
|
32
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__210__;
|
33
|
+
|
34
|
+
/***/ })
|
35
|
+
|
36
|
+
/******/ });
|
7
37
|
/************************************************************************/
|
8
|
-
/******/
|
9
|
-
/******/
|
10
|
-
/******/
|
11
|
-
/******/
|
12
|
-
/******/
|
13
|
-
/******/
|
14
|
-
/******/
|
15
|
-
/******/
|
38
|
+
/******/ // The module cache
|
39
|
+
/******/ var __webpack_module_cache__ = {};
|
40
|
+
/******/
|
41
|
+
/******/ // The require function
|
42
|
+
/******/ function __webpack_require__(moduleId) {
|
43
|
+
/******/ // Check if module is in cache
|
44
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
45
|
+
/******/ if (cachedModule !== undefined) {
|
46
|
+
/******/ return cachedModule.exports;
|
16
47
|
/******/ }
|
17
|
-
/******/
|
18
|
-
/******/
|
19
|
-
/******/
|
20
|
-
/******/
|
21
|
-
/******/
|
22
|
-
/******/
|
23
|
-
/******/
|
24
|
-
/******/
|
48
|
+
/******/ // Create a new module (and put it into the cache)
|
49
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
50
|
+
/******/ // no module.id needed
|
51
|
+
/******/ // no module.loaded needed
|
52
|
+
/******/ exports: {}
|
53
|
+
/******/ };
|
54
|
+
/******/
|
55
|
+
/******/ // Execute the module function
|
56
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
57
|
+
/******/
|
58
|
+
/******/ // Return the exports of the module
|
59
|
+
/******/ return module.exports;
|
60
|
+
/******/ }
|
61
|
+
/******/
|
62
|
+
/************************************************************************/
|
63
|
+
/******/ /* webpack/runtime/define property getters */
|
64
|
+
/******/ (() => {
|
65
|
+
/******/ // define getter functions for harmony exports
|
66
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
67
|
+
/******/ for(var key in definition) {
|
68
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
69
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
70
|
+
/******/ }
|
71
|
+
/******/ }
|
72
|
+
/******/ };
|
73
|
+
/******/ })();
|
74
|
+
/******/
|
75
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
76
|
+
/******/ (() => {
|
77
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
78
|
+
/******/ })();
|
79
|
+
/******/
|
80
|
+
/******/ /* webpack/runtime/make namespace object */
|
81
|
+
/******/ (() => {
|
82
|
+
/******/ // define __esModule on exports
|
83
|
+
/******/ __webpack_require__.r = (exports) => {
|
84
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
85
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
86
|
+
/******/ }
|
87
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
88
|
+
/******/ };
|
89
|
+
/******/ })();
|
90
|
+
/******/
|
25
91
|
/************************************************************************/
|
26
92
|
var __webpack_exports__ = {};
|
93
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
94
|
+
(() => {
|
95
|
+
// ESM COMPAT FLAG
|
96
|
+
__webpack_require__.r(__webpack_exports__);
|
27
97
|
|
28
98
|
// EXPORTS
|
29
99
|
__webpack_require__.d(__webpack_exports__, {
|
30
|
-
"
|
100
|
+
"default": () => (/* binding */ src)
|
31
101
|
});
|
32
102
|
|
33
|
-
|
34
|
-
var
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
var
|
39
|
-
var external_vue_y = x => () => x
|
40
|
-
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent });
|
41
|
-
;// CONCATENATED MODULE: external "vue-types"
|
42
|
-
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
43
|
-
var external_vue_types_y = x => () => x
|
44
|
-
const external_vue_types_namespaceObject = external_vue_types_x({ ["createTypes"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.createTypes, ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
103
|
+
// EXTERNAL MODULE: external "../shared"
|
104
|
+
var external_shared_ = __webpack_require__(4212);
|
105
|
+
// EXTERNAL MODULE: external "vue"
|
106
|
+
var external_vue_ = __webpack_require__(748);
|
107
|
+
// EXTERNAL MODULE: external "vue-types"
|
108
|
+
var external_vue_types_ = __webpack_require__(210);
|
45
109
|
;// CONCATENATED MODULE: ../../packages/shared/src/vue-types.ts
|
46
110
|
|
47
111
|
|
@@ -54,7 +118,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
54
118
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
55
119
|
|
56
120
|
|
57
|
-
var propTypesNS = (0,
|
121
|
+
var propTypesNS = (0,external_vue_types_.createTypes)({}); // 用于创建字符串列表映射至 `K: V` 的函数
|
58
122
|
|
59
123
|
function stringEnum(o) {
|
60
124
|
return o.reduce(function (res, key) {
|
@@ -101,7 +165,7 @@ var AlignEnum;
|
|
101
165
|
})(AlignEnum || (AlignEnum = {}));
|
102
166
|
|
103
167
|
function alignType() {
|
104
|
-
return (0,
|
168
|
+
return (0,external_vue_types_.toType)('align', {
|
105
169
|
"default": AlignEnum.LEFT
|
106
170
|
}).def(AlignEnum.LEFT);
|
107
171
|
}
|
@@ -190,7 +254,7 @@ var DirectionEnum;
|
|
190
254
|
})(DirectionEnum || (DirectionEnum = {}));
|
191
255
|
|
192
256
|
function directionType() {
|
193
|
-
return (0,
|
257
|
+
return (0,external_vue_types_.toType)('direction', {}).def(DirectionEnum.HORIZONTAL);
|
194
258
|
}
|
195
259
|
var LineStyleEnum;
|
196
260
|
|
@@ -200,7 +264,7 @@ var LineStyleEnum;
|
|
200
264
|
})(LineStyleEnum || (LineStyleEnum = {}));
|
201
265
|
|
202
266
|
function lineStyleType() {
|
203
|
-
return (0,
|
267
|
+
return (0,external_vue_types_.toType)('lineType', {}).def(LineStyleEnum.DASHED);
|
204
268
|
}
|
205
269
|
;
|
206
270
|
var TagThemeEnum;
|
@@ -342,9 +406,9 @@ var PropTypes = /*#__PURE__*/(/* unused pure expression or super */ null && (fun
|
|
342
406
|
|
343
407
|
var dividerProps = {
|
344
408
|
direction: directionType(),
|
345
|
-
align: alignType().def(
|
346
|
-
color:
|
347
|
-
width:
|
409
|
+
align: alignType().def(external_shared_.AlignEnum.CENTER),
|
410
|
+
color: external_shared_.PropTypes.string.def('#dde4eb'),
|
411
|
+
width: external_shared_.PropTypes.number.def(1),
|
348
412
|
type: lineStyleType()
|
349
413
|
};
|
350
414
|
;// CONCATENATED MODULE: ../../packages/divider/src/divider.tsx
|
@@ -378,7 +442,7 @@ var dividerProps = {
|
|
378
442
|
|
379
443
|
|
380
444
|
|
381
|
-
/* harmony default export */ const divider = ((0,
|
445
|
+
/* harmony default export */ const divider = ((0,external_vue_.defineComponent)({
|
382
446
|
name: 'Divider',
|
383
447
|
props: dividerProps,
|
384
448
|
render: function render() {
|
@@ -399,13 +463,13 @@ var dividerProps = {
|
|
399
463
|
var slots;
|
400
464
|
|
401
465
|
if (this.$slots["default"]) {
|
402
|
-
slots = (0,
|
403
|
-
"class": [(0,
|
466
|
+
slots = (0,external_vue_.createVNode)("div", {
|
467
|
+
"class": [(0,external_shared_.resolveClassName)('divider-info'), (0,external_shared_.resolveClassName)("divider-info-".concat(this.align))]
|
404
468
|
}, [this.$slots["default"]()]);
|
405
469
|
}
|
406
470
|
|
407
|
-
return (0,
|
408
|
-
"class": [(0,
|
471
|
+
return (0,external_vue_.createVNode)("div", {
|
472
|
+
"class": [(0,external_shared_.resolveClassName)('divider'), (0,external_shared_.resolveClassName)("divider-".concat(this.direction))],
|
409
473
|
"style": styles()
|
410
474
|
}, [slots]);
|
411
475
|
}
|
@@ -438,7 +502,11 @@ var dividerProps = {
|
|
438
502
|
*/
|
439
503
|
|
440
504
|
|
441
|
-
var BkDivider = (0,
|
505
|
+
var BkDivider = (0,external_shared_.withInstall)(divider);
|
442
506
|
/* harmony default export */ const src = (BkDivider);
|
443
|
-
|
444
|
-
|
507
|
+
})();
|
508
|
+
|
509
|
+
/******/ return __webpack_exports__;
|
510
|
+
/******/ })()
|
511
|
+
;
|
512
|
+
});
|
package/lib/dropdown/index.js
CHANGED
@@ -1,55 +1,136 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
+
module.exports = factory(require("../shared"), require("vue"), require("lodash"), require("../popover"));
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
5
|
+
define(["../shared", "vue", "lodash", "../popover"], factory);
|
6
|
+
else {
|
7
|
+
var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("lodash"), require("../popover")) : factory(root["../shared"], root["vue"], root["lodash"], root["../popover"]);
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
9
|
+
}
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__467__, __WEBPACK_EXTERNAL_MODULE__5537__) => {
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
14
|
+
|
15
|
+
/***/ 5537:
|
16
|
+
/***/ ((module) => {
|
17
|
+
|
18
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5537__;
|
19
|
+
|
20
|
+
/***/ }),
|
21
|
+
|
22
|
+
/***/ 4212:
|
23
|
+
/***/ ((module) => {
|
24
|
+
|
25
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
26
|
+
|
27
|
+
/***/ }),
|
28
|
+
|
29
|
+
/***/ 467:
|
30
|
+
/***/ ((module) => {
|
31
|
+
|
32
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__467__;
|
33
|
+
|
34
|
+
/***/ }),
|
35
|
+
|
36
|
+
/***/ 748:
|
37
|
+
/***/ ((module) => {
|
38
|
+
|
39
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
40
|
+
|
41
|
+
/***/ })
|
42
|
+
|
43
|
+
/******/ });
|
8
44
|
/************************************************************************/
|
9
|
-
/******/
|
10
|
-
/******/
|
11
|
-
/******/
|
12
|
-
/******/
|
13
|
-
/******/
|
14
|
-
/******/
|
15
|
-
/******/
|
16
|
-
/******/
|
45
|
+
/******/ // The module cache
|
46
|
+
/******/ var __webpack_module_cache__ = {};
|
47
|
+
/******/
|
48
|
+
/******/ // The require function
|
49
|
+
/******/ function __webpack_require__(moduleId) {
|
50
|
+
/******/ // Check if module is in cache
|
51
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
52
|
+
/******/ if (cachedModule !== undefined) {
|
53
|
+
/******/ return cachedModule.exports;
|
17
54
|
/******/ }
|
18
|
-
/******/
|
19
|
-
/******/
|
20
|
-
/******/
|
21
|
-
/******/
|
22
|
-
/******/
|
23
|
-
/******/
|
24
|
-
/******/
|
25
|
-
/******/
|
55
|
+
/******/ // Create a new module (and put it into the cache)
|
56
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
57
|
+
/******/ // no module.id needed
|
58
|
+
/******/ // no module.loaded needed
|
59
|
+
/******/ exports: {}
|
60
|
+
/******/ };
|
61
|
+
/******/
|
62
|
+
/******/ // Execute the module function
|
63
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
64
|
+
/******/
|
65
|
+
/******/ // Return the exports of the module
|
66
|
+
/******/ return module.exports;
|
67
|
+
/******/ }
|
68
|
+
/******/
|
69
|
+
/************************************************************************/
|
70
|
+
/******/ /* webpack/runtime/compat get default export */
|
71
|
+
/******/ (() => {
|
72
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
73
|
+
/******/ __webpack_require__.n = (module) => {
|
74
|
+
/******/ var getter = module && module.__esModule ?
|
75
|
+
/******/ () => (module['default']) :
|
76
|
+
/******/ () => (module);
|
77
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
78
|
+
/******/ return getter;
|
79
|
+
/******/ };
|
80
|
+
/******/ })();
|
81
|
+
/******/
|
82
|
+
/******/ /* webpack/runtime/define property getters */
|
83
|
+
/******/ (() => {
|
84
|
+
/******/ // define getter functions for harmony exports
|
85
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
86
|
+
/******/ for(var key in definition) {
|
87
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
88
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
89
|
+
/******/ }
|
90
|
+
/******/ }
|
91
|
+
/******/ };
|
92
|
+
/******/ })();
|
93
|
+
/******/
|
94
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
95
|
+
/******/ (() => {
|
96
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
97
|
+
/******/ })();
|
98
|
+
/******/
|
99
|
+
/******/ /* webpack/runtime/make namespace object */
|
100
|
+
/******/ (() => {
|
101
|
+
/******/ // define __esModule on exports
|
102
|
+
/******/ __webpack_require__.r = (exports) => {
|
103
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
104
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
105
|
+
/******/ }
|
106
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
107
|
+
/******/ };
|
108
|
+
/******/ })();
|
109
|
+
/******/
|
26
110
|
/************************************************************************/
|
27
111
|
var __webpack_exports__ = {};
|
112
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
113
|
+
(() => {
|
114
|
+
// ESM COMPAT FLAG
|
115
|
+
__webpack_require__.r(__webpack_exports__);
|
28
116
|
|
29
117
|
// EXPORTS
|
30
118
|
__webpack_require__.d(__webpack_exports__, {
|
31
|
-
"
|
32
|
-
"
|
33
|
-
"
|
34
|
-
"
|
119
|
+
"BkDropdown": () => (/* binding */ BkDropdown),
|
120
|
+
"BkDropdownItem": () => (/* reexport */ dropdown_item),
|
121
|
+
"BkDropdownMenu": () => (/* reexport */ dropdown_menu),
|
122
|
+
"default": () => (/* binding */ src)
|
35
123
|
});
|
36
124
|
|
37
|
-
|
38
|
-
var
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
var
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
var external_lodash_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
47
|
-
var external_lodash_y = x => () => x
|
48
|
-
const external_lodash_namespaceObject = external_lodash_x({ ["merge"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__.merge });
|
49
|
-
;// CONCATENATED MODULE: external "../popover"
|
50
|
-
var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
51
|
-
var external_popover_y = x => () => x
|
52
|
-
const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
|
125
|
+
// EXTERNAL MODULE: external "../shared"
|
126
|
+
var external_shared_ = __webpack_require__(4212);
|
127
|
+
// EXTERNAL MODULE: external "vue"
|
128
|
+
var external_vue_ = __webpack_require__(748);
|
129
|
+
// EXTERNAL MODULE: external "lodash"
|
130
|
+
var external_lodash_ = __webpack_require__(467);
|
131
|
+
// EXTERNAL MODULE: external "../popover"
|
132
|
+
var external_popover_ = __webpack_require__(5537);
|
133
|
+
var external_popover_default = /*#__PURE__*/__webpack_require__.n(external_popover_);
|
53
134
|
;// CONCATENATED MODULE: ../../packages/dropdown/src/dropdown.tsx
|
54
135
|
|
55
136
|
|
@@ -82,26 +163,26 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
82
163
|
|
83
164
|
|
84
165
|
|
85
|
-
/* harmony default export */ const dropdown = ((0,
|
166
|
+
/* harmony default export */ const dropdown = ((0,external_vue_.defineComponent)({
|
86
167
|
name: 'Dropdown',
|
87
168
|
props: {
|
88
169
|
/** trigger = manual时候控制显隐藏 */
|
89
|
-
isShow:
|
170
|
+
isShow: external_shared_.PropTypes.bool.def(false),
|
90
171
|
|
91
172
|
/** 弹层出现位置 */
|
92
|
-
placement: (0,
|
173
|
+
placement: (0,external_shared_.placementType)(),
|
93
174
|
|
94
175
|
/** 触发方式 */
|
95
|
-
trigger: (0,
|
176
|
+
trigger: (0,external_shared_.triggerType)(),
|
96
177
|
|
97
178
|
/** 是否禁用 */
|
98
|
-
disabled:
|
179
|
+
disabled: external_shared_.PropTypes.bool.def(false),
|
99
180
|
|
100
181
|
/** popover属性 */
|
101
|
-
popoverOptions:
|
182
|
+
popoverOptions: external_shared_.PropTypes.object.def({}),
|
102
183
|
|
103
184
|
/** 外部设置的 class name */
|
104
|
-
extCls:
|
185
|
+
extCls: external_shared_.PropTypes.string
|
105
186
|
},
|
106
187
|
emits: ['showChange', 'show', 'hide'],
|
107
188
|
setup: function setup(_props, _ref) {
|
@@ -126,7 +207,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
126
207
|
handleShowChagne(false);
|
127
208
|
};
|
128
209
|
|
129
|
-
var popoverRef = (0,
|
210
|
+
var popoverRef = (0,external_vue_.ref)(null);
|
130
211
|
return {
|
131
212
|
afterShow: afterShow,
|
132
213
|
afterHidden: afterHidden,
|
@@ -136,7 +217,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
136
217
|
render: function render() {
|
137
218
|
var _this = this;
|
138
219
|
|
139
|
-
var wrapperClasses = (0,
|
220
|
+
var wrapperClasses = (0,external_shared_.classes)({
|
140
221
|
'bk-dropdown': true
|
141
222
|
}, this.$props.extCls);
|
142
223
|
/** popover 基础配置 */
|
@@ -149,10 +230,10 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
149
230
|
isShow: this.isShow,
|
150
231
|
disabled: this.disabled
|
151
232
|
};
|
152
|
-
var popoverOptions = (0,
|
153
|
-
return (0,
|
233
|
+
var popoverOptions = (0,external_lodash_.merge)(basePopoverOptions, this.popoverOptions);
|
234
|
+
return (0,external_vue_.createVNode)("div", {
|
154
235
|
"class": wrapperClasses
|
155
|
-
}, [(0,
|
236
|
+
}, [(0,external_vue_.createVNode)((external_popover_default()), (0,external_vue_.mergeProps)({
|
156
237
|
"ref": "popoverRef"
|
157
238
|
}, popoverOptions, {
|
158
239
|
"onAfterShow": this.afterShow,
|
@@ -161,16 +242,16 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
161
242
|
"default": function _default() {
|
162
243
|
var _a, _b;
|
163
244
|
|
164
|
-
return (0,
|
245
|
+
return (0,external_vue_.createVNode)("div", {
|
165
246
|
"class": "bk-dropdown-reference"
|
166
|
-
}, [(0,
|
247
|
+
}, [(0,external_vue_.createTextVNode)(" "), (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a), (0,external_vue_.createTextVNode)(" ")]);
|
167
248
|
},
|
168
249
|
content: function content() {
|
169
250
|
var _a, _b;
|
170
251
|
|
171
|
-
return (0,
|
252
|
+
return (0,external_vue_.createVNode)("div", {
|
172
253
|
"class": "bk-dropdown-content"
|
173
|
-
}, [(0,
|
254
|
+
}, [(0,external_vue_.createTextVNode)(" "), (_b = (_a = _this.$slots).content) === null || _b === void 0 ? void 0 : _b.call(_a), (0,external_vue_.createTextVNode)(" ")]);
|
174
255
|
}
|
175
256
|
})]);
|
176
257
|
}
|
@@ -205,11 +286,11 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
205
286
|
*/
|
206
287
|
|
207
288
|
|
208
|
-
/* harmony default export */ const dropdown_item = ((0,
|
289
|
+
/* harmony default export */ const dropdown_item = ((0,external_vue_.defineComponent)({
|
209
290
|
name: 'DropdownItem',
|
210
291
|
props: {
|
211
292
|
/** 外部设置的 class name */
|
212
|
-
extCls:
|
293
|
+
extCls: external_shared_.PropTypes.string
|
213
294
|
},
|
214
295
|
emits: ['click'],
|
215
296
|
setup: function setup(props, _ref) {
|
@@ -220,7 +301,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
220
301
|
emit('click', evt);
|
221
302
|
};
|
222
303
|
|
223
|
-
var wrapperCLasses = (0,
|
304
|
+
var wrapperCLasses = (0,external_vue_.computed)(function () {
|
224
305
|
return ['bk-dropdown-item', props.extCls];
|
225
306
|
});
|
226
307
|
return {
|
@@ -231,7 +312,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
231
312
|
render: function render() {
|
232
313
|
var _a, _b;
|
233
314
|
|
234
|
-
return (0,
|
315
|
+
return (0,external_vue_.createVNode)("li", {
|
235
316
|
"class": this.wrapperCLasses,
|
236
317
|
"onClick": this.handleClick
|
237
318
|
}, [(_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
|
@@ -267,14 +348,14 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
267
348
|
*/
|
268
349
|
|
269
350
|
|
270
|
-
/* harmony default export */ const dropdown_menu = ((0,
|
351
|
+
/* harmony default export */ const dropdown_menu = ((0,external_vue_.defineComponent)({
|
271
352
|
name: 'DropdownMenu',
|
272
353
|
props: {
|
273
354
|
/** 外部设置的 class name */
|
274
|
-
extCls:
|
355
|
+
extCls: external_shared_.PropTypes.string
|
275
356
|
},
|
276
357
|
setup: function setup(props) {
|
277
|
-
var wrapperCLasses = (0,
|
358
|
+
var wrapperCLasses = (0,external_vue_.computed)(function () {
|
278
359
|
return ['bk-dropdown-menu', props.extCls];
|
279
360
|
});
|
280
361
|
return {
|
@@ -284,7 +365,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
284
365
|
render: function render() {
|
285
366
|
var _a, _b;
|
286
367
|
|
287
|
-
return (0,
|
368
|
+
return (0,external_vue_.createVNode)("ul", {
|
288
369
|
"class": this.wrapperCLasses
|
289
370
|
}, [(_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
|
290
371
|
}
|
@@ -319,14 +400,15 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
319
400
|
|
320
401
|
|
321
402
|
|
322
|
-
var BkDropdown = (0,
|
403
|
+
var BkDropdown = (0,external_shared_.withInstallProps)(dropdown, {
|
323
404
|
DropdownMenu: dropdown_menu,
|
324
405
|
DropdownItem: dropdown_item
|
325
406
|
});
|
326
407
|
/* harmony default export */ const src = (BkDropdown);
|
327
408
|
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
409
|
+
})();
|
410
|
+
|
411
|
+
/******/ return __webpack_exports__;
|
412
|
+
/******/ })()
|
413
|
+
;
|
414
|
+
});
|