bkui-vue 0.0.2-beta.75 → 0.0.2-beta.77

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 (170) hide show
  1. package/lib/affix/index.js +1 -319
  2. package/lib/alert/index.js +1 -215
  3. package/lib/animate-number/index.js +1 -155
  4. package/lib/backtop/index.js +1 -188
  5. package/lib/badge/index.js +1 -236
  6. package/lib/breadcrumb/index.js +1 -309
  7. package/lib/button/index.js +1 -321
  8. package/lib/card/index.js +1 -274
  9. package/lib/cascader/index.js +2 -2019
  10. package/lib/cascader/index.js.LICENSE.txt +1 -0
  11. package/lib/checkbox/index.js +1 -542
  12. package/lib/code-diff/index.js +1 -5501
  13. package/lib/collapse/index.js +1 -518
  14. package/lib/collapse-transition/index.js +1 -178
  15. package/lib/color-picker/index.js +1 -2662
  16. package/lib/components.js +1 -530
  17. package/lib/config-provider/index.js +1 -317
  18. package/lib/container/index.js +1 -343
  19. package/lib/date-picker/index.js +1 -5481
  20. package/lib/dialog/index.js +2 -1266
  21. package/lib/dialog/index.js.LICENSE.txt +1 -0
  22. package/lib/directives/index.js +2 -1335
  23. package/lib/directives/index.js.LICENSE.txt +14 -0
  24. package/lib/dist.index.js +1 -87
  25. package/lib/divider/index.js +1 -169
  26. package/lib/dropdown/index.js +1 -369
  27. package/lib/exception/index.js +1 -385
  28. package/lib/fixed-navbar/index.js +1 -154
  29. package/lib/form/index.js +1 -918
  30. package/lib/hooks.js +1 -73
  31. package/lib/icon/angle-double-down-line.js +1 -481
  32. package/lib/icon/angle-double-left-line.js +1 -481
  33. package/lib/icon/angle-double-left.js +1 -481
  34. package/lib/icon/angle-double-right-line.js +1 -481
  35. package/lib/icon/angle-double-right.js +1 -481
  36. package/lib/icon/angle-double-up-line.js +1 -481
  37. package/lib/icon/angle-down-fill.js +1 -481
  38. package/lib/icon/angle-down-line.js +1 -481
  39. package/lib/icon/angle-down.js +1 -481
  40. package/lib/icon/angle-left.js +1 -481
  41. package/lib/icon/angle-right.js +1 -481
  42. package/lib/icon/angle-up-fill.js +1 -481
  43. package/lib/icon/angle-up.js +1 -481
  44. package/lib/icon/archive-fill.js +1 -481
  45. package/lib/icon/arrows-left.js +1 -481
  46. package/lib/icon/arrows-right.js +1 -481
  47. package/lib/icon/assistant.js +1 -481
  48. package/lib/icon/audio-fill.js +1 -481
  49. package/lib/icon/bk.js +1 -481
  50. package/lib/icon/circle.js +1 -481
  51. package/lib/icon/close-line.js +1 -481
  52. package/lib/icon/close.js +1 -481
  53. package/lib/icon/code.js +1 -481
  54. package/lib/icon/cog-shape.js +1 -481
  55. package/lib/icon/collapse-left.js +1 -481
  56. package/lib/icon/copy-shape.js +1 -481
  57. package/lib/icon/copy.js +1 -481
  58. package/lib/icon/data-shape.js +1 -481
  59. package/lib/icon/del.js +1 -481
  60. package/lib/icon/doc-fill.js +1 -481
  61. package/lib/icon/done.js +1 -481
  62. package/lib/icon/down-shape.js +1 -481
  63. package/lib/icon/down-small.js +1 -481
  64. package/lib/icon/edit-line.js +1 -481
  65. package/lib/icon/ellipsis.js +1 -481
  66. package/lib/icon/enlarge-line.js +1 -481
  67. package/lib/icon/error.js +1 -481
  68. package/lib/icon/excel-fill.js +1 -481
  69. package/lib/icon/exclamation-circle-shape.js +1 -481
  70. package/lib/icon/eye.js +1 -481
  71. package/lib/icon/filliscreen-line.js +1 -481
  72. package/lib/icon/fix-line.js +1 -481
  73. package/lib/icon/fix-shape.js +1 -481
  74. package/lib/icon/folder-open.js +1 -481
  75. package/lib/icon/folder-shape-open.js +1 -481
  76. package/lib/icon/folder-shape.js +1 -481
  77. package/lib/icon/folder.js +1 -481
  78. package/lib/icon/funnel.js +1 -481
  79. package/lib/icon/help-document-fill.js +1 -481
  80. package/lib/icon/help-fill.js +1 -481
  81. package/lib/icon/help.js +1 -481
  82. package/lib/icon/image-fill.js +1 -527
  83. package/lib/icon/img-error.js +1 -527
  84. package/lib/icon/img-placehoulder.js +1 -527
  85. package/lib/icon/index.js +1 -2367
  86. package/lib/icon/info-line.js +1 -527
  87. package/lib/icon/info.js +1 -527
  88. package/lib/icon/left-shape.js +1 -527
  89. package/lib/icon/left-turn-line.js +1 -527
  90. package/lib/icon/narrow-line.js +1 -527
  91. package/lib/icon/original.js +1 -527
  92. package/lib/icon/pdf-fill.js +1 -527
  93. package/lib/icon/play-shape.js +1 -527
  94. package/lib/icon/plus.js +1 -527
  95. package/lib/icon/ppt-fill.js +1 -527
  96. package/lib/icon/qq.js +1 -527
  97. package/lib/icon/right-shape.js +1 -527
  98. package/lib/icon/right-turn-line.js +1 -527
  99. package/lib/icon/search.js +1 -527
  100. package/lib/icon/share.js +1 -527
  101. package/lib/icon/spinner.js +1 -527
  102. package/lib/icon/success.js +1 -527
  103. package/lib/icon/switcher-loading.js +1 -527
  104. package/lib/icon/text-file.js +1 -527
  105. package/lib/icon/text-fill.js +1 -527
  106. package/lib/icon/transfer.js +1 -527
  107. package/lib/icon/tree-application-shape.js +1 -527
  108. package/lib/icon/unfull-screen.js +1 -527
  109. package/lib/icon/unvisible.js +1 -527
  110. package/lib/icon/up-shape.js +1 -527
  111. package/lib/icon/upload.js +1 -527
  112. package/lib/icon/video-fill.js +1 -527
  113. package/lib/icon/warn.js +1 -527
  114. package/lib/icon/weixin-pro.js +1 -527
  115. package/lib/icon/weixin.js +1 -527
  116. package/lib/image/index.js +1 -593
  117. package/lib/index.js +1 -97
  118. package/lib/info-box/index.js +2 -1456
  119. package/lib/info-box/index.js.LICENSE.txt +1 -0
  120. package/lib/input/index.js +2 -1528
  121. package/lib/input/index.js.LICENSE.txt +1 -0
  122. package/lib/link/index.js +1 -160
  123. package/lib/loading/index.js +1 -379
  124. package/lib/locale/index.js +1 -465
  125. package/lib/menu/index.js +1 -725
  126. package/lib/message/index.js +2 -1790
  127. package/lib/message/index.js.LICENSE.txt +6 -0
  128. package/lib/modal/index.js +1 -337
  129. package/lib/navigation/index.js +1 -367
  130. package/lib/notify/index.js +1 -394
  131. package/lib/overflow-title/index.js +1 -485
  132. package/lib/pagination/index.js +1 -880
  133. package/lib/plugin-popover/index.js +1 -4067
  134. package/lib/plugins/index.js +1 -63
  135. package/lib/pop-confirm/index.js +1 -273
  136. package/lib/popover/index.js +1 -4075
  137. package/lib/popover2/index.js +1 -107
  138. package/lib/preset.js +1 -93
  139. package/lib/process/index.js +2 -1099
  140. package/lib/process/index.js.LICENSE.txt +1 -0
  141. package/lib/progress/index.js +1 -428
  142. package/lib/radio/index.js +1 -627
  143. package/lib/rate/index.js +1 -338
  144. package/lib/resize-layout/index.js +1 -430
  145. package/lib/search-select/index.js +2 -3036
  146. package/lib/search-select/index.js.LICENSE.txt +1 -0
  147. package/lib/select/index.js +2 -2571
  148. package/lib/select/index.js.LICENSE.txt +1 -0
  149. package/lib/shared/index.js +1 -2865
  150. package/lib/sideslider/index.js +2 -1005
  151. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  152. package/lib/slider/index.js +2 -1629
  153. package/lib/slider/index.js.LICENSE.txt +1 -0
  154. package/lib/steps/index.js +2 -1163
  155. package/lib/steps/index.js.LICENSE.txt +1 -0
  156. package/lib/swiper/index.js +1 -336
  157. package/lib/switcher/index.js +1 -277
  158. package/lib/tab/index.js +1 -859
  159. package/lib/table/index.js +1 -6568
  160. package/lib/table-column/index.js +1 -730
  161. package/lib/tag/index.js +1 -233
  162. package/lib/tag-input/index.js +1 -1652
  163. package/lib/time-picker/index.js +1 -71
  164. package/lib/timeline/index.js +1 -242
  165. package/lib/transfer/index.js +1 -673
  166. package/lib/tree/index.js +1 -2625
  167. package/lib/upload/index.js +2 -3193
  168. package/lib/upload/index.js.LICENSE.txt +1 -0
  169. package/lib/virtual-render/index.js +1 -748
  170. package/package.json +1 -1
