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/collapse/index.js
CHANGED
@@ -1,109 +1,41 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("../icon")) : factory(root["../shared"], root["vue"], root["../icon"]);
|
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__) => {
|
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
|
-
/***/ 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__icon_85385c3e__ from "../icon";
|
4
|
+
/******/ // The require scope
|
5
|
+
/******/ var __webpack_require__ = {};
|
6
|
+
/******/
|
62
7
|
/************************************************************************/
|
63
|
-
/******/
|
64
|
-
/******/
|
65
|
-
/******/
|
66
|
-
/******/
|
67
|
-
/******/
|
68
|
-
/******/
|
69
|
-
/******/
|
70
|
-
/******/ }
|
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] });
|
71
15
|
/******/ }
|
72
|
-
/******/ }
|
73
|
-
/******/ }
|
74
|
-
/******/
|
75
|
-
/******/
|
76
|
-
/******/
|
77
|
-
/******/
|
78
|
-
/******/
|
79
|
-
/******/
|
80
|
-
/******/
|
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
|
-
/******/
|
16
|
+
/******/ }
|
17
|
+
/******/ };
|
18
|
+
/******/ })();
|
19
|
+
/******/
|
20
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
21
|
+
/******/ (() => {
|
22
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
23
|
+
/******/ })();
|
24
|
+
/******/
|
91
25
|
/************************************************************************/
|
92
26
|
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
27
|
|
98
28
|
// EXPORTS
|
99
29
|
__webpack_require__.d(__webpack_exports__, {
|
100
|
-
"
|
101
|
-
"
|
102
|
-
"
|
30
|
+
"AP": () => (/* reexport */ collapse_panel),
|
31
|
+
"UO": () => (/* reexport */ collapse),
|
32
|
+
"ZP": () => (/* binding */ src)
|
103
33
|
});
|
104
34
|
|
105
|
-
|
106
|
-
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, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
|
107
39
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
108
40
|
function _arrayLikeToArray(arr, len) {
|
109
41
|
if (len == null || len > arr.length) len = arr.length;
|
@@ -145,10 +77,14 @@ function _nonIterableSpread() {
|
|
145
77
|
function _toConsumableArray(arr) {
|
146
78
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
147
79
|
}
|
148
|
-
|
149
|
-
var
|
150
|
-
|
151
|
-
|
80
|
+
;// CONCATENATED MODULE: external "vue"
|
81
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
82
|
+
var external_vue_y = x => () => x
|
83
|
+
const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["renderSlot"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
84
|
+
;// CONCATENATED MODULE: external "../icon"
|
85
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
86
|
+
var external_icon_y = x => () => x
|
87
|
+
const external_icon_namespaceObject = external_icon_x({ ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleRight });
|
152
88
|
;// CONCATENATED MODULE: ../../packages/collapse/src/props.ts
|
153
89
|
/*
|
154
90
|
* Tencent is pleased to support the open source community by making
|
@@ -181,33 +117,33 @@ var propsCollapse = {
|
|
181
117
|
* 渲染列表
|
182
118
|
* 对象数组或者字符串数组,字符串数组默认会增加 name 字段,值为传入的字符串值
|
183
119
|
*/
|
184
|
-
list:
|
120
|
+
list: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.any).def([]),
|
185
121
|
|
186
122
|
/**
|
187
123
|
* ID字段
|
188
124
|
*/
|
189
|
-
idFiled:
|
125
|
+
idFiled: external_shared_namespaceObject.PropTypes.string.def('$index'),
|
190
126
|
|
191
127
|
/**
|
192
128
|
* Title 字段
|
193
129
|
*/
|
194
|
-
titleField:
|
130
|
+
titleField: external_shared_namespaceObject.PropTypes.string.def('name'),
|
195
131
|
|
196
132
|
/**
|
197
133
|
* Content 字段,默认渲染内容,不配置时自动读取 content 字段
|
198
134
|
* 自定义配置slot时可以忽略
|
199
135
|
*/
|
200
|
-
contentField:
|
136
|
+
contentField: external_shared_namespaceObject.PropTypes.string.def('content'),
|
201
137
|
|
202
138
|
/**
|
203
139
|
* 当前激活Index
|
204
140
|
*/
|
205
|
-
modelValue:
|
141
|
+
modelValue: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.number).def([]), external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.string).def([]), external_shared_namespaceObject.PropTypes.number.def(-1)]),
|
206
142
|
|
207
143
|
/**
|
208
144
|
* 是否使用手风琴效果
|
209
145
|
*/
|
210
|
-
accordion:
|
146
|
+
accordion: external_shared_namespaceObject.PropTypes.bool.def(false)
|
211
147
|
};
|
212
148
|
var CollapsePanelEventProps = {
|
213
149
|
itemClick: {
|
@@ -215,13 +151,13 @@ var CollapsePanelEventProps = {
|
|
215
151
|
}
|
216
152
|
};
|
217
153
|
var propsCollapsePanel = Object.assign({
|
218
|
-
name:
|
219
|
-
title:
|
220
|
-
content:
|
221
|
-
disabled:
|
222
|
-
isFormList:
|
223
|
-
renderDirective: (0,
|
224
|
-
modelValue:
|
154
|
+
name: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.string]).def(''),
|
155
|
+
title: external_shared_namespaceObject.PropTypes.any,
|
156
|
+
content: external_shared_namespaceObject.PropTypes.string,
|
157
|
+
disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
|
158
|
+
isFormList: external_shared_namespaceObject.PropTypes.bool.def(false),
|
159
|
+
renderDirective: (0,external_shared_namespaceObject.renderDirectiveType)(),
|
160
|
+
modelValue: external_shared_namespaceObject.PropTypes.bool.def(false)
|
225
161
|
}, CollapsePanelEventProps);
|
226
162
|
;// CONCATENATED MODULE: ../../packages/collapse/src/utils.ts
|
227
163
|
|
@@ -381,25 +317,25 @@ var collapseMotion = function collapseMotion(emit) {
|
|
381
317
|
|
382
318
|
|
383
319
|
function _isSlot(s) {
|
384
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,
|
320
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
385
321
|
}
|
386
322
|
|
387
|
-
/* harmony default export */ const collapse_panel = ((0,
|
323
|
+
/* harmony default export */ const collapse_panel = ((0,external_vue_namespaceObject.defineComponent)({
|
388
324
|
name: 'CollapsePanel',
|
389
325
|
props: propsCollapsePanel,
|
390
326
|
emits: ['change', 'update:modelValue', 'after-leave', 'before-enter'],
|
391
327
|
setup: function setup(props, _ref) {
|
392
328
|
var emit = _ref.emit,
|
393
329
|
slots = _ref.slots;
|
394
|
-
var localActiveItems = (0,
|
395
|
-
var handleItemClick = (0,
|
396
|
-
var isActive = (0,
|
397
|
-
(0,
|
330
|
+
var localActiveItems = (0,external_vue_namespaceObject.inject)('localActiveItems');
|
331
|
+
var handleItemClick = (0,external_vue_namespaceObject.inject)('handleItemClick');
|
332
|
+
var isActive = (0,external_vue_namespaceObject.ref)(props.modelValue);
|
333
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
398
334
|
return props.modelValue;
|
399
335
|
}, function (newVal) {
|
400
336
|
isActive.value = newVal;
|
401
337
|
});
|
402
|
-
(0,
|
338
|
+
(0,external_vue_namespaceObject.watch)(localActiveItems, function (newVal) {
|
403
339
|
if (newVal === null || newVal === void 0 ? void 0 : newVal.length) {
|
404
340
|
isActive.value = newVal.includes(props.name);
|
405
341
|
}
|
@@ -428,7 +364,7 @@ function _isSlot(s) {
|
|
428
364
|
}
|
429
365
|
}
|
430
366
|
|
431
|
-
var transition = (0,
|
367
|
+
var transition = (0,external_vue_namespaceObject.ref)(collapseMotion(emit));
|
432
368
|
|
433
369
|
function getContent() {
|
434
370
|
if (props.content) {
|
@@ -436,7 +372,7 @@ function _isSlot(s) {
|
|
436
372
|
}
|
437
373
|
|
438
374
|
if (typeof slots.content === 'function') {
|
439
|
-
return slots.content(
|
375
|
+
return slots.content(external_vue_namespaceObject.h);
|
440
376
|
}
|
441
377
|
|
442
378
|
return slots.content;
|
@@ -447,15 +383,15 @@ function _isSlot(s) {
|
|
447
383
|
return '';
|
448
384
|
}
|
449
385
|
|
450
|
-
return (0,
|
386
|
+
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
451
387
|
"class": "bk-collapse-content ".concat(isActive.value && 'active' || '')
|
452
|
-
}, [getContent()]), [[
|
388
|
+
}, [getContent()]), [[external_vue_namespaceObject.vShow, isActive.value]]);
|
453
389
|
}
|
454
390
|
|
455
391
|
function renderHeader() {
|
456
392
|
if (slots.header) {
|
457
393
|
if (typeof slots.header === 'function') {
|
458
|
-
return slots.header(
|
394
|
+
return slots.header(external_vue_namespaceObject.h);
|
459
395
|
}
|
460
396
|
|
461
397
|
return slots.header;
|
@@ -465,7 +401,7 @@ function _isSlot(s) {
|
|
465
401
|
|
466
402
|
if (slots["default"]) {
|
467
403
|
if (typeof slots["default"] === 'function') {
|
468
|
-
title = slots["default"](
|
404
|
+
title = slots["default"](external_vue_namespaceObject.h);
|
469
405
|
} else {
|
470
406
|
title = slots["default"];
|
471
407
|
}
|
@@ -473,11 +409,11 @@ function _isSlot(s) {
|
|
473
409
|
title = props.title;
|
474
410
|
}
|
475
411
|
|
476
|
-
return (0,
|
412
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
477
413
|
"class": 'bk-collapse-header'
|
478
|
-
}, [(0,
|
414
|
+
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
479
415
|
"class": 'bk-collapse-title'
|
480
|
-
}, [title]), (0,
|
416
|
+
}, [title]), (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleRight, {
|
481
417
|
"class": "bk-collapse-icon ".concat(isActive.value && 'rotate-icon' || '')
|
482
418
|
}, null)]);
|
483
419
|
}
|
@@ -485,13 +421,13 @@ function _isSlot(s) {
|
|
485
421
|
return function () {
|
486
422
|
var _slot;
|
487
423
|
|
488
|
-
return (0,
|
424
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
489
425
|
"class": "bk-collapse-item ".concat(props.disabled ? 'is-disabled' : '', " ").concat(isActive.value ? 'bk-collapse-item-active' : '')
|
490
|
-
}, [(0,
|
426
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
491
427
|
"onClick": function onClick() {
|
492
428
|
return clickItem(props);
|
493
429
|
}
|
494
|
-
}, [renderHeader()]), (0,
|
430
|
+
}, [renderHeader()]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, transition.value, _isSlot(_slot = renderPanel()) ? _slot : {
|
495
431
|
"default": function _default() {
|
496
432
|
return [_slot];
|
497
433
|
}
|
@@ -531,16 +467,16 @@ function _isSlot(s) {
|
|
531
467
|
|
532
468
|
|
533
469
|
|
534
|
-
/* harmony default export */ const collapse = ((0,
|
470
|
+
/* harmony default export */ const collapse = ((0,external_vue_namespaceObject.defineComponent)({
|
535
471
|
name: 'Collapse',
|
536
472
|
props: propsCollapse,
|
537
473
|
emits: ['item-click', 'update:modelValue', 'after-leave', 'before-enter'],
|
538
474
|
setup: function setup(props, _ref) {
|
539
475
|
var emit = _ref.emit,
|
540
476
|
slots = _ref.slots;
|
541
|
-
var localActiveItems = (0,
|
477
|
+
var localActiveItems = (0,external_vue_namespaceObject.ref)([]); // 以保证当前的设置生效
|
542
478
|
|
543
|
-
(0,
|
479
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
544
480
|
return [props.modelValue];
|
545
481
|
}, function () {
|
546
482
|
var value = props.modelValue;
|
@@ -586,15 +522,15 @@ function _isSlot(s) {
|
|
586
522
|
emit('update:modelValue', localActiveItems.value);
|
587
523
|
};
|
588
524
|
|
589
|
-
(0,
|
590
|
-
(0,
|
525
|
+
(0,external_vue_namespaceObject.provide)('localActiveItems', localActiveItems);
|
526
|
+
(0,external_vue_namespaceObject.provide)('handleItemClick', handleItemClick);
|
591
527
|
var className = 'bk-collapse-wrapper';
|
592
528
|
|
593
529
|
if (!Array.isArray(props.list) || !props.list.length) {
|
594
530
|
return function () {
|
595
|
-
return (0,
|
531
|
+
return (0,external_vue_namespaceObject.createVNode)('div', {
|
596
532
|
"class": className
|
597
|
-
}, [(0,
|
533
|
+
}, [(0,external_vue_namespaceObject.renderSlot)(slots, 'default', {
|
598
534
|
props: {
|
599
535
|
isList: true
|
600
536
|
}
|
@@ -603,7 +539,7 @@ function _isSlot(s) {
|
|
603
539
|
} // 统一格式化传入数据格式为标准渲染格式
|
604
540
|
|
605
541
|
|
606
|
-
var collapseData = (0,
|
542
|
+
var collapseData = (0,external_vue_namespaceObject.computed)(function () {
|
607
543
|
return (props.list || []).map(function (item, index) {
|
608
544
|
if (typeof item === 'string' || typeof item === 'number' || typeof item === 'boolean') {
|
609
545
|
return {
|
@@ -637,7 +573,7 @@ function _isSlot(s) {
|
|
637
573
|
title = (_a = slots["default"]) === null || _a === void 0 ? void 0 : _a.call(slots, item, index);
|
638
574
|
}
|
639
575
|
|
640
|
-
return (0,
|
576
|
+
return (0,external_vue_namespaceObject.createVNode)(collapse_panel, {
|
641
577
|
"key": index,
|
642
578
|
"item-click": handleItemClick,
|
643
579
|
"disabled": item.disabled,
|
@@ -650,7 +586,7 @@ function _isSlot(s) {
|
|
650
586
|
};
|
651
587
|
|
652
588
|
return function () {
|
653
|
-
return (0,
|
589
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
654
590
|
"class": className
|
655
591
|
}, [renderItems()]);
|
656
592
|
};
|
@@ -685,14 +621,12 @@ function _isSlot(s) {
|
|
685
621
|
|
686
622
|
|
687
623
|
|
688
|
-
var BkCollapse = (0,
|
624
|
+
var BkCollapse = (0,external_shared_namespaceObject.withInstallProps)(collapse, {
|
689
625
|
CollapsePanel: collapse_panel
|
690
626
|
});
|
691
627
|
|
692
628
|
/* harmony default export */ const src = (BkCollapse);
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
;
|
698
|
-
});
|
629
|
+
var __webpack_exports__BkCollapsePanel = __webpack_exports__.AP;
|
630
|
+
var __webpack_exports__Collapse = __webpack_exports__.UO;
|
631
|
+
var __webpack_exports__default = __webpack_exports__.ZP;
|
632
|
+
export { __webpack_exports__BkCollapsePanel as BkCollapsePanel, __webpack_exports__Collapse as Collapse, __webpack_exports__default as default };
|
@@ -131,9 +131,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
131
131
|
onChange?: (...args: any[]) => any;
|
132
132
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
133
133
|
}, {
|
134
|
+
extCls: string;
|
134
135
|
disabled: boolean;
|
135
136
|
size: "" | "small" | "large";
|
136
|
-
extCls: string;
|
137
137
|
transfer: boolean;
|
138
138
|
readonly: boolean;
|
139
139
|
modelValue: string;
|
@@ -3,9 +3,9 @@ declare const BkColorPicker: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
|
+
extCls: string;
|
6
7
|
disabled: boolean;
|
7
8
|
size: "" | "small" | "large";
|
8
|
-
extCls: string;
|
9
9
|
transfer: boolean;
|
10
10
|
readonly: boolean;
|
11
11
|
modelValue: string;
|
@@ -57,7 +57,7 @@ declare const BkColorPicker: {
|
|
57
57
|
}>> & {
|
58
58
|
onChange?: (...args: any[]) => any;
|
59
59
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
60
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
60
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "extCls" | "disabled" | "size" | "transfer" | "readonly" | "modelValue" | "withValidate" | "recommend" | "showValue">;
|
61
61
|
$attrs: {
|
62
62
|
[x: string]: unknown;
|
63
63
|
};
|
@@ -117,9 +117,9 @@ declare const BkColorPicker: {
|
|
117
117
|
onChange?: (...args: any[]) => any;
|
118
118
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
119
119
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], string, {
|
120
|
+
extCls: string;
|
120
121
|
disabled: boolean;
|
121
122
|
size: "" | "small" | "large";
|
122
|
-
extCls: string;
|
123
123
|
transfer: boolean;
|
124
124
|
readonly: boolean;
|
125
125
|
modelValue: string;
|
@@ -241,9 +241,9 @@ declare const BkColorPicker: {
|
|
241
241
|
onChange?: (...args: any[]) => any;
|
242
242
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
243
243
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
|
244
|
+
extCls: string;
|
244
245
|
disabled: boolean;
|
245
246
|
size: "" | "small" | "large";
|
246
|
-
extCls: string;
|
247
247
|
transfer: boolean;
|
248
248
|
readonly: boolean;
|
249
249
|
modelValue: string;
|