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/dropdown/index.js
CHANGED
@@ -2,10 +2,10 @@ import "../styles/reset.css";
|
|
2
2
|
import "./dropdown.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_merge_cf99375a__ from "lodash/merge";
|
6
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
7
6
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
8
7
|
import "../popover/popover.less";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
|
9
9
|
/******/ // The require scope
|
10
10
|
/******/ var __webpack_require__ = {};
|
11
11
|
/******/
|
@@ -91,10 +91,6 @@ function _defineProperty(obj, key, value) {
|
|
91
91
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
92
92
|
var external_vue_y = x => () => x
|
93
93
|
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
|
94
|
-
;// CONCATENATED MODULE: external "lodash/merge"
|
95
|
-
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
96
|
-
var merge_y = x => () => x
|
97
|
-
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
98
94
|
;// CONCATENATED MODULE: external "../config-provider"
|
99
95
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
100
96
|
var config_provider_y = x => () => x
|
@@ -107,6 +103,10 @@ const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNA
|
|
107
103
|
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
108
104
|
var popover_less_y = x => () => x
|
109
105
|
const popover_less_namespaceObject = popover_less_x({ });
|
106
|
+
;// CONCATENATED MODULE: external "lodash/merge"
|
107
|
+
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
108
|
+
var merge_y = x => () => x
|
109
|
+
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
110
110
|
;// CONCATENATED MODULE: ../../packages/dropdown/src/dropdown.tsx
|
111
111
|
|
112
112
|
|
@@ -202,8 +202,8 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
202
202
|
}, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
203
203
|
"ref": "popoverRef"
|
204
204
|
}, popoverOptions, {
|
205
|
-
"
|
206
|
-
"
|
205
|
+
"onAfterHidden": this.afterHidden,
|
206
|
+
"onAfterShow": this.afterShow
|
207
207
|
}), {
|
208
208
|
"default": function _default() {
|
209
209
|
var _this$$slots$default, _this$$slots;
|
@@ -1,19 +1,19 @@
|
|
1
1
|
export declare enum ExceptionEnum {
|
2
|
-
|
2
|
+
BUILDING = "building",
|
3
3
|
CODE_403 = "403",
|
4
|
+
CODE_404 = "404",
|
4
5
|
CODE_500 = "500",
|
5
|
-
BUILDING = "building",
|
6
6
|
EMPTY = "empty",
|
7
|
-
|
8
|
-
|
7
|
+
LOGIN = "login",
|
8
|
+
SEARCH = "search-empty"
|
9
9
|
}
|
10
10
|
export declare enum SceneEnum {
|
11
11
|
PAGE = "page",
|
12
12
|
PART = "part"
|
13
13
|
}
|
14
14
|
declare const _default: import("vue").DefineComponent<{
|
15
|
-
type: import("vue-types").VueTypeDef<"
|
16
|
-
default: "
|
15
|
+
type: import("vue-types").VueTypeDef<"403" | "404" | "500" | "building" | "empty" | "login" | "search-empty"> & {
|
16
|
+
default: "403" | "404" | "500" | "building" | "empty" | "login" | "search-empty";
|
17
17
|
};
|
18
18
|
scene: import("vue-types").VueTypeDef<"page" | "part"> & {
|
19
19
|
default: "page" | "part";
|
@@ -25,8 +25,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
default: string;
|
26
26
|
};
|
27
27
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
28
|
-
type: import("vue-types").VueTypeDef<"
|
29
|
-
default: "
|
28
|
+
type: import("vue-types").VueTypeDef<"403" | "404" | "500" | "building" | "empty" | "login" | "search-empty"> & {
|
29
|
+
default: "403" | "404" | "500" | "building" | "empty" | "login" | "search-empty";
|
30
30
|
};
|
31
31
|
scene: import("vue-types").VueTypeDef<"page" | "part"> & {
|
32
32
|
default: "page" | "part";
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
39
|
};
|
40
40
|
}>>, {
|
41
41
|
title: string;
|
42
|
-
type: "
|
42
|
+
type: "403" | "404" | "500" | "building" | "empty" | "login" | "search-empty";
|
43
43
|
description: string;
|
44
44
|
scene: "page" | "part";
|
45
45
|
}, {}>;
|
package/lib/exception/index.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import Exception, { ExceptionEnum, SceneEnum } from './exception';
|
2
2
|
declare const BkException: {
|
3
3
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
4
|
-
type: import("vue-types").VueTypeDef<"
|
5
|
-
default: "
|
4
|
+
type: import("vue-types").VueTypeDef<"403" | "404" | "500" | "building" | "empty" | "login" | "search-empty"> & {
|
5
|
+
default: "403" | "404" | "500" | "building" | "empty" | "login" | "search-empty";
|
6
6
|
};
|
7
7
|
scene: import("vue-types").VueTypeDef<"page" | "part"> & {
|
8
8
|
default: "page" | "part";
|
@@ -14,8 +14,8 @@ declare const BkException: {
|
|
14
14
|
default: string;
|
15
15
|
};
|
16
16
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
17
|
-
type: import("vue-types").VueTypeDef<"
|
18
|
-
default: "
|
17
|
+
type: import("vue-types").VueTypeDef<"403" | "404" | "500" | "building" | "empty" | "login" | "search-empty"> & {
|
18
|
+
default: "403" | "404" | "500" | "building" | "empty" | "login" | "search-empty";
|
19
19
|
};
|
20
20
|
scene: import("vue-types").VueTypeDef<"page" | "part"> & {
|
21
21
|
default: "page" | "part";
|
@@ -28,7 +28,7 @@ declare const BkException: {
|
|
28
28
|
};
|
29
29
|
}>>, {
|
30
30
|
title: string;
|
31
|
-
type: "
|
31
|
+
type: "403" | "404" | "500" | "building" | "empty" | "login" | "search-empty";
|
32
32
|
description: string;
|
33
33
|
scene: "page" | "part";
|
34
34
|
}, true, {}, {}, {
|
@@ -39,8 +39,8 @@ declare const BkException: {
|
|
39
39
|
M: {};
|
40
40
|
Defaults: {};
|
41
41
|
}, Readonly<import("vue").ExtractPropTypes<{
|
42
|
-
type: import("vue-types").VueTypeDef<"
|
43
|
-
default: "
|
42
|
+
type: import("vue-types").VueTypeDef<"403" | "404" | "500" | "building" | "empty" | "login" | "search-empty"> & {
|
43
|
+
default: "403" | "404" | "500" | "building" | "empty" | "login" | "search-empty";
|
44
44
|
};
|
45
45
|
scene: import("vue-types").VueTypeDef<"page" | "part"> & {
|
46
46
|
default: "page" | "part";
|
@@ -53,7 +53,7 @@ declare const BkException: {
|
|
53
53
|
};
|
54
54
|
}>>, () => JSX.Element, {}, {}, {}, {
|
55
55
|
title: string;
|
56
|
-
type: "
|
56
|
+
type: "403" | "404" | "500" | "building" | "empty" | "login" | "search-empty";
|
57
57
|
description: string;
|
58
58
|
scene: "page" | "part";
|
59
59
|
}>;
|
@@ -61,8 +61,8 @@ declare const BkException: {
|
|
61
61
|
__isTeleport?: never;
|
62
62
|
__isSuspense?: never;
|
63
63
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
64
|
-
type: import("vue-types").VueTypeDef<"
|
65
|
-
default: "
|
64
|
+
type: import("vue-types").VueTypeDef<"403" | "404" | "500" | "building" | "empty" | "login" | "search-empty"> & {
|
65
|
+
default: "403" | "404" | "500" | "building" | "empty" | "login" | "search-empty";
|
66
66
|
};
|
67
67
|
scene: import("vue-types").VueTypeDef<"page" | "part"> & {
|
68
68
|
default: "page" | "part";
|
@@ -75,7 +75,7 @@ declare const BkException: {
|
|
75
75
|
};
|
76
76
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
77
77
|
title: string;
|
78
|
-
type: "
|
78
|
+
type: "403" | "404" | "500" | "building" | "empty" | "login" | "search-empty";
|
79
79
|
description: string;
|
80
80
|
scene: "page" | "part";
|
81
81
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
package/lib/exception/index.js
CHANGED
@@ -2,9 +2,9 @@ import "../styles/reset.css";
|
|
2
2
|
import "./exception.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_vue_types_22de060a__ from "vue-types";
|
7
6
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__ from "lodash/isFunction";
|
8
8
|
/******/ var __webpack_modules__ = ({
|
9
9
|
|
10
10
|
/***/ 3760:
|
@@ -178,10 +178,6 @@ function _defineProperty(obj, key, value) {
|
|
178
178
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
179
179
|
var external_vue_y = x => () => x
|
180
180
|
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent });
|
181
|
-
;// CONCATENATED MODULE: external "lodash/isFunction"
|
182
|
-
var isFunction_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
183
|
-
var isFunction_y = x => () => x
|
184
|
-
const isFunction_namespaceObject = isFunction_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__["default"] });
|
185
181
|
;// CONCATENATED MODULE: external "vue-types"
|
186
182
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
187
183
|
var external_vue_types_y = x => () => x
|
@@ -190,6 +186,10 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: ()
|
|
190
186
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
191
187
|
var config_provider_y = x => () => x
|
192
188
|
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
189
|
+
;// CONCATENATED MODULE: external "lodash/isFunction"
|
190
|
+
var isFunction_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
191
|
+
var isFunction_y = x => () => x
|
192
|
+
const isFunction_namespaceObject = isFunction_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__["default"] });
|
193
193
|
// EXTERNAL MODULE: ../../packages/exception/src/images/403.svg
|
194
194
|
var _403 = __webpack_require__(3760);
|
195
195
|
var _403_default = /*#__PURE__*/__webpack_require__.n(_403);
|
@@ -253,13 +253,13 @@ var search_empty_default = /*#__PURE__*/__webpack_require__.n(search_empty);
|
|
253
253
|
|
254
254
|
var ExceptionEnum;
|
255
255
|
(function (ExceptionEnum) {
|
256
|
-
ExceptionEnum["
|
256
|
+
ExceptionEnum["BUILDING"] = "building";
|
257
257
|
ExceptionEnum["CODE_403"] = "403";
|
258
|
+
ExceptionEnum["CODE_404"] = "404";
|
258
259
|
ExceptionEnum["CODE_500"] = "500";
|
259
|
-
ExceptionEnum["BUILDING"] = "building";
|
260
260
|
ExceptionEnum["EMPTY"] = "empty";
|
261
|
-
ExceptionEnum["SEARCH"] = "search-empty";
|
262
261
|
ExceptionEnum["LOGIN"] = "login";
|
262
|
+
ExceptionEnum["SEARCH"] = "search-empty";
|
263
263
|
})(ExceptionEnum || (ExceptionEnum = {}));
|
264
264
|
var SceneEnum;
|
265
265
|
(function (SceneEnum) {
|
@@ -300,8 +300,8 @@ var SceneEnum;
|
|
300
300
|
"class": "".concat(resolveClassName('exception-img'))
|
301
301
|
}, [(0,external_vue_namespaceObject.createVNode)("img", {
|
302
302
|
"class": "exception-image",
|
303
|
-
"
|
304
|
-
"
|
303
|
+
"alt": "type",
|
304
|
+
"src": imgSrc
|
305
305
|
}, null)]);
|
306
306
|
};
|
307
307
|
var renderTitle = function renderTitle() {
|
@@ -105,10 +105,10 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
105
105
|
resolveClassName = _usePrefix.resolveClassName;
|
106
106
|
return function () {
|
107
107
|
return props.modelValue && (0,external_vue_namespaceObject.createVNode)("div", {
|
108
|
-
"class": "".concat(resolveClassName('fixed-navbar'), " ").concat(props.extCls, " ").concat(props.position),
|
109
108
|
"style": {
|
110
109
|
zIndex: zIndex
|
111
|
-
}
|
110
|
+
},
|
111
|
+
"class": "".concat(resolveClassName('fixed-navbar'), " ").concat(props.extCls, " ").concat(props.position)
|
112
112
|
}, [navConfig.map(function (item) {
|
113
113
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
114
114
|
"class": "fixed-navbar-item",
|
package/lib/form/form.d.ts
CHANGED
@@ -52,11 +52,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
52
52
|
};
|
53
53
|
}, {
|
54
54
|
handleSubmit: (event: Event) => void;
|
55
|
-
validate: (fields?: string |
|
55
|
+
validate: (fields?: Array<string> | string) => Promise<{
|
56
56
|
[key: string]: any;
|
57
57
|
}>;
|
58
58
|
getValidateResult: () => Promise<boolean>;
|
59
|
-
clearValidate: (fields?: string |
|
59
|
+
clearValidate: (fields?: Array<string> | string) => void;
|
60
60
|
resolveClassName: (cls: string) => string;
|
61
61
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
62
62
|
submit: any;
|
package/lib/form/index.js
CHANGED
@@ -5,10 +5,10 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isBoolean_dcb66997__ from "lodash/isBoolean";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isString_e6fa8a5b__ from "lodash/isString";
|
8
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__ from "lodash/get";
|
9
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__ from "lodash/isFunction";
|
10
8
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
11
9
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__ from "lodash/get";
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__ from "lodash/isFunction";
|
12
12
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isDate_b457317b__ from "lodash/isDate";
|
13
13
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEmpty_e109fd6b__ from "lodash/isEmpty";
|
14
14
|
/******/ // The require scope
|
@@ -266,7 +266,6 @@ var formEvents = {
|
|
266
266
|
}
|
267
267
|
};
|
268
268
|
/* harmony default export */ const src_form = ((0,external_vue_namespaceObject.defineComponent)({
|
269
|
-
// eslint-disable-next-line vue/no-reserved-component-names
|
270
269
|
name: 'Form',
|
271
270
|
props: formProps,
|
272
271
|
emits: formEvents,
|
@@ -420,14 +419,6 @@ function _nonIterableSpread() {
|
|
420
419
|
function _toConsumableArray(arr) {
|
421
420
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
422
421
|
}
|
423
|
-
;// CONCATENATED MODULE: external "lodash/get"
|
424
|
-
var get_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
425
|
-
var get_y = x => () => x
|
426
|
-
const get_namespaceObject = get_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__["default"] });
|
427
|
-
;// CONCATENATED MODULE: external "lodash/isFunction"
|
428
|
-
var isFunction_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
429
|
-
var isFunction_y = x => () => x
|
430
|
-
const isFunction_namespaceObject = isFunction_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__["default"] });
|
431
422
|
;// CONCATENATED MODULE: external "../directives"
|
432
423
|
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
433
424
|
var directives_y = x => () => x
|
@@ -436,6 +427,14 @@ const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPAC
|
|
436
427
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
437
428
|
var icon_y = x => () => x
|
438
429
|
const icon_namespaceObject = icon_x({ ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape });
|
430
|
+
;// CONCATENATED MODULE: external "lodash/get"
|
431
|
+
var get_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
432
|
+
var get_y = x => () => x
|
433
|
+
const get_namespaceObject = get_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__["default"] });
|
434
|
+
;// CONCATENATED MODULE: external "lodash/isFunction"
|
435
|
+
var isFunction_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
436
|
+
var isFunction_y = x => () => x
|
437
|
+
const isFunction_namespaceObject = isFunction_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__["default"] });
|
439
438
|
;// CONCATENATED MODULE: ../../packages/form/src/utils.ts
|
440
439
|
/*
|
441
440
|
* Tencent is pleased to support the open source community by making
|
@@ -903,11 +902,11 @@ var isValid = function isValid(value) {
|
|
903
902
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
904
903
|
"class": itemClassees
|
905
904
|
}, [this.isShowLabel && (0,external_vue_namespaceObject.createVNode)("div", {
|
906
|
-
"
|
907
|
-
"
|
905
|
+
"style": this.labelStyles,
|
906
|
+
"class": "".concat(this.resolveClassName('form-label'))
|
908
907
|
}, [renderLabel(), this.isFormTypeVertical && ((_this$$slots$labelApp = (_this$$slots = this.$slots).labelAppend) === null || _this$$slots$labelApp === void 0 ? void 0 : _this$$slots$labelApp.call(_this$$slots))]), (0,external_vue_namespaceObject.createVNode)("div", {
|
909
|
-
"
|
910
|
-
"
|
908
|
+
"style": this.contentStyles,
|
909
|
+
"class": "".concat(this.resolveClassName('form-content'))
|
911
910
|
}, [(_this$$slots$default = (_this$$slots2 = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots2), renderError()])]);
|
912
911
|
}
|
913
912
|
}));
|
package/lib/form/type.d.ts
CHANGED
@@ -18,7 +18,7 @@ export interface IFormItemRule {
|
|
18
18
|
max?: number;
|
19
19
|
maxlength?: number;
|
20
20
|
pattern?: RegExp;
|
21
|
-
validator?: (any: any) => boolean |
|
22
|
-
message:
|
21
|
+
validator?: (any: any) => Promise<boolean> | boolean;
|
22
|
+
message: (() => string) | string;
|
23
23
|
trigger: 'blur' | 'change';
|
24
24
|
}
|
package/lib/icon/index.d.ts
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
export { default as AngleDoubleDownLine } from '../icon/angle-double-down-line';
|
2
|
-
export { default as AngleDoubleLeftLine } from '../icon/angle-double-left-line';
|
3
2
|
export { default as AngleDoubleLeft } from '../icon/angle-double-left';
|
4
|
-
export { default as
|
3
|
+
export { default as AngleDoubleLeftLine } from '../icon/angle-double-left-line';
|
5
4
|
export { default as AngleDoubleRight } from '../icon/angle-double-right';
|
5
|
+
export { default as AngleDoubleRightLine } from '../icon/angle-double-right-line';
|
6
6
|
export { default as AngleDoubleUpLine } from '../icon/angle-double-up-line';
|
7
|
+
export { default as AngleDown } from '../icon/angle-down';
|
7
8
|
export { default as AngleDownFill } from '../icon/angle-down-fill';
|
8
9
|
export { default as AngleDownLine } from '../icon/angle-down-line';
|
9
|
-
export { default as AngleDown } from '../icon/angle-down';
|
10
10
|
export { default as AngleLeft } from '../icon/angle-left';
|
11
11
|
export { default as AngleRight } from '../icon/angle-right';
|
12
|
-
export { default as AngleUpFill } from '../icon/angle-up-fill';
|
13
12
|
export { default as AngleUp } from '../icon/angle-up';
|
13
|
+
export { default as AngleUpFill } from '../icon/angle-up-fill';
|
14
14
|
export { default as ArchiveFill } from '../icon/archive-fill';
|
15
15
|
export { default as ArrowsLeft } from '../icon/arrows-left';
|
16
16
|
export { default as ArrowsRight } from '../icon/arrows-right';
|
@@ -18,13 +18,13 @@ export { default as Assistant } from '../icon/assistant';
|
|
18
18
|
export { default as AudioFill } from '../icon/audio-fill';
|
19
19
|
export { default as Bk } from '../icon/bk';
|
20
20
|
export { default as Circle } from '../icon/circle';
|
21
|
-
export { default as CloseLine } from '../icon/close-line';
|
22
21
|
export { default as Close } from '../icon/close';
|
22
|
+
export { default as CloseLine } from '../icon/close-line';
|
23
23
|
export { default as Code } from '../icon/code';
|
24
24
|
export { default as CogShape } from '../icon/cog-shape';
|
25
25
|
export { default as CollapseLeft } from '../icon/collapse-left';
|
26
|
-
export { default as CopyShape } from '../icon/copy-shape';
|
27
26
|
export { default as Copy } from '../icon/copy';
|
27
|
+
export { default as CopyShape } from '../icon/copy-shape';
|
28
28
|
export { default as DataShape } from '../icon/data-shape';
|
29
29
|
export { default as Del } from '../icon/del';
|
30
30
|
export { default as DocFill } from '../icon/doc-fill';
|
@@ -41,20 +41,20 @@ export { default as Eye } from '../icon/eye';
|
|
41
41
|
export { default as FilliscreenLine } from '../icon/filliscreen-line';
|
42
42
|
export { default as FixLine } from '../icon/fix-line';
|
43
43
|
export { default as FixShape } from '../icon/fix-shape';
|
44
|
+
export { default as Folder } from '../icon/folder';
|
44
45
|
export { default as FolderOpen } from '../icon/folder-open';
|
45
|
-
export { default as FolderShapeOpen } from '../icon/folder-shape-open';
|
46
46
|
export { default as FolderShape } from '../icon/folder-shape';
|
47
|
-
export { default as
|
47
|
+
export { default as FolderShapeOpen } from '../icon/folder-shape-open';
|
48
48
|
export { default as Funnel } from '../icon/funnel';
|
49
49
|
export { default as GragFill } from '../icon/grag-fill';
|
50
|
+
export { default as Help } from '../icon/help';
|
50
51
|
export { default as HelpDocumentFill } from '../icon/help-document-fill';
|
51
52
|
export { default as HelpFill } from '../icon/help-fill';
|
52
|
-
export { default as Help } from '../icon/help';
|
53
53
|
export { default as ImageFill } from '../icon/image-fill';
|
54
54
|
export { default as ImgError } from '../icon/img-error';
|
55
55
|
export { default as ImgPlacehoulder } from '../icon/img-placehoulder';
|
56
|
-
export { default as InfoLine } from '../icon/info-line';
|
57
56
|
export { default as Info } from '../icon/info';
|
57
|
+
export { default as InfoLine } from '../icon/info-line';
|
58
58
|
export { default as LeftShape } from '../icon/left-shape';
|
59
59
|
export { default as LeftTurnLine } from '../icon/left-turn-line';
|
60
60
|
export { default as Loading } from '../icon/loading';
|
@@ -83,5 +83,5 @@ export { default as UpShape } from '../icon/up-shape';
|
|
83
83
|
export { default as Upload } from '../icon/upload';
|
84
84
|
export { default as VideoFill } from '../icon/video-fill';
|
85
85
|
export { default as Warn } from '../icon/warn';
|
86
|
-
export { default as WeixinPro } from '../icon/weixin-pro';
|
87
86
|
export { default as Weixin } from '../icon/weixin';
|
87
|
+
export { default as WeixinPro } from '../icon/weixin-pro';
|
package/lib/icon/index.js
CHANGED
@@ -25,18 +25,18 @@ import "../styles/reset.css";
|
|
25
25
|
* IN THE SOFTWARE.
|
26
26
|
*/
|
27
27
|
export { default as AngleDoubleDownLine } from './angle-double-down-line';
|
28
|
-
export { default as AngleDoubleLeftLine } from './angle-double-left-line';
|
29
28
|
export { default as AngleDoubleLeft } from './angle-double-left';
|
30
|
-
export { default as
|
29
|
+
export { default as AngleDoubleLeftLine } from './angle-double-left-line';
|
31
30
|
export { default as AngleDoubleRight } from './angle-double-right';
|
31
|
+
export { default as AngleDoubleRightLine } from './angle-double-right-line';
|
32
32
|
export { default as AngleDoubleUpLine } from './angle-double-up-line';
|
33
|
+
export { default as AngleDown } from './angle-down';
|
33
34
|
export { default as AngleDownFill } from './angle-down-fill';
|
34
35
|
export { default as AngleDownLine } from './angle-down-line';
|
35
|
-
export { default as AngleDown } from './angle-down';
|
36
36
|
export { default as AngleLeft } from './angle-left';
|
37
37
|
export { default as AngleRight } from './angle-right';
|
38
|
-
export { default as AngleUpFill } from './angle-up-fill';
|
39
38
|
export { default as AngleUp } from './angle-up';
|
39
|
+
export { default as AngleUpFill } from './angle-up-fill';
|
40
40
|
export { default as ArchiveFill } from './archive-fill';
|
41
41
|
export { default as ArrowsLeft } from './arrows-left';
|
42
42
|
export { default as ArrowsRight } from './arrows-right';
|
@@ -44,13 +44,13 @@ export { default as Assistant } from './assistant';
|
|
44
44
|
export { default as AudioFill } from './audio-fill';
|
45
45
|
export { default as Bk } from './bk';
|
46
46
|
export { default as Circle } from './circle';
|
47
|
-
export { default as CloseLine } from './close-line';
|
48
47
|
export { default as Close } from './close';
|
48
|
+
export { default as CloseLine } from './close-line';
|
49
49
|
export { default as Code } from './code';
|
50
50
|
export { default as CogShape } from './cog-shape';
|
51
51
|
export { default as CollapseLeft } from './collapse-left';
|
52
|
-
export { default as CopyShape } from './copy-shape';
|
53
52
|
export { default as Copy } from './copy';
|
53
|
+
export { default as CopyShape } from './copy-shape';
|
54
54
|
export { default as DataShape } from './data-shape';
|
55
55
|
export { default as Del } from './del';
|
56
56
|
export { default as DocFill } from './doc-fill';
|
@@ -67,20 +67,20 @@ export { default as Eye } from './eye';
|
|
67
67
|
export { default as FilliscreenLine } from './filliscreen-line';
|
68
68
|
export { default as FixLine } from './fix-line';
|
69
69
|
export { default as FixShape } from './fix-shape';
|
70
|
+
export { default as Folder } from './folder';
|
70
71
|
export { default as FolderOpen } from './folder-open';
|
71
|
-
export { default as FolderShapeOpen } from './folder-shape-open';
|
72
72
|
export { default as FolderShape } from './folder-shape';
|
73
|
-
export { default as
|
73
|
+
export { default as FolderShapeOpen } from './folder-shape-open';
|
74
74
|
export { default as Funnel } from './funnel';
|
75
75
|
export { default as GragFill } from './grag-fill';
|
76
|
+
export { default as Help } from './help';
|
76
77
|
export { default as HelpDocumentFill } from './help-document-fill';
|
77
78
|
export { default as HelpFill } from './help-fill';
|
78
|
-
export { default as Help } from './help';
|
79
79
|
export { default as ImageFill } from './image-fill';
|
80
80
|
export { default as ImgError } from './img-error';
|
81
81
|
export { default as ImgPlacehoulder } from './img-placehoulder';
|
82
|
-
export { default as InfoLine } from './info-line';
|
83
82
|
export { default as Info } from './info';
|
83
|
+
export { default as InfoLine } from './info-line';
|
84
84
|
export { default as LeftShape } from './left-shape';
|
85
85
|
export { default as LeftTurnLine } from './left-turn-line';
|
86
86
|
export { default as Loading } from './loading';
|
@@ -109,5 +109,5 @@ export { default as UpShape } from './up-shape';
|
|
109
109
|
export { default as Upload } from './upload';
|
110
110
|
export { default as VideoFill } from './video-fill';
|
111
111
|
export { default as Warn } from './warn';
|
112
|
-
export { default as WeixinPro } from './weixin-pro';
|
113
112
|
export { default as Weixin } from './weixin';
|
113
|
+
export { default as WeixinPro } from './weixin-pro';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export type ViewerAction = '
|
1
|
+
export type ViewerAction = 'anticlockwise' | 'clockwise' | 'zoomIn' | 'zoomOut';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
urlList: {
|
4
4
|
type: import("vue").PropType<string[]>;
|
package/lib/image/index.js
CHANGED
@@ -4,8 +4,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
7
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
8
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
9
9
|
/******/ // The require scope
|
10
10
|
/******/ var __webpack_require__ = {};
|
11
11
|
/******/
|
@@ -62,9 +62,9 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: ()
|
|
62
62
|
|
63
63
|
var FitEnum;
|
64
64
|
(function (FitEnum) {
|
65
|
-
FitEnum["FILL"] = "fill";
|
66
65
|
FitEnum["CONTAIN"] = "contain";
|
67
66
|
FitEnum["COVER"] = "cover";
|
67
|
+
FitEnum["FILL"] = "fill";
|
68
68
|
FitEnum["NONE"] = "none";
|
69
69
|
FitEnum["SCALE_DOWN"] = "scale-down";
|
70
70
|
})(FitEnum || (FitEnum = {}));
|
@@ -125,7 +125,6 @@ var propsImageViever = {
|
|
125
125
|
|
126
126
|
|
127
127
|
/* harmony default export */ const src_image = ((0,external_vue_namespaceObject.defineComponent)({
|
128
|
-
// eslint-disable-next-line vue/no-reserved-component-names
|
129
128
|
name: 'Image',
|
130
129
|
props: propsImage,
|
131
130
|
emits: ['loaded', 'error', 'close', 'change'],
|
@@ -179,8 +178,8 @@ var propsImageViever = {
|
|
179
178
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
180
179
|
"class": "".concat(resolveClassName('image-placeholder'))
|
181
180
|
}, [props.fallback ? (0,external_vue_namespaceObject.createVNode)("img", {
|
182
|
-
"
|
183
|
-
"
|
181
|
+
"alt": "\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF",
|
182
|
+
"src": props.fallback
|
184
183
|
}, null) : '', (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("i", {
|
185
184
|
"class": "".concat(resolveClassName('icon'), " icon-image-fail")
|
186
185
|
}, null), [[(0,external_vue_namespaceObject.resolveDirective)("else")]])]);
|
@@ -193,12 +192,12 @@ var propsImageViever = {
|
|
193
192
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
194
193
|
"class": "".concat(resolveClassName('image'))
|
195
194
|
}, [getContent(), preview.value && isShowViewer.value ? (0,external_vue_namespaceObject.createVNode)(image_viewer, {
|
196
|
-
"zIndex": props.zIndex,
|
197
|
-
"maskClose": props.maskClose,
|
198
195
|
"is-show-title": props.isShowPreviewTitle,
|
196
|
+
"maskClose": props.maskClose,
|
199
197
|
"url-list": props.urlList,
|
200
|
-
"
|
201
|
-
"onChange": change
|
198
|
+
"zIndex": props.zIndex,
|
199
|
+
"onChange": change,
|
200
|
+
"onClose": closeViewer
|
202
201
|
}, null) : '']);
|
203
202
|
};
|
204
203
|
}
|
@@ -248,14 +247,14 @@ function _defineProperty(obj, key, value) {
|
|
248
247
|
}
|
249
248
|
return obj;
|
250
249
|
}
|
251
|
-
;// CONCATENATED MODULE: external "lodash/throttle"
|
252
|
-
var throttle_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
253
|
-
var throttle_y = x => () => x
|
254
|
-
const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
|
255
250
|
;// CONCATENATED MODULE: external "../directives"
|
256
251
|
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
257
252
|
var directives_y = x => () => x
|
258
253
|
const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
|
254
|
+
;// CONCATENATED MODULE: external "lodash/throttle"
|
255
|
+
var throttle_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
256
|
+
var throttle_y = x => () => x
|
257
|
+
const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
|
259
258
|
;// CONCATENATED MODULE: ../../packages/image/src/image-viewer.tsx
|
260
259
|
|
261
260
|
|
@@ -535,10 +534,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
535
534
|
return [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, null, {
|
536
535
|
"default": function _default() {
|
537
536
|
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
538
|
-
"tabindex": "-1",
|
539
537
|
"ref": "wrapper",
|
538
|
+
"style": wrapStyles.value,
|
540
539
|
"class": "".concat(resolveClassName('image-viewer-wrapper')),
|
541
|
-
"
|
540
|
+
"tabindex": "-1"
|
542
541
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
543
542
|
"class": "".concat(resolveClassName('image-viewer-mask')),
|
544
543
|
"onClick": function onClick() {
|
@@ -556,11 +555,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
556
555
|
"class": "".concat(resolveClassName('image-viewer-close')),
|
557
556
|
"onClick": hide
|
558
557
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)])])]) : '', !isSingle.value ? (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("div", {
|
559
|
-
"
|
560
|
-
"
|
558
|
+
"class": "".concat(resolveClassName('image-viewer-btn'), " ").concat(resolveClassName('image-viewer-prev'), " ").concat(!props.loops && isFirst ? 'is-disabled' : ''),
|
559
|
+
"onClick": prev
|
561
560
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
562
|
-
"
|
563
|
-
"
|
561
|
+
"class": "".concat(resolveClassName('image-viewer-btn'), " ").concat(resolveClassName('image-viewer-prev'), " ").concat(!props.loops && isLast ? 'is-disabled' : ''),
|
562
|
+
"onClick": next
|
564
563
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
565
564
|
"class": "".concat(resolveClassName('image-viewer-actions-inner'))
|
566
565
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, {
|
@@ -592,11 +591,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
592
591
|
"ref": function ref(el) {
|
593
592
|
return imgRefs[i] = el;
|
594
593
|
},
|
595
|
-
"class": "".concat(resolveClassName('image-viewer-img')),
|
596
594
|
"style": imgStyle.value,
|
595
|
+
"class": "".concat(resolveClassName('image-viewer-img')),
|
597
596
|
"src": url,
|
598
|
-
"onLoad": handleImgLoad,
|
599
597
|
"onError": handleImgError,
|
598
|
+
"onLoad": handleImgLoad,
|
600
599
|
"onMousedown": handleMouseDown
|
601
600
|
}, null);
|
602
601
|
})])])];
|
package/lib/index.d.ts
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
-
|
1
|
+
declare global {
|
2
|
+
interface Window {
|
3
|
+
__bkui_vue_version__: string;
|
4
|
+
}
|
5
|
+
}
|
2
6
|
export * from './components';
|
7
|
+
export * from './hooks';
|
8
|
+
export { default } from './preset';
|
9
|
+
export * from './config-provider';
|
3
10
|
export * from './directives';
|
4
11
|
export * as plugins from './plugins';
|
5
|
-
export
|
6
|
-
export * from './hooks';
|
12
|
+
export declare const version: string;
|