bkui-vue 2.0.1-beta.6 → 2.0.1-beta.60.fix.1
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 +166 -166
- package/dist/index.esm.js +32099 -32092
- package/dist/index.umd.js +166 -166
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/index.js +1 -1
- package/lib/button/button.d.ts +7 -7
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -7
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +1 -1
- package/lib/cascader/index.js +32 -32
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.d.ts +7 -7
- package/lib/checkbox/index.d.ts +11 -11
- package/lib/checkbox/index.js +12 -4
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/index.js +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/color-picker/index.js +44 -44
- package/lib/components.d.ts +32 -32
- package/lib/components.js +31 -31
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/index.js +6 -7
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/date-picker.d.ts +0 -1
- package/lib/date-picker/index.d.ts +0 -3
- package/lib/date-picker/index.js +246 -220
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +5 -5
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +25 -20
- package/lib/dialog/index.d.ts +55 -44
- package/lib/dialog/index.js +22 -22
- package/lib/dialog/props.d.ts +10 -8
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -166
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -4
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/index.js +14 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/index.js +20 -21
- package/lib/index.d.ts +9 -3
- package/lib/index.js +5 -29
- package/lib/info-box/index.js +13 -13
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +16 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +0 -1
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/index.d.ts +21 -8
- package/lib/modal/index.js +14 -8
- package/lib/modal/modal.d.ts +8 -3
- package/lib/modal/props.mixin.d.ts +3 -1
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/notify/index.js +4 -4
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +61 -11
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -16
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +18 -20
- package/lib/pop-confirm/index.d.ts +11 -11
- package/lib/pop-confirm/index.js +11 -10
- package/lib/pop-confirm/pop-confirm.d.ts +5 -5
- package/lib/pop-confirm/props.d.ts +4 -4
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +18 -20
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.js +3 -3
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -11
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/index.js +28 -17
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +27 -0
- package/lib/resize-layout/index.d.ts +34 -11
- package/lib/resize-layout/index.js +29 -14
- package/lib/resize-layout/resize-layout.d.ts +16 -5
- package/lib/scrollbar/index.js +0 -1
- package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
- package/lib/search-select/index.js +66 -66
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/selected.d.ts +1 -1
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +88 -70
- package/lib/select/index.js +134 -125
- package/lib/select/option.d.ts +1 -1
- package/lib/select/select.d.ts +35 -27
- package/lib/select/selectTagInput.d.ts +6 -6
- package/lib/select/type.d.ts +2 -2
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +38 -46
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +46 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +18 -7
- package/lib/sideslider/index.js +11 -11
- package/lib/sideslider/sideslider.d.ts +8 -3
- package/lib/slider/index.js +21 -23
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/styles/index.d.ts +0 -1
- package/lib/swiper/index.js +5 -5
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/table/components/table-column.d.ts +27 -87
- package/lib/table/const.d.ts +8 -8
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +194 -244
- package/lib/table/index.js +126 -130
- package/lib/table/props.d.ts +33 -33
- package/lib/table/table.css +3 -4
- package/lib/table/table.d.ts +47 -47
- package/lib/table/table.less +4 -12
- package/lib/table/table.variable.css +3 -4
- package/lib/table/use-attributes.d.ts +3 -3
- package/lib/table/use-column.d.ts +9 -129
- package/lib/table/use-common.d.ts +4 -4
- package/lib/table/utils.d.ts +5 -5
- package/lib/table-column/index.d.ts +42 -172
- package/lib/table-column/index.js +18 -18
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +8 -8
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +4 -4
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/timeline/index.js +2 -2
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +3 -5
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +48 -40
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +8 -14
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/upload/index.js +25 -26
- package/lib/upload/props.d.ts +1 -1
- package/lib/upload/upload.type.d.ts +6 -6
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.js +2 -3
- package/package.json +17 -55
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/rate/star.variable.css +0 -156
package/lib/index.js
CHANGED
@@ -1,32 +1,8 @@
|
|
1
|
-
/*
|
2
|
-
* Tencent is pleased to support the open source community by making
|
3
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
4
|
-
*
|
5
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
6
|
-
*
|
7
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
8
|
-
*
|
9
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
10
|
-
*
|
11
|
-
* ---------------------------------------------------
|
12
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
13
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
14
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
15
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
16
|
-
*
|
17
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
18
|
-
* the Software.
|
19
|
-
*
|
20
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
21
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
23
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
|
-
* IN THE SOFTWARE.
|
25
|
-
*/
|
26
|
-
// import './styles';
|
27
|
-
export { default } from './preset';
|
28
1
|
export * from './components';
|
2
|
+
export * from './hooks';
|
3
|
+
export { default } from './preset';
|
4
|
+
export * from './config-provider';
|
29
5
|
export * from './directives';
|
30
6
|
export * as plugins from './plugins';
|
31
|
-
export
|
32
|
-
|
7
|
+
export const version = "2.0.1-beta.60.fix.1";
|
8
|
+
window.__bkui_vue_version__ = version;
|
package/lib/info-box/index.js
CHANGED
@@ -2,13 +2,13 @@ import "../styles/reset.css";
|
|
2
2
|
import "./info-box.less";
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__ from "lodash/isFunction";
|
6
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__ from "../button";
|
7
6
|
import "../button/button.less";
|
8
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
9
8
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
10
9
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__ from "../modal";
|
11
10
|
import "../modal/modal.less";
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__ from "lodash/isFunction";
|
12
12
|
/******/ var __webpack_modules__ = ({
|
13
13
|
|
14
14
|
/***/ 7609:
|
@@ -512,10 +512,6 @@ function _asyncToGenerator(fn) {
|
|
512
512
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
513
513
|
var regenerator = __webpack_require__(2841);
|
514
514
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
515
|
-
;// CONCATENATED MODULE: external "lodash/isFunction"
|
516
|
-
var isFunction_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
517
|
-
var isFunction_y = x => () => x
|
518
|
-
const isFunction_namespaceObject = isFunction_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__["default"] });
|
519
515
|
;// CONCATENATED MODULE: external "../button"
|
520
516
|
var button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
521
517
|
var button_y = x => () => x
|
@@ -540,6 +536,10 @@ const modal_namespaceObject = modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
|
|
540
536
|
var modal_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
541
537
|
var modal_less_y = x => () => x
|
542
538
|
const modal_less_namespaceObject = modal_less_x({ });
|
539
|
+
;// CONCATENATED MODULE: external "lodash/isFunction"
|
540
|
+
var isFunction_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
541
|
+
var isFunction_y = x => () => x
|
542
|
+
const isFunction_namespaceObject = isFunction_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__["default"] });
|
543
543
|
;// CONCATENATED MODULE: ../../packages/info-box/src/render-component.tsx
|
544
544
|
|
545
545
|
|
@@ -774,30 +774,30 @@ var genDefaultState = function genDefaultState() {
|
|
774
774
|
})]);
|
775
775
|
};
|
776
776
|
return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], {
|
777
|
+
"width": state.width,
|
777
778
|
"class": [resolveClassName('infobox'), state["class"]],
|
778
|
-
"isShow": isShow.value,
|
779
779
|
"animateType": "fadein",
|
780
|
-
"
|
780
|
+
"closeIcon": state.closeIcon,
|
781
|
+
"isShow": isShow.value,
|
781
782
|
"quickClose": false,
|
782
|
-
"
|
783
|
-
"closeIcon": state.closeIcon
|
783
|
+
"transfer": true
|
784
784
|
}, {
|
785
785
|
header: function header() {
|
786
786
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
787
787
|
"class": resolveClassName('infobox-header')
|
788
788
|
}, [renderIcon(), (0,external_vue_namespaceObject.createVNode)("div", {
|
789
|
-
"class": resolveClassName('infobox-title'),
|
790
789
|
"style": {
|
791
790
|
textAlign: state.headerAlign
|
792
|
-
}
|
791
|
+
},
|
792
|
+
"class": resolveClassName('infobox-title')
|
793
793
|
}, [renderTitle()])]);
|
794
794
|
},
|
795
795
|
"default": function _default() {
|
796
796
|
return state.content && (0,external_vue_namespaceObject.createVNode)("div", {
|
797
|
-
"class": resolveClassName('infobox-content'),
|
798
797
|
"style": {
|
799
798
|
textAlign: state.contentAlign
|
800
|
-
}
|
799
|
+
},
|
800
|
+
"class": resolveClassName('infobox-content')
|
801
801
|
}, [renderContent()]);
|
802
802
|
},
|
803
803
|
footer: function footer() {
|
@@ -1,27 +1,27 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
2
|
export interface Props {
|
3
3
|
isShow?: boolean;
|
4
|
-
width?:
|
4
|
+
width?: number | string;
|
5
5
|
extCls?: string | string[];
|
6
6
|
class?: string | string[];
|
7
|
-
infoType?: '
|
8
|
-
type?: '
|
9
|
-
title?:
|
10
|
-
subTitle?:
|
11
|
-
content?:
|
12
|
-
footer?:
|
13
|
-
headerAlign?: '
|
14
|
-
footerAlign?: '
|
15
|
-
contentAlign?: '
|
7
|
+
infoType?: 'danger' | 'loading' | 'success' | 'warning';
|
8
|
+
type?: 'danger' | 'loading' | 'success' | 'warning';
|
9
|
+
title?: (() => VNode | string) | VNode | string;
|
10
|
+
subTitle?: (() => VNode) | VNode | string;
|
11
|
+
content?: (() => VNode) | VNode | string;
|
12
|
+
footer?: (() => VNode) | VNode | string;
|
13
|
+
headerAlign?: 'center' | 'left' | 'right';
|
14
|
+
footerAlign?: 'center' | 'left' | 'right';
|
15
|
+
contentAlign?: 'center' | 'left' | 'right';
|
16
16
|
showMask?: boolean;
|
17
17
|
quickClose?: boolean;
|
18
18
|
escClose?: boolean;
|
19
19
|
closeIcon?: boolean;
|
20
|
-
confirmText?:
|
21
|
-
theme?: '
|
22
|
-
confirmButtonTheme?: '
|
23
|
-
cancelText?:
|
24
|
-
beforeClose?: (action: string) => boolean |
|
20
|
+
confirmText?: (() => VNode) | VNode | string;
|
21
|
+
theme?: 'danger' | 'primary' | 'success' | 'warning';
|
22
|
+
confirmButtonTheme?: 'danger' | 'primary' | 'success' | 'warning';
|
23
|
+
cancelText?: (() => VNode) | VNode | string;
|
24
|
+
beforeClose?: (action: string) => Promise<boolean> | boolean;
|
25
25
|
onConfirm?: () => void;
|
26
26
|
onCancel?: () => void;
|
27
27
|
onClose?: () => void;
|
package/lib/input/index.d.ts
CHANGED
@@ -99,8 +99,8 @@ declare const BkInput: {
|
|
99
99
|
} & {
|
100
100
|
default: boolean;
|
101
101
|
};
|
102
|
-
autosize: import("vue-types").VueTypeDef<
|
103
|
-
default:
|
102
|
+
autosize: import("vue-types").VueTypeDef<boolean | import("./input").InputAutoSize> & {
|
103
|
+
default: boolean | (() => import("./input").InputAutoSize);
|
104
104
|
};
|
105
105
|
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
106
106
|
default: boolean;
|
@@ -120,8 +120,8 @@ declare const BkInput: {
|
|
120
120
|
onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
|
121
121
|
onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
|
122
122
|
onClear?: () => any;
|
123
|
-
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
124
123
|
onEnter?: (_value: any, _evt: KeyboardEvent) => any;
|
124
|
+
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
125
125
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
126
126
|
"update:modelValue": (_value: any, _evt: KeyboardEvent) => any;
|
127
127
|
focus: (evt: FocusEvent) => FocusEvent;
|
@@ -237,8 +237,8 @@ declare const BkInput: {
|
|
237
237
|
} & {
|
238
238
|
default: boolean;
|
239
239
|
};
|
240
|
-
autosize: import("vue-types").VueTypeDef<
|
241
|
-
default:
|
240
|
+
autosize: import("vue-types").VueTypeDef<boolean | import("./input").InputAutoSize> & {
|
241
|
+
default: boolean | (() => import("./input").InputAutoSize);
|
242
242
|
};
|
243
243
|
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
244
244
|
default: boolean;
|
@@ -258,8 +258,8 @@ declare const BkInput: {
|
|
258
258
|
onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
|
259
259
|
onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
|
260
260
|
onClear?: () => any;
|
261
|
-
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
262
261
|
onEnter?: (_value: any, _evt: KeyboardEvent) => any;
|
262
|
+
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
263
263
|
}, {
|
264
264
|
type: string;
|
265
265
|
prefix: string;
|
@@ -286,7 +286,7 @@ declare const BkInput: {
|
|
286
286
|
withValidate: boolean;
|
287
287
|
overMaxLengthLimit: boolean;
|
288
288
|
showOverflowTooltips: boolean;
|
289
|
-
autosize:
|
289
|
+
autosize: boolean | import("./input").InputAutoSize;
|
290
290
|
stopPropagation: boolean;
|
291
291
|
}, true, {}, {}, {
|
292
292
|
P: {};
|
@@ -395,8 +395,8 @@ declare const BkInput: {
|
|
395
395
|
} & {
|
396
396
|
default: boolean;
|
397
397
|
};
|
398
|
-
autosize: import("vue-types").VueTypeDef<
|
399
|
-
default:
|
398
|
+
autosize: import("vue-types").VueTypeDef<boolean | import("./input").InputAutoSize> & {
|
399
|
+
default: boolean | (() => import("./input").InputAutoSize);
|
400
400
|
};
|
401
401
|
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
402
402
|
default: boolean;
|
@@ -416,8 +416,8 @@ declare const BkInput: {
|
|
416
416
|
onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
|
417
417
|
onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
|
418
418
|
onClear?: () => any;
|
419
|
-
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
420
419
|
onEnter?: (_value: any, _evt: KeyboardEvent) => any;
|
420
|
+
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
421
421
|
}, () => JSX.Element, {}, {}, {}, {
|
422
422
|
type: string;
|
423
423
|
prefix: string;
|
@@ -444,7 +444,7 @@ declare const BkInput: {
|
|
444
444
|
withValidate: boolean;
|
445
445
|
overMaxLengthLimit: boolean;
|
446
446
|
showOverflowTooltips: boolean;
|
447
|
-
autosize:
|
447
|
+
autosize: boolean | import("./input").InputAutoSize;
|
448
448
|
stopPropagation: boolean;
|
449
449
|
}>;
|
450
450
|
__isFragment?: never;
|
@@ -550,8 +550,8 @@ declare const BkInput: {
|
|
550
550
|
} & {
|
551
551
|
default: boolean;
|
552
552
|
};
|
553
|
-
autosize: import("vue-types").VueTypeDef<
|
554
|
-
default:
|
553
|
+
autosize: import("vue-types").VueTypeDef<boolean | import("./input").InputAutoSize> & {
|
554
|
+
default: boolean | (() => import("./input").InputAutoSize);
|
555
555
|
};
|
556
556
|
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
557
557
|
default: boolean;
|
@@ -571,8 +571,8 @@ declare const BkInput: {
|
|
571
571
|
onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
|
572
572
|
onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
|
573
573
|
onClear?: () => any;
|
574
|
-
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
575
574
|
onEnter?: (_value: any, _evt: KeyboardEvent) => any;
|
575
|
+
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
576
576
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
577
577
|
"update:modelValue": (_value: any, _evt: KeyboardEvent) => any;
|
578
578
|
focus: (evt: FocusEvent) => FocusEvent;
|
@@ -614,7 +614,7 @@ declare const BkInput: {
|
|
614
614
|
withValidate: boolean;
|
615
615
|
overMaxLengthLimit: boolean;
|
616
616
|
showOverflowTooltips: boolean;
|
617
|
-
autosize:
|
617
|
+
autosize: boolean | import("./input").InputAutoSize;
|
618
618
|
stopPropagation: boolean;
|
619
619
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
620
620
|
export default BkInput;
|
package/lib/input/index.js
CHANGED
@@ -776,20 +776,20 @@ var inputType = {
|
|
776
776
|
};
|
777
777
|
var EVENTS;
|
778
778
|
(function (EVENTS) {
|
779
|
-
EVENTS["UPDATE"] = "update:modelValue";
|
780
|
-
EVENTS["FOCUS"] = "focus";
|
781
779
|
EVENTS["BLUR"] = "blur";
|
782
780
|
EVENTS["CHANGE"] = "change";
|
783
781
|
EVENTS["CLEAR"] = "clear";
|
782
|
+
EVENTS["COMPOSITIONEND"] = "compositionend";
|
783
|
+
EVENTS["COMPOSITIONSTART"] = "compositionstart";
|
784
|
+
EVENTS["COMPOSITIONUPDATE"] = "compositionupdate";
|
785
|
+
EVENTS["ENTER"] = "enter";
|
786
|
+
EVENTS["FOCUS"] = "focus";
|
784
787
|
EVENTS["INPUT"] = "input";
|
785
|
-
EVENTS["KEYPRESS"] = "keypress";
|
786
788
|
EVENTS["KEYDOWN"] = "keydown";
|
789
|
+
EVENTS["KEYPRESS"] = "keypress";
|
787
790
|
EVENTS["KEYUP"] = "keyup";
|
788
|
-
EVENTS["ENTER"] = "enter";
|
789
791
|
EVENTS["PASTE"] = "paste";
|
790
|
-
EVENTS["
|
791
|
-
EVENTS["COMPOSITIONUPDATE"] = "compositionupdate";
|
792
|
-
EVENTS["COMPOSITIONEND"] = "compositionend";
|
792
|
+
EVENTS["UPDATE"] = "update:modelValue";
|
793
793
|
})(EVENTS || (EVENTS = {}));
|
794
794
|
function EventFunction(_value, _evt) {
|
795
795
|
return true;
|
@@ -808,7 +808,6 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
808
808
|
return true;
|
809
809
|
}), EVENTS.INPUT, EventFunction), EVENTS.KEYPRESS, EventFunction), EVENTS.KEYDOWN, EventFunction), EVENTS.KEYUP, EventFunction), EVENTS.ENTER, EventFunction), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_inputEmitEventsType, EVENTS.PASTE, PastEventFunction), EVENTS.COMPOSITIONSTART, CompositionEventFunction), EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), EVENTS.COMPOSITIONEND, CompositionEventFunction));
|
810
810
|
/* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
|
811
|
-
// eslint-disable-next-line vue/no-reserved-component-names
|
812
811
|
name: 'Input',
|
813
812
|
directives: {
|
814
813
|
bkTooltips: directives_namespaceObject.bkTooltips
|
@@ -881,8 +880,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
881
880
|
},
|
882
881
|
password: function password() {
|
883
882
|
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Unvisible, {
|
884
|
-
"
|
885
|
-
"
|
883
|
+
"class": suffixCls,
|
884
|
+
"onClick": handleVisibleChange
|
886
885
|
}, null);
|
887
886
|
}
|
888
887
|
};
|
@@ -1161,8 +1160,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1161
1160
|
return function () {
|
1162
1161
|
var _ctx$slots$prefix, _ctx$slots, _ctx$slots$prefix2, _ctx$slots$suffix, _ctx$slots2, _ctx$slots2$suffix;
|
1163
1162
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
1164
|
-
"
|
1165
|
-
"
|
1163
|
+
"style": style,
|
1164
|
+
"class": inputCls.value
|
1166
1165
|
}, [(_ctx$slots$prefix = (_ctx$slots = ctx.slots) === null || _ctx$slots === void 0 || (_ctx$slots$prefix2 = _ctx$slots.prefix) === null || _ctx$slots$prefix2 === void 0 ? void 0 : _ctx$slots$prefix2.call(_ctx$slots)) !== null && _ctx$slots$prefix !== void 0 ? _ctx$slots$prefix : props.prefix && (0,external_vue_namespaceObject.createVNode)("div", {
|
1167
1166
|
"class": getCls('prefix-area')
|
1168
1167
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -1171,17 +1170,17 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1171
1170
|
"ref": inputRef,
|
1172
1171
|
"spellcheck": false
|
1173
1172
|
}, inputAttrs, eventListener, bindProps.value, {
|
1174
|
-
"
|
1175
|
-
"
|
1173
|
+
"style": textareaCalcStyle.value,
|
1174
|
+
"rows": props.rows
|
1176
1175
|
}, innerInputValue.value), null) : (0,external_vue_namespaceObject.createVNode)("input", (0,external_vue_namespaceObject.mergeProps)({
|
1177
1176
|
"spellcheck": false
|
1178
1177
|
}, inputAttrs, {
|
1179
1178
|
"ref": inputRef,
|
1180
1179
|
"class": "".concat(inputClsPrefix.value, "--text"),
|
1181
|
-
"type": pwdVisible.value && props.type === 'password' ? 'text' : props.type,
|
1182
|
-
"step": props.step,
|
1183
1180
|
"max": props.max,
|
1184
|
-
"min": props.min
|
1181
|
+
"min": props.min,
|
1182
|
+
"step": props.step,
|
1183
|
+
"type": pwdVisible.value && props.type === 'password' ? 'text' : props.type
|
1185
1184
|
}, eventListener, bindProps.value, innerInputValue.value), null), !isTextArea.value && props.clearable && !!props.modelValue && (0,external_vue_namespaceObject.createVNode)("span", {
|
1186
1185
|
"class": clearCls.value,
|
1187
1186
|
"onClick": clear
|
package/lib/input/input.d.ts
CHANGED
@@ -103,8 +103,8 @@ export declare const inputType: {
|
|
103
103
|
} & {
|
104
104
|
default: boolean;
|
105
105
|
};
|
106
|
-
autosize: import("vue-types").VueTypeDef<
|
107
|
-
default:
|
106
|
+
autosize: import("vue-types").VueTypeDef<boolean | InputAutoSize> & {
|
107
|
+
default: boolean | (() => InputAutoSize);
|
108
108
|
};
|
109
109
|
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
110
110
|
default: boolean;
|
@@ -113,20 +113,20 @@ export declare const inputType: {
|
|
113
113
|
};
|
114
114
|
};
|
115
115
|
export declare const enum EVENTS {
|
116
|
-
UPDATE = "update:modelValue",
|
117
|
-
FOCUS = "focus",
|
118
116
|
BLUR = "blur",
|
119
117
|
CHANGE = "change",
|
120
118
|
CLEAR = "clear",
|
119
|
+
COMPOSITIONEND = "compositionend",
|
120
|
+
COMPOSITIONSTART = "compositionstart",
|
121
|
+
COMPOSITIONUPDATE = "compositionupdate",
|
122
|
+
ENTER = "enter",
|
123
|
+
FOCUS = "focus",
|
121
124
|
INPUT = "input",
|
122
|
-
KEYPRESS = "keypress",
|
123
125
|
KEYDOWN = "keydown",
|
126
|
+
KEYPRESS = "keypress",
|
124
127
|
KEYUP = "keyup",
|
125
|
-
ENTER = "enter",
|
126
128
|
PASTE = "paste",
|
127
|
-
|
128
|
-
COMPOSITIONUPDATE = "compositionupdate",
|
129
|
-
COMPOSITIONEND = "compositionend"
|
129
|
+
UPDATE = "update:modelValue"
|
130
130
|
}
|
131
131
|
declare function EventFunction(_value: any, _evt: KeyboardEvent): any;
|
132
132
|
declare function PastEventFunction(_value: any, _e: ClipboardEvent): boolean;
|
@@ -248,8 +248,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
248
248
|
} & {
|
249
249
|
default: boolean;
|
250
250
|
};
|
251
|
-
autosize: import("vue-types").VueTypeDef<
|
252
|
-
default:
|
251
|
+
autosize: import("vue-types").VueTypeDef<boolean | InputAutoSize> & {
|
252
|
+
default: boolean | (() => InputAutoSize);
|
253
253
|
};
|
254
254
|
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
255
255
|
default: boolean;
|
@@ -371,8 +371,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
371
371
|
} & {
|
372
372
|
default: boolean;
|
373
373
|
};
|
374
|
-
autosize: import("vue-types").VueTypeDef<
|
375
|
-
default:
|
374
|
+
autosize: import("vue-types").VueTypeDef<boolean | InputAutoSize> & {
|
375
|
+
default: boolean | (() => InputAutoSize);
|
376
376
|
};
|
377
377
|
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
378
378
|
default: boolean;
|
@@ -392,8 +392,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
392
392
|
onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
|
393
393
|
onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
|
394
394
|
onClear?: () => any;
|
395
|
-
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
396
395
|
onEnter?: (_value: any, _evt: KeyboardEvent) => any;
|
396
|
+
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
397
397
|
}, {
|
398
398
|
type: string;
|
399
399
|
prefix: string;
|
@@ -420,7 +420,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
420
420
|
withValidate: boolean;
|
421
421
|
overMaxLengthLimit: boolean;
|
422
422
|
showOverflowTooltips: boolean;
|
423
|
-
autosize:
|
423
|
+
autosize: boolean | InputAutoSize;
|
424
424
|
stopPropagation: boolean;
|
425
425
|
}, {}>;
|
426
426
|
export default _default;
|
package/lib/link/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
declare const BkLink: {
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
3
|
-
theme: import("vue-types").VueTypeDef<"default" | "success" | "
|
4
|
-
default: "default" | "success" | "
|
3
|
+
theme: import("vue-types").VueTypeDef<"default" | "success" | "danger" | "warning" | "primary"> & {
|
4
|
+
default: "default" | "success" | "danger" | "warning" | "primary";
|
5
5
|
};
|
6
6
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
7
7
|
default: string;
|
@@ -29,8 +29,8 @@ declare const BkLink: {
|
|
29
29
|
handleClick: (event: Event) => boolean;
|
30
30
|
resolveClassName: (cls: string) => string;
|
31
31
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
32
|
-
theme: import("vue-types").VueTypeDef<"default" | "success" | "
|
33
|
-
default: "default" | "success" | "
|
32
|
+
theme: import("vue-types").VueTypeDef<"default" | "success" | "danger" | "warning" | "primary"> & {
|
33
|
+
default: "default" | "success" | "danger" | "warning" | "primary";
|
34
34
|
};
|
35
35
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
36
36
|
default: string;
|
@@ -57,7 +57,7 @@ declare const BkLink: {
|
|
57
57
|
}, {
|
58
58
|
disabled: boolean;
|
59
59
|
target: string;
|
60
|
-
theme: "default" | "success" | "
|
60
|
+
theme: "default" | "success" | "danger" | "warning" | "primary";
|
61
61
|
underline: boolean;
|
62
62
|
href: string;
|
63
63
|
}, true, {}, {}, {
|
@@ -68,8 +68,8 @@ declare const BkLink: {
|
|
68
68
|
M: {};
|
69
69
|
Defaults: {};
|
70
70
|
}, Readonly<import("vue").ExtractPropTypes<{
|
71
|
-
theme: import("vue-types").VueTypeDef<"default" | "success" | "
|
72
|
-
default: "default" | "success" | "
|
71
|
+
theme: import("vue-types").VueTypeDef<"default" | "success" | "danger" | "warning" | "primary"> & {
|
72
|
+
default: "default" | "success" | "danger" | "warning" | "primary";
|
73
73
|
};
|
74
74
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
75
75
|
default: string;
|
@@ -99,7 +99,7 @@ declare const BkLink: {
|
|
99
99
|
}, {}, {}, {}, {
|
100
100
|
disabled: boolean;
|
101
101
|
target: string;
|
102
|
-
theme: "default" | "success" | "
|
102
|
+
theme: "default" | "success" | "danger" | "warning" | "primary";
|
103
103
|
underline: boolean;
|
104
104
|
href: string;
|
105
105
|
}>;
|
@@ -107,8 +107,8 @@ declare const BkLink: {
|
|
107
107
|
__isTeleport?: never;
|
108
108
|
__isSuspense?: never;
|
109
109
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
110
|
-
theme: import("vue-types").VueTypeDef<"default" | "success" | "
|
111
|
-
default: "default" | "success" | "
|
110
|
+
theme: import("vue-types").VueTypeDef<"default" | "success" | "danger" | "warning" | "primary"> & {
|
111
|
+
default: "default" | "success" | "danger" | "warning" | "primary";
|
112
112
|
};
|
113
113
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
114
114
|
default: string;
|
@@ -138,7 +138,7 @@ declare const BkLink: {
|
|
138
138
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", {
|
139
139
|
disabled: boolean;
|
140
140
|
target: string;
|
141
|
-
theme: "default" | "success" | "
|
141
|
+
theme: "default" | "success" | "danger" | "warning" | "primary";
|
142
142
|
underline: boolean;
|
143
143
|
href: string;
|
144
144
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
package/lib/link/index.js
CHANGED
@@ -83,10 +83,10 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
83
83
|
var LinkThemeEnum;
|
84
84
|
(function (LinkThemeEnum) {
|
85
85
|
LinkThemeEnum["DANGER"] = "danger";
|
86
|
-
LinkThemeEnum["
|
86
|
+
LinkThemeEnum["DEFAULT"] = "default";
|
87
87
|
LinkThemeEnum["PRIMARY"] = "primary";
|
88
|
+
LinkThemeEnum["SUCCESS"] = "success";
|
88
89
|
LinkThemeEnum["WARNING"] = "warning";
|
89
|
-
LinkThemeEnum["DEFAULT"] = "default";
|
90
90
|
})(LinkThemeEnum || (LinkThemeEnum = {}));
|
91
91
|
/* harmony default export */ const src_link = ((0,external_vue_namespaceObject.defineComponent)({
|
92
92
|
name: 'Link',
|
@@ -121,9 +121,9 @@ var LinkThemeEnum;
|
|
121
121
|
'has-underline': this.underline
|
122
122
|
}, "".concat(this.theme, " ").concat(this.resolveClassName('link')));
|
123
123
|
return (0,external_vue_namespaceObject.createVNode)("a", {
|
124
|
+
"class": linkClass,
|
124
125
|
"href": this.href,
|
125
126
|
"target": this.target,
|
126
|
-
"class": linkClass,
|
127
127
|
"onClick": this.handleClick
|
128
128
|
}, [(0,external_vue_namespaceObject.createVNode)("span", null, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)])]);
|
129
129
|
}
|
package/lib/link/link.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
-
theme: import("vue-types").VueTypeDef<"default" | "success" | "
|
3
|
-
default: "default" | "success" | "
|
2
|
+
theme: import("vue-types").VueTypeDef<"default" | "success" | "danger" | "warning" | "primary"> & {
|
3
|
+
default: "default" | "success" | "danger" | "warning" | "primary";
|
4
4
|
};
|
5
5
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
6
6
|
default: string;
|
@@ -26,8 +26,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
26
26
|
handleClick: (event: Event) => boolean;
|
27
27
|
resolveClassName: (cls: string) => string;
|
28
28
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
29
|
-
theme: import("vue-types").VueTypeDef<"default" | "success" | "
|
30
|
-
default: "default" | "success" | "
|
29
|
+
theme: import("vue-types").VueTypeDef<"default" | "success" | "danger" | "warning" | "primary"> & {
|
30
|
+
default: "default" | "success" | "danger" | "warning" | "primary";
|
31
31
|
};
|
32
32
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
33
33
|
default: string;
|
@@ -54,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
54
54
|
}, {
|
55
55
|
disabled: boolean;
|
56
56
|
target: string;
|
57
|
-
theme: "default" | "success" | "
|
57
|
+
theme: "default" | "success" | "danger" | "warning" | "primary";
|
58
58
|
underline: boolean;
|
59
59
|
href: string;
|
60
60
|
}, {}>;
|
package/lib/loading/index.d.ts
CHANGED
@@ -15,7 +15,7 @@ declare const BkLoading: {
|
|
15
15
|
default: boolean;
|
16
16
|
};
|
17
17
|
theme: {
|
18
|
-
type: import("vue").PropType<"default" | "white" | "success" | "
|
18
|
+
type: import("vue").PropType<"default" | "white" | "success" | "danger" | "warning" | "primary">;
|
19
19
|
};
|
20
20
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
21
21
|
default: string;
|
@@ -65,7 +65,7 @@ declare const BkLoading: {
|
|
65
65
|
default: boolean;
|
66
66
|
};
|
67
67
|
theme: {
|
68
|
-
type: import("vue").PropType<"default" | "white" | "success" | "
|
68
|
+
type: import("vue").PropType<"default" | "white" | "success" | "danger" | "warning" | "primary">;
|
69
69
|
};
|
70
70
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
71
71
|
default: string;
|
@@ -132,7 +132,7 @@ declare const BkLoading: {
|
|
132
132
|
default: boolean;
|
133
133
|
};
|
134
134
|
theme: {
|
135
|
-
type: import("vue").PropType<"default" | "white" | "success" | "
|
135
|
+
type: import("vue").PropType<"default" | "white" | "success" | "danger" | "warning" | "primary">;
|
136
136
|
};
|
137
137
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
138
138
|
default: string;
|
@@ -196,7 +196,7 @@ declare const BkLoading: {
|
|
196
196
|
default: boolean;
|
197
197
|
};
|
198
198
|
theme: {
|
199
|
-
type: import("vue").PropType<"default" | "white" | "success" | "
|
199
|
+
type: import("vue").PropType<"default" | "white" | "success" | "danger" | "warning" | "primary">;
|
200
200
|
};
|
201
201
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
202
202
|
default: string;
|
package/lib/loading/index.js
CHANGED
@@ -133,10 +133,10 @@ var BkLoadingMode;
|
|
133
133
|
})(BkLoadingMode || (BkLoadingMode = {}));
|
134
134
|
var BkLoadingSize;
|
135
135
|
(function (BkLoadingSize) {
|
136
|
-
BkLoadingSize["
|
136
|
+
BkLoadingSize["Large"] = "large";
|
137
137
|
BkLoadingSize["Mini"] = "mini";
|
138
|
+
BkLoadingSize["Normal"] = "";
|
138
139
|
BkLoadingSize["Small"] = "small";
|
139
|
-
BkLoadingSize["Large"] = "large";
|
140
140
|
})(BkLoadingSize || (BkLoadingSize = {}));
|
141
141
|
var defaultIndicator;
|
142
142
|
function setDefaultIndicator(Indicator) {
|
@@ -222,11 +222,11 @@ var loadingTypes = {
|
|
222
222
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
223
223
|
"class": loadingWrapperCls.value
|
224
224
|
}, [(_ctx$slots$default = (_ctx$slots = ctx.slots)["default"]) === null || _ctx$slots$default === void 0 ? void 0 : _ctx$slots$default.call(_ctx$slots), props.loading && [(ctx.slots["default"] || props.isDirective) && (0,external_vue_namespaceObject.createVNode)("div", {
|
225
|
-
"
|
226
|
-
"
|
225
|
+
"style": maskStyle.value,
|
226
|
+
"class": "".concat(resolveClassName('loading-mask'))
|
227
227
|
}, null), (0,external_vue_namespaceObject.createVNode)("div", {
|
228
|
-
"
|
229
|
-
"
|
228
|
+
"style": zIndexStyle.value,
|
229
|
+
"class": containerCls.value
|
230
230
|
}, [indicator.value, hasTitle.value && (0,external_vue_namespaceObject.createVNode)("div", {
|
231
231
|
"class": "".concat(resolveClassName('loading-title'))
|
232
232
|
}, [props.title])])]]);
|