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/popover2/index.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
4
|
/******/ // The require scope
|
4
5
|
/******/ var __webpack_require__ = {};
|
@@ -32,7 +33,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
32
33
|
;// CONCATENATED MODULE: external "../shared"
|
33
34
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
34
35
|
var y = x => () => x
|
35
|
-
const
|
36
|
+
const shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
36
37
|
;// CONCATENATED MODULE: external "vue"
|
37
38
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
38
39
|
var external_vue_y = x => () => x
|
@@ -101,7 +102,7 @@ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __W
|
|
101
102
|
*/
|
102
103
|
|
103
104
|
|
104
|
-
var BkPopover2 = (0,
|
105
|
+
var BkPopover2 = (0,shared_namespaceObject.withInstall)(popover);
|
105
106
|
/* harmony default export */ const src = (BkPopover2);
|
106
107
|
var __webpack_exports__default = __webpack_exports__["default"];
|
107
108
|
export { __webpack_exports__default as default };
|
package/lib/preset.js
CHANGED
@@ -1,43 +1,3 @@
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__ from "./config-provider";
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__components_96ad247a__ from "./components";
|
3
|
-
/******/ // The require scope
|
4
|
-
/******/ var __webpack_require__ = {};
|
5
|
-
/******/
|
6
|
-
/************************************************************************/
|
7
|
-
/******/ /* webpack/runtime/define property getters */
|
8
|
-
/******/ (() => {
|
9
|
-
/******/ // define getter functions for harmony exports
|
10
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
11
|
-
/******/ for(var key in definition) {
|
12
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14
|
-
/******/ }
|
15
|
-
/******/ }
|
16
|
-
/******/ };
|
17
|
-
/******/ })();
|
18
|
-
/******/
|
19
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20
|
-
/******/ (() => {
|
21
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
22
|
-
/******/ })();
|
23
|
-
/******/
|
24
|
-
/************************************************************************/
|
25
|
-
var __webpack_exports__ = {};
|
26
|
-
|
27
|
-
// EXPORTS
|
28
|
-
__webpack_require__.d(__webpack_exports__, {
|
29
|
-
"default": () => (/* binding */ preset)
|
30
|
-
});
|
31
|
-
|
32
|
-
;// CONCATENATED MODULE: external "./config-provider"
|
33
|
-
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
34
|
-
var y = x => () => x
|
35
|
-
const external_config_provider_namespaceObject = x({ ["provideGlobalConfig"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__.provideGlobalConfig });
|
36
|
-
;// CONCATENATED MODULE: external "./components"
|
37
|
-
var external_components_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
38
|
-
var external_components_y = x => () => x
|
39
|
-
const external_components_namespaceObject = __WEBPACK_EXTERNAL_MODULE__components_96ad247a__;
|
40
|
-
;// CONCATENATED MODULE: ../../packages/bkui-vue/preset.ts
|
41
1
|
/*
|
42
2
|
* Tencent is pleased to support the open source community by making
|
43
3
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -63,31 +23,25 @@ const external_components_namespaceObject = __WEBPACK_EXTERNAL_MODULE__component
|
|
63
23
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
64
24
|
* IN THE SOFTWARE.
|
65
25
|
*/
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
}
|
78
|
-
} else {
|
79
|
-
app.component(pre + key, external_components_namespaceObject[key]);
|
80
|
-
}
|
26
|
+
import { provideGlobalConfig } from './config-provider';
|
27
|
+
import * as components from './components';
|
28
|
+
const createInstall = (prefix = 'Bk') => (app, options) => {
|
29
|
+
const pre = app.config.globalProperties.bkUIPrefix || prefix;
|
30
|
+
Object.keys(components).forEach(key => {
|
31
|
+
const component = components[key];
|
32
|
+
if ('install' in component) {
|
33
|
+
app.use(component, { prefix: pre });
|
34
|
+
}
|
35
|
+
else {
|
36
|
+
app.component(pre + key, components[key]);
|
37
|
+
}
|
81
38
|
});
|
82
39
|
if (options) {
|
83
|
-
|
40
|
+
provideGlobalConfig(options, app);
|
84
41
|
}
|
85
|
-
};
|
86
42
|
};
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
}
|
92
|
-
var __webpack_exports__default = __webpack_exports__["default"];
|
93
|
-
export { __webpack_exports__default as default };
|
43
|
+
export default {
|
44
|
+
createInstall,
|
45
|
+
install: createInstall(),
|
46
|
+
version: '0.0.1',
|
47
|
+
};
|
package/lib/process/index.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./process.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
|
/******/ var __webpack_modules__ = ({
|
6
8
|
|
7
9
|
/***/ 7609:
|
@@ -421,7 +423,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
421
423
|
;// CONCATENATED MODULE: external "../shared"
|
422
424
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
423
425
|
var y = x => () => x
|
424
|
-
const
|
426
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
425
427
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
426
428
|
function _typeof(o) {
|
427
429
|
"@babel/helpers - typeof";
|
@@ -543,13 +545,13 @@ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __W
|
|
543
545
|
var regenerator = __webpack_require__(2841);
|
544
546
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
545
547
|
;// CONCATENATED MODULE: external "../config-provider"
|
546
|
-
var
|
547
|
-
var
|
548
|
-
const
|
548
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
549
|
+
var config_provider_y = x => () => x
|
550
|
+
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 });
|
549
551
|
;// CONCATENATED MODULE: external "../icon"
|
550
|
-
var
|
551
|
-
var
|
552
|
-
const
|
552
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
553
|
+
var icon_y = x => () => x
|
554
|
+
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 });
|
553
555
|
;// CONCATENATED MODULE: ../../packages/process/src/process.tsx
|
554
556
|
|
555
557
|
|
@@ -584,15 +586,14 @@ const external_icon_namespaceObject = external_icon_x({ ["Circle"]: () => __WEBP
|
|
584
586
|
|
585
587
|
|
586
588
|
|
587
|
-
|
588
|
-
// import { Error, Circle, Done } from '@bkui-vue/icon';
|
589
|
+
// import { Error, Circle, Done } from '@bkui-vue/icon';
|
589
590
|
var processProps = {
|
590
|
-
list:
|
591
|
-
controllable:
|
592
|
-
showSteps:
|
593
|
-
curProcess:
|
594
|
-
displayKey:
|
595
|
-
extCls:
|
591
|
+
list: shared_namespaceObject.PropTypes.array.def([]),
|
592
|
+
controllable: shared_namespaceObject.PropTypes.bool.def(false),
|
593
|
+
showSteps: shared_namespaceObject.PropTypes.bool.def(false),
|
594
|
+
curProcess: shared_namespaceObject.PropTypes.number.def(0),
|
595
|
+
displayKey: shared_namespaceObject.PropTypes.string.def('content'),
|
596
|
+
extCls: shared_namespaceObject.PropTypes.string
|
596
597
|
};
|
597
598
|
/* harmony default export */ const process = ((0,external_vue_namespaceObject.defineComponent)({
|
598
599
|
name: 'Process',
|
@@ -600,8 +601,8 @@ var processProps = {
|
|
600
601
|
emits: ['update:curProcess', 'click'],
|
601
602
|
setup: function setup(props, _ref) {
|
602
603
|
var emit = _ref.emit;
|
603
|
-
var t = (0,
|
604
|
-
var lang = (0,
|
604
|
+
var t = (0,config_provider_namespaceObject.useLocale)('process');
|
605
|
+
var lang = (0,config_provider_namespaceObject.useLocale)('lang');
|
605
606
|
var defaultProcessList = (0,external_vue_namespaceObject.ref)([]);
|
606
607
|
var paddingBottom = (0,external_vue_namespaceObject.ref)(0);
|
607
608
|
var init = function init() {
|
@@ -649,7 +650,7 @@ var processProps = {
|
|
649
650
|
};
|
650
651
|
}();
|
651
652
|
(0,external_vue_namespaceObject.onMounted)(init);
|
652
|
-
var _usePrefix = (0,
|
653
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
653
654
|
resolveClassName = _usePrefix.resolveClassName;
|
654
655
|
return {
|
655
656
|
defaultProcessList: defaultProcessList,
|
@@ -661,7 +662,7 @@ var processProps = {
|
|
661
662
|
render: function render() {
|
662
663
|
var _this = this;
|
663
664
|
var processClsPrefix = this.resolveClassName('process');
|
664
|
-
var processCls = (0,
|
665
|
+
var processCls = (0,shared_namespaceObject.classes)(_defineProperty({}, "".concat(this.extCls), !!this.extCls), "".concat(processClsPrefix));
|
665
666
|
var isLoadingStatus = function isLoadingStatus(item) {
|
666
667
|
return item.status === 'loading';
|
667
668
|
};
|
@@ -676,12 +677,12 @@ var processProps = {
|
|
676
677
|
};
|
677
678
|
var renderIcon = function renderIcon(index, item) {
|
678
679
|
if (index === _this.curProcess - 1 && isLoadingStatus(item)) {
|
679
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
680
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Circle, {
|
680
681
|
"class": "".concat(_this.resolveClassName('icon'), " ").concat(_this.resolveClassName('process-icon'), " icon-loading")
|
681
682
|
}, null);
|
682
683
|
}
|
683
684
|
if (index === _this.curProcess - 1 && isErrorStatus(item)) {
|
684
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
685
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
685
686
|
"class": "".concat(_this.resolveClassName('process-icon'), " icon-error")
|
686
687
|
}, null);
|
687
688
|
}
|
@@ -691,7 +692,7 @@ var processProps = {
|
|
691
692
|
}, [(0,external_vue_namespaceObject.createVNode)(item.icon, null, null)]);
|
692
693
|
}
|
693
694
|
if (isDone(index)) {
|
694
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
695
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Done, {
|
695
696
|
"class": "".concat(_this.resolveClassName('process-icon-done'))
|
696
697
|
}, null);
|
697
698
|
}
|
@@ -750,7 +751,7 @@ var processProps = {
|
|
750
751
|
*/
|
751
752
|
|
752
753
|
|
753
|
-
var BkProcess = (0,
|
754
|
+
var BkProcess = (0,shared_namespaceObject.withInstall)(process);
|
754
755
|
/* harmony default export */ const src = (BkProcess);
|
755
756
|
})();
|
756
757
|
|
package/lib/progress/index.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./progress.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({ ["ProgressStrokeLineCapType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ProgressStrokeLineCapType, ["ProgressType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ProgressType, ["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, ["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({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode });
|
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/progress/src/circle.tsx
|
91
93
|
|
92
94
|
/*
|
@@ -119,7 +121,7 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
119
121
|
var Circle = function Circle(_, _ref) {
|
120
122
|
var attrs = _ref.attrs,
|
121
123
|
slots = _ref.slots;
|
122
|
-
var _usePrefix = (0,
|
124
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
123
125
|
resolveClassName = _usePrefix.resolveClassName;
|
124
126
|
var width = attrs.width,
|
125
127
|
percent = attrs.percent,
|
@@ -223,7 +225,7 @@ var Circle = function Circle(_, _ref) {
|
|
223
225
|
var Line = function Line(_, _ref) {
|
224
226
|
var attrs = _ref.attrs,
|
225
227
|
slots = _ref.slots;
|
226
|
-
var _usePrefix = (0,
|
228
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
227
229
|
resolveClassName = _usePrefix.resolveClassName;
|
228
230
|
var percent = attrs.percent,
|
229
231
|
strokeWidth = attrs.strokeWidth,
|
@@ -308,25 +310,25 @@ function _isSlot(s) {
|
|
308
310
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
309
311
|
}
|
310
312
|
var progressType = {
|
311
|
-
extCls:
|
312
|
-
type: (0,
|
313
|
-
percent:
|
314
|
-
theme:
|
315
|
-
size:
|
316
|
-
width:
|
317
|
-
strokeWidth:
|
318
|
-
strokeLinecap: (0,
|
319
|
-
textInside:
|
320
|
-
showText:
|
321
|
-
color:
|
322
|
-
bgColor:
|
323
|
-
fixed:
|
313
|
+
extCls: shared_namespaceObject.PropTypes.string,
|
314
|
+
type: (0,shared_namespaceObject.ProgressType)(),
|
315
|
+
percent: shared_namespaceObject.PropTypes.number.def(0),
|
316
|
+
theme: shared_namespaceObject.PropTypes.theme().def(shared_namespaceObject.ThemeEnum.PRIMARY),
|
317
|
+
size: shared_namespaceObject.PropTypes.size(),
|
318
|
+
width: shared_namespaceObject.PropTypes.number.def(126),
|
319
|
+
strokeWidth: shared_namespaceObject.PropTypes.number,
|
320
|
+
strokeLinecap: (0,shared_namespaceObject.ProgressStrokeLineCapType)(),
|
321
|
+
textInside: shared_namespaceObject.PropTypes.bool.def(false),
|
322
|
+
showText: shared_namespaceObject.PropTypes.bool.def(true),
|
323
|
+
color: shared_namespaceObject.PropTypes.string,
|
324
|
+
bgColor: shared_namespaceObject.PropTypes.string,
|
325
|
+
fixed: shared_namespaceObject.PropTypes.number.validate(function (value) {
|
324
326
|
return value >= 0 && value <= 20;
|
325
327
|
}).def(0),
|
326
|
-
format:
|
328
|
+
format: shared_namespaceObject.PropTypes.func.def(function (percent) {
|
327
329
|
return "".concat(percent, "%");
|
328
330
|
}),
|
329
|
-
titleStyle:
|
331
|
+
titleStyle: shared_namespaceObject.PropTypes.object.def({
|
330
332
|
fontSize: '16px',
|
331
333
|
verticalAlign: 'middle'
|
332
334
|
})
|
@@ -336,7 +338,7 @@ var progressType = {
|
|
336
338
|
name: 'Progress',
|
337
339
|
props: progressType,
|
338
340
|
setup: function setup() {
|
339
|
-
var _usePrefix = (0,
|
341
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
340
342
|
resolveClassName = _usePrefix.resolveClassName;
|
341
343
|
return {
|
342
344
|
resolveClassName: resolveClassName
|
@@ -390,7 +392,7 @@ var progressType = {
|
|
390
392
|
});
|
391
393
|
}
|
392
394
|
var progressProps = {
|
393
|
-
"class": (0,
|
395
|
+
"class": (0,shared_namespaceObject.classes)({
|
394
396
|
extCls: !!this.extCls
|
395
397
|
}, "".concat(this.resolveClassName('progress'), " ").concat(this.resolveClassName("progress-".concat(this.type))))
|
396
398
|
};
|
@@ -425,7 +427,7 @@ var progressType = {
|
|
425
427
|
*/
|
426
428
|
|
427
429
|
|
428
|
-
var BkProgress = (0,
|
430
|
+
var BkProgress = (0,shared_namespaceObject.withInstall)(progress);
|
429
431
|
/* harmony default export */ const src = (BkProgress);
|
430
432
|
var __webpack_exports__default = __webpack_exports__["default"];
|
431
433
|
export { __webpack_exports__default as default };
|
package/lib/radio/index.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./radio.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
|
/******/
|
@@ -36,7 +38,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
36
38
|
;// CONCATENATED MODULE: external "../shared"
|
37
39
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
38
40
|
var y = x => () => x
|
39
|
-
const
|
41
|
+
const shared_namespaceObject = x({ ["EMPTY_OBJ"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.EMPTY_OBJ, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["isEmptyObj"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isEmptyObj, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
40
42
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
41
43
|
function _typeof(o) {
|
42
44
|
"@babel/helpers - typeof";
|
@@ -147,9 +149,9 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
147
149
|
var external_vue_y = x => () => x
|
148
150
|
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, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
149
151
|
;// CONCATENATED MODULE: external "../config-provider"
|
150
|
-
var
|
151
|
-
var
|
152
|
-
const
|
152
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
153
|
+
var config_provider_y = x => () => x
|
154
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
153
155
|
;// CONCATENATED MODULE: ../../packages/radio/src/common.ts
|
154
156
|
/*
|
155
157
|
* Tencent is pleased to support the open source community by making
|
@@ -196,8 +198,8 @@ var useRadio = function useRadio() {
|
|
196
198
|
var currentInstance = (0,external_vue_namespaceObject.getCurrentInstance)();
|
197
199
|
var props = currentInstance.props,
|
198
200
|
emit = currentInstance.emit;
|
199
|
-
var radioGroup = (0,external_vue_namespaceObject.inject)(radioGroupKey,
|
200
|
-
var isGroup = !(0,
|
201
|
+
var radioGroup = (0,external_vue_namespaceObject.inject)(radioGroupKey, shared_namespaceObject.EMPTY_OBJ);
|
202
|
+
var isGroup = !(0,shared_namespaceObject.isEmptyObj)(radioGroup);
|
201
203
|
var isChecked = (0,external_vue_namespaceObject.ref)(false);
|
202
204
|
var size = (0,external_vue_namespaceObject.ref)('default');
|
203
205
|
// 禁用状态
|
@@ -306,11 +308,11 @@ var useRadio = function useRadio() {
|
|
306
308
|
|
307
309
|
|
308
310
|
var radioProps = {
|
309
|
-
name:
|
310
|
-
label:
|
311
|
-
modelValue:
|
312
|
-
checked:
|
313
|
-
disabled:
|
311
|
+
name: shared_namespaceObject.PropTypes.string.def(''),
|
312
|
+
label: shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).isRequired,
|
313
|
+
modelValue: shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).def(''),
|
314
|
+
checked: shared_namespaceObject.PropTypes.bool.def(false),
|
315
|
+
disabled: shared_namespaceObject.PropTypes.bool.def(false)
|
314
316
|
};
|
315
317
|
/* harmony default export */ const src_radio = ((0,external_vue_namespaceObject.defineComponent)({
|
316
318
|
name: 'Radio',
|
@@ -336,7 +338,7 @@ var radioProps = {
|
|
336
338
|
isDisabled = _useRadio.isDisabled,
|
337
339
|
setChecked = _useRadio.setChecked,
|
338
340
|
handleChange = _useRadio.handleChange;
|
339
|
-
var _usePrefix = (0,
|
341
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
340
342
|
resolveClassName = _usePrefix.resolveClassName;
|
341
343
|
return {
|
342
344
|
size: size,
|
@@ -352,7 +354,7 @@ var radioProps = {
|
|
352
354
|
},
|
353
355
|
render: function render() {
|
354
356
|
var _this = this;
|
355
|
-
var radioClass = (0,
|
357
|
+
var radioClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('radio')), true), "".concat(this.resolveClassName('radio'), "-").concat(this.size), true), 'is-focused', this.isFocused), 'is-disabled', this.isDisabled), 'is-checked', this.isChecked));
|
356
358
|
var renderLabel = function renderLabel() {
|
357
359
|
if (!_this.label && !_this.$slots["default"]) {
|
358
360
|
return null;
|
@@ -411,12 +413,12 @@ var radioProps = {
|
|
411
413
|
|
412
414
|
|
413
415
|
var radioButtonProps = {
|
414
|
-
name:
|
415
|
-
label:
|
416
|
-
modelValue:
|
417
|
-
checked:
|
418
|
-
disabled:
|
419
|
-
size:
|
416
|
+
name: shared_namespaceObject.PropTypes.string.def(''),
|
417
|
+
label: shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).isRequired,
|
418
|
+
modelValue: shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).def(''),
|
419
|
+
checked: shared_namespaceObject.PropTypes.bool.def(false),
|
420
|
+
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
421
|
+
size: shared_namespaceObject.PropTypes.size()
|
420
422
|
};
|
421
423
|
/* harmony default export */ const radio_button = ((0,external_vue_namespaceObject.defineComponent)({
|
422
424
|
name: 'RadioButton',
|
@@ -442,7 +444,7 @@ var radioButtonProps = {
|
|
442
444
|
isDisabled = _useRadio.isDisabled,
|
443
445
|
setChecked = _useRadio.setChecked,
|
444
446
|
handleChange = _useRadio.handleChange;
|
445
|
-
var _usePrefix = (0,
|
447
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
446
448
|
resolveClassName = _usePrefix.resolveClassName;
|
447
449
|
return {
|
448
450
|
isFocused: isFocused,
|
@@ -458,7 +460,7 @@ var radioButtonProps = {
|
|
458
460
|
},
|
459
461
|
render: function render() {
|
460
462
|
var _this = this;
|
461
|
-
var radioClass = (0,
|
463
|
+
var radioClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('radio-button')), true), "".concat(this.resolveClassName('radio-button'), "-").concat(this.size), true), 'is-focused', this.isFocused), 'is-disabled', this.isDisabled), 'is-checked', this.isChecked));
|
462
464
|
var renderLabel = function renderLabel() {
|
463
465
|
if (!_this.label && !_this.$slots["default"]) {
|
464
466
|
return null;
|
@@ -515,12 +517,12 @@ var radioButtonProps = {
|
|
515
517
|
|
516
518
|
|
517
519
|
var radioGroupProps = {
|
518
|
-
name:
|
519
|
-
modelValue:
|
520
|
-
disabled:
|
521
|
-
withValidate:
|
522
|
-
type:
|
523
|
-
size:
|
520
|
+
name: shared_namespaceObject.PropTypes.string.def(''),
|
521
|
+
modelValue: shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]),
|
522
|
+
disabled: shared_namespaceObject.PropTypes.bool,
|
523
|
+
withValidate: shared_namespaceObject.PropTypes.bool.def(true),
|
524
|
+
type: shared_namespaceObject.PropTypes.oneOf(['tab', 'capsule', 'card']).def('tab'),
|
525
|
+
size: shared_namespaceObject.PropTypes.size()
|
524
526
|
};
|
525
527
|
/* harmony default export */ const radio_group = ((0,external_vue_namespaceObject.defineComponent)({
|
526
528
|
name: 'RadioGroup',
|
@@ -534,7 +536,7 @@ var radioGroupProps = {
|
|
534
536
|
}
|
535
537
|
},
|
536
538
|
setup: function setup(props, context) {
|
537
|
-
var formItem = (0,
|
539
|
+
var formItem = (0,shared_namespaceObject.useFormItem)();
|
538
540
|
var radioInstanceList = [];
|
539
541
|
var register = function register(radioContext) {
|
540
542
|
radioInstanceList.push(radioContext);
|
@@ -577,7 +579,7 @@ var radioGroupProps = {
|
|
577
579
|
radioInstance.setChecked(radioInstance.label === props.modelValue);
|
578
580
|
});
|
579
581
|
});
|
580
|
-
var _usePrefix = (0,
|
582
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
581
583
|
resolveClassName = _usePrefix.resolveClassName;
|
582
584
|
return {
|
583
585
|
resolveClassName: resolveClassName
|
@@ -620,7 +622,7 @@ var radioGroupProps = {
|
|
620
622
|
|
621
623
|
|
622
624
|
|
623
|
-
var BkRadio = (0,
|
625
|
+
var BkRadio = (0,shared_namespaceObject.withInstallProps)(src_radio, {
|
624
626
|
Group: radio_group,
|
625
627
|
Button: radio_button
|
626
628
|
});
|
package/lib/rate/index.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./rate.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, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["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, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["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/rate/src/star.tsx
|
91
93
|
|
92
94
|
|
@@ -121,12 +123,12 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
121
123
|
/* harmony default export */ const star = ((0,external_vue_namespaceObject.defineComponent)({
|
122
124
|
name: 'Star',
|
123
125
|
props: {
|
124
|
-
rate:
|
125
|
-
width:
|
126
|
-
height:
|
127
|
-
editable:
|
128
|
-
hoverRate:
|
129
|
-
max:
|
126
|
+
rate: shared_namespaceObject.PropTypes.number.def(0),
|
127
|
+
width: shared_namespaceObject.PropTypes.number.def(16),
|
128
|
+
height: shared_namespaceObject.PropTypes.number.def(16),
|
129
|
+
editable: shared_namespaceObject.PropTypes.bool.def(true),
|
130
|
+
hoverRate: shared_namespaceObject.PropTypes.number.def(0),
|
131
|
+
max: shared_namespaceObject.PropTypes.number.def(5)
|
130
132
|
},
|
131
133
|
emits: ['chooseRate', 'changeHover'],
|
132
134
|
setup: function setup(props, _ref) {
|
@@ -150,10 +152,10 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
150
152
|
e.target.classList.remove(resolveClassName('is-hover'));
|
151
153
|
});
|
152
154
|
};
|
153
|
-
var _usePrefix = (0,
|
155
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
154
156
|
resolveClassName = _usePrefix.resolveClassName;
|
155
157
|
var starClass = function starClass(index) {
|
156
|
-
return (0,
|
158
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName('is-select')), index < Math.floor(displayRate.value)), "".concat(resolveClassName('is-edit')), props.editable), "".concat(resolveClassName('rate-star')), true));
|
157
159
|
};
|
158
160
|
var displayRate = (0,external_vue_namespaceObject.computed)(function () {
|
159
161
|
return props.hoverRate || props.rate;
|
@@ -236,17 +238,17 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
236
238
|
star: star
|
237
239
|
},
|
238
240
|
props: {
|
239
|
-
modelValue:
|
240
|
-
size:
|
241
|
-
editable:
|
242
|
-
withValidate:
|
241
|
+
modelValue: shared_namespaceObject.PropTypes.number.def(0),
|
242
|
+
size: shared_namespaceObject.PropTypes.size(),
|
243
|
+
editable: shared_namespaceObject.PropTypes.bool.def(true),
|
244
|
+
withValidate: shared_namespaceObject.PropTypes.bool.def(true)
|
243
245
|
},
|
244
246
|
emits: ['change', 'hover-change', 'update:modelValue'],
|
245
247
|
setup: function setup(props, _ref) {
|
246
248
|
var emit = _ref.emit;
|
247
|
-
var _usePrefix = (0,
|
249
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
248
250
|
resolveClassName = _usePrefix.resolveClassName;
|
249
|
-
var formItem = (0,
|
251
|
+
var formItem = (0,shared_namespaceObject.useFormItem)();
|
250
252
|
var hoverRate = (0,external_vue_namespaceObject.ref)(0);
|
251
253
|
var chooseRate = function chooseRate(val) {
|
252
254
|
if (!props.editable) return;
|
@@ -257,7 +259,7 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
257
259
|
hoverRate.value = val;
|
258
260
|
emit('hover-change', val);
|
259
261
|
};
|
260
|
-
var rateClass = (0,
|
262
|
+
var rateClass = (0,shared_namespaceObject.classes)(_defineProperty({}, "".concat(resolveClassName('rate')), true));
|
261
263
|
var sizeMap = {
|
262
264
|
small: {
|
263
265
|
width: 12,
|
@@ -347,7 +349,7 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
347
349
|
*/
|
348
350
|
|
349
351
|
|
350
|
-
var BkRate = (0,
|
352
|
+
var BkRate = (0,shared_namespaceObject.withInstall)(rate);
|
351
353
|
/* harmony default export */ const src = (BkRate);
|
352
354
|
var __webpack_exports__default = __webpack_exports__["default"];
|
353
355
|
export { __webpack_exports__default as default };
|