bkui-vue 0.0.1-beta.389 → 0.0.1-beta.390
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/affix/index.js +60 -128
- package/lib/alert/index.js +56 -124
- package/lib/animate-number/index.js +42 -106
- package/lib/backtop/index.js +61 -133
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +4 -4
- package/lib/badge/index.js +50 -114
- package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/index.d.ts +5 -5
- package/lib/breadcrumb/index.js +67 -133
- package/lib/button/index.js +68 -147
- package/lib/card/index.js +69 -154
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +10 -10
- package/lib/cascader/index.js +168 -242
- package/lib/checkbox/index.js +77 -139
- package/lib/code-diff/index.js +79 -121
- package/lib/collapse/index.js +84 -150
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +4 -4
- package/lib/color-picker/index.js +193 -245
- package/lib/components.js +434 -671
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +4 -4
- package/lib/container/index.js +64 -125
- package/lib/date-picker/date-picker.d.ts +2 -2
- package/lib/date-picker/index.d.ts +7 -7
- package/lib/date-picker/index.js +462 -563
- package/lib/date-picker/panel/time-range.d.ts +3 -3
- package/lib/date-picker/panel/time.d.ts +3 -3
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +7 -7
- package/lib/dialog/index.js +108 -198
- package/lib/directives/index.d.ts +0 -2
- package/lib/directives/index.js +86 -140
- package/lib/dist.index.js +48 -133
- package/lib/divider/index.js +50 -118
- package/lib/dropdown/dropdown.d.ts +2 -2
- package/lib/dropdown/index.d.ts +7 -7
- package/lib/dropdown/index.js +73 -155
- package/lib/exception/index.js +97 -145
- package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
- package/lib/fixed-navbar/index.d.ts +4 -4
- package/lib/fixed-navbar/index.js +43 -107
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +107 -193
- package/lib/icon/angle-double-down-line.js +30 -90
- package/lib/icon/angle-double-left-line.js +30 -90
- package/lib/icon/angle-double-left.js +30 -90
- package/lib/icon/angle-double-right-line.js +30 -90
- package/lib/icon/angle-double-right.js +30 -90
- package/lib/icon/angle-double-up-line.js +30 -90
- package/lib/icon/angle-down-fill.js +30 -90
- package/lib/icon/angle-down-line.js +30 -90
- package/lib/icon/angle-down.js +30 -90
- package/lib/icon/angle-left.js +30 -90
- package/lib/icon/angle-right.js +30 -90
- package/lib/icon/angle-up-fill.js +30 -90
- package/lib/icon/angle-up.js +30 -90
- package/lib/icon/archive-fill.js +30 -90
- package/lib/icon/arrows-left.js +30 -90
- package/lib/icon/arrows-right.js +30 -90
- package/lib/icon/audio-fill.js +30 -90
- package/lib/icon/bk.js +30 -90
- package/lib/icon/circle.js +30 -90
- package/lib/icon/close-line.js +30 -90
- package/lib/icon/close.js +30 -90
- package/lib/icon/code.js +30 -90
- package/lib/icon/cog-shape.js +30 -90
- package/lib/icon/collapse-left.js +30 -90
- package/lib/icon/copy.js +30 -90
- package/lib/icon/data-shape.js +30 -90
- package/lib/icon/del.js +30 -90
- package/lib/icon/doc-fill.js +30 -90
- package/lib/icon/done.js +30 -90
- package/lib/icon/down-shape.js +30 -90
- package/lib/icon/down-small.js +30 -90
- package/lib/icon/edit-line.js +30 -90
- package/lib/icon/ellipsis.js +30 -90
- package/lib/icon/enlarge-line.js +30 -90
- package/lib/icon/error.js +30 -90
- package/lib/icon/excel-fill.js +30 -90
- package/lib/icon/exclamation-circle-shape.js +30 -90
- package/lib/icon/eye.js +30 -90
- package/lib/icon/filliscreen-line.js +30 -90
- package/lib/icon/folder-open.js +30 -90
- package/lib/icon/folder-shape-open.js +30 -90
- package/lib/icon/folder-shape.js +30 -90
- package/lib/icon/folder.js +30 -90
- package/lib/icon/funnel.js +30 -90
- package/lib/icon/help-document-fill.js +30 -90
- package/lib/icon/help-fill.js +30 -90
- package/lib/icon/help.js +30 -90
- package/lib/icon/image-fill.js +30 -90
- package/lib/icon/img-placehoulder.js +52 -88
- package/lib/icon/index.js +267 -255
- package/lib/icon/info-line.js +52 -88
- package/lib/icon/info.js +52 -88
- package/lib/icon/left-shape.js +52 -88
- package/lib/icon/left-turn-line.js +52 -88
- package/lib/icon/narrow-line.js +52 -88
- package/lib/icon/original.js +52 -88
- package/lib/icon/pdf-fill.js +52 -88
- package/lib/icon/play-shape.js +52 -88
- package/lib/icon/plus.js +52 -88
- package/lib/icon/ppt-fill.js +52 -88
- package/lib/icon/qq.js +52 -88
- package/lib/icon/right-shape.js +52 -88
- package/lib/icon/right-turn-line.js +52 -88
- package/lib/icon/search.js +52 -88
- package/lib/icon/share.js +52 -88
- package/lib/icon/spinner.js +52 -88
- package/lib/icon/success.js +52 -88
- package/lib/icon/switcher-loading.js +52 -88
- package/lib/icon/text-file.js +52 -88
- package/lib/icon/text-fill.js +52 -88
- package/lib/icon/transfer.js +52 -88
- package/lib/icon/tree-application-shape.js +52 -88
- package/lib/icon/unfull-screen.js +52 -88
- package/lib/icon/unvisible.js +52 -88
- package/lib/icon/up-shape.js +52 -88
- package/lib/icon/upload.js +52 -88
- package/lib/icon/video-fill.js +52 -88
- package/lib/icon/warn.js +52 -88
- package/lib/icon/weixin.js +52 -88
- package/lib/image/index.js +164 -213
- package/lib/index.js +50 -134
- package/lib/info-box/index.js +152 -206
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +99 -167
- package/lib/input/input.d.ts +1 -1
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +47 -115
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +67 -127
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.js +92 -156
- package/lib/message/index.js +76 -148
- package/lib/modal/index.d.ts +4 -4
- package/lib/modal/index.js +85 -151
- package/lib/modal/modal.d.ts +1 -1
- package/lib/navigation/index.js +66 -134
- package/lib/notify/index.js +81 -153
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.js +92 -128
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/index.js +131 -220
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/plugin-popover/index.js +143 -191
- package/lib/plugins/index.js +33 -100
- package/lib/popover/index.d.ts +10 -10
- package/lib/popover/index.js +148 -194
- package/lib/popover/popover.d.ts +3 -3
- package/lib/popover2/index.js +35 -99
- package/lib/preset.js +37 -104
- package/lib/process/index.d.ts +4 -4
- package/lib/process/index.js +92 -134
- package/lib/process/process.d.ts +1 -1
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/index.js +63 -127
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.js +81 -142
- package/lib/rate/index.js +63 -127
- package/lib/resize-layout/index.js +79 -147
- package/lib/search-select/index.js +168 -220
- package/lib/select/index.d.ts +10 -10
- package/lib/select/index.js +315 -394
- package/lib/select/select.d.ts +3 -3
- package/lib/shared/index.js +228 -203
- package/lib/sideslider/index.d.ts +4 -4
- package/lib/sideslider/index.js +88 -137
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/index.d.ts +7 -7
- package/lib/slider/index.js +147 -196
- package/lib/slider/slider.d.ts +2 -2
- package/lib/steps/index.js +105 -152
- package/lib/swiper/index.js +62 -126
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/index.js +65 -133
- package/lib/switcher/switcher.d.ts +1 -1
- package/lib/tab/index.d.ts +4 -4
- package/lib/tab/index.js +118 -188
- package/lib/tab/tab.d.ts +1 -1
- package/lib/table/index.js +457 -572
- package/lib/table-column/index.js +129 -197
- package/lib/tag/index.js +58 -130
- package/lib/tag-input/index.d.ts +7 -7
- package/lib/tag-input/index.js +175 -277
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/time-picker/index.d.ts +10 -10
- package/lib/time-picker/index.js +40 -111
- package/lib/timeline/index.d.ts +4 -4
- package/lib/timeline/index.js +50 -114
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/transfer/index.js +89 -174
- package/lib/tree/index.js +158 -235
- package/lib/upload/index.d.ts +7 -7
- package/lib/upload/index.js +173 -227
- package/lib/upload/upload-list.d.ts +1 -1
- package/lib/upload/upload-trigger.d.ts +1 -1
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.js +86 -154
- package/package.json +1 -1
package/lib/button/index.js
CHANGED
@@ -1,121 +1,41 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("../loading")) : factory(root["../shared"], root["vue"], root["../loading"]);
|
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__4870__) => {
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
12
|
-
/******/ "use strict";
|
13
|
-
/******/ var __webpack_modules__ = ({
|
14
|
-
|
15
|
-
/***/ 4870:
|
16
|
-
/***/ ((module) => {
|
17
|
-
|
18
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4870__;
|
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
|
-
/******/
|
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__loading_4d683b23__ from "../loading";
|
4
|
+
/******/ // The require scope
|
5
|
+
/******/ var __webpack_require__ = {};
|
6
|
+
/******/
|
62
7
|
/************************************************************************/
|
63
|
-
/******/
|
64
|
-
/******/
|
65
|
-
/******/
|
66
|
-
/******/
|
67
|
-
/******/
|
68
|
-
/******/
|
69
|
-
/******/ (
|
70
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
71
|
-
/******/ return getter;
|
72
|
-
/******/ };
|
73
|
-
/******/ })();
|
74
|
-
/******/
|
75
|
-
/******/ /* webpack/runtime/define property getters */
|
76
|
-
/******/ (() => {
|
77
|
-
/******/ // define getter functions for harmony exports
|
78
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
79
|
-
/******/ for(var key in definition) {
|
80
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
81
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
82
|
-
/******/ }
|
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] });
|
83
15
|
/******/ }
|
84
|
-
/******/ }
|
85
|
-
/******/ }
|
86
|
-
/******/
|
87
|
-
/******/
|
88
|
-
/******/
|
89
|
-
/******/
|
90
|
-
/******/
|
91
|
-
/******/
|
92
|
-
/******/
|
93
|
-
/******/ (() => {
|
94
|
-
/******/ // define __esModule on exports
|
95
|
-
/******/ __webpack_require__.r = (exports) => {
|
96
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
97
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
98
|
-
/******/ }
|
99
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
100
|
-
/******/ };
|
101
|
-
/******/ })();
|
102
|
-
/******/
|
16
|
+
/******/ }
|
17
|
+
/******/ };
|
18
|
+
/******/ })();
|
19
|
+
/******/
|
20
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
21
|
+
/******/ (() => {
|
22
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
23
|
+
/******/ })();
|
24
|
+
/******/
|
103
25
|
/************************************************************************/
|
104
26
|
var __webpack_exports__ = {};
|
105
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
106
|
-
(() => {
|
107
|
-
// ESM COMPAT FLAG
|
108
|
-
__webpack_require__.r(__webpack_exports__);
|
109
27
|
|
110
28
|
// EXPORTS
|
111
29
|
__webpack_require__.d(__webpack_exports__, {
|
112
|
-
"
|
113
|
-
"
|
114
|
-
"
|
30
|
+
"if": () => (/* binding */ BkButton),
|
31
|
+
"um": () => (/* reexport */ button_group),
|
32
|
+
"ZP": () => (/* binding */ src)
|
115
33
|
});
|
116
34
|
|
117
|
-
|
118
|
-
var
|
35
|
+
;// CONCATENATED MODULE: external "../shared"
|
36
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
37
|
+
var y = x => () => x
|
38
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
|
119
39
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
120
40
|
function _defineProperty(obj, key, value) {
|
121
41
|
if (key in obj) {
|
@@ -131,11 +51,14 @@ function _defineProperty(obj, key, value) {
|
|
131
51
|
|
132
52
|
return obj;
|
133
53
|
}
|
134
|
-
|
135
|
-
var
|
136
|
-
|
137
|
-
|
138
|
-
|
54
|
+
;// CONCATENATED MODULE: external "vue"
|
55
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
56
|
+
var external_vue_y = x => () => x
|
57
|
+
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, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
|
58
|
+
;// CONCATENATED MODULE: external "../loading"
|
59
|
+
var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
60
|
+
var external_loading_y = x => () => x
|
61
|
+
const external_loading_namespaceObject = external_loading_x({ ["BkLoadingSize"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__.BkLoadingSize, ["default"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__["default"] });
|
139
62
|
;// CONCATENATED MODULE: ../../packages/button/src/button.tsx
|
140
63
|
|
141
64
|
|
@@ -170,31 +93,31 @@ var external_loading_default = /*#__PURE__*/__webpack_require__.n(external_loadi
|
|
170
93
|
|
171
94
|
var btnSizes = ['', 'small', 'large'];
|
172
95
|
var buttonProps = {
|
173
|
-
theme:
|
174
|
-
hoverTheme:
|
96
|
+
theme: external_shared_namespaceObject.PropTypes.theme(),
|
97
|
+
hoverTheme: external_shared_namespaceObject.PropTypes.theme(),
|
175
98
|
size: {
|
176
99
|
type: String,
|
177
100
|
"default": btnSizes[0]
|
178
101
|
},
|
179
|
-
title:
|
180
|
-
icon:
|
181
|
-
iconRight:
|
182
|
-
disabled:
|
183
|
-
loading:
|
102
|
+
title: external_shared_namespaceObject.PropTypes.string,
|
103
|
+
icon: external_shared_namespaceObject.PropTypes.string,
|
104
|
+
iconRight: external_shared_namespaceObject.PropTypes.string,
|
105
|
+
disabled: external_shared_namespaceObject.PropTypes.bool,
|
106
|
+
loading: external_shared_namespaceObject.PropTypes.bool,
|
184
107
|
loadingMode: {
|
185
108
|
type: String,
|
186
109
|
"default": 'default'
|
187
110
|
},
|
188
|
-
outline:
|
189
|
-
text:
|
190
|
-
selected:
|
111
|
+
outline: external_shared_namespaceObject.PropTypes.bool,
|
112
|
+
text: external_shared_namespaceObject.PropTypes.bool,
|
113
|
+
selected: external_shared_namespaceObject.PropTypes.bool,
|
191
114
|
// circle: PropTypes.bool,
|
192
115
|
nativeType: {
|
193
116
|
type: String,
|
194
117
|
"default": 'button'
|
195
118
|
}
|
196
119
|
};
|
197
|
-
/* harmony default export */ const src_button = ((0,
|
120
|
+
/* harmony default export */ const src_button = ((0,external_vue_namespaceObject.defineComponent)({
|
198
121
|
name: 'Button',
|
199
122
|
props: buttonProps,
|
200
123
|
emits: ['click', 'mouseover'],
|
@@ -204,19 +127,19 @@ var buttonProps = {
|
|
204
127
|
|
205
128
|
var _a;
|
206
129
|
|
207
|
-
var isHover = (0,
|
130
|
+
var isHover = (0,external_vue_namespaceObject.ref)(false);
|
208
131
|
var showSlot = (_a = slots["default"]) !== null && _a !== void 0 ? _a : false;
|
209
132
|
var btnClsPrefix = 'bk-button';
|
210
|
-
var isText = (0,
|
133
|
+
var isText = (0,external_vue_namespaceObject.computed)(function () {
|
211
134
|
return props.text && !props.hoverTheme;
|
212
135
|
});
|
213
|
-
var btnCls = (0,
|
136
|
+
var btnCls = (0,external_vue_namespaceObject.computed)(function () {
|
214
137
|
var _classes;
|
215
138
|
|
216
139
|
var hoverTheme = props.hoverTheme ? "".concat(btnClsPrefix, "-hover-").concat(props.hoverTheme) : '';
|
217
140
|
var btnThemeCls = props.theme ? "".concat(btnClsPrefix, "-").concat(props.theme) : '';
|
218
141
|
var themeCls = props.hoverTheme ? '' : btnThemeCls;
|
219
|
-
return (0,
|
142
|
+
return (0,external_shared_namespaceObject.classes)((_classes = {
|
220
143
|
'is-disabled': props.disabled,
|
221
144
|
'is-outline': props.outline,
|
222
145
|
'is-text': isText.value,
|
@@ -224,7 +147,7 @@ var buttonProps = {
|
|
224
147
|
'is-selected': props.selected
|
225
148
|
}, _defineProperty(_classes, "".concat(btnClsPrefix, "-").concat(props.size), props.size && btnSizes.includes(props.size)), _defineProperty(_classes, 'no-slot', !showSlot), _classes), "".concat(themeCls, " ").concat(btnClsPrefix, " ").concat(hoverTheme));
|
226
149
|
});
|
227
|
-
var loadingTheme = (0,
|
150
|
+
var loadingTheme = (0,external_vue_namespaceObject.computed)(function () {
|
228
151
|
if (props.text || props.outline || props.hoverTheme) {
|
229
152
|
if (isHover.value && !props.text) return 'white';
|
230
153
|
if (props.text && props.disabled) return;
|
@@ -233,8 +156,8 @@ var buttonProps = {
|
|
233
156
|
|
234
157
|
return !props.theme ? undefined : 'white';
|
235
158
|
});
|
236
|
-
var loadingSize = (0,
|
237
|
-
return isText.value || props.size ===
|
159
|
+
var loadingSize = (0,external_vue_namespaceObject.computed)(function () {
|
160
|
+
return isText.value || props.size === external_loading_namespaceObject.BkLoadingSize.Small ? external_loading_namespaceObject.BkLoadingSize.Mini : external_loading_namespaceObject.BkLoadingSize.Small;
|
238
161
|
});
|
239
162
|
|
240
163
|
var handleClick = function handleClick(e) {
|
@@ -259,7 +182,7 @@ var buttonProps = {
|
|
259
182
|
return function () {
|
260
183
|
var _a;
|
261
184
|
|
262
|
-
return (0,
|
185
|
+
return (0,external_vue_namespaceObject.createVNode)("button", {
|
263
186
|
"title": props.title,
|
264
187
|
"disabled": props.disabled,
|
265
188
|
"class": btnCls.value,
|
@@ -267,14 +190,14 @@ var buttonProps = {
|
|
267
190
|
"onClick": handleClick,
|
268
191
|
"onMouseover": handleMouseOver,
|
269
192
|
"onMouseleave": handleMouseout
|
270
|
-
}, [props.loading && (0,
|
193
|
+
}, [props.loading && (0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
271
194
|
"loading": true,
|
272
195
|
"class": "".concat(btnClsPrefix, "-loading"),
|
273
196
|
"mode": props.loadingMode,
|
274
197
|
"size": loadingSize.value
|
275
198
|
}, loadingTheme.value ? {
|
276
199
|
theme: loadingTheme.value
|
277
|
-
} : {}), null), slots["default"] && (0,
|
200
|
+
} : {}), null), slots["default"] && (0,external_vue_namespaceObject.createVNode)("span", {
|
278
201
|
"class": "".concat(btnClsPrefix, "-text")
|
279
202
|
}, [(_a = slots["default"]) === null || _a === void 0 ? void 0 : _a.call(slots)])]);
|
280
203
|
};
|
@@ -311,19 +234,19 @@ var buttonProps = {
|
|
311
234
|
*/
|
312
235
|
|
313
236
|
|
314
|
-
/* harmony default export */ const button_group = ((0,
|
237
|
+
/* harmony default export */ const button_group = ((0,external_vue_namespaceObject.defineComponent)({
|
315
238
|
name: 'ButtonGroup',
|
316
239
|
props: {
|
317
|
-
size:
|
240
|
+
size: external_shared_namespaceObject.PropTypes.size()
|
318
241
|
},
|
319
242
|
setup: function setup(props, ctx) {
|
320
|
-
var btnGroupCls = (0,
|
321
|
-
return (0,
|
243
|
+
var btnGroupCls = (0,external_vue_namespaceObject.computed)(function () {
|
244
|
+
return (0,external_shared_namespaceObject.classes)(_defineProperty({}, "bk-button-group-".concat(props.size), !!props.size), 'bk-button-group');
|
322
245
|
});
|
323
246
|
return function () {
|
324
247
|
var _a, _b;
|
325
248
|
|
326
|
-
return (0,
|
249
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
327
250
|
"class": btnGroupCls.value
|
328
251
|
}, [(_b = (_a = ctx.slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
|
329
252
|
};
|
@@ -358,14 +281,12 @@ var buttonProps = {
|
|
358
281
|
|
359
282
|
|
360
283
|
|
361
|
-
var BkButton = (0,
|
284
|
+
var BkButton = (0,external_shared_namespaceObject.withInstallProps)(src_button, {
|
362
285
|
ButtonGroup: button_group
|
363
286
|
});
|
364
287
|
/* harmony default export */ const src = (BkButton);
|
365
288
|
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
;
|
371
|
-
});
|
289
|
+
var __webpack_exports__BkButton = __webpack_exports__["if"];
|
290
|
+
var __webpack_exports__BkButtonGroup = __webpack_exports__.um;
|
291
|
+
var __webpack_exports__default = __webpack_exports__.ZP;
|
292
|
+
export { __webpack_exports__BkButton as BkButton, __webpack_exports__BkButtonGroup as BkButtonGroup, __webpack_exports__default as default };
|
package/lib/card/index.js
CHANGED
@@ -1,126 +1,40 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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__6870__, __WEBPACK_EXTERNAL_MODULE__8133__) => {
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
12
|
-
/******/ "use strict";
|
13
|
-
/******/ var __webpack_modules__ = ({
|
14
|
-
|
15
|
-
/***/ 6870:
|
16
|
-
/***/ ((module) => {
|
17
|
-
|
18
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__6870__;
|
19
|
-
|
20
|
-
/***/ }),
|
21
|
-
|
22
|
-
/***/ 8133:
|
23
|
-
/***/ ((module) => {
|
24
|
-
|
25
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__8133__;
|
26
|
-
|
27
|
-
/***/ }),
|
28
|
-
|
29
|
-
/***/ 4212:
|
30
|
-
/***/ ((module) => {
|
31
|
-
|
32
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
33
|
-
|
34
|
-
/***/ }),
|
35
|
-
|
36
|
-
/***/ 748:
|
37
|
-
/***/ ((module) => {
|
38
|
-
|
39
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
40
|
-
|
41
|
-
/***/ })
|
42
|
-
|
43
|
-
/******/ });
|
44
|
-
/************************************************************************/
|
45
|
-
/******/ // The module cache
|
46
|
-
/******/ var __webpack_module_cache__ = {};
|
47
|
-
/******/
|
48
|
-
/******/ // The require function
|
49
|
-
/******/ function __webpack_require__(moduleId) {
|
50
|
-
/******/ // Check if module is in cache
|
51
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
52
|
-
/******/ if (cachedModule !== undefined) {
|
53
|
-
/******/ return cachedModule.exports;
|
54
|
-
/******/ }
|
55
|
-
/******/ // Create a new module (and put it into the cache)
|
56
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
57
|
-
/******/ // no module.id needed
|
58
|
-
/******/ // no module.loaded needed
|
59
|
-
/******/ exports: {}
|
60
|
-
/******/ };
|
61
|
-
/******/
|
62
|
-
/******/ // Execute the module function
|
63
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
64
|
-
/******/
|
65
|
-
/******/ // Return the exports of the module
|
66
|
-
/******/ return module.exports;
|
67
|
-
/******/ }
|
68
|
-
/******/
|
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__icon_85385c3e__ from "../icon";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__input_752b0149__ from "../input";
|
5
|
+
/******/ // The require scope
|
6
|
+
/******/ var __webpack_require__ = {};
|
7
|
+
/******/
|
69
8
|
/************************************************************************/
|
70
|
-
/******/
|
71
|
-
/******/
|
72
|
-
/******/
|
73
|
-
/******/
|
74
|
-
/******/
|
75
|
-
/******/
|
76
|
-
/******/ (
|
77
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
78
|
-
/******/ return getter;
|
79
|
-
/******/ };
|
80
|
-
/******/ })();
|
81
|
-
/******/
|
82
|
-
/******/ /* webpack/runtime/define property getters */
|
83
|
-
/******/ (() => {
|
84
|
-
/******/ // define getter functions for harmony exports
|
85
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
86
|
-
/******/ for(var key in definition) {
|
87
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
88
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
89
|
-
/******/ }
|
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] });
|
90
16
|
/******/ }
|
91
|
-
/******/ }
|
92
|
-
/******/ }
|
93
|
-
/******/
|
94
|
-
/******/
|
95
|
-
/******/
|
96
|
-
/******/
|
97
|
-
/******/
|
98
|
-
/******/
|
99
|
-
/******/
|
100
|
-
/******/ (() => {
|
101
|
-
/******/ // define __esModule on exports
|
102
|
-
/******/ __webpack_require__.r = (exports) => {
|
103
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
104
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
105
|
-
/******/ }
|
106
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
107
|
-
/******/ };
|
108
|
-
/******/ })();
|
109
|
-
/******/
|
17
|
+
/******/ }
|
18
|
+
/******/ };
|
19
|
+
/******/ })();
|
20
|
+
/******/
|
21
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
22
|
+
/******/ (() => {
|
23
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
24
|
+
/******/ })();
|
25
|
+
/******/
|
110
26
|
/************************************************************************/
|
111
27
|
var __webpack_exports__ = {};
|
112
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
113
|
-
(() => {
|
114
|
-
// ESM COMPAT FLAG
|
115
|
-
__webpack_require__.r(__webpack_exports__);
|
116
28
|
|
117
29
|
// EXPORTS
|
118
30
|
__webpack_require__.d(__webpack_exports__, {
|
119
|
-
"
|
31
|
+
"Z": () => (/* binding */ src)
|
120
32
|
});
|
121
33
|
|
122
|
-
|
123
|
-
var
|
34
|
+
;// CONCATENATED MODULE: external "../shared"
|
35
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
36
|
+
var y = x => () => x
|
37
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
124
38
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
125
39
|
function _defineProperty(obj, key, value) {
|
126
40
|
if (key in obj) {
|
@@ -136,13 +50,18 @@ function _defineProperty(obj, key, value) {
|
|
136
50
|
|
137
51
|
return obj;
|
138
52
|
}
|
139
|
-
|
140
|
-
var
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
var
|
145
|
-
var
|
53
|
+
;// CONCATENATED MODULE: external "vue"
|
54
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
55
|
+
var external_vue_y = x => () => x
|
56
|
+
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
57
|
+
;// CONCATENATED MODULE: external "../icon"
|
58
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
59
|
+
var external_icon_y = x => () => x
|
60
|
+
const external_icon_namespaceObject = external_icon_x({ ["AngleDown"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleDown, ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleRight, ["EditLine"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.EditLine });
|
61
|
+
;// CONCATENATED MODULE: external "../input"
|
62
|
+
var external_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
63
|
+
var external_input_y = x => () => x
|
64
|
+
const external_input_namespaceObject = external_input_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__input_752b0149__["default"] });
|
146
65
|
;// CONCATENATED MODULE: ../../packages/card/src/card.tsx
|
147
66
|
|
148
67
|
|
@@ -176,29 +95,29 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
|
|
176
95
|
|
177
96
|
|
178
97
|
|
179
|
-
/* harmony default export */ const card = ((0,
|
98
|
+
/* harmony default export */ const card = ((0,external_vue_namespaceObject.defineComponent)({
|
180
99
|
name: 'Card',
|
181
100
|
props: {
|
182
|
-
title:
|
183
|
-
showHeader:
|
184
|
-
showFooter:
|
185
|
-
collapseStatus:
|
186
|
-
border:
|
187
|
-
disableHeaderStyle:
|
188
|
-
position:
|
189
|
-
isEdit:
|
190
|
-
isCollapse:
|
101
|
+
title: external_shared_namespaceObject.PropTypes.string,
|
102
|
+
showHeader: external_shared_namespaceObject.PropTypes.bool.def(true),
|
103
|
+
showFooter: external_shared_namespaceObject.PropTypes.bool.def(false),
|
104
|
+
collapseStatus: external_shared_namespaceObject.PropTypes.bool.def(true),
|
105
|
+
border: external_shared_namespaceObject.PropTypes.bool.def(true),
|
106
|
+
disableHeaderStyle: external_shared_namespaceObject.PropTypes.bool.def(false),
|
107
|
+
position: external_shared_namespaceObject.PropTypes.string.def('left'),
|
108
|
+
isEdit: external_shared_namespaceObject.PropTypes.bool.def(false),
|
109
|
+
isCollapse: external_shared_namespaceObject.PropTypes.bool.def(false)
|
191
110
|
},
|
192
111
|
emits: ['update:collapseStatus', 'edit'],
|
193
112
|
setup: function setup(props, _ref) {
|
194
113
|
var emit = _ref.emit;
|
195
114
|
|
196
115
|
/** 展开&收起的状态 */
|
197
|
-
var collapseActive = (0,
|
116
|
+
var collapseActive = (0,external_vue_namespaceObject.ref)(true);
|
198
117
|
/** 是否显示编辑框 */
|
199
118
|
|
200
|
-
var showInput = (0,
|
201
|
-
var renderTitle = (0,
|
119
|
+
var showInput = (0,external_vue_namespaceObject.ref)(false);
|
120
|
+
var renderTitle = (0,external_vue_namespaceObject.ref)('');
|
202
121
|
|
203
122
|
var handleCollapse = function handleCollapse() {
|
204
123
|
if (!props.isCollapse) {
|
@@ -222,14 +141,14 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
|
|
222
141
|
emit('edit', renderTitle);
|
223
142
|
};
|
224
143
|
|
225
|
-
(0,
|
144
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
226
145
|
return props.collapseStatus;
|
227
146
|
}, function (val) {
|
228
147
|
props.isCollapse && (collapseActive.value = val);
|
229
148
|
}, {
|
230
149
|
immediate: true
|
231
150
|
});
|
232
|
-
(0,
|
151
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
233
152
|
return props.title;
|
234
153
|
}, function (val) {
|
235
154
|
renderTitle.value = val;
|
@@ -253,13 +172,13 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
|
|
253
172
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
254
173
|
|
255
174
|
var wrapperName = 'bk-card';
|
256
|
-
var cardClass = (0,
|
257
|
-
var headClass = (0,
|
175
|
+
var cardClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(wrapperName), true), _defineProperty(_classes, "".concat(wrapperName, "-border-none"), !this.$props.border), _classes), '');
|
176
|
+
var headClass = (0,external_shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, "".concat(wrapperName, "-head"), true), _defineProperty(_classes2, "".concat(wrapperName, "-head-").concat(this.$props.position), this.$props.isCollapse && this.$props.position), _defineProperty(_classes2, 'no-line-height', this.$props.disableHeaderStyle), _defineProperty(_classes2, 'collapse', !this.collapseActive), _classes2), '');
|
258
177
|
|
259
|
-
var defaultHeader = (0,
|
178
|
+
var defaultHeader = (0,external_vue_namespaceObject.createVNode)("div", {
|
260
179
|
"class": "title",
|
261
180
|
"title": this.renderTitle
|
262
|
-
}, [this.showInput ? (0,
|
181
|
+
}, [this.showInput ? (0,external_vue_namespaceObject.createVNode)(external_input_namespaceObject["default"], {
|
263
182
|
"class": "".concat(wrapperName, "-input"),
|
264
183
|
"modelValue": _this.renderTitle,
|
265
184
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
@@ -268,21 +187,21 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
|
|
268
187
|
"onBlur": this.saveEdit
|
269
188
|
}, null) : this.renderTitle]);
|
270
189
|
|
271
|
-
var defaultIcon = (0,
|
190
|
+
var defaultIcon = (0,external_vue_namespaceObject.createVNode)("span", {
|
272
191
|
"class": "".concat(wrapperName, "-icon"),
|
273
192
|
"onClick": this.handleCollapse
|
274
|
-
}, [this.collapseActive ? (0,
|
193
|
+
}, [this.collapseActive ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleDown, null, null) : (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleRight, null, null)]);
|
275
194
|
|
276
|
-
return (0,
|
195
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
277
196
|
"class": cardClass
|
278
|
-
}, [this.$props.showHeader ? (0,
|
197
|
+
}, [this.$props.showHeader ? (0,external_vue_namespaceObject.createVNode)("div", {
|
279
198
|
"class": headClass
|
280
|
-
}, [this.$props.isCollapse && ((_c = (_b = (_a = this.$slots).icon) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : defaultIcon), (_f = (_e = (_d = this.$slots).header) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : defaultHeader, this.$props.isEdit && !this.showInput && (0,
|
199
|
+
}, [this.$props.isCollapse && ((_c = (_b = (_a = this.$slots).icon) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : defaultIcon), (_f = (_e = (_d = this.$slots).header) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : defaultHeader, this.$props.isEdit && !this.showInput && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.EditLine, {
|
281
200
|
"class": "".concat(wrapperName, "-edit"),
|
282
201
|
"onClick": this.clickEdit
|
283
|
-
}, null)]) : '', this.collapseActive ? (0,
|
202
|
+
}, null)]) : '', this.collapseActive ? (0,external_vue_namespaceObject.createVNode)("div", null, [(0,external_vue_namespaceObject.createVNode)("div", {
|
284
203
|
"class": "".concat(wrapperName, "-body")
|
285
|
-
}, [(_j = (_h = (_g = this.$slots)["default"]) === null || _h === void 0 ? void 0 : _h.call(_g)) !== null && _j !== void 0 ? _j : 'Content']), this.$props.showFooter ? (0,
|
204
|
+
}, [(_j = (_h = (_g = this.$slots)["default"]) === null || _h === void 0 ? void 0 : _h.call(_g)) !== null && _j !== void 0 ? _j : 'Content']), this.$props.showFooter ? (0,external_vue_namespaceObject.createVNode)("div", {
|
286
205
|
"class": "".concat(wrapperName, "-footer")
|
287
206
|
}, [(_m = (_l = (_k = this.$slots).footer) === null || _l === void 0 ? void 0 : _l.call(_k)) !== null && _m !== void 0 ? _m : 'Footer']) : '']) : '']);
|
288
207
|
}
|
@@ -315,12 +234,8 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
|
|
315
234
|
*/
|
316
235
|
|
317
236
|
|
318
|
-
var BkCard = (0,
|
237
|
+
var BkCard = (0,external_shared_namespaceObject.withInstall)(card);
|
319
238
|
;
|
320
239
|
/* harmony default export */ const src = (BkCard);
|
321
|
-
|
322
|
-
|
323
|
-
/******/ return __webpack_exports__;
|
324
|
-
/******/ })()
|
325
|
-
;
|
326
|
-
});
|
240
|
+
var __webpack_exports__default = __webpack_exports__.Z;
|
241
|
+
export { __webpack_exports__default as default };
|