@@ -1,317 +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__ from "lodash";
4
- import * as __WEBPACK_EXTERNAL_MODULE__locale_21891707__ from "../locale";
5
- /******/ // The require scope
6
- /******/ var __webpack_require__ = {};
7
- /******/
8
- /************************************************************************/
9
- /******/ /* webpack/runtime/define property getters */
10
- /******/ (() => {
11
- /******/ // define getter functions for harmony exports
12
- /******/ __webpack_require__.d = (exports, definition) => {
13
- /******/ for(var key in definition) {
14
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
15
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
16
- /******/ }
17
- /******/ }
18
- /******/ };
19
- /******/ })();
20
- /******/
21
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
22
- /******/ (() => {
23
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
24
- /******/ })();
25
- /******/
26
- /************************************************************************/
27
- var __webpack_exports__ = {};
28
-
29
- // EXPORTS
30
- __webpack_require__.d(__webpack_exports__, {
31
- ZP: () => (/* binding */ src),
32
- uE: () => (/* reexport */ defaultRootConfig),
33
- AR: () => (/* reexport */ provideGlobalConfig),
34
- F1: () => (/* reexport */ rootProviderKey),
35
- hv: () => (/* reexport */ setPrefixVariable),
36
- WS: () => (/* reexport */ useGlobalConfig),
37
- bU: () => (/* reexport */ useLocale),
38
- AK: () => (/* reexport */ usePrefix)
39
- });
40
-
41
- ;// CONCATENATED MODULE: external "../shared"
42
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
43
- var y = x => () => x
44
- const external_shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
45
- ;// CONCATENATED MODULE: external "vue"
46
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
47
- var external_vue_y = x => () => x
48
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
49
- ;// CONCATENATED MODULE: external "lodash"
50
- var external_lodash_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
51
- var external_lodash_y = x => () => x
52
- const external_lodash_namespaceObject = external_lodash_x({ ["merge"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__.merge });
53
- ;// CONCATENATED MODULE: external "../locale"
54
- var external_locale_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
55
- var external_locale_y = x => () => x
56
- const external_locale_namespaceObject = external_locale_x({ ["zhCn"]: () => __WEBPACK_EXTERNAL_MODULE__locale_21891707__.zhCn });
57
- ;// CONCATENATED MODULE: ../../packages/config-provider/src/token.ts
58
- /*
59
- * Tencent is pleased to support the open source community by making
60
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
61
- *
62
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
63
- *
64
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
65
- *
66
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
67
- *
68
- * ---------------------------------------------------
69
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
70
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
71
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
72
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
73
- *
74
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
75
- * the Software.
76
- *
77
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
78
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
79
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
80
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
81
- * IN THE SOFTWARE.
82
- */
83
-
84
- var rootProviderKey = Symbol('rootProviderData');
85
- var defaultRootConfig = {
86
- locale: external_locale_namespaceObject.zhCn,
87
- prefix: 'bk'
88
- };
89
- ;// CONCATENATED MODULE: ../../packages/config-provider/src/use-global-config.ts
90
- /*
91
- * Tencent is pleased to support the open source community by making
92
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
93
- *
94
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
95
- *
96
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
97
- *
98
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
99
- *
100
- * ---------------------------------------------------
101
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
102
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
103
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
104
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
105
- *
106
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
107
- * the Software.
108
- *
109
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
110
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
111
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
112
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
113
- * IN THE SOFTWARE.
114
- */
115
-
116
-
117
-
118
-
119
- var setPrefixVariable = function setPrefixVariable(prefix) {
120
- document.documentElement.style.setProperty('--bk-prefix', prefix || defaultRootConfig.prefix);
121
- };
122
- var provideGlobalConfig = function provideGlobalConfig(config) {
123
- var configData = (0,external_vue_namespaceObject.reactive)(Object.assign({}, (0,external_lodash_namespaceObject.merge)(defaultRootConfig, config)));
124
- setPrefixVariable(config.prefix);
125
- Object.keys(config).forEach(function (key) {
126
- (0,external_vue_namespaceObject.watch)(function () {
127
- return config[key];
128
- }, function () {
129
- if (key === 'prefix') setPrefixVariable(config[key]);
130
- configData[key] = config[key];
131
- });
132
- });
133
- (0,external_vue_namespaceObject.provide)(rootProviderKey, configData);
134
- };
135
- var useGlobalConfig = function useGlobalConfig() {
136
- var config = (0,external_vue_namespaceObject.inject)(rootProviderKey, defaultRootConfig);
137
- return (0,external_vue_namespaceObject.computed)(function () {
138
- return config;
139
- });
140
- };
141
- ;// CONCATENATED MODULE: ../../packages/config-provider/src/config-provider.tsx
142
- /*
143
- * Tencent is pleased to support the open source community by making
144
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
145
- *
146
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
147
- *
148
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
149
- *
150
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
151
- *
152
- * ---------------------------------------------------
153
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
154
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
155
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
156
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
157
- *
158
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
159
- * the Software.
160
- *
161
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
162
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
163
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
164
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
165
- * IN THE SOFTWARE.
166
- */
167
-
168
-
169
- var configProviderProps = {
170
- locale: {
171
- type: Object
172
- },
173
- prefix: {
174
- // 组件前缀
175
- type: String,
176
- "default": 'bk'
177
- }
178
- };
179
- /* harmony default export */ const config_provider = ((0,external_vue_namespaceObject.defineComponent)({
180
- name: 'ConfigProvider',
181
- inheritAttrs: false,
182
- props: configProviderProps,
183
- setup: function setup(props, _ref) {
184
- var slots = _ref.slots;
185
- provideGlobalConfig(props);
186
- return function () {
187
- var _a;
188
- return (_a = slots["default"]) === null || _a === void 0 ? void 0 : _a.call(slots);
189
- };
190
- }
191
- }));
192
- ;// CONCATENATED MODULE: ../../packages/config-provider/src/use-locale.ts
193
- /*
194
- * Tencent is pleased to support the open source community by making
195
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
196
- *
197
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
198
- *
199
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
200
- *
201
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
202
- *
203
- * ---------------------------------------------------
204
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
205
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
206
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
207
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
208
- *
209
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
210
- * the Software.
211
- *
212
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
213
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
214
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
215
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
216
- * IN THE SOFTWARE.
217
- */
218
-
219
-
220
- function useLocale(compName) {
221
- var config = (0,external_vue_namespaceObject.inject)(rootProviderKey, defaultRootConfig);
222
- return (0,external_vue_namespaceObject.computed)(function () {
223
- var locale = config.locale;
224
- // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
225
- return locale && compName ? locale[compName] : {};
226
- });
227
- }
228
- ;// CONCATENATED MODULE: ../../packages/config-provider/src/use-prefix.ts
229
- /*
230
- * Tencent is pleased to support the open source community by making
231
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
232
- *
233
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
234
- *
235
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
236
- *
237
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
238
- *
239
- * ---------------------------------------------------
240
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
241
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
242
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
243
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
244
- *
245
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
246
- * the Software.
247
- *
248
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
249
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
250
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
251
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
252
- * IN THE SOFTWARE.
253
- */
254
-
255
-
256
-
257
- /**
258
- *
259
- * @returns 组件前缀
260
- * @description 获取组件前缀
261
- */
262
- function usePrefix() {
263
- var config = (0,external_vue_namespaceObject.inject)(rootProviderKey, defaultRootConfig);
264
- var prefix = (0,external_vue_namespaceObject.computed)(function () {
265
- var prefix = config.prefix;
266
- return prefix || '';
267
- });
268
- function resolveClassName(cls) {
269
- return "".concat(prefix.value, "-").concat(cls.replace(new RegExp("^".concat(defaultRootConfig.prefix, "-")), ''));
270
- }
271
- return {
272
- prefix: prefix,
273
- resolveClassName: resolveClassName
274
- };
275
- }
276
- ;// CONCATENATED MODULE: ../../packages/config-provider/src/index.ts
277
- /**
278
- * Tencent is pleased to support the open source community by making
279
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
280
- *
281
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
282
- *
283
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
284
- *
285
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
286
- *
287
- * ---------------------------------------------------
288
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
289
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
290
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
291
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
292
- *
293
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
294
- * the Software.
295
- *
296
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
297
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
298
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
299
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
300
- * IN THE SOFTWARE.
301
- */
302
-
303
-
304
- var BkConfigProvider = (0,external_shared_namespaceObject.withInstall)(config_provider);
305
- /* harmony default export */ const src = (BkConfigProvider);
306
-
307
-
308
-
309
- var __webpack_exports__default = __webpack_exports__.ZP;
310
- var __webpack_exports__defaultRootConfig = __webpack_exports__.uE;
311
- var __webpack_exports__provideGlobalConfig = __webpack_exports__.AR;
312
- var __webpack_exports__rootProviderKey = __webpack_exports__.F1;
313
- var __webpack_exports__setPrefixVariable = __webpack_exports__.hv;
314
- var __webpack_exports__useGlobalConfig = __webpack_exports__.WS;
315
- var __webpack_exports__useLocale = __webpack_exports__.bU;
316
- var __webpack_exports__usePrefix = __webpack_exports__.AK;
317
- export { __webpack_exports__default as default, __webpack_exports__defaultRootConfig as defaultRootConfig, __webpack_exports__provideGlobalConfig as provideGlobalConfig, __webpack_exports__rootProviderKey as rootProviderKey, __webpack_exports__setPrefixVariable as setPrefixVariable, __webpack_exports__useGlobalConfig as useGlobalConfig, __webpack_exports__useLocale as useLocale, __webpack_exports__usePrefix as usePrefix };
1
+ import*as e from"../shared";import*as r from"vue";import*as t from"lodash";import*as n from"../locale";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,r)=>Object.prototype.hasOwnProperty.call(e,r)},a={};o.d(a,{ZP:()=>j,uE:()=>d,AR:()=>m,F1:()=>p,hv:()=>v,WS:()=>h,bU:()=>g,AK:()=>C});const i=(c={withInstall:()=>e.withInstall},u={},o.d(u,c),u);var c,u;const f=(e=>{var r={};return o.d(r,e),r})({computed:()=>r.computed,defineComponent:()=>r.defineComponent,inject:()=>r.inject,provide:()=>r.provide,reactive:()=>r.reactive,watch:()=>r.watch}),l=(e=>{var r={};return o.d(r,e),r})({merge:()=>t.merge}),s=(e=>{var r={};return o.d(r,e),r})({zhCn:()=>n.zhCn});var p=Symbol("rootProviderData"),d={locale:s.zhCn,prefix:"bk"},v=function(e){document.documentElement.style.setProperty("--bk-prefix",e||d.prefix)},m=function(e){var r=(0,f.reactive)(Object.assign({},(0,l.merge)(d,e)));v(e.prefix),Object.keys(e).forEach((function(t){(0,f.watch)((function(){return e[t]}),(function(){"prefix"===t&&v(e[t]),r[t]=e[t]}))})),(0,f.provide)(p,r)},h=function(){var e=(0,f.inject)(p,d);return(0,f.computed)((function(){return e}))},b={locale:{type:Object},prefix:{type:String,default:"bk"}};const x=(0,f.defineComponent)({name:"ConfigProvider",inheritAttrs:!1,props:b,setup:function(e,r){var t=r.slots;return m(e),function(){var e;return null===(e=t.default)||void 0===e?void 0:e.call(t)}}});function g(e){var r=(0,f.inject)(p,d);return(0,f.computed)((function(){var t=r.locale;return t&&e?t[e]:{}}))}function C(){var e=(0,f.inject)(p,d),r=(0,f.computed)((function(){return e.prefix||""}));return{prefix:r,resolveClassName:function(e){return"".concat(r.value,"-").concat(e.replace(new RegExp("^".concat(d.prefix,"-")),""))}}}const j=(0,i.withInstall)(x);var y=a.ZP,P=a.uE,w=a.AR,O=a.F1,A=a.hv,E=a.WS,k=a.bU,R=a.AK;export{y as default,P as defaultRootConfig,w as provideGlobalConfig,O as rootProviderKey,A as setPrefixVariable,E as useGlobalConfig,k as useLocale,R as usePrefix};
@@ -1,343 +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
- m1: () => (/* reexport */ col),
31
- gi: () => (/* binding */ BkContainer),
32
- S9: () => (/* reexport */ row),
33
- ZP: () => (/* 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({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
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({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide });
44
- ;// CONCATENATED MODULE: external "../config-provider"
45
- var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
46
- var external_config_provider_y = x => () => x
47
- const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
48
- ;// CONCATENATED MODULE: ../../packages/container/src/interface.ts
49
- /*
50
- * Tencent is pleased to support the open source community by making
51
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
52
- *
53
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
54
- *
55
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
56
- *
57
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
58
- *
59
- * ---------------------------------------------------
60
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
61
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
62
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
63
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
64
- *
65
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
66
- * the Software.
67
- *
68
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
69
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
70
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
71
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
72
- * IN THE SOFTWARE.
73
- */
74
- var containerKey = Symbol('containerProps');
75
- ;// CONCATENATED MODULE: ../../packages/container/src/col.tsx
76
-
77
- /*
78
- * Tencent is pleased to support the open source community by making
79
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
80
- *
81
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
82
- *
83
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
84
- *
85
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
86
- *
87
- * ---------------------------------------------------
88
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
89
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
90
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
91
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
92
- *
93
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
94
- * the Software.
95
- *
96
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
97
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
98
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
99
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
100
- * IN THE SOFTWARE.
101
- */
102
-
103
-
104
-
105
-
106
- var colProps = {
107
- // 栅格的占位格数,可选值为 0~24 的整数,为 0 时,则为 col 相当于 width: 100%
108
- span: external_shared_namespaceObject.PropTypes.number.def(1),
109
- // 栅格的偏移
110
- offset: external_shared_namespaceObject.PropTypes.number.def(0),
111
- // 栅格向左移动格数
112
- pull: external_shared_namespaceObject.PropTypes.number.def(0),
113
- // 栅格向右移动格数
114
- push: external_shared_namespaceObject.PropTypes.number.def(0)
115
- };
116
- /* harmony default export */ const col = ((0,external_vue_namespaceObject.defineComponent)({
117
- // eslint-disable-next-line vue/no-reserved-component-names
118
- name: 'Col',
119
- props: colProps,
120
- emits: [],
121
- setup: function setup(props, ctx) {
122
- var _inject = (0,external_vue_namespaceObject.inject)(containerKey),
123
- col = _inject.col,
124
- gutter = _inject.gutter,
125
- flex = _inject.flex;
126
- var span = props.span,
127
- offset = props.offset,
128
- pull = props.pull,
129
- push = props.push;
130
- var realSpan = (0,external_vue_namespaceObject.computed)(function () {
131
- return span || col;
132
- });
133
- (0,external_vue_namespaceObject.provide)('containerProps', {
134
- col: realSpan.value,
135
- gutter: gutter,
136
- flex: flex
137
- });
138
- var formatPercentage = function formatPercentage(val) {
139
- return "".concat(Number((val * 100).toFixed(3)), "%");
140
- };
141
- var style = (0,external_vue_namespaceObject.computed)(function () {
142
- return {
143
- width: formatPercentage(realSpan.value / col),
144
- 'padding-right': "".concat(gutter / 2, "px"),
145
- 'padding-left': "".concat(gutter / 2, "px"),
146
- 'margin-left': offset ? formatPercentage(offset / col) : null,
147
- right: pull ? formatPercentage(pull / col) : null,
148
- left: push ? formatPercentage(push / col) : null
149
- };
150
- });
151
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
152
- resolveClassName = _usePrefix.resolveClassName;
153
- return function () {
154
- var _a, _b;
155
- return (0,external_vue_namespaceObject.createVNode)("div", {
156
- "class": "".concat(resolveClassName('grid-col')),
157
- "style": style.value
158
- }, [(_b = (_a = ctx.slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
159
- };
160
- }
161
- }));
162
- ;// CONCATENATED MODULE: ../../packages/container/src/container.tsx
163
-
164
- /*
165
- * Tencent is pleased to support the open source community by making
166
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
167
- *
168
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
169
- *
170
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
171
- *
172
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
173
- *
174
- * ---------------------------------------------------
175
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
176
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
177
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
178
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
179
- *
180
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
181
- * the Software.
182
- *
183
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
184
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
185
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
186
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
187
- * IN THE SOFTWARE.
188
- */
189
-
190
-
191
-
192
-
193
- var containerProps = {
194
- // 栅格数,默认 24
195
- col: external_shared_namespaceObject.PropTypes.number.def(24),
196
- // 栅格间距,单位 px,左右平分
197
- gutter: external_shared_namespaceObject.PropTypes.number.def(20),
198
- // 栅格容器的左右外边距
199
- margin: external_shared_namespaceObject.PropTypes.number.def(20),
200
- // 控制 row 是否使用 flex 布局
201
- flex: external_shared_namespaceObject.PropTypes.bool.def(false),
202
- // 外部设置的 class name
203
- extCls: external_shared_namespaceObject.PropTypes.string
204
- };
205
- /* harmony default export */ const container = ((0,external_vue_namespaceObject.defineComponent)({
206
- name: 'Container',
207
- props: containerProps,
208
- emits: [],
209
- setup: function setup(props, ctx) {
210
- var col = props.col,
211
- gutter = props.gutter,
212
- flex = props.flex,
213
- extCls = props.extCls;
214
- (0,external_vue_namespaceObject.provide)(containerKey, {
215
- col: col,
216
- gutter: gutter,
217
- flex: flex
218
- });
219
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
220
- resolveClassName = _usePrefix.resolveClassName;
221
- var classes = (0,external_vue_namespaceObject.computed)(function () {
222
- return extCls ? "".concat(resolveClassName('grid-container'), " ").concat(extCls) : "".concat(resolveClassName('grid-container'));
223
- });
224
- var style = (0,external_vue_namespaceObject.computed)(function () {
225
- var margin = props.margin;
226
- return {
227
- 'padding-right': "".concat(margin, "px"),
228
- 'padding-left': "".concat(margin, "px")
229
- };
230
- });
231
- return function () {
232
- var _a, _b;
233
- return (0,external_vue_namespaceObject.createVNode)("div", {
234
- "class": classes.value,
235
- "style": style.value
236
- }, [(_b = (_a = ctx.slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
237
- };
238
- }
239
- }));
240
- ;// CONCATENATED MODULE: ../../packages/container/src/row.tsx
241
-
242
- /*
243
- * Tencent is pleased to support the open source community by making
244
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
245
- *
246
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
247
- *
248
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
249
- *
250
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
251
- *
252
- * ---------------------------------------------------
253
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
254
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
255
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
256
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
257
- *
258
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
259
- * the Software.
260
- *
261
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
262
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
263
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
264
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
265
- * IN THE SOFTWARE.
266
- */
267
-
268
-
269
-
270
- /* harmony default export */ const row = ((0,external_vue_namespaceObject.defineComponent)({
271
- name: 'Row',
272
- emits: [],
273
- setup: function setup(_props, ctx) {
274
- var _inject = (0,external_vue_namespaceObject.inject)(containerKey),
275
- col = _inject.col,
276
- gutter = _inject.gutter,
277
- flex = _inject.flex;
278
- (0,external_vue_namespaceObject.provide)('containerProps', {
279
- col: col,
280
- gutter: gutter,
281
- flex: flex
282
- });
283
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
284
- resolveClassName = _usePrefix.resolveClassName;
285
- var style = (0,external_vue_namespaceObject.computed)(function () {
286
- var o = flex ? {
287
- display: ['-webkit-box', '-ms-flexbox', 'flex']
288
- } : {};
289
- return Object.assign(Object.assign({}, o), {
290
- 'margin-right': "-".concat(gutter / 2, "px"),
291
- 'margin-left': "-".concat(gutter / 2, "px")
292
- });
293
- });
294
- return function () {
295
- var _a, _b;
296
- return (0,external_vue_namespaceObject.createVNode)("div", {
297
- "class": "".concat(resolveClassName('grid-row')),
298
- "style": style.value
299
- }, [(_b = (_a = ctx.slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
300
- };
301
- }
302
- }));
303
- ;// CONCATENATED MODULE: ../../packages/container/src/index.ts
304
- /*
305
- * Tencent is pleased to support the open source community by making
306
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
307
- *
308
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
309
- *
310
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
311
- *
312
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
313
- *
314
- * ---------------------------------------------------
315
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
316
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
317
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
318
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
319
- *
320
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
321
- * the Software.
322
- *
323
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
324
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
325
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
326
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
327
- * IN THE SOFTWARE.
328
- */
329
-
330
-
331
-
332
-
333
- var BkContainer = (0,external_shared_namespaceObject.withInstallProps)(container, {
334
- Row: row,
335
- Col: col
336
- });
337
- /* harmony default export */ const src = (BkContainer);
338
-
339
- var __webpack_exports__BkCol = __webpack_exports__.m1;
340
- var __webpack_exports__BkContainer = __webpack_exports__.gi;
341
- var __webpack_exports__BkRow = __webpack_exports__.S9;
342
- var __webpack_exports__default = __webpack_exports__.ZP;
343
- export { __webpack_exports__BkCol as BkCol, __webpack_exports__BkContainer as BkContainer, __webpack_exports__BkRow as BkRow, __webpack_exports__default as default };
1
+ import*as e from"../shared";import*as r from"vue";import*as t from"../config-provider";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,r)=>Object.prototype.hasOwnProperty.call(e,r)},n={};o.d(n,{m1:()=>d,gi:()=>g,S9:()=>v,ZP:()=>x});const a=(i={PropTypes:()=>e.PropTypes,withInstallProps:()=>e.withInstallProps},l={},o.d(l,i),l);var i,l;const s=(e=>{var r={};return o.d(r,e),r})({computed:()=>r.computed,createVNode:()=>r.createVNode,defineComponent:()=>r.defineComponent,inject:()=>r.inject,provide:()=>r.provide}),c=(e=>{var r={};return o.d(r,e),r})({usePrefix:()=>t.usePrefix});var p=Symbol("containerProps"),u={span:a.PropTypes.number.def(1),offset:a.PropTypes.number.def(0),pull:a.PropTypes.number.def(0),push:a.PropTypes.number.def(0)};const d=(0,s.defineComponent)({name:"Col",props:u,emits:[],setup:function(e,r){var t=(0,s.inject)(p),o=t.col,n=t.gutter,a=t.flex,i=e.span,l=e.offset,u=e.pull,d=e.push,f=(0,s.computed)((function(){return i||o}));(0,s.provide)("containerProps",{col:f.value,gutter:n,flex:a});var m=function(e){return"".concat(Number((100*e).toFixed(3)),"%")},v=(0,s.computed)((function(){return{width:m(f.value/o),"padding-right":"".concat(n/2,"px"),"padding-left":"".concat(n/2,"px"),"margin-left":l?m(l/o):null,right:u?m(u/o):null,left:d?m(d/o):null}})),g=(0,c.usePrefix)().resolveClassName;return function(){var e,t;return(0,s.createVNode)("div",{class:"".concat(g("grid-col")),style:v.value},[null===(t=(e=r.slots).default)||void 0===t?void 0:t.call(e)])}}});var f={col:a.PropTypes.number.def(24),gutter:a.PropTypes.number.def(20),margin:a.PropTypes.number.def(20),flex:a.PropTypes.bool.def(!1),extCls:a.PropTypes.string};const m=(0,s.defineComponent)({name:"Container",props:f,emits:[],setup:function(e,r){var t=e.col,o=e.gutter,n=e.flex,a=e.extCls;(0,s.provide)(p,{col:t,gutter:o,flex:n});var i=(0,c.usePrefix)().resolveClassName,l=(0,s.computed)((function(){return a?"".concat(i("grid-container")," ").concat(a):"".concat(i("grid-container"))})),u=(0,s.computed)((function(){var r=e.margin;return{"padding-right":"".concat(r,"px"),"padding-left":"".concat(r,"px")}}));return function(){var e,t;return(0,s.createVNode)("div",{class:l.value,style:u.value},[null===(t=(e=r.slots).default)||void 0===t?void 0:t.call(e)])}}}),v=(0,s.defineComponent)({name:"Row",emits:[],setup:function(e,r){var t=(0,s.inject)(p),o=t.col,n=t.gutter,a=t.flex;(0,s.provide)("containerProps",{col:o,gutter:n,flex:a});var i=(0,c.usePrefix)().resolveClassName,l=(0,s.computed)((function(){var e=a?{display:["-webkit-box","-ms-flexbox","flex"]}:{};return Object.assign(Object.assign({},e),{"margin-right":"-".concat(n/2,"px"),"margin-left":"-".concat(n/2,"px")})}));return function(){var e,t;return(0,s.createVNode)("div",{class:"".concat(i("grid-row")),style:l.value},[null===(t=(e=r.slots).default)||void 0===t?void 0:t.call(e)])}}});var g=(0,a.withInstallProps)(m,{Row:v,Col:d});const x=g;var P=n.m1,y=n.gi,b=n.S9,C=n.ZP;export{P as BkCol,y as BkContainer,b as BkRow,C as default};