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/index.js
CHANGED
@@ -1,64 +1,3 @@
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__ from "./preset";
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__components_96ad247a__ from "./components";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE__directives_37095733__ from "./directives";
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__plugins_a82c42d7__ from "./plugins";
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__ from "./config-provider";
|
6
|
-
import * as __WEBPACK_EXTERNAL_MODULE__hooks_627f7bfe__ from "./hooks";
|
7
|
-
/******/ // The require scope
|
8
|
-
/******/ var __webpack_require__ = {};
|
9
|
-
/******/
|
10
|
-
/************************************************************************/
|
11
|
-
/******/ /* webpack/runtime/define property getters */
|
12
|
-
/******/ (() => {
|
13
|
-
/******/ // define getter functions for harmony exports
|
14
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
15
|
-
/******/ for(var key in definition) {
|
16
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
17
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
18
|
-
/******/ }
|
19
|
-
/******/ }
|
20
|
-
/******/ };
|
21
|
-
/******/ })();
|
22
|
-
/******/
|
23
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
24
|
-
/******/ (() => {
|
25
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
26
|
-
/******/ })();
|
27
|
-
/******/
|
28
|
-
/************************************************************************/
|
29
|
-
var __webpack_exports__ = {};
|
30
|
-
|
31
|
-
// EXPORTS
|
32
|
-
__webpack_require__.d(__webpack_exports__, {
|
33
|
-
"default": () => (/* reexport */ external_preset_namespaceObject["default"]),
|
34
|
-
plugins: () => (/* reexport */ external_plugins_namespaceObject)
|
35
|
-
});
|
36
|
-
|
37
|
-
;// CONCATENATED MODULE: external "./preset"
|
38
|
-
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
39
|
-
var y = x => () => x
|
40
|
-
const external_preset_namespaceObject = x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__["default"] });
|
41
|
-
;// CONCATENATED MODULE: external "./components"
|
42
|
-
var external_components_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
43
|
-
var external_components_y = x => () => x
|
44
|
-
const external_components_namespaceObject = external_components_x({ });
|
45
|
-
;// CONCATENATED MODULE: external "./directives"
|
46
|
-
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
47
|
-
var external_directives_y = x => () => x
|
48
|
-
const external_directives_namespaceObject = external_directives_x({ });
|
49
|
-
;// CONCATENATED MODULE: external "./plugins"
|
50
|
-
var external_plugins_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
51
|
-
var external_plugins_y = x => () => x
|
52
|
-
const external_plugins_namespaceObject = __WEBPACK_EXTERNAL_MODULE__plugins_a82c42d7__;
|
53
|
-
;// CONCATENATED MODULE: external "./config-provider"
|
54
|
-
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
55
|
-
var external_config_provider_y = x => () => x
|
56
|
-
const external_config_provider_namespaceObject = external_config_provider_x({ });
|
57
|
-
;// CONCATENATED MODULE: external "./hooks"
|
58
|
-
var external_hooks_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
59
|
-
var external_hooks_y = x => () => x
|
60
|
-
const external_hooks_namespaceObject = external_hooks_x({ });
|
61
|
-
;// CONCATENATED MODULE: ../../packages/bkui-vue/index.ts
|
62
1
|
/*
|
63
2
|
* Tencent is pleased to support the open source community by making
|
64
3
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -84,14 +23,10 @@ const external_hooks_namespaceObject = external_hooks_x({ });
|
|
84
23
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
85
24
|
* IN THE SOFTWARE.
|
86
25
|
*/
|
87
|
-
// import '
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
var __webpack_exports__default = __webpack_exports__["default"];
|
96
|
-
var __webpack_exports__plugins = __webpack_exports__.plugins;
|
97
|
-
export { __webpack_exports__default as default, __webpack_exports__plugins as plugins };
|
26
|
+
// import './styles';
|
27
|
+
export { default } from './preset';
|
28
|
+
export * from './components';
|
29
|
+
export * from './directives';
|
30
|
+
export * as plugins from './plugins';
|
31
|
+
export * from './config-provider';
|
32
|
+
export * from './hooks';
|
package/lib/info-box/index.js
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./info-box.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_dialog_497cb4c3__ from "../dialog";
|
7
|
+
import "../dialog/dialog.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/typeof.js
|
426
429
|
function _typeof(o) {
|
427
430
|
"@babel/helpers - typeof";
|
@@ -506,13 +509,17 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
506
509
|
var external_vue_y = x => () => x
|
507
510
|
const external_vue_namespaceObject = external_vue_x({ ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef });
|
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 "../dialog"
|
513
|
-
var
|
514
|
-
var
|
515
|
-
const
|
516
|
+
var dialog_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
517
|
+
var dialog_y = x => () => x
|
518
|
+
const dialog_namespaceObject = dialog_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_dialog_497cb4c3__["default"] });
|
519
|
+
;// CONCATENATED MODULE: external "../dialog/dialog.less"
|
520
|
+
var dialog_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
521
|
+
var dialog_less_y = x => () => x
|
522
|
+
const dialog_less_namespaceObject = dialog_less_x({ });
|
516
523
|
;// CONCATENATED MODULE: ../../packages/info-box/src/info-box.tsx
|
517
524
|
|
518
525
|
|
@@ -548,6 +555,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
548
555
|
|
549
556
|
|
550
557
|
|
558
|
+
|
551
559
|
var InfoBox = function InfoBox(config) {
|
552
560
|
var container = document.createElement('div');
|
553
561
|
var modalFuncProps = (0,external_vue_namespaceObject.shallowRef)(config);
|
@@ -636,7 +644,7 @@ var InfoBox = function InfoBox(config) {
|
|
636
644
|
expose({
|
637
645
|
update: update
|
638
646
|
});
|
639
|
-
var _usePrefix = (0,
|
647
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
640
648
|
resolveClassName = _usePrefix.resolveClassName;
|
641
649
|
var getContent = function getContent() {
|
642
650
|
var children = [];
|
@@ -671,7 +679,7 @@ var InfoBox = function InfoBox(config) {
|
|
671
679
|
container.remove();
|
672
680
|
};
|
673
681
|
return function () {
|
674
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
682
|
+
return (0,external_vue_namespaceObject.createVNode)(dialog_namespaceObject["default"], _objectSpread(_objectSpread({
|
675
683
|
"class": resolveClassName('info-wrapper'),
|
676
684
|
headerAlign: 'center',
|
677
685
|
footerAlign: 'center',
|
@@ -751,7 +759,7 @@ var InfoBox = function InfoBox(config) {
|
|
751
759
|
*/
|
752
760
|
|
753
761
|
|
754
|
-
var BkInfoBox = (0,
|
762
|
+
var BkInfoBox = (0,shared_namespaceObject.withInstall)(info_box);
|
755
763
|
/* harmony default export */ const src = (BkInfoBox);
|
756
764
|
})();
|
757
765
|
|
package/lib/input/index.js
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./input.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
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
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({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.InputBehaviorType, ["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 });
|
426
428
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
427
429
|
function _arrayWithHoles(arr) {
|
428
430
|
if (Array.isArray(arr)) return arr;
|
@@ -597,17 +599,17 @@ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBP
|
|
597
599
|
var regenerator = __webpack_require__(2841);
|
598
600
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
599
601
|
;// CONCATENATED MODULE: external "../config-provider"
|
600
|
-
var
|
601
|
-
var
|
602
|
-
const
|
602
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
603
|
+
var config_provider_y = x => () => x
|
604
|
+
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 });
|
603
605
|
;// CONCATENATED MODULE: external "../directives"
|
604
|
-
var
|
605
|
-
var
|
606
|
-
const
|
606
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
607
|
+
var directives_y = x => () => x
|
608
|
+
const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
|
607
609
|
;// CONCATENATED MODULE: external "../icon"
|
608
|
-
var
|
609
|
-
var
|
610
|
-
const
|
610
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
611
|
+
var icon_y = x => () => x
|
612
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["DownSmall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.DownSmall, ["Eye"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Eye, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search, ["Unvisible"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Unvisible });
|
611
613
|
;// CONCATENATED MODULE: ../../packages/input/src/util.ts
|
612
614
|
/*
|
613
615
|
* Tencent is pleased to support the open source community by making
|
@@ -740,37 +742,37 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
740
742
|
|
741
743
|
|
742
744
|
var inputType = {
|
743
|
-
type:
|
744
|
-
clearable:
|
745
|
-
disabled:
|
746
|
-
readonly:
|
747
|
-
placeholder:
|
748
|
-
prefixIcon:
|
749
|
-
suffixIcon:
|
750
|
-
suffix:
|
751
|
-
prefix:
|
752
|
-
step:
|
753
|
-
max:
|
754
|
-
min:
|
755
|
-
maxlength:
|
756
|
-
maxcharacter:
|
757
|
-
behavior: (0,
|
758
|
-
showWordLimit:
|
759
|
-
showControl:
|
760
|
-
showClearOnlyHover:
|
761
|
-
precision:
|
745
|
+
type: shared_namespaceObject.PropTypes.string.def('text'),
|
746
|
+
clearable: shared_namespaceObject.PropTypes.bool,
|
747
|
+
disabled: shared_namespaceObject.PropTypes.bool,
|
748
|
+
readonly: shared_namespaceObject.PropTypes.bool,
|
749
|
+
placeholder: shared_namespaceObject.PropTypes.string.def(''),
|
750
|
+
prefixIcon: shared_namespaceObject.PropTypes.string,
|
751
|
+
suffixIcon: shared_namespaceObject.PropTypes.string,
|
752
|
+
suffix: shared_namespaceObject.PropTypes.string,
|
753
|
+
prefix: shared_namespaceObject.PropTypes.string,
|
754
|
+
step: shared_namespaceObject.PropTypes.integer,
|
755
|
+
max: shared_namespaceObject.PropTypes.integer,
|
756
|
+
min: shared_namespaceObject.PropTypes.integer,
|
757
|
+
maxlength: shared_namespaceObject.PropTypes.integer,
|
758
|
+
maxcharacter: shared_namespaceObject.PropTypes.integer,
|
759
|
+
behavior: (0,shared_namespaceObject.InputBehaviorType)(),
|
760
|
+
showWordLimit: shared_namespaceObject.PropTypes.bool,
|
761
|
+
showControl: shared_namespaceObject.PropTypes.bool.def(true),
|
762
|
+
showClearOnlyHover: shared_namespaceObject.PropTypes.bool.def(true),
|
763
|
+
precision: shared_namespaceObject.PropTypes.number.def(0).validate(function (val) {
|
762
764
|
return val >= 0 && val < 20;
|
763
765
|
}),
|
764
|
-
modelValue:
|
765
|
-
size:
|
766
|
-
rows:
|
767
|
-
selectReadonly:
|
768
|
-
withValidate:
|
769
|
-
overMaxLengthLimit:
|
770
|
-
showOverflowTooltips:
|
771
|
-
resize:
|
772
|
-
autosize:
|
773
|
-
stopPropagation:
|
766
|
+
modelValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]),
|
767
|
+
size: shared_namespaceObject.PropTypes.size(),
|
768
|
+
rows: shared_namespaceObject.PropTypes.number,
|
769
|
+
selectReadonly: shared_namespaceObject.PropTypes.bool.def(false),
|
770
|
+
withValidate: shared_namespaceObject.PropTypes.bool.def(true),
|
771
|
+
overMaxLengthLimit: shared_namespaceObject.PropTypes.bool.def(false),
|
772
|
+
showOverflowTooltips: shared_namespaceObject.PropTypes.bool.def(true),
|
773
|
+
resize: shared_namespaceObject.PropTypes.bool.def(true),
|
774
|
+
autosize: shared_namespaceObject.PropTypes.oneOfType([Boolean, Object]).def(false),
|
775
|
+
stopPropagation: shared_namespaceObject.PropTypes.bool.def(true)
|
774
776
|
};
|
775
777
|
var EVENTS;
|
776
778
|
(function (EVENTS) {
|
@@ -809,16 +811,16 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
809
811
|
// eslint-disable-next-line vue/no-reserved-component-names
|
810
812
|
name: 'Input',
|
811
813
|
directives: {
|
812
|
-
bkTooltips:
|
814
|
+
bkTooltips: directives_namespaceObject.bkTooltips
|
813
815
|
},
|
814
816
|
inheritAttrs: false,
|
815
817
|
props: inputType,
|
816
818
|
emits: inputEmitEventsType,
|
817
819
|
setup: function setup(props, ctx) {
|
818
|
-
var _usePrefix = (0,
|
820
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
819
821
|
resolveClassName = _usePrefix.resolveClassName;
|
820
|
-
var formItem = (0,
|
821
|
-
var t = (0,
|
822
|
+
var formItem = (0,shared_namespaceObject.useFormItem)();
|
823
|
+
var t = (0,config_provider_namespaceObject.useLocale)('input');
|
822
824
|
var isFocused = (0,external_vue_namespaceObject.ref)(false);
|
823
825
|
var isCNInput = (0,external_vue_namespaceObject.ref)(false);
|
824
826
|
var isTextArea = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -836,7 +838,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
836
838
|
value: props.modelValue
|
837
839
|
});
|
838
840
|
var inputCls = (0,external_vue_namespaceObject.computed)(function () {
|
839
|
-
return (0,
|
841
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(inputClsPrefix.value, "--").concat(props.size), !!props.size), "resizable", props.resize), 'is-focused', isFocused.value), 'is-readonly', props.readonly && !props.selectReadonly), 'is-disabled', props.disabled), 'is-simplicity', props.behavior === 'simplicity'), "".concat(ctx.attrs["class"]), !!ctx.attrs["class"]), inputClsPrefix.value);
|
840
842
|
});
|
841
843
|
var isOverflow = (0,external_vue_namespaceObject.ref)(false);
|
842
844
|
var textareaCalcStyle = (0,external_vue_namespaceObject.ref)({});
|
@@ -875,10 +877,10 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
875
877
|
var suffixCls = getCls('suffix-icon');
|
876
878
|
var suffixIconMap = {
|
877
879
|
search: function search() {
|
878
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
880
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, null, null);
|
879
881
|
},
|
880
882
|
password: function password() {
|
881
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
883
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Unvisible, {
|
882
884
|
"onClick": handleVisibleChange,
|
883
885
|
"class": suffixCls
|
884
886
|
}, null);
|
@@ -887,7 +889,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
887
889
|
var suffixIcon = (0,external_vue_namespaceObject.computed)(function () {
|
888
890
|
var icon = suffixIconMap[props.type];
|
889
891
|
if (pwdVisible.value) {
|
890
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
892
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Eye, {
|
891
893
|
"class": suffixCls,
|
892
894
|
"onClick": handleVisibleChange
|
893
895
|
}, null);
|
@@ -905,12 +907,12 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
905
907
|
});
|
906
908
|
var pwdVisible = (0,external_vue_namespaceObject.ref)(false);
|
907
909
|
var clearCls = (0,external_vue_namespaceObject.computed)(function () {
|
908
|
-
return (0,
|
910
|
+
return (0,shared_namespaceObject.classes)(_defineProperty({
|
909
911
|
'show-clear-only-hover': props.showClearOnlyHover
|
910
912
|
}, "".concat(inputClsPrefix.value, "--clear-icon"), true), suffixCls);
|
911
913
|
});
|
912
914
|
var maxLengthCls = (0,external_vue_namespaceObject.computed)(function () {
|
913
|
-
return (0,
|
915
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, getCls('max-length'), true), 'is-over-limit', ceilMaxLength.value - modelValueLength.value < 0));
|
914
916
|
});
|
915
917
|
var getValueLimits = function getValueLimits(val) {
|
916
918
|
if (typeof props.maxcharacter === 'number') {
|
@@ -936,12 +938,12 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
936
938
|
return getValueLimits(modelValue).len;
|
937
939
|
});
|
938
940
|
var incControlCls = (0,external_vue_namespaceObject.computed)(function () {
|
939
|
-
return (0,
|
941
|
+
return (0,shared_namespaceObject.classes)({
|
940
942
|
'is-disabled': props.disabled || props.modelValue >= props.max
|
941
943
|
});
|
942
944
|
});
|
943
945
|
var decControlCls = (0,external_vue_namespaceObject.computed)(function () {
|
944
|
-
return (0,
|
946
|
+
return (0,shared_namespaceObject.classes)({
|
945
947
|
'is-disabled': props.disabled || props.modelValue <= props.min
|
946
948
|
});
|
947
949
|
});
|
@@ -1182,14 +1184,14 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1182
1184
|
}, eventListener, bindProps.value, innerInputValue.value), null), !isTextArea.value && props.clearable && !!props.modelValue && (0,external_vue_namespaceObject.createVNode)("span", {
|
1183
1185
|
"class": clearCls.value,
|
1184
1186
|
"onClick": clear
|
1185
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
1187
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)]), suffixIcon.value, showMaxLimit.value && (props.showWordLimit || isTextArea.value) && (0,external_vue_namespaceObject.createVNode)("p", {
|
1186
1188
|
"class": maxLengthCls.value
|
1187
1189
|
}, [props.overMaxLengthLimit ? ceilMaxLength.value - modelValueLength.value : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [modelValueLength.value, (0,external_vue_namespaceObject.createTextVNode)(" / "), (0,external_vue_namespaceObject.createVNode)("span", null, [ceilMaxLength.value])])]), isNumberInput.value && props.showControl && (0,external_vue_namespaceObject.createVNode)("div", {
|
1188
1190
|
"class": getCls('number-control')
|
1189
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
1191
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.DownSmall, {
|
1190
1192
|
"class": incControlCls.value,
|
1191
1193
|
"onClick": handleInc
|
1192
|
-
}, null), (0,external_vue_namespaceObject.createVNode)(
|
1194
|
+
}, null), (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.DownSmall, {
|
1193
1195
|
"class": decControlCls.value,
|
1194
1196
|
"onClick": handleDec
|
1195
1197
|
}, null)]), (_ctx$slots$suffix = (_ctx$slots2 = ctx.slots) === null || _ctx$slots2 === void 0 || (_ctx$slots2$suffix = _ctx$slots2.suffix) === null || _ctx$slots2$suffix === void 0 ? void 0 : _ctx$slots2$suffix.call(_ctx$slots2)) !== null && _ctx$slots$suffix !== void 0 ? _ctx$slots$suffix : props.suffix && (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -1228,7 +1230,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1228
1230
|
*/
|
1229
1231
|
|
1230
1232
|
|
1231
|
-
var BkInput = (0,
|
1233
|
+
var BkInput = (0,shared_namespaceObject.withInstall)(input);
|
1232
1234
|
/* harmony default export */ const src = (BkInput);
|
1233
1235
|
})();
|
1234
1236
|
|
package/lib/link/index.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./link.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
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
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, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
38
40
|
;// CONCATENATED MODULE: external "vue"
|
39
41
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
40
42
|
var external_vue_y = x => () => x
|
@@ -44,9 +46,9 @@ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); retur
|
|
44
46
|
var external_vue_types_y = x => () => x
|
45
47
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
46
48
|
;// CONCATENATED MODULE: external "../config-provider"
|
47
|
-
var
|
48
|
-
var
|
49
|
-
const
|
49
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
50
|
+
var config_provider_y = x => () => x
|
51
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
50
52
|
;// CONCATENATED MODULE: ../../packages/link/src/link.tsx
|
51
53
|
|
52
54
|
/*
|
@@ -90,10 +92,10 @@ var LinkThemeEnum;
|
|
90
92
|
name: 'Link',
|
91
93
|
props: {
|
92
94
|
theme: (0,external_vue_types_namespaceObject.toType)('linkTheme', {}).def(LinkThemeEnum.DEFAULT),
|
93
|
-
href:
|
94
|
-
disabled:
|
95
|
-
underline:
|
96
|
-
target:
|
95
|
+
href: shared_namespaceObject.PropTypes.string.def(''),
|
96
|
+
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
97
|
+
underline: shared_namespaceObject.PropTypes.bool.def(false),
|
98
|
+
target: shared_namespaceObject.PropTypes.string.def('_self')
|
97
99
|
},
|
98
100
|
emits: ['click'],
|
99
101
|
setup: function setup(props, _ref) {
|
@@ -105,7 +107,7 @@ var LinkThemeEnum;
|
|
105
107
|
}
|
106
108
|
emit('click', event);
|
107
109
|
};
|
108
|
-
var _usePrefix = (0,
|
110
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
109
111
|
resolveClassName = _usePrefix.resolveClassName;
|
110
112
|
return {
|
111
113
|
handleClick: handleClick,
|
@@ -114,7 +116,7 @@ var LinkThemeEnum;
|
|
114
116
|
},
|
115
117
|
render: function render() {
|
116
118
|
var _this$$slots$default, _this$$slots;
|
117
|
-
var linkClass = (0,
|
119
|
+
var linkClass = (0,shared_namespaceObject.classes)({
|
118
120
|
'is-disabled': this.disabled,
|
119
121
|
'has-underline': this.underline
|
120
122
|
}, "".concat(this.theme, " ").concat(this.resolveClassName('link')));
|
@@ -154,7 +156,7 @@ var LinkThemeEnum;
|
|
154
156
|
*/
|
155
157
|
|
156
158
|
|
157
|
-
var BkLink = (0,
|
159
|
+
var BkLink = (0,shared_namespaceObject.withInstall)(src_link);
|
158
160
|
/* harmony default export */ const src = (BkLink);
|
159
161
|
var __webpack_exports__default = __webpack_exports__["default"];
|
160
162
|
export { __webpack_exports__default as default };
|
package/lib/loading/index.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./loading.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
|
/******/
|
@@ -37,7 +39,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
37
39
|
;// CONCATENATED MODULE: external "../shared"
|
38
40
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
39
41
|
var y = x => () => x
|
40
|
-
const
|
42
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
41
43
|
;// CONCATENATED MODULE: external "vue"
|
42
44
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
43
45
|
var external_vue_y = x => () => x
|
@@ -88,9 +90,9 @@ function _defineProperty(obj, key, value) {
|
|
88
90
|
return obj;
|
89
91
|
}
|
90
92
|
;// CONCATENATED MODULE: external "../config-provider"
|
91
|
-
var
|
92
|
-
var
|
93
|
-
const
|
93
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
94
|
+
var config_provider_y = x => () => x
|
95
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
94
96
|
;// CONCATENATED MODULE: ../../packages/loading/src/loading.tsx
|
95
97
|
|
96
98
|
|
@@ -146,12 +148,12 @@ var loadingTypes = {
|
|
146
148
|
indicator: {
|
147
149
|
type: Function
|
148
150
|
},
|
149
|
-
loading:
|
150
|
-
inline:
|
151
|
+
loading: shared_namespaceObject.PropTypes.bool.def(true),
|
152
|
+
inline: shared_namespaceObject.PropTypes.bool.def(true),
|
151
153
|
theme: {
|
152
154
|
type: String
|
153
155
|
},
|
154
|
-
title:
|
156
|
+
title: shared_namespaceObject.PropTypes.string.def(''),
|
155
157
|
size: {
|
156
158
|
type: String,
|
157
159
|
"default": BkLoadingSize.Normal
|
@@ -160,16 +162,16 @@ var loadingTypes = {
|
|
160
162
|
type: String,
|
161
163
|
"default": 'default'
|
162
164
|
},
|
163
|
-
opacity:
|
164
|
-
color:
|
165
|
-
zIndex:
|
166
|
-
isDirective:
|
165
|
+
opacity: shared_namespaceObject.PropTypes.number.def(0.9),
|
166
|
+
color: shared_namespaceObject.PropTypes.string.def('white'),
|
167
|
+
zIndex: shared_namespaceObject.PropTypes.number.def(1),
|
168
|
+
isDirective: shared_namespaceObject.PropTypes.bool.def(false)
|
167
169
|
};
|
168
170
|
/* harmony default export */ const loading = ((0,external_vue_namespaceObject.defineComponent)({
|
169
171
|
name: 'Loading',
|
170
172
|
props: loadingTypes,
|
171
173
|
setup: function setup(props, ctx) {
|
172
|
-
var _usePrefix = (0,
|
174
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
173
175
|
resolveClassName = _usePrefix.resolveClassName;
|
174
176
|
var dotIndicator = (0,external_vue_namespaceObject.createVNode)("div", {
|
175
177
|
"class": "".concat(resolveClassName('normal-indicator'))
|
@@ -197,10 +199,10 @@ var loadingTypes = {
|
|
197
199
|
}, zIndexStyle.value);
|
198
200
|
});
|
199
201
|
var loadingWrapperCls = (0,external_vue_namespaceObject.computed)(function () {
|
200
|
-
return (0,
|
202
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName('loading-wrapper')), props.loading), "".concat(resolveClassName('nested-loading')), !!ctx.slots["default"]), "".concat(resolveClassName('directive-loading')), props.isDirective));
|
201
203
|
});
|
202
204
|
var containerCls = (0,external_vue_namespaceObject.computed)(function () {
|
203
|
-
return (0,
|
205
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, "".concat(resolveClassName("loading-size-".concat(props.size))), !!props.size), "".concat(resolveClassName("loading-".concat(props.theme))), !!props.theme), resolveClassName('loading-indicator'));
|
204
206
|
});
|
205
207
|
var hasTitle = (0,external_vue_namespaceObject.computed)(function () {
|
206
208
|
return !!props.title;
|
@@ -361,7 +363,7 @@ var vBkloading = {
|
|
361
363
|
|
362
364
|
|
363
365
|
|
364
|
-
var BkLoading = (0,
|
366
|
+
var BkLoading = (0,shared_namespaceObject.withInstallProps)(loading, {
|
365
367
|
setDefaultIndicator: setDefaultIndicator,
|
366
368
|
BkLoadingMode: BkLoadingMode,
|
367
369
|
BkLoadingSize: BkLoadingSize
|
package/lib/locale/index.js
CHANGED