bkui-vue 2.0.1-beta.1 → 2.0.1-beta.10
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 +31973 -31924
- 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 -6
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +3 -3
- package/lib/cascader/index.js +35 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/index.js +3 -3
- 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/color-picker.css +3 -3
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +3 -3
- package/lib/color-picker/index.js +45 -45
- 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 -6
- 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 +3 -3
- package/lib/date-picker/index.js +291 -213
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +2 -64
- 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 +5 -1
- package/lib/dialog/dialog.css +0 -4
- package/lib/dialog/dialog.d.ts +18 -18
- package/lib/dialog/dialog.variable.css +0 -4
- package/lib/dialog/index.d.ts +40 -40
- package/lib/dialog/index.js +22 -22
- package/lib/dialog/props.d.ts +7 -7
- 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 -2
- 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 -14
- 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 -20
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/info-box/index.js +14 -14
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +16 -16
- 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 +3 -3
- package/lib/modal/index.js +7 -7
- package/lib/modal/modal.css +0 -4
- package/lib/modal/modal.d.ts +1 -1
- package/lib/modal/modal.less +0 -5
- package/lib/modal/modal.variable.css +0 -4
- 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 -19
- package/lib/pop-confirm/index.js +9 -9
- package/lib/pop-confirm/props.d.ts +2 -2
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +18 -19
- 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/process/index.js +3 -3
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.js +18 -23
- 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 +11 -11
- package/lib/resize-layout/index.js +7 -8
- package/lib/resize-layout/resize-layout.d.ts +5 -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/index.d.ts +61 -61
- package/lib/select/index.js +69 -73
- package/lib/select/option.d.ts +1 -1
- package/lib/select/select.css +1 -2
- package/lib/select/select.d.ts +24 -24
- package/lib/select/select.less +1 -2
- package/lib/select/select.variable.css +1 -2
- 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 +3 -3
- package/lib/sideslider/index.js +11 -11
- package/lib/sideslider/sideslider.d.ts +1 -1
- 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 +164 -142
- package/lib/table/plugins/use-shift-key.d.ts +2 -0
- package/lib/table/props.d.ts +34 -34
- package/lib/table/table.d.ts +47 -47
- 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 +19 -19
- 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 +19 -19
- package/lib/transfer/transfer.css +9 -9
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +9 -9
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +48 -48
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +6 -6
- package/lib/tree/tree.less +1 -1
- 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/tree/util.d.ts +1 -1
- package/lib/upload/index.js +41 -35
- package/lib/upload/props.d.ts +1 -1
- package/lib/upload/upload.type.d.ts +7 -7
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/package.json +13 -49
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/rate/star.variable.css +0 -156
package/lib/menu/utils.d.ts
CHANGED
@@ -8,7 +8,7 @@ export interface IMenuProvider {
|
|
8
8
|
readonly activeKey: Ref<string>;
|
9
9
|
readonly openedKeys: Ref<string[]>;
|
10
10
|
readonly mode: MenuMode;
|
11
|
-
readonly collapse: Ref<
|
11
|
+
readonly collapse: Ref<boolean>;
|
12
12
|
readonly menuStore: Ref<Record<string, IMenuInfo>>;
|
13
13
|
readonly registerMenuInfo: (key: string, info: IMenuInfo) => void;
|
14
14
|
readonly unregisterMenuInfo: (key: string) => void;
|
@@ -28,8 +28,8 @@ export declare const useMenuPathInject: () => IMenuPathProvider | {
|
|
28
28
|
parentInfo: any;
|
29
29
|
parentKeys: Ref<any[]>;
|
30
30
|
};
|
31
|
-
export declare function removeClass(el:
|
32
|
-
export declare function addClass(el:
|
31
|
+
export declare function removeClass(el: Element | HTMLElement, cls: string): void;
|
32
|
+
export declare function addClass(el: Element | HTMLElement, cls: string): void;
|
33
33
|
export declare const collapseMotion: () => {
|
34
34
|
css: boolean;
|
35
35
|
onBeforeEnter: (el: any) => void;
|
package/lib/message/index.js
CHANGED
@@ -1178,12 +1178,6 @@ function _nonIterableSpread() {
|
|
1178
1178
|
function _toConsumableArray(arr) {
|
1179
1179
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1180
1180
|
}
|
1181
|
-
// EXTERNAL MODULE: ../../node_modules/clipboard/dist/clipboard.js
|
1182
|
-
var clipboard = __webpack_require__(7647);
|
1183
|
-
var clipboard_default = /*#__PURE__*/__webpack_require__.n(clipboard);
|
1184
|
-
// EXTERNAL MODULE: ../../node_modules/json-formatter-js/dist/json-formatter.umd.js
|
1185
|
-
var json_formatter_umd = __webpack_require__(4346);
|
1186
|
-
var json_formatter_umd_default = /*#__PURE__*/__webpack_require__.n(json_formatter_umd);
|
1187
1181
|
;// CONCATENATED MODULE: external "vue-types"
|
1188
1182
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1189
1183
|
var external_vue_types_y = x => () => x
|
@@ -1196,6 +1190,12 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
|
|
1196
1190
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1197
1191
|
var icon_y = x => () => x
|
1198
1192
|
const icon_namespaceObject = icon_x({ ["AngleDoubleDownLine"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleDoubleDownLine, ["AngleDoubleUpLine"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleDoubleUpLine, ["Assistant"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Assistant, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["CopyShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.CopyShape, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["FixLine"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.FixLine, ["FixShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.FixShape, ["Info"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Info, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Warn });
|
1193
|
+
// EXTERNAL MODULE: ../../node_modules/clipboard/dist/clipboard.js
|
1194
|
+
var clipboard = __webpack_require__(7647);
|
1195
|
+
var clipboard_default = /*#__PURE__*/__webpack_require__.n(clipboard);
|
1196
|
+
// EXTERNAL MODULE: ../../node_modules/json-formatter-js/dist/json-formatter.umd.js
|
1197
|
+
var json_formatter_umd = __webpack_require__(4346);
|
1198
|
+
var json_formatter_umd_default = /*#__PURE__*/__webpack_require__.n(json_formatter_umd);
|
1199
1199
|
;// CONCATENATED MODULE: ../../packages/message/src/messageConstructor.tsx
|
1200
1200
|
|
1201
1201
|
|
@@ -1237,15 +1237,15 @@ function messageConstructor_objectSpread(e) { for (var r = 1; r < arguments.leng
|
|
1237
1237
|
|
1238
1238
|
var MessageThemeEnum;
|
1239
1239
|
(function (MessageThemeEnum) {
|
1240
|
+
MessageThemeEnum["ERROR"] = "error";
|
1240
1241
|
MessageThemeEnum["PRIMARY"] = "primary";
|
1241
|
-
MessageThemeEnum["WARNING"] = "warning";
|
1242
1242
|
MessageThemeEnum["SUCCESS"] = "success";
|
1243
|
-
MessageThemeEnum["
|
1243
|
+
MessageThemeEnum["WARNING"] = "warning";
|
1244
1244
|
})(MessageThemeEnum || (MessageThemeEnum = {}));
|
1245
1245
|
var MessageContentType;
|
1246
1246
|
(function (MessageContentType) {
|
1247
|
-
MessageContentType["KEY_VALUE"] = "key-value";
|
1248
1247
|
MessageContentType["JSON"] = "json";
|
1248
|
+
MessageContentType["KEY_VALUE"] = "key-value";
|
1249
1249
|
})(MessageContentType || (MessageContentType = {}));
|
1250
1250
|
var IMessageActionType;
|
1251
1251
|
(function (IMessageActionType) {
|
@@ -1253,6 +1253,10 @@ var IMessageActionType;
|
|
1253
1253
|
* 联系助手:默认直接拉起企业微信与助手的聊天,需要在 message.assistant 配置对应的企微群ID
|
1254
1254
|
*/
|
1255
1255
|
IMessageActionType["ASSISTANT"] = "assistant";
|
1256
|
+
/**
|
1257
|
+
* 关闭:点击关闭,Message 消失
|
1258
|
+
*/
|
1259
|
+
IMessageActionType["CLOSE"] = "close";
|
1256
1260
|
/**
|
1257
1261
|
* 展开详情:展开面向开发的详情
|
1258
1262
|
*/
|
@@ -1261,10 +1265,6 @@ var IMessageActionType;
|
|
1261
1265
|
* 图钉按钮:点击后,Message 不会自动消失
|
1262
1266
|
*/
|
1263
1267
|
IMessageActionType["FIX"] = "fix";
|
1264
|
-
/**
|
1265
|
-
* 关闭:点击关闭,Message 消失
|
1266
|
-
*/
|
1267
|
-
IMessageActionType["CLOSE"] = "close";
|
1268
1268
|
})(IMessageActionType || (IMessageActionType = {}));
|
1269
1269
|
var messageProps = {
|
1270
1270
|
id: shared_namespaceObject.PropTypes.string.def(''),
|
@@ -1722,11 +1722,11 @@ var messageProps = {
|
|
1722
1722
|
}, [_this2.renderMessageActions()])]), _this2.toolOperation.isDetailShow && (0,external_vue_namespaceObject.createVNode)("div", {
|
1723
1723
|
"class": "message-detail"
|
1724
1724
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
1725
|
-
"
|
1726
|
-
"
|
1725
|
+
"ref": "refCopyMsgDiv",
|
1726
|
+
"class": "message-copy"
|
1727
1727
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.CopyShape, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
1728
|
-
"
|
1729
|
-
"
|
1728
|
+
"ref": "refCopyStatus",
|
1729
|
+
"class": "copy-status"
|
1730
1730
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
1731
1731
|
"class": "inner"
|
1732
1732
|
}, [renderIcon(_this2.copyStatus), _this2.copyStatus === 'success' ? _this2.t.copySuccess : _this2.t.copyFailed])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -1748,8 +1748,8 @@ var messageProps = {
|
|
1748
1748
|
}, {
|
1749
1749
|
"default": function _default() {
|
1750
1750
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
1751
|
-
"class": _this2.classNames,
|
1752
1751
|
"style": _this2.styles,
|
1752
|
+
"class": _this2.classNames,
|
1753
1753
|
"onMouseenter": _this2.handleMouseenter,
|
1754
1754
|
"onMouseleave": _this2.handleMouseleave
|
1755
1755
|
}, [renderMessage()]), [[external_vue_namespaceObject.vShow, _this2.visible]])];
|
@@ -1,13 +1,17 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
2
|
declare enum MessageContentType {
|
3
|
-
|
4
|
-
|
3
|
+
JSON = "json",
|
4
|
+
KEY_VALUE = "key-value"
|
5
5
|
}
|
6
6
|
declare enum IMessageActionType {
|
7
7
|
/**
|
8
8
|
* 联系助手:默认直接拉起企业微信与助手的聊天,需要在 message.assistant 配置对应的企微群ID
|
9
9
|
*/
|
10
10
|
ASSISTANT = "assistant",
|
11
|
+
/**
|
12
|
+
* 关闭:点击关闭,Message 消失
|
13
|
+
*/
|
14
|
+
CLOSE = "close",
|
11
15
|
/**
|
12
16
|
* 展开详情:展开面向开发的详情
|
13
17
|
*/
|
@@ -15,11 +19,7 @@ declare enum IMessageActionType {
|
|
15
19
|
/**
|
16
20
|
* 图钉按钮:点击后,Message 不会自动消失
|
17
21
|
*/
|
18
|
-
FIX = "fix"
|
19
|
-
/**
|
20
|
-
* 关闭:点击关闭,Message 消失
|
21
|
-
*/
|
22
|
-
CLOSE = "close"
|
22
|
+
FIX = "fix"
|
23
23
|
}
|
24
24
|
type IMessageAction = {
|
25
25
|
/**
|
@@ -34,13 +34,13 @@ type IMessageAction = {
|
|
34
34
|
/**
|
35
35
|
* 需要展示的ICON,如果不设置显示默认
|
36
36
|
*/
|
37
|
-
icon?: () => VNode |
|
37
|
+
icon?: () => VNode | VNode | string;
|
38
38
|
/**
|
39
39
|
* 鼠标点击事件,如果返回false则阻止默认点击行为
|
40
40
|
* 如果返回其他,默认行为不会阻止
|
41
41
|
* @returns
|
42
42
|
*/
|
43
|
-
onClick?: (...args: any[]) =>
|
43
|
+
onClick?: (...args: any[]) => boolean | void;
|
44
44
|
/**
|
45
45
|
* 自定义渲染 & 事件处理
|
46
46
|
* 如果设置了render则整个渲染都需要自己处理,默认渲染将会被阻止
|
@@ -67,7 +67,7 @@ export type IMessage = {
|
|
67
67
|
/**
|
68
68
|
* 错误码
|
69
69
|
*/
|
70
|
-
code:
|
70
|
+
code: number | string;
|
71
71
|
/**
|
72
72
|
* 错误概述
|
73
73
|
*/
|
@@ -79,7 +79,7 @@ export type IMessage = {
|
|
79
79
|
/**
|
80
80
|
* 详情
|
81
81
|
*/
|
82
|
-
details:
|
82
|
+
details: Array<Record<string, any> | boolean | number | string> | Record<string, any> | string;
|
83
83
|
/**
|
84
84
|
* 助手
|
85
85
|
*/
|
package/lib/modal/index.d.ts
CHANGED
@@ -120,8 +120,8 @@ declare const BkModal: {
|
|
120
120
|
"onQuick-close"?: (...args: any[]) => any;
|
121
121
|
}, {
|
122
122
|
extCls: string;
|
123
|
-
top: string;
|
124
123
|
left: string;
|
124
|
+
top: string;
|
125
125
|
isShow: boolean;
|
126
126
|
transfer: string | boolean | HTMLElement;
|
127
127
|
renderDirective: "show" | "if";
|
@@ -199,8 +199,8 @@ declare const BkModal: {
|
|
199
199
|
"onQuick-close"?: (...args: any[]) => any;
|
200
200
|
}, () => JSX.Element, {}, {}, {}, {
|
201
201
|
extCls: string;
|
202
|
-
top: string;
|
203
202
|
left: string;
|
203
|
+
top: string;
|
204
204
|
isShow: boolean;
|
205
205
|
transfer: string | boolean | HTMLElement;
|
206
206
|
renderDirective: "show" | "if";
|
@@ -275,8 +275,8 @@ declare const BkModal: {
|
|
275
275
|
"onQuick-close"?: (...args: any[]) => any;
|
276
276
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quick-close")[], "close" | "hidden" | "shown" | "quick-close", {
|
277
277
|
extCls: string;
|
278
|
-
top: string;
|
279
278
|
left: string;
|
279
|
+
top: string;
|
280
280
|
isShow: boolean;
|
281
281
|
transfer: string | boolean | HTMLElement;
|
282
282
|
renderDirective: "show" | "if";
|
package/lib/modal/index.js
CHANGED
@@ -437,8 +437,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
437
437
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
438
438
|
"class": resolveClassName('modal-header')
|
439
439
|
}, [(_slots$header = slots.header) === null || _slots$header === void 0 ? void 0 : _slots$header.call(slots)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
440
|
-
"
|
441
|
-
"
|
440
|
+
"style": contentStyles.value,
|
441
|
+
"class": resolveClassName('modal-content')
|
442
442
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
443
443
|
"style": "position: relative; display: inline-block; width: 100%;"
|
444
444
|
}, [(_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots), (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -452,8 +452,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
452
452
|
}, [(_slots$close = slots.close) === null || _slots$close === void 0 ? void 0 : _slots$close.call(slots)])]);
|
453
453
|
};
|
454
454
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
|
455
|
-
"
|
456
|
-
"
|
455
|
+
"disabled": !props.transfer,
|
456
|
+
"to": "body"
|
457
457
|
}, {
|
458
458
|
"default": function _default() {
|
459
459
|
return [(0,external_vue_namespaceObject.createVNode)("div", (0,external_vue_namespaceObject.mergeProps)({
|
@@ -466,10 +466,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
466
466
|
"default": function _default() {
|
467
467
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
468
468
|
"ref": maskRef,
|
469
|
-
"class": _defineProperty({}, resolveClassName('modal-mask'), true),
|
470
469
|
"style": {
|
471
470
|
zIndex: zIndex.value
|
472
471
|
},
|
472
|
+
"class": _defineProperty({}, resolveClassName('modal-mask'), true),
|
473
473
|
"onClick": handleClickOutSide
|
474
474
|
}, null), [[external_vue_namespaceObject.vShow, localShow.value]])];
|
475
475
|
}
|
@@ -478,8 +478,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
478
478
|
}, {
|
479
479
|
"default": function _default() {
|
480
480
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
481
|
-
"
|
482
|
-
"
|
481
|
+
"style": modalWrapperStyles.value,
|
482
|
+
"class": resolveClassName('modal-wrapper')
|
483
483
|
}, [renderContent()]), [[external_vue_namespaceObject.vShow, localShow.value]])];
|
484
484
|
}
|
485
485
|
})])];
|
package/lib/modal/modal.css
CHANGED
package/lib/modal/modal.d.ts
CHANGED
@@ -116,8 +116,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
116
116
|
"onQuick-close"?: (...args: any[]) => any;
|
117
117
|
}, {
|
118
118
|
extCls: string;
|
119
|
-
top: string;
|
120
119
|
left: string;
|
120
|
+
top: string;
|
121
121
|
isShow: boolean;
|
122
122
|
transfer: string | boolean | HTMLElement;
|
123
123
|
renderDirective: "show" | "if";
|
package/lib/modal/modal.less
CHANGED
package/lib/navigation/index.js
CHANGED
@@ -99,10 +99,10 @@ var TitleProps = {
|
|
99
99
|
return function () {
|
100
100
|
var _slots$default, _slots$sideIcon;
|
101
101
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
102
|
-
"class": "".concat(resolveClassName('navigation-title')),
|
103
102
|
"style": {
|
104
103
|
borderBottomWidth: props.navigationType === 'left-right' ? '0' : '1px'
|
105
|
-
}
|
104
|
+
},
|
105
|
+
"class": "".concat(resolveClassName('navigation-title'))
|
106
106
|
}, [((_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)) || [(0,external_vue_namespaceObject.createVNode)("span", {
|
107
107
|
"class": "title-icon"
|
108
108
|
}, [((_slots$sideIcon = slots['side-icon']) === null || _slots$sideIcon === void 0 ? void 0 : _slots$sideIcon.call(slots)) || (0,external_vue_namespaceObject.createVNode)("i", {
|
@@ -259,10 +259,10 @@ var NavigationProps = {
|
|
259
259
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
260
260
|
"class": "".concat(this.resolveClassName('navigation'))
|
261
261
|
}, [this.navigationType === 'top-bottom' && (0,external_vue_namespaceObject.createVNode)("div", {
|
262
|
-
"class": "".concat(this.resolveClassName('navigation-header')),
|
263
262
|
"style": {
|
264
263
|
flexBasis: "".concat(this.headHeight, "px")
|
265
|
-
}
|
264
|
+
},
|
265
|
+
"class": "".concat(this.resolveClassName('navigation-header'))
|
266
266
|
}, [(0,external_vue_namespaceObject.createVNode)(navigation_title, {
|
267
267
|
"sideTitle": this.sideTitle
|
268
268
|
}, {
|
@@ -273,18 +273,18 @@ var NavigationProps = {
|
|
273
273
|
}, [(_this$$slots$header = (_this$$slots = this.$slots).header) === null || _this$$slots$header === void 0 ? void 0 : _this$$slots$header.call(_this$$slots)])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
274
274
|
"class": "".concat(this.resolveClassName('navigation-wrapper'))
|
275
275
|
}, [this.needMenu && (0,external_vue_namespaceObject.createVNode)("div", {
|
276
|
-
"class": "navigation-nav",
|
277
276
|
"style": {
|
278
277
|
width: !this.nav.click ? "".concat(this.navWidth, "px") : "".concat(this.hoverWidth, "px")
|
279
|
-
}
|
278
|
+
},
|
279
|
+
"class": "navigation-nav"
|
280
280
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
281
|
-
"class": "nav-slider",
|
282
|
-
"onMouseenter": this.handleMouseOver,
|
283
|
-
"onMouseleave": this.handleMouseLeave,
|
284
281
|
"style": {
|
285
282
|
width: !this.nav.hover ? "".concat(this.navWidth, "px") : "".concat(this.hoverWidth, "px"),
|
286
283
|
borderRight: this.navigationType !== 'top-bottom' ? 'none' : '1px solid #DCDEE5'
|
287
|
-
}
|
284
|
+
},
|
285
|
+
"class": "nav-slider",
|
286
|
+
"onMouseenter": this.handleMouseOver,
|
287
|
+
"onMouseleave": this.handleMouseLeave
|
288
288
|
}, [this.navigationType !== 'top-bottom' && this.showSideNavTitle && (0,external_vue_namespaceObject.createVNode)(navigation_title, {
|
289
289
|
"style": {
|
290
290
|
flexBasis: "".concat(this.headHeight, "px")
|
@@ -294,10 +294,10 @@ var NavigationProps = {
|
|
294
294
|
"default": this.$slots['side-header'],
|
295
295
|
'side-icon': !this.$slots['side-header'] ? this.$slots['side-icon'] : undefined
|
296
296
|
}), (0,external_vue_namespaceObject.createVNode)("div", {
|
297
|
-
"class": "nav-slider-list",
|
298
297
|
"style": {
|
299
298
|
height: "calc(100vh - ".concat(+this.headHeight + 56, "px)")
|
300
|
-
}
|
299
|
+
},
|
300
|
+
"class": "nav-slider-list"
|
301
301
|
}, [(_this$$slots$menu = (_this$$slots2 = this.$slots).menu) === null || _this$$slots$menu === void 0 ? void 0 : _this$$slots$menu.call(_this$$slots2)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
302
302
|
"class": "nav-slider-footer"
|
303
303
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -307,29 +307,29 @@ var NavigationProps = {
|
|
307
307
|
},
|
308
308
|
"onClick": this.handleClick
|
309
309
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.CollapseLeft, {
|
310
|
-
"class": "footer-icon-svg",
|
311
310
|
"style": {
|
312
311
|
transform: this.nav.click ? 'rotate(180deg)' : 'rotate(0deg)'
|
313
|
-
}
|
312
|
+
},
|
313
|
+
"class": "footer-icon-svg"
|
314
314
|
}, null)])]), (_this$$slots$sideFoo = (_this$$slots3 = this.$slots)['side-footer']) === null || _this$$slots$sideFoo === void 0 ? void 0 : _this$$slots$sideFoo.call(_this$$slots3)])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
315
|
-
"class": "navigation-container",
|
316
315
|
"style": {
|
317
316
|
maxWidth: this.needMenu ? 'calc(100vw - 60px)' : '100vw'
|
318
|
-
}
|
317
|
+
},
|
318
|
+
"class": "navigation-container"
|
319
319
|
}, [this.navigationType !== 'top-bottom' && (0,external_vue_namespaceObject.createVNode)("div", {
|
320
|
-
"class": "container-header",
|
321
320
|
"style": {
|
322
321
|
flexBasis: "".concat(this.headHeight, "px")
|
323
|
-
}
|
322
|
+
},
|
323
|
+
"class": "container-header"
|
324
324
|
}, [((_this$$slots$header2 = (_this$$slots4 = this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots4)) || [(0,external_vue_namespaceObject.createVNode)("div", {
|
325
325
|
"class": "container-header-title"
|
326
326
|
}, [this.headerTitle]), (0,external_vue_namespaceObject.createVNode)("div", {
|
327
327
|
"class": "container-header-sets"
|
328
328
|
}, [(_this$$slots$headerS = (_this$$slots5 = this.$slots)['header-set']) === null || _this$$slots$headerS === void 0 ? void 0 : _this$$slots$headerS.call(_this$$slots5)])]]), (0,external_vue_namespaceObject.createVNode)("div", {
|
329
|
-
"class": "container-content",
|
330
329
|
"style": {
|
331
330
|
maxHeight: "calc(100vh - ".concat(this.headHeight, "px)")
|
332
|
-
}
|
331
|
+
},
|
332
|
+
"class": "container-content"
|
333
333
|
}, [(_this$$slots$default = (_this$$slots6 = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots6), (0,external_vue_namespaceObject.createVNode)("div", {
|
334
334
|
"class": "container-footer"
|
335
335
|
}, [(_this$$slots$footer = (_this$$slots7 = this.$slots).footer) === null || _this$$slots$footer === void 0 ? void 0 : _this$$slots$footer.call(_this$$slots7)])])])])]);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PropType, SlotsType } from 'vue';
|
2
|
-
export type BkNavigationType = '
|
2
|
+
export type BkNavigationType = 'left-right' | 'top-bottom';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
navWidth: {
|
5
5
|
type: (NumberConstructor | StringConstructor)[];
|
package/lib/notify/index.js
CHANGED
@@ -250,10 +250,10 @@ const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
250
250
|
|
251
251
|
var NotifyThemeEnum;
|
252
252
|
(function (NotifyThemeEnum) {
|
253
|
+
NotifyThemeEnum["ERROR"] = "error";
|
253
254
|
NotifyThemeEnum["PRIMARY"] = "primary";
|
254
|
-
NotifyThemeEnum["WARNING"] = "warning";
|
255
255
|
NotifyThemeEnum["SUCCESS"] = "success";
|
256
|
-
NotifyThemeEnum["
|
256
|
+
NotifyThemeEnum["WARNING"] = "warning";
|
257
257
|
})(NotifyThemeEnum || (NotifyThemeEnum = {}));
|
258
258
|
var notifyProps = {
|
259
259
|
id: shared_namespaceObject.PropTypes.string.def(''),
|
@@ -343,8 +343,8 @@ var notifyProps = {
|
|
343
343
|
}, {
|
344
344
|
"default": function _default() {
|
345
345
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
346
|
-
"
|
347
|
-
"
|
346
|
+
"style": _this.styles,
|
347
|
+
"class": _this.classNames
|
348
348
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
349
349
|
"class": "".concat(_this.resolveClassName('notify-content'))
|
350
350
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -12,8 +12,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
12
|
boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
|
13
13
|
default: string | (() => HTMLElement);
|
14
14
|
};
|
15
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
16
|
-
default: "auto" | "auto-
|
15
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
16
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
17
17
|
};
|
18
18
|
resizeable: import("vue-types").VueTypeValidableDef<boolean> & {
|
19
19
|
default: boolean;
|
@@ -55,8 +55,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
55
55
|
} & {
|
56
56
|
default: boolean;
|
57
57
|
};
|
58
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
59
|
-
default: "auto" | "auto-
|
58
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
59
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
60
60
|
};
|
61
61
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
62
62
|
default: string;
|
@@ -167,8 +167,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
167
167
|
boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
|
168
168
|
default: string | (() => HTMLElement);
|
169
169
|
};
|
170
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
171
|
-
default: "auto" | "auto-
|
170
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
171
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
172
172
|
};
|
173
173
|
resizeable: import("vue-types").VueTypeValidableDef<boolean> & {
|
174
174
|
default: boolean;
|
@@ -210,8 +210,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
210
210
|
} & {
|
211
211
|
default: boolean;
|
212
212
|
};
|
213
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
214
|
-
default: "auto" | "auto-
|
213
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
214
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
215
215
|
};
|
216
216
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
217
217
|
default: string;
|
@@ -304,7 +304,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
304
304
|
}>>, {
|
305
305
|
type: string;
|
306
306
|
content: string;
|
307
|
-
placement: "auto" | "auto-
|
307
|
+
placement: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
308
308
|
boundary: string | HTMLElement;
|
309
309
|
calType: string;
|
310
310
|
resizeable: boolean;
|