bkui-vue 0.0.2-beta.37 → 0.0.2-beta.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +1 -391
- package/lib/alert/index.js +1 -287
- package/lib/animate-number/index.js +1 -219
- package/lib/backtop/index.js +1 -264
- package/lib/badge/index.js +1 -304
- package/lib/breadcrumb/index.js +1 -379
- package/lib/button/index.js +1 -403
- package/lib/card/index.js +1 -369
- package/lib/cascader/index.js +2 -2095
- package/lib/cascader/index.js.LICENSE.txt +1 -0
- package/lib/checkbox/index.js +1 -602
- package/lib/code-diff/index.js +1 -5548
- package/lib/collapse/index.js +1 -605
- package/lib/collapse-transition/index.js +1 -237
- package/lib/color-picker/index.js +1 -2735
- package/lib/components.js +1 -770
- package/lib/config-provider/index.js +1 -377
- package/lib/container/index.js +1 -408
- package/lib/date-picker/index.js +1 -5576
- package/lib/dialog/index.js +2 -1324
- package/lib/dialog/index.js.LICENSE.txt +1 -0
- package/lib/directives/index.js +2 -1386
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/dist.index.js +1 -179
- package/lib/divider/index.js +1 -237
- package/lib/dropdown/index.js +1 -455
- package/lib/exception/index.js +1 -435
- package/lib/fixed-navbar/index.js +1 -222
- package/lib/form/index.js +1 -1004
- package/lib/hooks.js +1 -133
- package/lib/icon/angle-double-down-line.js +1 -541
- package/lib/icon/angle-double-left-line.js +1 -541
- package/lib/icon/angle-double-left.js +1 -541
- package/lib/icon/angle-double-right-line.js +1 -541
- package/lib/icon/angle-double-right.js +1 -541
- package/lib/icon/angle-double-up-line.js +1 -541
- package/lib/icon/angle-down-fill.js +1 -541
- package/lib/icon/angle-down-line.js +1 -541
- package/lib/icon/angle-down.js +1 -541
- package/lib/icon/angle-left.js +1 -541
- package/lib/icon/angle-right.js +1 -541
- package/lib/icon/angle-up-fill.js +1 -541
- package/lib/icon/angle-up.js +1 -541
- package/lib/icon/archive-fill.js +1 -541
- package/lib/icon/arrows-left.js +1 -541
- package/lib/icon/arrows-right.js +1 -541
- package/lib/icon/assistant.js +1 -541
- package/lib/icon/audio-fill.js +1 -541
- package/lib/icon/bk.js +1 -541
- package/lib/icon/circle.js +1 -541
- package/lib/icon/close-line.js +1 -541
- package/lib/icon/close.js +1 -541
- package/lib/icon/code.js +1 -541
- package/lib/icon/cog-shape.js +1 -541
- package/lib/icon/collapse-left.js +1 -541
- package/lib/icon/copy-shape.js +1 -541
- package/lib/icon/copy.js +1 -541
- package/lib/icon/data-shape.js +1 -541
- package/lib/icon/del.js +1 -541
- package/lib/icon/doc-fill.js +1 -541
- package/lib/icon/done.js +1 -541
- package/lib/icon/down-shape.js +1 -541
- package/lib/icon/down-small.js +1 -541
- package/lib/icon/edit-line.js +1 -541
- package/lib/icon/ellipsis.js +1 -541
- package/lib/icon/enlarge-line.js +1 -541
- package/lib/icon/error.js +1 -541
- package/lib/icon/excel-fill.js +1 -541
- package/lib/icon/exclamation-circle-shape.js +1 -541
- package/lib/icon/eye.js +1 -541
- package/lib/icon/filliscreen-line.js +1 -541
- package/lib/icon/fix-line.js +1 -541
- package/lib/icon/fix-shape.js +1 -541
- package/lib/icon/folder-open.js +1 -541
- package/lib/icon/folder-shape-open.js +1 -541
- package/lib/icon/folder-shape.js +1 -541
- package/lib/icon/folder.js +1 -541
- package/lib/icon/funnel.js +1 -541
- package/lib/icon/help-document-fill.js +1 -541
- package/lib/icon/help-fill.js +1 -541
- package/lib/icon/help.js +1 -541
- package/lib/icon/image-fill.js +1 -563
- package/lib/icon/img-error.js +1 -563
- package/lib/icon/img-placehoulder.js +1 -563
- package/lib/icon/index.js +1 -2353
- package/lib/icon/info-line.js +1 -563
- package/lib/icon/info.js +1 -563
- package/lib/icon/left-shape.js +1 -563
- package/lib/icon/left-turn-line.js +1 -563
- package/lib/icon/narrow-line.js +1 -563
- package/lib/icon/original.js +1 -563
- package/lib/icon/pdf-fill.js +1 -563
- package/lib/icon/play-shape.js +1 -563
- package/lib/icon/plus.js +1 -563
- package/lib/icon/ppt-fill.js +1 -563
- package/lib/icon/qq.js +1 -563
- package/lib/icon/right-shape.js +1 -563
- package/lib/icon/right-turn-line.js +1 -563
- package/lib/icon/search.js +1 -563
- package/lib/icon/share.js +1 -563
- package/lib/icon/spinner.js +1 -563
- package/lib/icon/success.js +1 -563
- package/lib/icon/switcher-loading.js +1 -563
- package/lib/icon/text-file.js +1 -563
- package/lib/icon/text-fill.js +1 -563
- package/lib/icon/transfer.js +1 -563
- package/lib/icon/tree-application-shape.js +1 -563
- package/lib/icon/unfull-screen.js +1 -563
- package/lib/icon/unvisible.js +1 -563
- package/lib/icon/up-shape.js +1 -563
- package/lib/icon/upload.js +1 -563
- package/lib/icon/video-fill.js +1 -563
- package/lib/icon/warn.js +1 -563
- package/lib/icon/weixin-pro.js +1 -563
- package/lib/icon/weixin.js +1 -563
- package/lib/image/index.js +1 -681
- package/lib/index.js +1 -195
- package/lib/info-box/index.js +2 -1514
- package/lib/info-box/index.js.LICENSE.txt +1 -0
- package/lib/input/index.js +1 -1038
- package/lib/link/index.js +1 -232
- package/lib/loading/index.js +1 -443
- package/lib/locale/index.js +1 -489
- package/lib/menu/index.js +1 -793
- package/lib/message/index.js +2 -1842
- package/lib/message/index.js.LICENSE.txt +6 -0
- package/lib/modal/index.js +1 -407
- package/lib/navigation/index.js +1 -439
- package/lib/notify/index.js +1 -470
- package/lib/overflow-title/index.js +1 -547
- package/lib/pagination/index.js +1 -974
- package/lib/plugin-popover/index.js +1 -4121
- package/lib/plugins/index.js +1 -130
- package/lib/pop-confirm/index.js +1 -367
- package/lib/popover/index.js +1 -4127
- package/lib/popover2/index.js +1 -171
- package/lib/preset.js +1 -164
- package/lib/process/index.js +2 -1146
- package/lib/process/index.js.LICENSE.txt +1 -0
- package/lib/progress/index.js +1 -495
- package/lib/radio/index.js +1 -693
- package/lib/rate/index.js +1 -406
- package/lib/resize-layout/index.js +1 -499
- package/lib/search-select/index.js +2 -3024
- package/lib/search-select/index.js.LICENSE.txt +1 -0
- package/lib/select/index.js +2 -2599
- package/lib/select/index.js.LICENSE.txt +1 -0
- package/lib/select/select.css +9 -0
- package/lib/select/select.less +11 -0
- package/lib/select/select.variable.css +9 -0
- package/lib/shared/index.js +1 -2832
- package/lib/sideslider/index.js +2 -1056
- package/lib/sideslider/index.js.LICENSE.txt +1 -0
- package/lib/slider/index.js +2 -1683
- package/lib/slider/index.js.LICENSE.txt +1 -0
- package/lib/steps/index.js +2 -1215
- package/lib/steps/index.js.LICENSE.txt +1 -0
- package/lib/swiper/index.js +1 -404
- package/lib/switcher/index.js +1 -335
- package/lib/tab/index.js +1 -935
- package/lib/table/index.js +1 -6588
- package/lib/table-column/index.js +1 -768
- package/lib/tag/index.js +1 -309
- package/lib/tag-input/index.js +1 -1758
- package/lib/time-picker/index.js +1 -142
- package/lib/timeline/index.js +1 -310
- package/lib/transfer/index.js +1 -767
- package/lib/tree/index.js +1 -2664
- package/lib/upload/index.js +2 -3257
- package/lib/upload/index.js.LICENSE.txt +1 -0
- package/lib/virtual-render/index.js +1 -806
- package/package.json +1 -1
package/lib/container/index.js
CHANGED
@@ -1,408 +1 @@
|
|
1
|
-
(function
|
2
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
-
module.exports = factory(require("../shared"), require("vue"), require("../config-provider"));
|
4
|
-
else if(typeof define === 'function' && define.amd)
|
5
|
-
define(["../shared", "vue", "../config-provider"], factory);
|
6
|
-
else {
|
7
|
-
var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("../config-provider")) : factory(root["../shared"], root["vue"], root["../config-provider"]);
|
8
|
-
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
9
|
-
}
|
10
|
-
})(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__2717__) => {
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
12
|
-
/******/ "use strict";
|
13
|
-
/******/ var __webpack_modules__ = ({
|
14
|
-
|
15
|
-
/***/ 2717:
|
16
|
-
/***/ ((module) => {
|
17
|
-
|
18
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__2717__;
|
19
|
-
|
20
|
-
/***/ }),
|
21
|
-
|
22
|
-
/***/ 4212:
|
23
|
-
/***/ ((module) => {
|
24
|
-
|
25
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
26
|
-
|
27
|
-
/***/ }),
|
28
|
-
|
29
|
-
/***/ 748:
|
30
|
-
/***/ ((module) => {
|
31
|
-
|
32
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
33
|
-
|
34
|
-
/***/ })
|
35
|
-
|
36
|
-
/******/ });
|
37
|
-
/************************************************************************/
|
38
|
-
/******/ // The module cache
|
39
|
-
/******/ var __webpack_module_cache__ = {};
|
40
|
-
/******/
|
41
|
-
/******/ // The require function
|
42
|
-
/******/ function __webpack_require__(moduleId) {
|
43
|
-
/******/ // Check if module is in cache
|
44
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
45
|
-
/******/ if (cachedModule !== undefined) {
|
46
|
-
/******/ return cachedModule.exports;
|
47
|
-
/******/ }
|
48
|
-
/******/ // Create a new module (and put it into the cache)
|
49
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
50
|
-
/******/ // no module.id needed
|
51
|
-
/******/ // no module.loaded needed
|
52
|
-
/******/ exports: {}
|
53
|
-
/******/ };
|
54
|
-
/******/
|
55
|
-
/******/ // Execute the module function
|
56
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
57
|
-
/******/
|
58
|
-
/******/ // Return the exports of the module
|
59
|
-
/******/ return module.exports;
|
60
|
-
/******/ }
|
61
|
-
/******/
|
62
|
-
/************************************************************************/
|
63
|
-
/******/ /* webpack/runtime/define property getters */
|
64
|
-
/******/ (() => {
|
65
|
-
/******/ // define getter functions for harmony exports
|
66
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
67
|
-
/******/ for(var key in definition) {
|
68
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
69
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
70
|
-
/******/ }
|
71
|
-
/******/ }
|
72
|
-
/******/ };
|
73
|
-
/******/ })();
|
74
|
-
/******/
|
75
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
76
|
-
/******/ (() => {
|
77
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
78
|
-
/******/ })();
|
79
|
-
/******/
|
80
|
-
/******/ /* webpack/runtime/make namespace object */
|
81
|
-
/******/ (() => {
|
82
|
-
/******/ // define __esModule on exports
|
83
|
-
/******/ __webpack_require__.r = (exports) => {
|
84
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
85
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
86
|
-
/******/ }
|
87
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
88
|
-
/******/ };
|
89
|
-
/******/ })();
|
90
|
-
/******/
|
91
|
-
/************************************************************************/
|
92
|
-
var __webpack_exports__ = {};
|
93
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
94
|
-
(() => {
|
95
|
-
// ESM COMPAT FLAG
|
96
|
-
__webpack_require__.r(__webpack_exports__);
|
97
|
-
|
98
|
-
// EXPORTS
|
99
|
-
__webpack_require__.d(__webpack_exports__, {
|
100
|
-
BkCol: () => (/* reexport */ col),
|
101
|
-
BkContainer: () => (/* binding */ BkContainer),
|
102
|
-
BkRow: () => (/* reexport */ row),
|
103
|
-
"default": () => (/* binding */ src)
|
104
|
-
});
|
105
|
-
|
106
|
-
// EXTERNAL MODULE: external "../shared"
|
107
|
-
var external_shared_ = __webpack_require__(4212);
|
108
|
-
// EXTERNAL MODULE: external "vue"
|
109
|
-
var external_vue_ = __webpack_require__(748);
|
110
|
-
// EXTERNAL MODULE: external "../config-provider"
|
111
|
-
var external_config_provider_ = __webpack_require__(2717);
|
112
|
-
;// CONCATENATED MODULE: ../../packages/container/src/interface.ts
|
113
|
-
/*
|
114
|
-
* Tencent is pleased to support the open source community by making
|
115
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
116
|
-
*
|
117
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
118
|
-
*
|
119
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
120
|
-
*
|
121
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
122
|
-
*
|
123
|
-
* ---------------------------------------------------
|
124
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
125
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
126
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
127
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
128
|
-
*
|
129
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
130
|
-
* the Software.
|
131
|
-
*
|
132
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
133
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
134
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
135
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
136
|
-
* IN THE SOFTWARE.
|
137
|
-
*/
|
138
|
-
;
|
139
|
-
var containerKey = Symbol('containerProps');
|
140
|
-
;// CONCATENATED MODULE: ../../packages/container/src/col.tsx
|
141
|
-
|
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
|
-
|
170
|
-
|
171
|
-
var colProps = {
|
172
|
-
// 栅格的占位格数,可选值为 0~24 的整数,为 0 时,则为 col 相当于 width: 100%
|
173
|
-
span: external_shared_.PropTypes.number.def(1),
|
174
|
-
// 栅格的偏移
|
175
|
-
offset: external_shared_.PropTypes.number.def(0),
|
176
|
-
// 栅格向左移动格数
|
177
|
-
pull: external_shared_.PropTypes.number.def(0),
|
178
|
-
// 栅格向右移动格数
|
179
|
-
push: external_shared_.PropTypes.number.def(0)
|
180
|
-
};
|
181
|
-
/* harmony default export */ const col = ((0,external_vue_.defineComponent)({
|
182
|
-
name: 'Col',
|
183
|
-
props: colProps,
|
184
|
-
emits: [],
|
185
|
-
setup: function setup(props, ctx) {
|
186
|
-
var _inject = (0,external_vue_.inject)(containerKey),
|
187
|
-
col = _inject.col,
|
188
|
-
gutter = _inject.gutter,
|
189
|
-
flex = _inject.flex;
|
190
|
-
var span = props.span,
|
191
|
-
offset = props.offset,
|
192
|
-
pull = props.pull,
|
193
|
-
push = props.push;
|
194
|
-
var realSpan = (0,external_vue_.computed)(function () {
|
195
|
-
return span || col;
|
196
|
-
});
|
197
|
-
(0,external_vue_.provide)('containerProps', {
|
198
|
-
col: realSpan.value,
|
199
|
-
gutter: gutter,
|
200
|
-
flex: flex
|
201
|
-
});
|
202
|
-
var formatPercentage = function formatPercentage(val) {
|
203
|
-
return "".concat(Number((val * 100).toFixed(3)), "%");
|
204
|
-
};
|
205
|
-
var style = (0,external_vue_.computed)(function () {
|
206
|
-
return {
|
207
|
-
width: formatPercentage(realSpan.value / col),
|
208
|
-
'padding-right': "".concat(gutter / 2, "px"),
|
209
|
-
'padding-left': "".concat(gutter / 2, "px"),
|
210
|
-
'margin-left': offset ? formatPercentage(offset / col) : null,
|
211
|
-
right: pull ? formatPercentage(pull / col) : null,
|
212
|
-
left: push ? formatPercentage(push / col) : null
|
213
|
-
};
|
214
|
-
});
|
215
|
-
var _usePrefix = (0,external_config_provider_.usePrefix)(),
|
216
|
-
resolveClassName = _usePrefix.resolveClassName;
|
217
|
-
return function () {
|
218
|
-
var _a, _b;
|
219
|
-
return (0,external_vue_.createVNode)("div", {
|
220
|
-
"class": "".concat(resolveClassName('grid-col')),
|
221
|
-
"style": style.value
|
222
|
-
}, [(_b = (_a = ctx.slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
|
223
|
-
};
|
224
|
-
}
|
225
|
-
}));
|
226
|
-
;// CONCATENATED MODULE: ../../packages/container/src/container.tsx
|
227
|
-
|
228
|
-
/*
|
229
|
-
* Tencent is pleased to support the open source community by making
|
230
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
231
|
-
*
|
232
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
233
|
-
*
|
234
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
235
|
-
*
|
236
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
237
|
-
*
|
238
|
-
* ---------------------------------------------------
|
239
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
240
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
241
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
242
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
243
|
-
*
|
244
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
245
|
-
* the Software.
|
246
|
-
*
|
247
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
248
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
249
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
250
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
251
|
-
* IN THE SOFTWARE.
|
252
|
-
*/
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
var containerProps = {
|
258
|
-
// 栅格数,默认 24
|
259
|
-
col: external_shared_.PropTypes.number.def(24),
|
260
|
-
// 栅格间距,单位 px,左右平分
|
261
|
-
gutter: external_shared_.PropTypes.number.def(20),
|
262
|
-
// 栅格容器的左右外边距
|
263
|
-
margin: external_shared_.PropTypes.number.def(20),
|
264
|
-
// 控制 row 是否使用 flex 布局
|
265
|
-
flex: external_shared_.PropTypes.bool.def(false),
|
266
|
-
// 外部设置的 class name
|
267
|
-
extCls: external_shared_.PropTypes.string
|
268
|
-
};
|
269
|
-
/* harmony default export */ const container = ((0,external_vue_.defineComponent)({
|
270
|
-
name: 'Container',
|
271
|
-
props: containerProps,
|
272
|
-
emits: [],
|
273
|
-
setup: function setup(props, ctx) {
|
274
|
-
var col = props.col,
|
275
|
-
gutter = props.gutter,
|
276
|
-
flex = props.flex,
|
277
|
-
extCls = props.extCls;
|
278
|
-
(0,external_vue_.provide)(containerKey, {
|
279
|
-
col: col,
|
280
|
-
gutter: gutter,
|
281
|
-
flex: flex
|
282
|
-
});
|
283
|
-
var _usePrefix = (0,external_config_provider_.usePrefix)(),
|
284
|
-
resolveClassName = _usePrefix.resolveClassName;
|
285
|
-
var classes = (0,external_vue_.computed)(function () {
|
286
|
-
return extCls ? "".concat(resolveClassName('grid-container'), " ").concat(extCls) : "".concat(resolveClassName('grid-container'));
|
287
|
-
});
|
288
|
-
var style = (0,external_vue_.computed)(function () {
|
289
|
-
var margin = props.margin;
|
290
|
-
return {
|
291
|
-
'padding-right': "".concat(margin, "px"),
|
292
|
-
'padding-left': "".concat(margin, "px")
|
293
|
-
};
|
294
|
-
});
|
295
|
-
return function () {
|
296
|
-
var _a, _b;
|
297
|
-
return (0,external_vue_.createVNode)("div", {
|
298
|
-
"class": classes.value,
|
299
|
-
"style": style.value
|
300
|
-
}, [(_b = (_a = ctx.slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
|
301
|
-
};
|
302
|
-
}
|
303
|
-
}));
|
304
|
-
;// CONCATENATED MODULE: ../../packages/container/src/row.tsx
|
305
|
-
|
306
|
-
/*
|
307
|
-
* Tencent is pleased to support the open source community by making
|
308
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
309
|
-
*
|
310
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
311
|
-
*
|
312
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
313
|
-
*
|
314
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
315
|
-
*
|
316
|
-
* ---------------------------------------------------
|
317
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
318
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
319
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
320
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
321
|
-
*
|
322
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
323
|
-
* the Software.
|
324
|
-
*
|
325
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
326
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
327
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
328
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
329
|
-
* IN THE SOFTWARE.
|
330
|
-
*/
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
/* harmony default export */ const row = ((0,external_vue_.defineComponent)({
|
335
|
-
name: 'Row',
|
336
|
-
emits: [],
|
337
|
-
setup: function setup(_props, ctx) {
|
338
|
-
var _inject = (0,external_vue_.inject)(containerKey),
|
339
|
-
col = _inject.col,
|
340
|
-
gutter = _inject.gutter,
|
341
|
-
flex = _inject.flex;
|
342
|
-
(0,external_vue_.provide)('containerProps', {
|
343
|
-
col: col,
|
344
|
-
gutter: gutter,
|
345
|
-
flex: flex
|
346
|
-
});
|
347
|
-
var _usePrefix = (0,external_config_provider_.usePrefix)(),
|
348
|
-
resolveClassName = _usePrefix.resolveClassName;
|
349
|
-
var style = (0,external_vue_.computed)(function () {
|
350
|
-
var o = flex ? {
|
351
|
-
display: ['-webkit-box', '-ms-flexbox', 'flex']
|
352
|
-
} : {};
|
353
|
-
return Object.assign(Object.assign({}, o), {
|
354
|
-
'margin-right': "-".concat(gutter / 2, "px"),
|
355
|
-
'margin-left': "-".concat(gutter / 2, "px")
|
356
|
-
});
|
357
|
-
});
|
358
|
-
return function () {
|
359
|
-
var _a, _b;
|
360
|
-
return (0,external_vue_.createVNode)("div", {
|
361
|
-
"class": "".concat(resolveClassName('grid-row')),
|
362
|
-
"style": style.value
|
363
|
-
}, [(_b = (_a = ctx.slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
|
364
|
-
};
|
365
|
-
}
|
366
|
-
}));
|
367
|
-
;// CONCATENATED MODULE: ../../packages/container/src/index.ts
|
368
|
-
/*
|
369
|
-
* Tencent is pleased to support the open source community by making
|
370
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
371
|
-
*
|
372
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
373
|
-
*
|
374
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
375
|
-
*
|
376
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
377
|
-
*
|
378
|
-
* ---------------------------------------------------
|
379
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
380
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
381
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
382
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
383
|
-
*
|
384
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
385
|
-
* the Software.
|
386
|
-
*
|
387
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
388
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
389
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
390
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
391
|
-
* IN THE SOFTWARE.
|
392
|
-
*/
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
var BkContainer = (0,external_shared_.withInstallProps)(container, {
|
398
|
-
Row: row,
|
399
|
-
Col: col
|
400
|
-
});
|
401
|
-
/* harmony default export */ const src = (BkContainer);
|
402
|
-
|
403
|
-
})();
|
404
|
-
|
405
|
-
/******/ return __webpack_exports__;
|
406
|
-
/******/ })()
|
407
|
-
;
|
408
|
-
});
|
1
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../config-provider"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider"],r);else{var o="object"==typeof exports?r(require("../shared"),require("vue"),require("../config-provider")):r(e["../shared"],e.vue,e["../config-provider"]);for(var t in o)("object"==typeof exports?exports:e)[t]=o[t]}}(self,((e,r,o)=>(()=>{"use strict";var t={2717:e=>{e.exports=o},4212:r=>{r.exports=e},748:e=>{e.exports=r}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.d=(e,r)=>{for(var o in r)i.o(r,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{BkCol:()=>u,BkContainer:()=>p,BkRow:()=>c,default:()=>d});var e=i(4212),r=i(748),o=i(2717),t=Symbol("containerProps"),n={span:e.PropTypes.number.def(1),offset:e.PropTypes.number.def(0),pull:e.PropTypes.number.def(0),push:e.PropTypes.number.def(0)};const u=(0,r.defineComponent)({name:"Col",props:n,emits:[],setup:function(e,n){var i=(0,r.inject)(t),a=i.col,u=i.gutter,l=i.flex,s=e.span,c=e.offset,p=e.pull,d=e.push,f=(0,r.computed)((function(){return s||a}));(0,r.provide)("containerProps",{col:f.value,gutter:u,flex:l});var v=function(e){return"".concat(Number((100*e).toFixed(3)),"%")},m=(0,r.computed)((function(){return{width:v(f.value/a),"padding-right":"".concat(u/2,"px"),"padding-left":"".concat(u/2,"px"),"margin-left":c?v(c/a):null,right:p?v(p/a):null,left:d?v(d/a):null}})),g=(0,o.usePrefix)().resolveClassName;return function(){var e,o;return(0,r.createVNode)("div",{class:"".concat(g("grid-col")),style:m.value},[null===(o=(e=n.slots).default)||void 0===o?void 0:o.call(e)])}}});var l={col:e.PropTypes.number.def(24),gutter:e.PropTypes.number.def(20),margin:e.PropTypes.number.def(20),flex:e.PropTypes.bool.def(!1),extCls:e.PropTypes.string};const s=(0,r.defineComponent)({name:"Container",props:l,emits:[],setup:function(e,n){var i=e.col,a=e.gutter,u=e.flex,l=e.extCls;(0,r.provide)(t,{col:i,gutter:a,flex:u});var s=(0,o.usePrefix)().resolveClassName,c=(0,r.computed)((function(){return l?"".concat(s("grid-container")," ").concat(l):"".concat(s("grid-container"))})),p=(0,r.computed)((function(){var r=e.margin;return{"padding-right":"".concat(r,"px"),"padding-left":"".concat(r,"px")}}));return function(){var e,o;return(0,r.createVNode)("div",{class:c.value,style:p.value},[null===(o=(e=n.slots).default)||void 0===o?void 0:o.call(e)])}}}),c=(0,r.defineComponent)({name:"Row",emits:[],setup:function(e,n){var i=(0,r.inject)(t),a=i.col,u=i.gutter,l=i.flex;(0,r.provide)("containerProps",{col:a,gutter:u,flex:l});var s=(0,o.usePrefix)().resolveClassName,c=(0,r.computed)((function(){var e=l?{display:["-webkit-box","-ms-flexbox","flex"]}:{};return Object.assign(Object.assign({},e),{"margin-right":"-".concat(u/2,"px"),"margin-left":"-".concat(u/2,"px")})}));return function(){var e,o;return(0,r.createVNode)("div",{class:"".concat(s("grid-row")),style:c.value},[null===(o=(e=n.slots).default)||void 0===o?void 0:o.call(e)])}}});var p=(0,e.withInstallProps)(s,{Row:c,Col:u});const d=p})(),a})()));
|