bkui-vue 0.0.2-beta.81 → 0.0.2-beta.82

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.
Files changed (176) hide show
  1. package/dist/index.cjs.js +161 -135
  2. package/dist/index.esm.js +19126 -16409
  3. package/dist/index.umd.js +161 -135
  4. package/lib/affix/index.js +1 -321
  5. package/lib/alert/index.js +1 -214
  6. package/lib/animate-number/index.js +1 -155
  7. package/lib/backtop/index.js +1 -188
  8. package/lib/badge/index.js +1 -235
  9. package/lib/breadcrumb/index.js +1 -309
  10. package/lib/button/index.js +1 -321
  11. package/lib/card/index.js +1 -285
  12. package/lib/cascader/index.js +2 -2036
  13. package/lib/cascader/index.js.LICENSE.txt +1 -0
  14. package/lib/checkbox/index.js +1 -542
  15. package/lib/code-diff/index.js +1 -5501
  16. package/lib/collapse/index.js +1 -570
  17. package/lib/collapse-transition/index.js +1 -177
  18. package/lib/color-picker/index.js +1 -2665
  19. package/lib/components.js +1 -530
  20. package/lib/config-provider/index.js +1 -365
  21. package/lib/container/index.js +1 -391
  22. package/lib/date-picker/index.js +1 -5527
  23. package/lib/dialog/index.js +2 -975
  24. package/lib/dialog/index.js.LICENSE.txt +1 -0
  25. package/lib/directives/index.js +2 -1375
  26. package/lib/directives/index.js.LICENSE.txt +14 -0
  27. package/lib/dist.index.js +1 -87
  28. package/lib/divider/index.js +1 -169
  29. package/lib/dropdown/index.js +1 -369
  30. package/lib/exception/index.js +1 -385
  31. package/lib/fixed-navbar/index.js +1 -154
  32. package/lib/form/index.js +1 -952
  33. package/lib/hooks.js +1 -73
  34. package/lib/icon/angle-double-down-line.js +1 -191
  35. package/lib/icon/angle-double-left-line.js +1 -191
  36. package/lib/icon/angle-double-left.js +1 -191
  37. package/lib/icon/angle-double-right-line.js +1 -191
  38. package/lib/icon/angle-double-right.js +1 -191
  39. package/lib/icon/angle-double-up-line.js +1 -191
  40. package/lib/icon/angle-down-fill.js +1 -191
  41. package/lib/icon/angle-down-line.js +1 -191
  42. package/lib/icon/angle-down.js +1 -191
  43. package/lib/icon/angle-left.js +1 -191
  44. package/lib/icon/angle-right.js +1 -191
  45. package/lib/icon/angle-up-fill.js +1 -191
  46. package/lib/icon/angle-up.js +1 -191
  47. package/lib/icon/archive-fill.js +1 -191
  48. package/lib/icon/arrows-left.js +1 -191
  49. package/lib/icon/arrows-right.js +1 -191
  50. package/lib/icon/assistant.js +1 -191
  51. package/lib/icon/audio-fill.js +1 -191
  52. package/lib/icon/bk.js +1 -191
  53. package/lib/icon/circle.js +1 -191
  54. package/lib/icon/close-line.js +1 -191
  55. package/lib/icon/close.js +1 -191
  56. package/lib/icon/code.js +1 -191
  57. package/lib/icon/cog-shape.js +1 -191
  58. package/lib/icon/collapse-left.js +1 -191
  59. package/lib/icon/copy-shape.js +1 -191
  60. package/lib/icon/copy.js +1 -191
  61. package/lib/icon/data-shape.js +1 -191
  62. package/lib/icon/del.js +1 -191
  63. package/lib/icon/doc-fill.js +1 -191
  64. package/lib/icon/done.js +1 -191
  65. package/lib/icon/down-shape.js +1 -191
  66. package/lib/icon/down-small.js +1 -191
  67. package/lib/icon/edit-line.js +1 -191
  68. package/lib/icon/ellipsis.js +1 -191
  69. package/lib/icon/enlarge-line.js +1 -191
  70. package/lib/icon/error.js +1 -191
  71. package/lib/icon/excel-fill.js +1 -191
  72. package/lib/icon/exclamation-circle-shape.js +1 -191
  73. package/lib/icon/eye.js +1 -191
  74. package/lib/icon/filliscreen-line.js +1 -191
  75. package/lib/icon/fix-line.js +1 -191
  76. package/lib/icon/fix-shape.js +1 -191
  77. package/lib/icon/folder-open.js +1 -191
  78. package/lib/icon/folder-shape-open.js +1 -191
  79. package/lib/icon/folder-shape.js +1 -191
  80. package/lib/icon/folder.js +1 -191
  81. package/lib/icon/funnel.js +1 -191
  82. package/lib/icon/help-document-fill.js +1 -191
  83. package/lib/icon/help-fill.js +1 -191
  84. package/lib/icon/help.js +1 -191
  85. package/lib/icon/image-fill.js +1 -276
  86. package/lib/icon/img-error.js +1 -276
  87. package/lib/icon/img-placehoulder.js +1 -276
  88. package/lib/icon/index.js +1 -2399
  89. package/lib/icon/info-line.js +1 -276
  90. package/lib/icon/info.js +1 -276
  91. package/lib/icon/left-shape.js +1 -276
  92. package/lib/icon/left-turn-line.js +1 -276
  93. package/lib/icon/narrow-line.js +1 -276
  94. package/lib/icon/original.js +1 -276
  95. package/lib/icon/pdf-fill.js +1 -276
  96. package/lib/icon/play-shape.js +1 -276
  97. package/lib/icon/plus.js +1 -276
  98. package/lib/icon/ppt-fill.js +1 -276
  99. package/lib/icon/qq.js +1 -276
  100. package/lib/icon/right-shape.js +1 -276
  101. package/lib/icon/right-turn-line.js +1 -276
  102. package/lib/icon/search.js +1 -276
  103. package/lib/icon/share.js +1 -276
  104. package/lib/icon/spinner.js +1 -276
  105. package/lib/icon/success.js +1 -276
  106. package/lib/icon/switcher-loading.js +1 -276
  107. package/lib/icon/text-file.js +1 -276
  108. package/lib/icon/text-fill.js +1 -276
  109. package/lib/icon/transfer.js +1 -276
  110. package/lib/icon/tree-application-shape.js +1 -276
  111. package/lib/icon/unfull-screen.js +1 -276
  112. package/lib/icon/unvisible.js +1 -276
  113. package/lib/icon/up-shape.js +1 -276
  114. package/lib/icon/upload.js +1 -276
  115. package/lib/icon/video-fill.js +1 -276
  116. package/lib/icon/warn.js +1 -276
  117. package/lib/icon/weixin-pro.js +1 -276
  118. package/lib/icon/weixin.js +1 -276
  119. package/lib/image/index.js +1 -641
  120. package/lib/index.js +1 -97
  121. package/lib/info-box/index.js +2 -1165
  122. package/lib/info-box/index.js.LICENSE.txt +1 -0
  123. package/lib/input/index.js +2 -1218
  124. package/lib/input/index.js.LICENSE.txt +1 -0
  125. package/lib/link/index.js +1 -160
  126. package/lib/loading/index.js +1 -381
  127. package/lib/locale/index.js +1 -465
  128. package/lib/menu/index.js +1 -724
  129. package/lib/message/index.js +2 -1795
  130. package/lib/message/index.js.LICENSE.txt +6 -0
  131. package/lib/modal/index.js +1 -396
  132. package/lib/navigation/index.js +1 -367
  133. package/lib/notify/index.js +1 -397
  134. package/lib/overflow-title/index.js +1 -461
  135. package/lib/pagination/index.js +1 -880
  136. package/lib/plugin-popover/index.js +1 -3905
  137. package/lib/plugins/index.js +1 -63
  138. package/lib/pop-confirm/index.js +1 -273
  139. package/lib/popover/index.js +1 -3913
  140. package/lib/popover2/index.js +1 -107
  141. package/lib/preset.js +1 -93
  142. package/lib/process/index.js +2 -759
  143. package/lib/process/index.js.LICENSE.txt +1 -0
  144. package/lib/progress/index.js +1 -431
  145. package/lib/radio/index.js +1 -627
  146. package/lib/rate/index.js +1 -338
  147. package/lib/resize-layout/index.js +1 -429
  148. package/lib/search-select/index.js +2 -2729
  149. package/lib/search-select/index.js.LICENSE.txt +1 -0
  150. package/lib/select/index.js +2 -2251
  151. package/lib/select/index.js.LICENSE.txt +1 -0
  152. package/lib/shared/index.js +1 -2689
  153. package/lib/sideslider/index.js +2 -714
  154. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  155. package/lib/slider/index.js +2 -1291
  156. package/lib/slider/index.js.LICENSE.txt +1 -0
  157. package/lib/steps/index.js +2 -825
  158. package/lib/steps/index.js.LICENSE.txt +1 -0
  159. package/lib/swiper/index.js +1 -336
  160. package/lib/switcher/index.js +1 -277
  161. package/lib/tab/index.js +1 -914
  162. package/lib/table/index.js +1 -6222
  163. package/lib/table/plugins/use-column-resize.d.ts +1 -1
  164. package/lib/table/use-column.d.ts +87 -0
  165. package/lib/table-column/index.js +1 -763
  166. package/lib/tag/index.js +1 -233
  167. package/lib/tag-input/index.js +1 -1660
  168. package/lib/tag-input/tag-input.d.ts +14 -2
  169. package/lib/time-picker/index.js +1 -71
  170. package/lib/timeline/index.js +1 -241
  171. package/lib/transfer/index.js +1 -673
  172. package/lib/tree/index.js +1 -2502
  173. package/lib/upload/index.js +2 -2874
  174. package/lib/upload/index.js.LICENSE.txt +1 -0
  175. package/lib/virtual-render/index.js +1 -865
  176. package/package.json +2 -13
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Checks if an event is supported in the current execution environment.
3
+ *
4
+ * NOTE: This will not work correctly for non-generic events such as `change`,
5
+ * `reset`, `load`, `error`, and `select`.
6
+ *
7
+ * Borrows from Modernizr.
8
+ *
9
+ * @param {string} eventNameSuffix Event name, e.g. "click".
10
+ * @param {?boolean} capture Check if the capture phase is supported.
11
+ * @return {boolean} True if the event is supported.
12
+ * @internal
13
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
14
+ */
package/lib/dist.index.js CHANGED
@@ -1,87 +1 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__styles_9b7bdad5__ from "./styles";
2
- import * as __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__ from "./preset";
3
- import * as __WEBPACK_EXTERNAL_MODULE__components_96ad247a__ from "./components";
4
- import * as __WEBPACK_EXTERNAL_MODULE__directives_37095733__ from "./directives";
5
- import * as __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__ from "./config-provider";
6
- /******/ // The require scope
7
- /******/ var __webpack_require__ = {};
8
- /******/
9
- /************************************************************************/
10
- /******/ /* webpack/runtime/define property getters */
11
- /******/ (() => {
12
- /******/ // define getter functions for harmony exports
13
- /******/ __webpack_require__.d = (exports, definition) => {
14
- /******/ for(var key in definition) {
15
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
16
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
17
- /******/ }
18
- /******/ }
19
- /******/ };
20
- /******/ })();
21
- /******/
22
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
23
- /******/ (() => {
24
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
25
- /******/ })();
26
- /******/
27
- /************************************************************************/
28
- var __webpack_exports__ = {};
29
-
30
- // EXPORTS
31
- __webpack_require__.d(__webpack_exports__, {
32
- "default": () => (/* reexport */ external_preset_namespaceObject["default"])
33
- });
34
-
35
- ;// CONCATENATED MODULE: external "./styles"
36
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
37
- var y = x => () => x
38
- const external_styles_namespaceObject = x({ });
39
- ;// CONCATENATED MODULE: external "./preset"
40
- var external_preset_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
41
- var external_preset_y = x => () => x
42
- const external_preset_namespaceObject = external_preset_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__["default"] });
43
- ;// CONCATENATED MODULE: external "./components"
44
- var external_components_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
45
- var external_components_y = x => () => x
46
- const external_components_namespaceObject = external_components_x({ });
47
- ;// CONCATENATED MODULE: external "./directives"
48
- var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
49
- var external_directives_y = x => () => x
50
- const external_directives_namespaceObject = external_directives_x({ });
51
- ;// CONCATENATED MODULE: external "./config-provider"
52
- var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
53
- var external_config_provider_y = x => () => x
54
- const external_config_provider_namespaceObject = external_config_provider_x({ });
55
- ;// CONCATENATED MODULE: ../../packages/bkui-vue/dist.index.ts
56
- /*
57
- * Tencent is pleased to support the open source community by making
58
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
59
- *
60
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
61
- *
62
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
63
- *
64
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
65
- *
66
- * ---------------------------------------------------
67
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
68
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
69
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
70
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
71
- *
72
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
73
- * the Software.
74
- *
75
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
76
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
77
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
78
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
79
- * IN THE SOFTWARE.
80
- */
81
-
82
-
83
-
84
-
85
-
86
- var __webpack_exports__default = __webpack_exports__["default"];
87
- export { __webpack_exports__default as default };
1
+ import*as r from"./styles";import*as e from"./preset";import*as o from"./components";import*as t from"./directives";import*as a from"./config-provider";var d={d:(r,e)=>{for(var o in e)d.o(e,o)&&!d.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:e[o]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)},f={};d.d(f,{default:()=>p.default}),d.d({},{});const p=(s={default:()=>e.default},m={},d.d(m,s),m);var s,m;d.d({},{}),d.d({},{}),d.d({},{});var i=f.default;export{i as default};
@@ -1,169 +1 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
2
- import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
- import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
4
- /******/ // The require scope
5
- /******/ var __webpack_require__ = {};
6
- /******/
7
- /************************************************************************/
8
- /******/ /* webpack/runtime/define property getters */
9
- /******/ (() => {
10
- /******/ // define getter functions for harmony exports
11
- /******/ __webpack_require__.d = (exports, definition) => {
12
- /******/ for(var key in definition) {
13
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
14
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
15
- /******/ }
16
- /******/ }
17
- /******/ };
18
- /******/ })();
19
- /******/
20
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
21
- /******/ (() => {
22
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
23
- /******/ })();
24
- /******/
25
- /************************************************************************/
26
- var __webpack_exports__ = {};
27
-
28
- // EXPORTS
29
- __webpack_require__.d(__webpack_exports__, {
30
- Z: () => (/* binding */ src)
31
- });
32
-
33
- ;// CONCATENATED MODULE: external "../shared"
34
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
35
- var y = x => () => x
36
- const external_shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.alignType, ["directionType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.directionType, ["lineStyleType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.lineStyleType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
37
- ;// CONCATENATED MODULE: external "vue"
38
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
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 "../config-provider"
42
- var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
43
- var external_config_provider_y = x => () => x
44
- const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
45
- ;// CONCATENATED MODULE: ../../packages/divider/src/props.ts
46
- /*
47
- * Tencent is pleased to support the open source community by making
48
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
49
- *
50
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
51
- *
52
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
53
- *
54
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
55
- *
56
- * ---------------------------------------------------
57
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
58
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
59
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
60
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
61
- *
62
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
63
- * the Software.
64
- *
65
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
66
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
67
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
68
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
69
- * IN THE SOFTWARE.
70
- */
71
-
72
- var dividerProps = {
73
- direction: (0,external_shared_namespaceObject.directionType)(),
74
- align: (0,external_shared_namespaceObject.alignType)().def(external_shared_namespaceObject.AlignEnum.CENTER),
75
- color: external_shared_namespaceObject.PropTypes.string.def('#dde4eb'),
76
- width: external_shared_namespaceObject.PropTypes.number.def(1),
77
- type: (0,external_shared_namespaceObject.lineStyleType)()
78
- };
79
- ;// CONCATENATED MODULE: ../../packages/divider/src/divider.tsx
80
-
81
- /*
82
- * Tencent is pleased to support the open source community by making
83
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
84
- *
85
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
86
- *
87
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
88
- *
89
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
90
- *
91
- * ---------------------------------------------------
92
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
93
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
94
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
95
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
96
- *
97
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
98
- * the Software.
99
- *
100
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
101
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
102
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
103
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
104
- * IN THE SOFTWARE.
105
- */
106
-
107
-
108
-
109
- /* harmony default export */ const divider = ((0,external_vue_namespaceObject.defineComponent)({
110
- name: 'Divider',
111
- props: dividerProps,
112
- render: function render() {
113
- var _this = this;
114
- var styles = function styles() {
115
- if (_this.direction === 'vertical') {
116
- return {
117
- borderRight: "".concat(_this.width, "px ").concat(_this.type, " ").concat(_this.color)
118
- };
119
- }
120
- return {
121
- borderBottom: "".concat(_this.width, "px ").concat(_this.type, " ").concat(_this.color)
122
- };
123
- };
124
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
125
- resolveClassName = _usePrefix.resolveClassName;
126
- var slots;
127
- if (this.$slots["default"]) {
128
- slots = (0,external_vue_namespaceObject.createVNode)("div", {
129
- "class": [resolveClassName('divider-info'), resolveClassName("divider-info-".concat(this.align))]
130
- }, [this.$slots["default"]()]);
131
- }
132
- return (0,external_vue_namespaceObject.createVNode)("div", {
133
- "class": [resolveClassName('divider'), resolveClassName("divider-".concat(this.direction))],
134
- "style": styles()
135
- }, [slots]);
136
- }
137
- }));
138
- ;// CONCATENATED MODULE: ../../packages/divider/src/index.ts
139
- /*
140
- * Tencent is pleased to support the open source community by making
141
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
142
- *
143
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
144
- *
145
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
146
- *
147
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
148
- *
149
- * ---------------------------------------------------
150
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
151
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
152
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
153
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
154
- *
155
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
156
- * the Software.
157
- *
158
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
159
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
160
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
161
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
162
- * IN THE SOFTWARE.
163
- */
164
-
165
-
166
- var BkDivider = (0,external_shared_namespaceObject.withInstall)(divider);
167
- /* harmony default export */ const src = (BkDivider);
168
- var __webpack_exports__default = __webpack_exports__.Z;
169
- export { __webpack_exports__default as default };
1
+ import*as e from"../shared";import*as t from"vue";import*as r from"../config-provider";var i={d:(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};i.d(o,{Z:()=>y});const n=(d={AlignEnum:()=>e.AlignEnum,PropTypes:()=>e.PropTypes,alignType:()=>e.alignType,directionType:()=>e.directionType,lineStyleType:()=>e.lineStyleType,withInstall:()=>e.withInstall},a={},i.d(a,d),a);var d,a;const c=(e=>{var t={};return i.d(t,e),t})({createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent}),s=(e=>{var t={};return i.d(t,e),t})({usePrefix:()=>r.usePrefix});var l={direction:(0,n.directionType)(),align:(0,n.alignType)().def(n.AlignEnum.CENTER),color:n.PropTypes.string.def("#dde4eb"),width:n.PropTypes.number.def(1),type:(0,n.lineStyleType)()};const p=(0,c.defineComponent)({name:"Divider",props:l,render:function(){var e,t=this,r=(0,s.usePrefix)().resolveClassName;return this.$slots.default&&(e=(0,c.createVNode)("div",{class:[r("divider-info"),r("divider-info-".concat(this.align))]},[this.$slots.default()])),(0,c.createVNode)("div",{class:[r("divider"),r("divider-".concat(this.direction))],style:"vertical"===t.direction?{borderRight:"".concat(t.width,"px ").concat(t.type," ").concat(t.color)}:{borderBottom:"".concat(t.width,"px ").concat(t.type," ").concat(t.color)}},[e])}}),y=(0,n.withInstall)(p);var f=o.Z;export{f as default};
@@ -1,369 +1 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
2
- import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
- import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
4
- import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
5
- import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
6
- /******/ // The require scope
7
- /******/ var __webpack_require__ = {};
8
- /******/
9
- /************************************************************************/
10
- /******/ /* webpack/runtime/define property getters */
11
- /******/ (() => {
12
- /******/ // define getter functions for harmony exports
13
- /******/ __webpack_require__.d = (exports, definition) => {
14
- /******/ for(var key in definition) {
15
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
16
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
17
- /******/ }
18
- /******/ }
19
- /******/ };
20
- /******/ })();
21
- /******/
22
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
23
- /******/ (() => {
24
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
25
- /******/ })();
26
- /******/
27
- /************************************************************************/
28
- var __webpack_exports__ = {};
29
-
30
- // EXPORTS
31
- __webpack_require__.d(__webpack_exports__, {
32
- zB: () => (/* binding */ BkDropdown),
33
- T8: () => (/* reexport */ dropdown_item),
34
- zx: () => (/* reexport */ dropdown_menu),
35
- ZP: () => (/* binding */ src)
36
- });
37
-
38
- ;// CONCATENATED MODULE: external "../shared"
39
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
40
- var y = x => () => x
41
- const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.placementType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.triggerType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
42
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
43
- function _typeof(obj) {
44
- "@babel/helpers - typeof";
45
-
46
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
47
- return typeof obj;
48
- } : function (obj) {
49
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
50
- }, _typeof(obj);
51
- }
52
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
53
-
54
- function _toPrimitive(input, hint) {
55
- if (_typeof(input) !== "object" || input === null) return input;
56
- var prim = input[Symbol.toPrimitive];
57
- if (prim !== undefined) {
58
- var res = prim.call(input, hint || "default");
59
- if (_typeof(res) !== "object") return res;
60
- throw new TypeError("@@toPrimitive must return a primitive value.");
61
- }
62
- return (hint === "string" ? String : Number)(input);
63
- }
64
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
65
-
66
-
67
- function _toPropertyKey(arg) {
68
- var key = _toPrimitive(arg, "string");
69
- return _typeof(key) === "symbol" ? key : String(key);
70
- }
71
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
72
-
73
- function _defineProperty(obj, key, value) {
74
- key = _toPropertyKey(key);
75
- if (key in obj) {
76
- Object.defineProperty(obj, key, {
77
- value: value,
78
- enumerable: true,
79
- configurable: true,
80
- writable: true
81
- });
82
- } else {
83
- obj[key] = value;
84
- }
85
- return obj;
86
- }
87
- ;// CONCATENATED MODULE: external "vue"
88
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
89
- var external_vue_y = x => () => x
90
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
91
- ;// CONCATENATED MODULE: external "lodash/merge"
92
- var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
93
- var merge_y = x => () => x
94
- const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
95
- ;// CONCATENATED MODULE: external "../config-provider"
96
- var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
97
- var external_config_provider_y = x => () => x
98
- const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
99
- ;// CONCATENATED MODULE: external "../popover"
100
- var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
101
- var external_popover_y = x => () => x
102
- const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
103
- ;// CONCATENATED MODULE: ../../packages/dropdown/src/dropdown.tsx
104
-
105
-
106
- /*
107
- * Tencent is pleased to support the open source community by making
108
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
109
- *
110
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
111
- *
112
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
113
- *
114
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
115
- *
116
- * ---------------------------------------------------
117
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
118
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
119
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
120
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
121
- *
122
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
123
- * the Software.
124
- *
125
- * THE SOFTWARE IS PROVIDED "AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
126
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
127
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
128
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
129
- * IN THE SOFTWARE.
130
- */
131
-
132
-
133
-
134
-
135
-
136
- /* harmony default export */ const dropdown = ((0,external_vue_namespaceObject.defineComponent)({
137
- name: 'Dropdown',
138
- props: {
139
- /** trigger = manual时候控制显隐藏 */
140
- isShow: external_shared_namespaceObject.PropTypes.bool.def(false),
141
- /** 弹层出现位置 */
142
- placement: (0,external_shared_namespaceObject.placementType)(),
143
- /** 触发方式 */
144
- trigger: (0,external_shared_namespaceObject.triggerType)(),
145
- /** 是否禁用 */
146
- disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
147
- /** popover属性 */
148
- popoverOptions: external_shared_namespaceObject.PropTypes.object.def({}),
149
- /** 外部设置的 class name */
150
- extCls: external_shared_namespaceObject.PropTypes.string
151
- },
152
- emits: ['showChange', 'show', 'hide'],
153
- setup: function setup(_props, _ref) {
154
- var emit = _ref.emit;
155
- /** 弹层显示值变更 */
156
- var handleShowChagne = function handleShowChagne(val) {
157
- emit('showChange', val);
158
- };
159
- /** 显示后回调 */
160
- var afterShow = function afterShow() {
161
- emit('show');
162
- handleShowChagne(true);
163
- };
164
- /** 隐藏后回调 */
165
- var afterHidden = function afterHidden() {
166
- emit('hide');
167
- handleShowChagne(false);
168
- };
169
- var popoverRef = (0,external_vue_namespaceObject.ref)(null);
170
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
171
- resolveClassName = _usePrefix.resolveClassName;
172
- return {
173
- afterShow: afterShow,
174
- afterHidden: afterHidden,
175
- popoverRef: popoverRef,
176
- resolveClassName: resolveClassName
177
- };
178
- },
179
- render: function render() {
180
- var _this = this;
181
- var wrapperClasses = (0,external_shared_namespaceObject.classes)(_defineProperty({}, "".concat(this.resolveClassName('dropdown')), true), this.$props.extCls);
182
- /** popover 基础配置 */
183
- var basePopoverOptions = {
184
- theme: "light ".concat(this.resolveClassName('dropdown-popover')),
185
- trigger: this.trigger,
186
- arrow: false,
187
- placement: this.placement,
188
- isShow: this.isShow,
189
- disabled: this.disabled
190
- };
191
- var popoverOptions = (0,merge_namespaceObject["default"])(basePopoverOptions, this.popoverOptions);
192
- return (0,external_vue_namespaceObject.createVNode)("div", {
193
- "class": wrapperClasses
194
- }, [(0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
195
- "ref": "popoverRef"
196
- }, popoverOptions, {
197
- "onAfterShow": this.afterShow,
198
- "onAfterHidden": this.afterHidden
199
- }), {
200
- "default": function _default() {
201
- var _this$$slots$default, _this$$slots;
202
- return (0,external_vue_namespaceObject.createVNode)("div", {
203
- "class": "".concat(_this.resolveClassName('dropdown-reference'))
204
- }, [(0,external_vue_namespaceObject.createTextVNode)(" "), (_this$$slots$default = (_this$$slots = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots), (0,external_vue_namespaceObject.createTextVNode)(" ")]);
205
- },
206
- content: function content() {
207
- var _this$$slots$content, _this$$slots2;
208
- return (0,external_vue_namespaceObject.createVNode)("div", {
209
- "class": "".concat(_this.resolveClassName('dropdown-content'))
210
- }, [(0,external_vue_namespaceObject.createTextVNode)(" "), (_this$$slots$content = (_this$$slots2 = _this.$slots).content) === null || _this$$slots$content === void 0 ? void 0 : _this$$slots$content.call(_this$$slots2), (0,external_vue_namespaceObject.createTextVNode)(" ")]);
211
- }
212
- })]);
213
- }
214
- }));
215
- ;// CONCATENATED MODULE: ../../packages/dropdown/src/dropdown-item.tsx
216
-
217
- /*
218
- * Tencent is pleased to support the open source community by making
219
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
220
- *
221
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
222
- *
223
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
224
- *
225
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
226
- *
227
- * ---------------------------------------------------
228
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
229
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
230
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
231
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
232
- *
233
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
234
- * the Software.
235
- *
236
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
237
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
238
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
239
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
240
- * IN THE SOFTWARE.
241
- */
242
-
243
-
244
-
245
- /* harmony default export */ const dropdown_item = ((0,external_vue_namespaceObject.defineComponent)({
246
- name: 'DropdownItem',
247
- props: {
248
- /** 外部设置的 class name */
249
- extCls: external_shared_namespaceObject.PropTypes.string
250
- },
251
- emits: ['click'],
252
- setup: function setup(props, _ref) {
253
- var emit = _ref.emit;
254
- var handleClick = function handleClick(evt) {
255
- evt.stopPropagation();
256
- emit('click', evt);
257
- };
258
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
259
- resolveClassName = _usePrefix.resolveClassName;
260
- var wrapperCLasses = (0,external_vue_namespaceObject.computed)(function () {
261
- return [resolveClassName('dropdown-item'), props.extCls];
262
- });
263
- return {
264
- wrapperCLasses: wrapperCLasses,
265
- handleClick: handleClick
266
- };
267
- },
268
- render: function render() {
269
- var _this$$slots$default, _this$$slots;
270
- return (0,external_vue_namespaceObject.createVNode)("li", {
271
- "class": this.wrapperCLasses,
272
- "onClick": this.handleClick
273
- }, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]);
274
- }
275
- }));
276
- ;// CONCATENATED MODULE: ../../packages/dropdown/src/dropdown-menu.tsx
277
-
278
- /*
279
- * Tencent is pleased to support the open source community by making
280
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
281
- *
282
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
283
- *
284
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
285
- *
286
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
287
- *
288
- * ---------------------------------------------------
289
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
290
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
291
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
292
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
293
- *
294
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
295
- * the Software.
296
- *
297
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
298
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
299
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
300
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
301
- * IN THE SOFTWARE.
302
- */
303
-
304
-
305
-
306
- /* harmony default export */ const dropdown_menu = ((0,external_vue_namespaceObject.defineComponent)({
307
- name: 'DropdownMenu',
308
- props: {
309
- /** 外部设置的 class name */
310
- extCls: external_shared_namespaceObject.PropTypes.string
311
- },
312
- setup: function setup(props) {
313
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
314
- resolveClassName = _usePrefix.resolveClassName;
315
- var wrapperCLasses = (0,external_vue_namespaceObject.computed)(function () {
316
- return [resolveClassName('dropdown-menu'), props.extCls];
317
- });
318
- return {
319
- wrapperCLasses: wrapperCLasses
320
- };
321
- },
322
- render: function render() {
323
- var _this$$slots$default, _this$$slots;
324
- return (0,external_vue_namespaceObject.createVNode)("ul", {
325
- "class": this.wrapperCLasses
326
- }, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]);
327
- }
328
- }));
329
- ;// CONCATENATED MODULE: ../../packages/dropdown/src/index.ts
330
- /*
331
- * Tencent is pleased to support the open source community by making
332
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
333
- *
334
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
335
- *
336
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
337
- *
338
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
339
- *
340
- * ---------------------------------------------------
341
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
342
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
343
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
344
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
345
- *
346
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
347
- * the Software.
348
- *
349
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
350
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
351
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
352
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
353
- * IN THE SOFTWARE.
354
- */
355
-
356
-
357
-
358
-
359
- var BkDropdown = (0,external_shared_namespaceObject.withInstallProps)(dropdown, {
360
- DropdownMenu: dropdown_menu,
361
- DropdownItem: dropdown_item
362
- });
363
- /* harmony default export */ const src = (BkDropdown);
364
-
365
- var __webpack_exports__BkDropdown = __webpack_exports__.zB;
366
- var __webpack_exports__BkDropdownItem = __webpack_exports__.T8;
367
- var __webpack_exports__BkDropdownMenu = __webpack_exports__.zx;
368
- var __webpack_exports__default = __webpack_exports__.ZP;
369
- export { __webpack_exports__BkDropdown as BkDropdown, __webpack_exports__BkDropdownItem as BkDropdownItem, __webpack_exports__BkDropdownMenu as BkDropdownMenu, __webpack_exports__default as default };
1
+ import*as e from"../shared";import*as r from"vue";import*as o from"lodash";import*as t from"../config-provider";import*as n from"../popover";var s={d:(e,r)=>{for(var o in r)s.o(r,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r)},a={};s.d(a,{zB:()=>y,T8:()=>h,zx:()=>w,ZP:()=>g});const i=(p={PropTypes:()=>e.PropTypes,classes:()=>e.classes,placementType:()=>e.placementType,triggerType:()=>e.triggerType,withInstallProps:()=>e.withInstallProps},l={},s.d(l,p),l);var p,l;function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}const c=(e=>{var r={};return s.d(r,e),r})({computed:()=>r.computed,createTextVNode:()=>r.createTextVNode,createVNode:()=>r.createVNode,defineComponent:()=>r.defineComponent,mergeProps:()=>r.mergeProps,ref:()=>r.ref}),u=(e=>{var r={};return s.d(r,e),r})({merge:()=>o.merge}),f=(e=>{var r={};return s.d(r,e),r})({usePrefix:()=>t.usePrefix}),m=(e=>{var r={};return s.d(r,e),r})({default:()=>n.default}),v=(0,c.defineComponent)({name:"Dropdown",props:{isShow:i.PropTypes.bool.def(!1),placement:(0,i.placementType)(),trigger:(0,i.triggerType)(),disabled:i.PropTypes.bool.def(!1),popoverOptions:i.PropTypes.object.def({}),extCls:i.PropTypes.string},emits:["showChange","show","hide"],setup:function(e,r){var o=r.emit,t=function(e){o("showChange",e)};return{afterShow:function(){o("show"),t(!0)},afterHidden:function(){o("hide"),t(!1)},popoverRef:(0,c.ref)(null),resolveClassName:(0,f.usePrefix)().resolveClassName}},render:function(){var e,r,o=this,t=(0,i.classes)((e={},!0,(r=function(e){var r=function(e,r){if("object"!==d(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var t=o.call(e,"string");if("object"!==d(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===d(r)?r:String(r)}(r="".concat(this.resolveClassName("dropdown"))))in e?Object.defineProperty(e,r,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[r]=true,e),this.$props.extCls),n={theme:"light ".concat(this.resolveClassName("dropdown-popover")),trigger:this.trigger,arrow:!1,placement:this.placement,isShow:this.isShow,disabled:this.disabled},s=(0,u.merge)(n,this.popoverOptions);return(0,c.createVNode)("div",{class:t},[(0,c.createVNode)(m.default,(0,c.mergeProps)({ref:"popoverRef"},s,{onAfterShow:this.afterShow,onAfterHidden:this.afterHidden}),{default:function(){var e,r;return(0,c.createVNode)("div",{class:"".concat(o.resolveClassName("dropdown-reference"))},[(0,c.createTextVNode)(" "),null===(r=(e=o.$slots).default)||void 0===r?void 0:r.call(e),(0,c.createTextVNode)(" ")])},content:function(){var e,r;return(0,c.createVNode)("div",{class:"".concat(o.resolveClassName("dropdown-content"))},[(0,c.createTextVNode)(" "),null===(r=(e=o.$slots).content)||void 0===r?void 0:r.call(e),(0,c.createTextVNode)(" ")])}})])}}),h=(0,c.defineComponent)({name:"DropdownItem",props:{extCls:i.PropTypes.string},emits:["click"],setup:function(e,r){var o=r.emit,t=(0,f.usePrefix)().resolveClassName;return{wrapperCLasses:(0,c.computed)((function(){return[t("dropdown-item"),e.extCls]})),handleClick:function(e){e.stopPropagation(),o("click",e)}}},render:function(){var e,r;return(0,c.createVNode)("li",{class:this.wrapperCLasses,onClick:this.handleClick},[null===(r=(e=this.$slots).default)||void 0===r?void 0:r.call(e)])}}),w=(0,c.defineComponent)({name:"DropdownMenu",props:{extCls:i.PropTypes.string},setup:function(e){var r=(0,f.usePrefix)().resolveClassName;return{wrapperCLasses:(0,c.computed)((function(){return[r("dropdown-menu"),e.extCls]}))}},render:function(){var e,r;return(0,c.createVNode)("ul",{class:this.wrapperCLasses},[null===(r=(e=this.$slots).default)||void 0===r?void 0:r.call(e)])}});var y=(0,i.withInstallProps)(v,{DropdownMenu:w,DropdownItem:h});const g=y;var C=a.zB,P=a.T8,b=a.zx,T=a.ZP;export{C as BkDropdown,P as BkDropdownItem,b as BkDropdownMenu,T as default};