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
@@ -1,63 +1 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__plugin_popover_d49f5bb2__ from "../plugin-popover";
2
- /******/ // The require scope
3
- /******/ var __webpack_require__ = {};
4
- /******/
5
- /************************************************************************/
6
- /******/ /* webpack/runtime/define property getters */
7
- /******/ (() => {
8
- /******/ // define getter functions for harmony exports
9
- /******/ __webpack_require__.d = (exports, definition) => {
10
- /******/ for(var key in definition) {
11
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
12
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
13
- /******/ }
14
- /******/ }
15
- /******/ };
16
- /******/ })();
17
- /******/
18
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
19
- /******/ (() => {
20
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
21
- /******/ })();
22
- /******/
23
- /************************************************************************/
24
- var __webpack_exports__ = {};
25
-
26
- // EXPORTS
27
- __webpack_require__.d(__webpack_exports__, {
28
- k: () => (/* reexport */ external_plugin_popover_namespaceObject["default"])
29
- });
30
-
31
- ;// CONCATENATED MODULE: external "../plugin-popover"
32
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
33
- var y = x => () => x
34
- const external_plugin_popover_namespaceObject = x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__plugin_popover_d49f5bb2__["default"] });
35
- ;// CONCATENATED MODULE: ../../packages/plugins/src/index.ts
36
- /*
37
- * Tencent is pleased to support the open source community by making
38
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
39
- *
40
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
41
- *
42
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
43
- *
44
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
45
- *
46
- * ---------------------------------------------------
47
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
48
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
49
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
50
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
51
- *
52
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
53
- * the Software.
54
- *
55
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
56
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
57
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
58
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
59
- * IN THE SOFTWARE.
60
- */
61
-
62
- var __webpack_exports__$bkPopover = __webpack_exports__.k;
63
- export { __webpack_exports__$bkPopover as $bkPopover };
1
+ import*as e from"../plugin-popover";var o={d:(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},r={};o.d(r,{k:()=>t.default});const t=(a={default:()=>e.default},p={},o.d(p,a),p);var a,p,d=r.k;export{d as $bkPopover};
@@ -1,273 +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__button_59c00871__ from "../button";
4
- import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
5
- import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
6
- import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
7
- /******/ // The require scope
8
- /******/ var __webpack_require__ = {};
9
- /******/
10
- /************************************************************************/
11
- /******/ /* webpack/runtime/define property getters */
12
- /******/ (() => {
13
- /******/ // define getter functions for harmony exports
14
- /******/ __webpack_require__.d = (exports, definition) => {
15
- /******/ for(var key in definition) {
16
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
17
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
18
- /******/ }
19
- /******/ }
20
- /******/ };
21
- /******/ })();
22
- /******/
23
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
24
- /******/ (() => {
25
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
26
- /******/ })();
27
- /******/
28
- /************************************************************************/
29
- var __webpack_exports__ = {};
30
-
31
- // EXPORTS
32
- __webpack_require__.d(__webpack_exports__, {
33
- Z: () => (/* binding */ src)
34
- });
35
-
36
- ;// CONCATENATED MODULE: external "../shared"
37
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
38
- var y = x => () => x
39
- const external_shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.placementType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
40
- ;// CONCATENATED MODULE: external "vue"
41
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
42
- var external_vue_y = x => () => x
43
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
44
- ;// CONCATENATED MODULE: external "../button"
45
- var external_button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
46
- var external_button_y = x => () => x
47
- const external_button_namespaceObject = external_button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__button_59c00871__["default"] });
48
- ;// CONCATENATED MODULE: external "../config-provider"
49
- var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
50
- var external_config_provider_y = x => () => x
51
- const external_config_provider_namespaceObject = external_config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
52
- ;// CONCATENATED MODULE: external "../popover"
53
- var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
54
- var external_popover_y = x => () => x
55
- const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
56
- ;// CONCATENATED MODULE: external "vue-types"
57
- var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
58
- var external_vue_types_y = x => () => x
59
- const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
60
- ;// CONCATENATED MODULE: ../../packages/pop-confirm/src/props.ts
61
- /*
62
- * Tencent is pleased to support the open source community by making
63
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
64
- *
65
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
66
- *
67
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
68
- *
69
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
70
- *
71
- * ---------------------------------------------------
72
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
73
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
74
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
75
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
76
- *
77
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
78
- * the Software.
79
- *
80
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
81
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
82
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
83
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
84
- * IN THE SOFTWARE.
85
- */
86
-
87
-
88
- var TriggerEnum;
89
- (function (TriggerEnum) {
90
- TriggerEnum["HOVER"] = "hover";
91
- TriggerEnum["CLICK"] = "click";
92
- })(TriggerEnum || (TriggerEnum = {}));
93
- function triggerType() {
94
- return (0,external_vue_types_namespaceObject.toType)('trigger', {}).def(TriggerEnum.HOVER);
95
- }
96
- var PopConfirmEvent = {
97
- confirm: {
98
- type: Function,
99
- "default": function _default() {
100
- return {};
101
- }
102
- },
103
- cancel: {
104
- type: Function,
105
- "default": function _default() {
106
- return {};
107
- }
108
- }
109
- // ...TabNavEventProps,
110
- };
111
-
112
- var PopConfirmProps = {
113
- /**
114
- * 触发方式
115
- * 支持 click hover manual
116
- * manual: 通过isShow控制显示、隐藏
117
- */
118
- trigger: triggerType(),
119
- title: external_shared_namespaceObject.PropTypes.string.def(''),
120
- content: external_shared_namespaceObject.PropTypes.string.def(''),
121
- confirmText: external_shared_namespaceObject.PropTypes.string.def(''),
122
- cancelText: external_shared_namespaceObject.PropTypes.string.def(''),
123
- placement: external_shared_namespaceObject.PropTypes.oneOfType([(0,external_shared_namespaceObject.placementType)().def(external_shared_namespaceObject.PlacementEnum.TOP), external_shared_namespaceObject.PropTypes.string]).def(external_shared_namespaceObject.PlacementEnum.TOP),
124
- theme: external_shared_namespaceObject.PropTypes.string.def('light '),
125
- /**
126
- * 自定义icon:根据确认框中提示文字的语境来选择 icon的样式,当确认操作存在风险时,可选择带警示的icon来引起用户的注意。
127
- */
128
- icon: external_shared_namespaceObject.PropTypes.string.def(''),
129
- width: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto')
130
- };
131
- /* harmony default export */ const props = (PopConfirmProps);
132
- ;// CONCATENATED MODULE: ../../packages/pop-confirm/src/pop-confirm.tsx
133
-
134
- /*
135
- * Tencent is pleased to support the open source community by making
136
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
137
- *
138
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
139
- *
140
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
141
- *
142
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
143
- *
144
- * ---------------------------------------------------
145
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
146
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
147
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
148
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
149
- *
150
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
151
- * the Software.
152
- *
153
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
154
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
155
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
156
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
157
- * IN THE SOFTWARE.
158
- */
159
-
160
-
161
-
162
-
163
-
164
- /* harmony default export */ const pop_confirm = ((0,external_vue_namespaceObject.defineComponent)({
165
- name: 'PopConfirm',
166
- components: {
167
- BkPopover: external_popover_namespaceObject["default"],
168
- BkButton: external_button_namespaceObject["default"]
169
- },
170
- props: props,
171
- emits: ['confirm', 'cancel'],
172
- setup: function setup(props, _ref) {
173
- var emit = _ref.emit,
174
- slots = _ref.slots;
175
- var visible = (0,external_vue_namespaceObject.ref)(false);
176
- var t = (0,external_config_provider_namespaceObject.useLocale)('popConfirm');
177
- function ensure(e) {
178
- visible.value = false;
179
- emit('confirm');
180
- e.stopPropagation();
181
- }
182
- function cancel(e) {
183
- visible.value = false;
184
- emit('cancel');
185
- e.stopPropagation();
186
- }
187
- function renderIcon() {
188
- if (typeof slots.icon === 'function') {
189
- return slots.icon();
190
- }
191
- return props.icon;
192
- }
193
- var icon = renderIcon();
194
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
195
- resolveClassName = _usePrefix.resolveClassName;
196
- return function () {
197
- return (0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], {
198
- "isShow": visible.value,
199
- "trigger": props.trigger,
200
- "theme": props.theme,
201
- "width": props.width,
202
- "onAfterShow": function onAfterShow() {
203
- return visible.value = true;
204
- },
205
- "extCls": "".concat(resolveClassName('pop-confirm-box'))
206
- }, {
207
- "default": function _default() {
208
- return slots["default"]();
209
- },
210
- content: function content() {
211
- return (0,external_vue_namespaceObject.createVNode)("div", {
212
- "class": "".concat(resolveClassName('pop-confirm'))
213
- }, [typeof slots.content === 'function' ? slots.content() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [props.title ? (0,external_vue_namespaceObject.createVNode)("div", {
214
- "class": "".concat(resolveClassName('pop-confirm-title'))
215
- }, [icon ? (0,external_vue_namespaceObject.createVNode)("span", {
216
- "class": "".concat(resolveClassName('pop-confirm-icon'))
217
- }, [icon]) : '', (0,external_vue_namespaceObject.createVNode)("span", null, [props.title])]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
218
- "class": "".concat(resolveClassName('pop-confirm-content'))
219
- }, [!props.title ? icon : '', props.content])]), (0,external_vue_namespaceObject.createVNode)("div", {
220
- "class": "".concat(resolveClassName('pop-confirm-footer'))
221
- }, [(0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
222
- "onClick": ensure,
223
- "size": "small",
224
- "theme": "primary"
225
- }, {
226
- "default": function _default() {
227
- return [t.value.ok];
228
- }
229
- }), (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
230
- "onClick": cancel,
231
- "size": "small"
232
- }, {
233
- "default": function _default() {
234
- return [t.value.cancel];
235
- }
236
- })])]);
237
- }
238
- });
239
- };
240
- }
241
- }));
242
- ;// CONCATENATED MODULE: ../../packages/pop-confirm/src/index.ts
243
- /*
244
- * Tencent is pleased to support the open source community by making
245
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
246
- *
247
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
248
- *
249
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
250
- *
251
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
252
- *
253
- * ---------------------------------------------------
254
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
255
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
256
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
257
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
258
- *
259
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
260
- * the Software.
261
- *
262
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
263
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
264
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
265
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
266
- * IN THE SOFTWARE.
267
- */
268
-
269
-
270
- var BKPopConfirm = (0,external_shared_namespaceObject.withInstall)(pop_confirm);
271
- /* harmony default export */ const src = (BKPopConfirm);
272
- var __webpack_exports__default = __webpack_exports__.Z;
273
- export { __webpack_exports__default as default };
1
+ import*as e from"../shared";import*as t from"vue";import*as o from"../button";import*as n from"../config-provider";import*as r from"../popover";import*as a from"vue-types";var c={d:(e,t)=>{for(var o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},p={};c.d(p,{Z:()=>g});const i=(s={PlacementEnum:()=>e.PlacementEnum,PropTypes:()=>e.PropTypes,placementType:()=>e.placementType,withInstall:()=>e.withInstall},f={},c.d(f,s),f);var s,f;const l=(e=>{var t={};return c.d(t,e),t})({Fragment:()=>t.Fragment,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,ref:()=>t.ref}),u=(e=>{var t={};return c.d(t,e),t})({default:()=>o.default}),d=(e=>{var t={};return c.d(t,e),t})({useLocale:()=>n.useLocale,usePrefix:()=>n.usePrefix}),m=(e=>{var t={};return c.d(t,e),t})({default:()=>r.default}),v=(e=>{var t={};return c.d(t,e),t})({toType:()=>a.toType});var y;!function(e){e.HOVER="hover",e.CLICK="click"}(y||(y={}));const P={trigger:(0,v.toType)("trigger",{}).def(y.HOVER),title:i.PropTypes.string.def(""),content:i.PropTypes.string.def(""),confirmText:i.PropTypes.string.def(""),cancelText:i.PropTypes.string.def(""),placement:i.PropTypes.oneOfType([(0,i.placementType)().def(i.PlacementEnum.TOP),i.PropTypes.string]).def(i.PlacementEnum.TOP),theme:i.PropTypes.string.def("light "),icon:i.PropTypes.string.def(""),width:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.number]).def("auto")},T=(0,l.defineComponent)({name:"PopConfirm",components:{BkPopover:m.default,BkButton:u.default},props:P,emits:["confirm","cancel"],setup:function(e,t){var o=t.emit,n=t.slots,r=(0,l.ref)(!1),a=(0,d.useLocale)("popConfirm");function c(e){r.value=!1,o("confirm"),e.stopPropagation()}function p(e){r.value=!1,o("cancel"),e.stopPropagation()}var i="function"==typeof n.icon?n.icon():e.icon,s=(0,d.usePrefix)().resolveClassName;return function(){return(0,l.createVNode)(m.default,{isShow:r.value,trigger:e.trigger,theme:e.theme,width:e.width,onAfterShow:function(){return r.value=!0},extCls:"".concat(s("pop-confirm-box"))},{default:function(){return n.default()},content:function(){return(0,l.createVNode)("div",{class:"".concat(s("pop-confirm"))},["function"==typeof n.content?n.content():(0,l.createVNode)(l.Fragment,null,[e.title?(0,l.createVNode)("div",{class:"".concat(s("pop-confirm-title"))},[i?(0,l.createVNode)("span",{class:"".concat(s("pop-confirm-icon"))},[i]):"",(0,l.createVNode)("span",null,[e.title])]):"",(0,l.createVNode)("div",{class:"".concat(s("pop-confirm-content"))},[e.title?"":i,e.content])]),(0,l.createVNode)("div",{class:"".concat(s("pop-confirm-footer"))},[(0,l.createVNode)(u.default,{onClick:c,size:"small",theme:"primary"},{default:function(){return[a.value.ok]}}),(0,l.createVNode)(u.default,{onClick:p,size:"small"},{default:function(){return[a.value.cancel]}})])])}})}}}),g=(0,i.withInstall)(T);var h=p.Z;export{h as default};