bkui-vue 1.0.3-beta.27 → 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 +1 -1
package/lib/sideslider/index.js
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./sideslider.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__ from "../modal";
|
7
|
+
import "../modal/modal.less";
|
5
8
|
/******/ var __webpack_modules__ = ({
|
6
9
|
|
7
10
|
/***/ 7609:
|
@@ -421,7 +424,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
421
424
|
;// CONCATENATED MODULE: external "../shared"
|
422
425
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
423
426
|
var y = x => () => x
|
424
|
-
const
|
427
|
+
const shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
425
428
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
426
429
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
427
430
|
try {
|
@@ -506,13 +509,17 @@ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBP
|
|
506
509
|
var regenerator = __webpack_require__(2841);
|
507
510
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
508
511
|
;// CONCATENATED MODULE: external "../config-provider"
|
509
|
-
var
|
510
|
-
var
|
511
|
-
const
|
512
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
513
|
+
var config_provider_y = x => () => x
|
514
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
512
515
|
;// CONCATENATED MODULE: external "../modal"
|
513
|
-
var
|
514
|
-
var
|
515
|
-
const
|
516
|
+
var modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
517
|
+
var modal_y = x => () => x
|
518
|
+
const modal_namespaceObject = modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__["default"] });
|
519
|
+
;// CONCATENATED MODULE: external "../modal/modal.less"
|
520
|
+
var modal_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
521
|
+
var modal_less_y = x => () => x
|
522
|
+
const modal_less_namespaceObject = modal_less_x({ });
|
516
523
|
;// CONCATENATED MODULE: ../../packages/sideslider/src/sideslider.tsx
|
517
524
|
|
518
525
|
|
@@ -548,10 +555,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
548
555
|
|
549
556
|
|
550
557
|
|
558
|
+
|
551
559
|
function _isSlot(s) {
|
552
560
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
553
561
|
}
|
554
|
-
var propsMixin =
|
562
|
+
var propsMixin = modal_namespaceObject["default"].propsMixin;
|
555
563
|
var sliderPops = Object.assign({}, propsMixin);
|
556
564
|
sliderPops.width["default"] = '400';
|
557
565
|
sliderPops.height["default"] = '100%';
|
@@ -615,7 +623,7 @@ sliderPops.height["default"] = '100%';
|
|
615
623
|
emit('hidden');
|
616
624
|
}, 200);
|
617
625
|
};
|
618
|
-
var _usePrefix = (0,
|
626
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
619
627
|
resolveClassName = _usePrefix.resolveClassName;
|
620
628
|
return function () {
|
621
629
|
var dialogSlot = {
|
@@ -648,7 +656,7 @@ sliderPops.height["default"] = '100%';
|
|
648
656
|
var className = resolveClassName('sideslider-wrapper');
|
649
657
|
var bodyClass = props.scrollable ? 'scroll-able' : '';
|
650
658
|
var maxHeight = slots.footer ? 'calc(100vh - 106px)' : 'calc(100vh - 52px)';
|
651
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
659
|
+
return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(props, {
|
652
660
|
"class": className,
|
653
661
|
"maxHeight": maxHeight,
|
654
662
|
"extCls": props.extCls,
|
@@ -692,7 +700,7 @@ sliderPops.height["default"] = '100%';
|
|
692
700
|
*/
|
693
701
|
|
694
702
|
|
695
|
-
var BkSideslider = (0,
|
703
|
+
var BkSideslider = (0,shared_namespaceObject.withInstall)(sideslider);
|
696
704
|
/* harmony default export */ const src = (BkSideslider);
|
697
705
|
})();
|
698
706
|
|
package/lib/slider/index.js
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./slider.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
-
import * as
|
5
|
-
import
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__ from "../input";
|
7
|
+
import "../input/input.less";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
9
|
+
import "../popover/popover.less";
|
6
10
|
/******/ var __webpack_modules__ = ({
|
7
11
|
|
8
12
|
/***/ 7609:
|
@@ -422,7 +426,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
422
426
|
;// CONCATENATED MODULE: external "../shared"
|
423
427
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
424
428
|
var y = x => () => x
|
425
|
-
const
|
429
|
+
const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
426
430
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
427
431
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
428
432
|
try {
|
@@ -462,17 +466,25 @@ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBP
|
|
462
466
|
var regenerator = __webpack_require__(2841);
|
463
467
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
464
468
|
;// CONCATENATED MODULE: external "../config-provider"
|
465
|
-
var
|
466
|
-
var
|
467
|
-
const
|
469
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
470
|
+
var config_provider_y = x => () => x
|
471
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
468
472
|
;// CONCATENATED MODULE: external "../input"
|
469
|
-
var
|
470
|
-
var
|
471
|
-
const
|
473
|
+
var input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
474
|
+
var input_y = x => () => x
|
475
|
+
const input_namespaceObject = input_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__["default"] });
|
476
|
+
;// CONCATENATED MODULE: external "../input/input.less"
|
477
|
+
var input_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
478
|
+
var input_less_y = x => () => x
|
479
|
+
const input_less_namespaceObject = input_less_x({ });
|
472
480
|
;// CONCATENATED MODULE: external "../popover"
|
473
|
-
var
|
474
|
-
var
|
475
|
-
const
|
481
|
+
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
482
|
+
var popover_y = x => () => x
|
483
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
484
|
+
;// CONCATENATED MODULE: external "../popover/popover.less"
|
485
|
+
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
486
|
+
var popover_less_y = x => () => x
|
487
|
+
const popover_less_namespaceObject = popover_less_x({ });
|
476
488
|
;// CONCATENATED MODULE: ../../packages/slider/src/slider-button.tsx
|
477
489
|
|
478
490
|
/**
|
@@ -505,6 +517,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
505
517
|
|
506
518
|
|
507
519
|
|
520
|
+
|
508
521
|
/* harmony default export */ const slider_button = ((0,external_vue_namespaceObject.defineComponent)({
|
509
522
|
name: 'SliderButton',
|
510
523
|
props: {
|
@@ -540,7 +553,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
540
553
|
var customContent = props.params.customContent[props.modelValue];
|
541
554
|
tip = customContent.tip || customContent.label || '';
|
542
555
|
}
|
543
|
-
var placement = props.params.vertical ?
|
556
|
+
var placement = props.params.vertical ? shared_namespaceObject.PlacementEnum.RIGHT : shared_namespaceObject.PlacementEnum.TOP;
|
544
557
|
if ((_props$params = props.params) !== null && _props$params !== void 0 && _props$params.showTip) {
|
545
558
|
return {
|
546
559
|
content: props.params.formatterTipLabel("".concat(tip || (props === null || props === void 0 ? void 0 : props.modelValue) || '0')),
|
@@ -633,7 +646,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
633
646
|
oldValue.value = props.modelValue;
|
634
647
|
}
|
635
648
|
};
|
636
|
-
var _usePrefix = (0,
|
649
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
637
650
|
resolveClassName = _usePrefix.resolveClassName;
|
638
651
|
var renderDom = function renderDom() {
|
639
652
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -647,7 +660,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
647
660
|
return event.stopPropagation();
|
648
661
|
},
|
649
662
|
"onMousedown": onButtonDown
|
650
|
-
}, [Boolean(tip.value.content) ? (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(
|
663
|
+
}, [Boolean(tip.value.content) ? (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
651
664
|
"content": tip.value.content,
|
652
665
|
"theme": 'dark',
|
653
666
|
"placement": tip.value.placement,
|
@@ -712,6 +725,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
712
725
|
|
713
726
|
|
714
727
|
|
728
|
+
|
715
729
|
var on = function on(element, event, handler) {
|
716
730
|
if (element && event && handler) {
|
717
731
|
element.addEventListener(event, handler, false);
|
@@ -725,7 +739,7 @@ var off = function off(element, event, handler) {
|
|
725
739
|
/* harmony default export */ const slider = ((0,external_vue_namespaceObject.defineComponent)({
|
726
740
|
name: 'Slider',
|
727
741
|
props: {
|
728
|
-
modelValue:
|
742
|
+
modelValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.number), shared_namespaceObject.PropTypes.number]),
|
729
743
|
extCls: {
|
730
744
|
type: String,
|
731
745
|
"default": ''
|
@@ -1139,7 +1153,7 @@ var off = function off(element, event, handler) {
|
|
1139
1153
|
}
|
1140
1154
|
return '1';
|
1141
1155
|
};
|
1142
|
-
var _usePrefix = (0,
|
1156
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1143
1157
|
resolveClassName = _usePrefix.resolveClassName;
|
1144
1158
|
var renderDom = function renderDom() {
|
1145
1159
|
var _slots$start, _slots$end;
|
@@ -1234,7 +1248,7 @@ var off = function off(element, event, handler) {
|
|
1234
1248
|
"class": "".concat(resolveClassName('slider-input'))
|
1235
1249
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
1236
1250
|
"class": "input-item"
|
1237
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
1251
|
+
}, [(0,external_vue_namespaceObject.createVNode)(input_namespaceObject["default"], {
|
1238
1252
|
"type": "number",
|
1239
1253
|
"modelValue": firstInput.value,
|
1240
1254
|
"max": props.maxValue,
|
@@ -1244,7 +1258,7 @@ var off = function off(element, event, handler) {
|
|
1244
1258
|
"class": "input-center"
|
1245
1259
|
}, [(0,external_vue_namespaceObject.createTextVNode)("\uFF5E")]), (0,external_vue_namespaceObject.createVNode)("div", {
|
1246
1260
|
"class": "input-item"
|
1247
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
1261
|
+
}, [(0,external_vue_namespaceObject.createVNode)(input_namespaceObject["default"], {
|
1248
1262
|
"type": "number",
|
1249
1263
|
"modelValue": secondInput.value,
|
1250
1264
|
"max": props.maxValue,
|
@@ -1288,7 +1302,7 @@ var off = function off(element, event, handler) {
|
|
1288
1302
|
*/
|
1289
1303
|
|
1290
1304
|
|
1291
|
-
var Slider = (0,
|
1305
|
+
var Slider = (0,shared_namespaceObject.withInstall)(slider);
|
1292
1306
|
/* harmony default export */ const src = (Slider);
|
1293
1307
|
})();
|
1294
1308
|
|
package/lib/steps/index.js
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./steps.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
4
|
-
import * as
|
5
|
-
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_icon_a97c79c3__ from "../icon";
|
6
8
|
/******/ var __webpack_modules__ = ({
|
7
9
|
|
8
10
|
/***/ 7609:
|
@@ -422,7 +424,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
422
424
|
;// CONCATENATED MODULE: external "../shared"
|
423
425
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
424
426
|
var y = x => () => x
|
425
|
-
const
|
427
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ThemeEnum, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["directionType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.directionType, ["lineStyleType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.lineStyleType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
426
428
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
427
429
|
function _typeof(o) {
|
428
430
|
"@babel/helpers - typeof";
|
@@ -511,13 +513,13 @@ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); retur
|
|
511
513
|
var external_vue_types_y = x => () => x
|
512
514
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
513
515
|
;// CONCATENATED MODULE: external "../config-provider"
|
514
|
-
var
|
515
|
-
var
|
516
|
-
const
|
516
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
517
|
+
var config_provider_y = x => () => x
|
518
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
517
519
|
;// CONCATENATED MODULE: external "../icon"
|
518
|
-
var
|
519
|
-
var
|
520
|
-
const
|
520
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
521
|
+
var icon_y = x => () => x
|
522
|
+
const icon_namespaceObject = icon_x({ ["Circle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Circle, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error });
|
521
523
|
;// CONCATENATED MODULE: ../../packages/steps/src/steps.tsx
|
522
524
|
|
523
525
|
|
@@ -560,17 +562,17 @@ var StatusEnum;
|
|
560
562
|
StatusEnum["LOADING"] = "loading";
|
561
563
|
})(StatusEnum || (StatusEnum = {}));
|
562
564
|
var stepsProps = {
|
563
|
-
theme:
|
564
|
-
size:
|
565
|
-
curStep:
|
566
|
-
controllable:
|
567
|
-
direction: (0,
|
565
|
+
theme: shared_namespaceObject.PropTypes.theme().def(shared_namespaceObject.ThemeEnum.PRIMARY),
|
566
|
+
size: shared_namespaceObject.PropTypes.size(),
|
567
|
+
curStep: shared_namespaceObject.PropTypes.number.def(1),
|
568
|
+
controllable: shared_namespaceObject.PropTypes.bool.def(false),
|
569
|
+
direction: (0,shared_namespaceObject.directionType)(),
|
568
570
|
status: (0,external_vue_types_namespaceObject.toType)('status', {}).def(StatusEnum.UNKNOWN),
|
569
|
-
lineType: (0,
|
570
|
-
text:
|
571
|
-
extCls:
|
572
|
-
steps:
|
573
|
-
beforeChange:
|
571
|
+
lineType: (0,shared_namespaceObject.lineStyleType)(),
|
572
|
+
text: shared_namespaceObject.PropTypes.bool,
|
573
|
+
extCls: shared_namespaceObject.PropTypes.string,
|
574
|
+
steps: shared_namespaceObject.PropTypes.array.def([]),
|
575
|
+
beforeChange: shared_namespaceObject.PropTypes.func
|
574
576
|
};
|
575
577
|
/* harmony default export */ const steps = ((0,external_vue_namespaceObject.defineComponent)({
|
576
578
|
name: 'Steps',
|
@@ -578,8 +580,8 @@ var stepsProps = {
|
|
578
580
|
emits: ['update:curStep', 'click'],
|
579
581
|
setup: function setup(props, _ref) {
|
580
582
|
var emit = _ref.emit;
|
581
|
-
var t = (0,
|
582
|
-
var lang = (0,
|
583
|
+
var t = (0,config_provider_namespaceObject.useLocale)('steps');
|
584
|
+
var lang = (0,config_provider_namespaceObject.useLocale)('lang');
|
583
585
|
var defaultSteps = (0,external_vue_namespaceObject.ref)([]);
|
584
586
|
var updateSteps = function updateSteps(steps) {
|
585
587
|
var _defaultSteps$value;
|
@@ -699,7 +701,7 @@ var stepsProps = {
|
|
699
701
|
}, {
|
700
702
|
deep: true
|
701
703
|
});
|
702
|
-
var _usePrefix = (0,
|
704
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
703
705
|
resolveClassName = _usePrefix.resolveClassName;
|
704
706
|
return {
|
705
707
|
defaultSteps: defaultSteps,
|
@@ -712,7 +714,7 @@ var stepsProps = {
|
|
712
714
|
var stepsClsPrefix = this.resolveClassName('steps');
|
713
715
|
var stepsThemeCls = this.theme ? "".concat(stepsClsPrefix, "-").concat(this.theme) : '';
|
714
716
|
var stepsSizeCls = this.size ? "".concat(stepsClsPrefix, "-").concat(this.size) : '';
|
715
|
-
var stepsCls = (0,
|
717
|
+
var stepsCls = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.extCls), !!this.extCls), "".concat(this.resolveClassName("steps-".concat(this.direction))), this.direction), "".concat(this.resolveClassName("steps-".concat(this.lineType))), this.lineType), "".concat(stepsThemeCls, " ").concat(stepsClsPrefix, " ").concat(stepsSizeCls));
|
716
718
|
var isDone = function isDone(index) {
|
717
719
|
return _this.curStep > index + 1 || _this.defaultSteps[index].status === 'done';
|
718
720
|
};
|
@@ -741,17 +743,17 @@ var stepsProps = {
|
|
741
743
|
};
|
742
744
|
var renderIcon = function renderIcon(index, step) {
|
743
745
|
if (isCurrent(index) && _this.status === 'loading' || isLoadingStatus(step)) {
|
744
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
746
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Circle, {
|
745
747
|
"class": "".concat(_this.resolveClassName('icon'), " ").concat(_this.resolveClassName('steps-icon'), " icon-loading")
|
746
748
|
}, null);
|
747
749
|
}
|
748
750
|
if (isCurrent(index) && _this.status === 'error' || isErrorStatus(step)) {
|
749
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
751
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
750
752
|
"class": "".concat(_this.resolveClassName('steps-icon'))
|
751
753
|
}, null);
|
752
754
|
}
|
753
755
|
if (isDone(index)) {
|
754
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
756
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Done, {
|
755
757
|
"class": "".concat(_this.resolveClassName('steps-icon'))
|
756
758
|
}, null);
|
757
759
|
}
|
@@ -816,7 +818,7 @@ var stepsProps = {
|
|
816
818
|
*/
|
817
819
|
|
818
820
|
|
819
|
-
var BkSteps = (0,
|
821
|
+
var BkSteps = (0,shared_namespaceObject.withInstall)(steps);
|
820
822
|
/* harmony default export */ const src = (BkSteps);
|
821
823
|
})();
|
822
824
|
|
package/lib/swiper/index.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./swiper.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
4
6
|
/******/ // The require scope
|
5
7
|
/******/ var __webpack_require__ = {};
|
6
8
|
/******/
|
@@ -33,7 +35,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
33
35
|
;// CONCATENATED MODULE: external "../shared"
|
34
36
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
35
37
|
var y = x => () => x
|
36
|
-
const
|
38
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
37
39
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
38
40
|
function _typeof(o) {
|
39
41
|
"@babel/helpers - typeof";
|
@@ -84,9 +86,9 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
84
86
|
var external_vue_y = x => () => x
|
85
87
|
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, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
86
88
|
;// CONCATENATED MODULE: external "../config-provider"
|
87
|
-
var
|
88
|
-
var
|
89
|
-
const
|
89
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
90
|
+
var config_provider_y = x => () => x
|
91
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
90
92
|
;// CONCATENATED MODULE: ../../packages/swiper/src/swiper.tsx
|
91
93
|
|
92
94
|
|
@@ -121,12 +123,12 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
121
123
|
/* harmony default export */ const swiper = ((0,external_vue_namespaceObject.defineComponent)({
|
122
124
|
name: 'Swiper',
|
123
125
|
props: {
|
124
|
-
isLoop:
|
125
|
-
loopTime:
|
126
|
-
pics:
|
127
|
-
list:
|
128
|
-
height:
|
129
|
-
width:
|
126
|
+
isLoop: shared_namespaceObject.PropTypes.bool.def(true),
|
127
|
+
loopTime: shared_namespaceObject.PropTypes.number.def(8000),
|
128
|
+
pics: shared_namespaceObject.PropTypes.array.def([]),
|
129
|
+
list: shared_namespaceObject.PropTypes.array.def([]),
|
130
|
+
height: shared_namespaceObject.PropTypes.number,
|
131
|
+
width: shared_namespaceObject.PropTypes.number
|
130
132
|
},
|
131
133
|
emits: ['index-change'],
|
132
134
|
setup: function setup(props, _ref) {
|
@@ -147,7 +149,7 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
147
149
|
var renderHeight = (0,external_vue_namespaceObject.ref)(0);
|
148
150
|
var loopId = (0,external_vue_namespaceObject.ref)(0);
|
149
151
|
var resizeObserver;
|
150
|
-
var _usePrefix = (0,
|
152
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
151
153
|
resolveClassName = _usePrefix.resolveClassName;
|
152
154
|
// 计算属性
|
153
155
|
var computedRenderDataList = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -330,7 +332,7 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
330
332
|
*/
|
331
333
|
|
332
334
|
|
333
|
-
var BkSwiper = (0,
|
335
|
+
var BkSwiper = (0,shared_namespaceObject.withInstall)(swiper);
|
334
336
|
/* harmony default export */ const src = (BkSwiper);
|
335
337
|
var __webpack_exports__default = __webpack_exports__["default"];
|
336
338
|
export { __webpack_exports__default as default };
|
package/lib/switcher/index.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./switcher.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
5
7
|
/******/ // The require scope
|
6
8
|
/******/ var __webpack_require__ = {};
|
7
9
|
/******/
|
@@ -34,7 +36,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
34
36
|
;// CONCATENATED MODULE: external "../shared"
|
35
37
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
36
38
|
var y = x => () => x
|
37
|
-
const
|
39
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["SwitcherThemeType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SwitcherThemeType, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
38
40
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
39
41
|
function _typeof(o) {
|
40
42
|
"@babel/helpers - typeof";
|
@@ -85,13 +87,13 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
85
87
|
var external_vue_y = x => () => x
|
86
88
|
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, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
87
89
|
;// CONCATENATED MODULE: external "../config-provider"
|
88
|
-
var
|
89
|
-
var
|
90
|
-
const
|
90
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
91
|
+
var config_provider_y = x => () => x
|
92
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
91
93
|
;// CONCATENATED MODULE: external "../icon"
|
92
|
-
var
|
93
|
-
var
|
94
|
-
const
|
94
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
95
|
+
var icon_y = x => () => x
|
96
|
+
const icon_namespaceObject = icon_x({ ["SwitcherLoading"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.SwitcherLoading });
|
95
97
|
;// CONCATENATED MODULE: ../../packages/switcher/src/switcher.tsx
|
96
98
|
|
97
99
|
|
@@ -125,21 +127,21 @@ const external_icon_namespaceObject = external_icon_x({ ["SwitcherLoading"]: ()
|
|
125
127
|
|
126
128
|
|
127
129
|
var switcherType = {
|
128
|
-
theme: (0,
|
129
|
-
size:
|
130
|
-
disabled:
|
131
|
-
showText:
|
132
|
-
isOutline:
|
133
|
-
onText:
|
134
|
-
offText:
|
135
|
-
isSquare:
|
136
|
-
extCls:
|
137
|
-
beforeChange:
|
138
|
-
trueValue:
|
139
|
-
falseValue:
|
140
|
-
value:
|
141
|
-
modelValue:
|
142
|
-
withValidate:
|
130
|
+
theme: (0,shared_namespaceObject.SwitcherThemeType)(),
|
131
|
+
size: shared_namespaceObject.PropTypes.size(),
|
132
|
+
disabled: shared_namespaceObject.PropTypes.bool,
|
133
|
+
showText: shared_namespaceObject.PropTypes.bool,
|
134
|
+
isOutline: shared_namespaceObject.PropTypes.bool,
|
135
|
+
onText: shared_namespaceObject.PropTypes.string.def('ON'),
|
136
|
+
offText: shared_namespaceObject.PropTypes.string.def('OFF'),
|
137
|
+
isSquare: shared_namespaceObject.PropTypes.bool,
|
138
|
+
extCls: shared_namespaceObject.PropTypes.string,
|
139
|
+
beforeChange: shared_namespaceObject.PropTypes.func.def(undefined),
|
140
|
+
trueValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.bool]).def(true),
|
141
|
+
falseValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.bool]).def(false),
|
142
|
+
value: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.bool]).def(false),
|
143
|
+
modelValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.bool]).def(false),
|
144
|
+
withValidate: shared_namespaceObject.PropTypes.bool.def(true)
|
143
145
|
};
|
144
146
|
var EVENTS;
|
145
147
|
(function (EVENTS) {
|
@@ -159,8 +161,8 @@ var switcherEmitEventsType = _defineProperty(_defineProperty({}, EVENTS.UPDATE,
|
|
159
161
|
emits: switcherEmitEventsType,
|
160
162
|
setup: function setup(props, _ref) {
|
161
163
|
var emit = _ref.emit;
|
162
|
-
var formItem = (0,
|
163
|
-
var _usePrefix = (0,
|
164
|
+
var formItem = (0,shared_namespaceObject.useFormItem)();
|
165
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
164
166
|
resolveClassName = _usePrefix.resolveClassName;
|
165
167
|
var isLoading = (0,external_vue_namespaceObject.ref)(false);
|
166
168
|
var isChecked = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -233,7 +235,7 @@ var switcherEmitEventsType = _defineProperty(_defineProperty({}, EVENTS.UPDATE,
|
|
233
235
|
"onClick": handleChange,
|
234
236
|
"tabindex": "0",
|
235
237
|
"onKeydown": handleKeydown
|
236
|
-
}, [isLoading.value ? (0,external_vue_namespaceObject.createVNode)(
|
238
|
+
}, [isLoading.value ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.SwitcherLoading, {
|
237
239
|
"class": "".concat(resolveClassName('switcher-loading'))
|
238
240
|
}, null) : '', props.showText ? (0,external_vue_namespaceObject.createVNode)("span", {
|
239
241
|
"class": "switcher-text"
|
@@ -269,7 +271,7 @@ var switcherEmitEventsType = _defineProperty(_defineProperty({}, EVENTS.UPDATE,
|
|
269
271
|
*/
|
270
272
|
|
271
273
|
|
272
|
-
var BkSwitcher = (0,
|
274
|
+
var BkSwitcher = (0,shared_namespaceObject.withInstall)(switcher);
|
273
275
|
/* harmony default export */ const src = (BkSwitcher);
|
274
276
|
var __webpack_exports__default = __webpack_exports__["default"];
|
275
277
|
export { __webpack_exports__default as default };
|