bkui-vue 1.0.3-beta.28 → 1.0.3-beta.29
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/index.cjs.js +1 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.umd.js +1 -1
- package/lib/affix/index.js +15 -13
- package/lib/alert/index.js +24 -22
- package/lib/animate-number/index.js +6 -5
- package/lib/backtop/index.js +22 -20
- package/lib/badge/index.js +21 -19
- package/lib/breadcrumb/index.js +26 -24
- package/lib/button/index.js +37 -28
- package/lib/card/index.js +43 -35
- package/lib/cascader/index.js +100 -80
- package/lib/checkbox/index.js +34 -32
- package/lib/code-diff/index.js +14 -12
- package/lib/collapse/index.js +41 -39
- package/lib/collapse-transition/index.js +9 -8
- package/lib/color-picker/index.js +50 -48
- package/lib/components.js +60 -505
- package/lib/config-provider/index.js +9 -8
- package/lib/container/index.js +21 -19
- package/lib/date-picker/index.js +73 -65
- package/lib/dialog/index.js +63 -49
- package/lib/directives/index.js +13 -12
- package/lib/dist.index.js +5 -62
- package/lib/divider/index.js +15 -13
- package/lib/dropdown/index.js +32 -24
- package/lib/exception/index.js +13 -11
- package/lib/fixed-navbar/index.js +15 -13
- package/lib/form/index.js +50 -48
- package/lib/hooks.js +1 -48
- package/lib/icon/index.js +1 -0
- package/lib/image/index.js +39 -38
- package/lib/index.js +7 -72
- package/lib/info-box/index.js +21 -13
- package/lib/input/index.js +61 -59
- package/lib/link/index.js +15 -13
- package/lib/loading/index.js +19 -17
- package/lib/locale/index.js +1 -0
- package/lib/menu/index.js +15 -13
- package/lib/message/index.js +40 -38
- package/lib/modal/index.js +43 -41
- package/lib/navigation/index.js +16 -14
- package/lib/notify/index.js +33 -31
- package/lib/overflow-title/index.js +22 -14
- package/lib/pagination/index.js +67 -51
- package/lib/plugin-popover/index.js +54 -53
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.js +42 -28
- package/lib/popover/index.js +54 -52
- package/lib/popover2/index.js +4 -3
- package/lib/preset.js +18 -64
- package/lib/process/index.js +27 -26
- package/lib/progress/index.js +28 -26
- package/lib/radio/index.js +34 -32
- package/lib/rate/index.js +24 -22
- package/lib/resize-layout/index.js +27 -25
- package/lib/search-select/index.js +68 -49
- package/lib/select/index.js +168 -129
- package/lib/shared/index.js +1 -0
- package/lib/sideslider/index.js +22 -14
- package/lib/slider/index.js +36 -22
- package/lib/steps/index.js +30 -28
- package/lib/swiper/index.js +16 -14
- package/lib/switcher/index.js +31 -29
- package/lib/tab/index.js +46 -44
- package/lib/table/index.js +207 -148
- package/lib/table-column/index.js +43 -42
- package/lib/tag/index.js +21 -19
- package/lib/tag-input/index.js +80 -65
- package/lib/time-picker/index.js +9 -7
- package/lib/timeline/index.js +13 -12
- package/lib/transfer/index.js +51 -36
- package/lib/tree/index.js +92 -72
- package/lib/upload/index.js +63 -48
- package/lib/virtual-render/index.js +35 -33
- package/package.json +2 -2
package/lib/tab/index.js
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./tab.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
3
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
4
|
-
import * as
|
5
|
-
import * as
|
6
|
-
import * as
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__ from "../icon/";
|
7
9
|
/******/ // The require scope
|
8
10
|
/******/ var __webpack_require__ = {};
|
9
11
|
/******/
|
@@ -40,7 +42,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
40
42
|
;// CONCATENATED MODULE: external "../shared"
|
41
43
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
42
44
|
var y = x => () => x
|
43
|
-
const
|
45
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
44
46
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
45
47
|
function _typeof(o) {
|
46
48
|
"@babel/helpers - typeof";
|
@@ -185,39 +187,39 @@ var tabEventProps = {
|
|
185
187
|
// ...TabNavEventProps,
|
186
188
|
};
|
187
189
|
var tabPanelProps = {
|
188
|
-
name:
|
189
|
-
label:
|
190
|
-
tips:
|
191
|
-
closable:
|
192
|
-
visible:
|
193
|
-
disabled:
|
194
|
-
sortable:
|
195
|
-
renderDirective: (0,
|
196
|
-
panel:
|
190
|
+
name: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def(''),
|
191
|
+
label: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.func,
|
192
|
+
tips: shared_namespaceObject.PropTypes.string,
|
193
|
+
closable: shared_namespaceObject.PropTypes.bool,
|
194
|
+
visible: shared_namespaceObject.PropTypes.bool.def(true),
|
195
|
+
disabled: shared_namespaceObject.PropTypes.bool,
|
196
|
+
sortable: shared_namespaceObject.PropTypes.bool,
|
197
|
+
renderDirective: (0,shared_namespaceObject.renderDirectiveType)(),
|
198
|
+
panel: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.func
|
197
199
|
};
|
198
200
|
var tabProps = {
|
199
|
-
active:
|
201
|
+
active: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def(''),
|
200
202
|
type: (0,external_vue_types_namespaceObject.toType)('type', {}).def(TabTypeEnum.BORDER_CARD),
|
201
203
|
tabPosition: TabPositionType,
|
202
204
|
closable: Boolean,
|
203
205
|
addable: Boolean,
|
204
206
|
sortable: Boolean,
|
205
207
|
sortType: SortTypeUnion,
|
206
|
-
labelHeight:
|
207
|
-
scrollStep:
|
208
|
-
extCls:
|
209
|
-
validateActive:
|
210
|
-
showHeader:
|
211
|
-
changeOnHover:
|
212
|
-
changeOnHoverDelay:
|
213
|
-
activeBarSize:
|
214
|
-
activeBarColor:
|
208
|
+
labelHeight: shared_namespaceObject.PropTypes.number.def(50),
|
209
|
+
scrollStep: shared_namespaceObject.PropTypes.number.def(200),
|
210
|
+
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
211
|
+
validateActive: shared_namespaceObject.PropTypes.bool.def(true),
|
212
|
+
showHeader: shared_namespaceObject.PropTypes.bool.def(true),
|
213
|
+
changeOnHover: shared_namespaceObject.PropTypes.bool.def(false),
|
214
|
+
changeOnHoverDelay: shared_namespaceObject.PropTypes.number.def(1000),
|
215
|
+
activeBarSize: shared_namespaceObject.PropTypes.number.def(2),
|
216
|
+
activeBarColor: shared_namespaceObject.PropTypes.string.def('#3a84ff')
|
215
217
|
};
|
216
218
|
var tabNavProps = _objectSpread({
|
217
|
-
active:
|
219
|
+
active: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def(''),
|
218
220
|
type: (0,external_vue_types_namespaceObject.toType)('type', {}).def(TabTypeEnum.BORDER_CARD),
|
219
|
-
activeBarColor:
|
220
|
-
activeBarSize:
|
221
|
+
activeBarColor: shared_namespaceObject.PropTypes.string.def('#3a84ff'),
|
222
|
+
activeBarSize: shared_namespaceObject.PropTypes.number.def(2),
|
221
223
|
panels: {
|
222
224
|
type: Array,
|
223
225
|
"default": function _default() {
|
@@ -229,11 +231,11 @@ var tabNavProps = _objectSpread({
|
|
229
231
|
addable: Boolean,
|
230
232
|
sortable: Boolean,
|
231
233
|
sortType: SortTypeUnion,
|
232
|
-
labelHeight:
|
233
|
-
scrollStep:
|
234
|
-
validateActive:
|
235
|
-
changeOnHover:
|
236
|
-
changeOnHoverDelay:
|
234
|
+
labelHeight: shared_namespaceObject.PropTypes.number.def(50),
|
235
|
+
scrollStep: shared_namespaceObject.PropTypes.number.def(200),
|
236
|
+
validateActive: shared_namespaceObject.PropTypes.bool.def(true),
|
237
|
+
changeOnHover: shared_namespaceObject.PropTypes.bool.def(false),
|
238
|
+
changeOnHoverDelay: shared_namespaceObject.PropTypes.number.def(1000)
|
237
239
|
}, tabNavEventProps);
|
238
240
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
239
241
|
function _arrayLikeToArray(arr, len) {
|
@@ -277,17 +279,17 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
277
279
|
var external_vue_y = x => () => x
|
278
280
|
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUpdated"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUpdated, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
279
281
|
;// CONCATENATED MODULE: external "../config-provider"
|
280
|
-
var
|
281
|
-
var
|
282
|
-
const
|
282
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
283
|
+
var config_provider_y = x => () => x
|
284
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
283
285
|
;// CONCATENATED MODULE: external "../directives"
|
284
|
-
var
|
285
|
-
var
|
286
|
-
const
|
286
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
287
|
+
var directives_y = x => () => x
|
288
|
+
const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
|
287
289
|
;// CONCATENATED MODULE: external "../icon/"
|
288
290
|
var _x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
289
291
|
var _y = x => () => x
|
290
|
-
const _namespaceObject = _x({ ["Close"]: () =>
|
292
|
+
const _namespaceObject = _x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.Close, ["Plus"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.Plus });
|
291
293
|
;// CONCATENATED MODULE: ../../packages/tab/src/tab-nav.tsx
|
292
294
|
|
293
295
|
|
@@ -326,7 +328,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
326
328
|
/* harmony default export */ const tab_nav = ((0,external_vue_namespaceObject.defineComponent)({
|
327
329
|
name: 'TabNav',
|
328
330
|
directives: {
|
329
|
-
bkTooltips:
|
331
|
+
bkTooltips: directives_namespaceObject.bkTooltips
|
330
332
|
},
|
331
333
|
props: tabNavProps,
|
332
334
|
setup: function setup(props) {
|
@@ -478,7 +480,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
478
480
|
props.tabRemove(index, panel);
|
479
481
|
}
|
480
482
|
};
|
481
|
-
var _usePrefix = (0,
|
483
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
482
484
|
resolveClassName = _usePrefix.resolveClassName;
|
483
485
|
return tab_nav_objectSpread(tab_nav_objectSpread({}, methods), {}, {
|
484
486
|
activeRef: activeRef,
|
@@ -754,7 +756,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
754
756
|
emit('on-drag-tab', dragTabIndex, dragEvent);
|
755
757
|
}
|
756
758
|
};
|
757
|
-
var _usePrefix = (0,
|
759
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
758
760
|
resolveClassName = _usePrefix.resolveClassName;
|
759
761
|
return tab_objectSpread(tab_objectSpread({}, methods), {}, {
|
760
762
|
isMounted: isMounted,
|
@@ -886,7 +888,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
886
888
|
}
|
887
889
|
return null;
|
888
890
|
};
|
889
|
-
var _usePrefix = (0,
|
891
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
890
892
|
resolveClassName = _usePrefix.resolveClassName;
|
891
893
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
892
894
|
"ref": "content",
|
@@ -899,7 +901,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
899
901
|
|
900
902
|
|
901
903
|
|
902
|
-
var BkTab = (0,
|
904
|
+
var BkTab = (0,shared_namespaceObject.withInstallProps)(tab, {
|
903
905
|
TabPanel: tab_panel
|
904
906
|
});
|
905
907
|
|