bkui-vue 0.0.1-beta.379 → 0.0.1-beta.380
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 +33 -30
- package/dist/index.esm.js +211 -52
- package/dist/index.umd.js +37 -34
- package/dist/style.css +1 -1
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +4 -4
- package/lib/badge/badge.d.ts +2 -2
- package/lib/badge/index.d.ts +7 -7
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/index.d.ts +4 -4
- package/lib/button/button.d.ts +1 -1
- package/lib/button/index.d.ts +4 -4
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +4 -4
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +11 -11
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +4 -4
- package/lib/color-picker/color-picker.d.ts +2 -2
- package/lib/color-picker/index.d.ts +7 -7
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +4 -4
- package/lib/date-picker/date-picker.d.ts +3 -3
- package/lib/date-picker/index.d.ts +10 -10
- package/lib/date-picker/panel/time-range.d.ts +3 -3
- package/lib/date-picker/panel/time.d.ts +3 -3
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +1 -1
- package/lib/divider/divider.d.ts +1 -1
- package/lib/divider/index.d.ts +4 -4
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +4 -4
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/index.js +1 -1
- package/lib/link/index.d.ts +7 -7
- package/lib/link/link.d.ts +2 -2
- package/lib/loading/index.d.ts +7 -7
- package/lib/loading/loading.d.ts +2 -2
- package/lib/menu/index.d.ts +4 -4
- package/lib/menu/menu.d.ts +1 -1
- package/lib/overflow-title/components/OverflowTitle.d.ts +38 -0
- package/lib/overflow-title/directive/overflowTitle.d.ts +3 -0
- package/lib/overflow-title/index.d.ts +129 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/overflow.css +11 -0
- package/lib/overflow-title/overflow.less +13 -0
- package/lib/overflow-title/overflow.variable.css +11 -0
- package/lib/overflow-title/props.d.ts +16 -0
- package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
- package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/popover/index.d.ts +10 -10
- package/lib/popover/popover.d.ts +3 -3
- package/lib/progress/index.d.ts +4 -4
- package/lib/progress/progress.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +4 -4
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/select/index.d.ts +11 -11
- package/lib/select/optionGroup.d.ts +1 -1
- package/lib/select/select.d.ts +3 -3
- package/lib/slider/index.d.ts +4 -4
- package/lib/slider/slider.d.ts +1 -1
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/switcher.d.ts +1 -1
- package/lib/tab/index.d.ts +5 -5
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/tab/tab.d.ts +1 -1
- package/lib/table/const.d.ts +11 -1
- package/lib/table/index.d.ts +28 -16
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.d.ts +1 -1
- package/lib/table/props.d.ts +2 -2
- package/lib/table/table.d.ts +10 -6
- package/lib/table/utils.d.ts +2 -0
- package/lib/table-column/index.js +1 -1
- package/lib/tag-input/index.d.ts +4 -4
- package/lib/tag-input/tag-input.d.ts +1 -1
- package/lib/time-picker/index.d.ts +10 -10
- package/lib/upload/index.d.ts +10 -10
- package/lib/upload/upload-list.d.ts +2 -2
- package/lib/upload/upload-trigger.d.ts +2 -2
- package/lib/upload/upload.d.ts +3 -3
- package/package.json +1 -1
- package/lib/icon/img-error.js +0 -1
package/lib/link/index.d.ts
CHANGED
@@ -4,9 +4,9 @@ declare const BkLink: {
|
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
6
|
target: string;
|
7
|
-
theme: "success" | "warning" | "danger" | "default" | "primary";
|
8
|
-
disabled: boolean;
|
9
7
|
underline: boolean;
|
8
|
+
disabled: boolean;
|
9
|
+
theme: "success" | "warning" | "danger" | "default" | "primary";
|
10
10
|
href: string;
|
11
11
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
12
12
|
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
|
@@ -34,7 +34,7 @@ declare const BkLink: {
|
|
34
34
|
};
|
35
35
|
}>> & {
|
36
36
|
onClick?: (...args: any[]) => any;
|
37
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "target" | "
|
37
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "target" | "underline" | "disabled" | "theme" | "href">;
|
38
38
|
$attrs: {
|
39
39
|
[x: string]: unknown;
|
40
40
|
};
|
@@ -78,9 +78,9 @@ declare const BkLink: {
|
|
78
78
|
handleClick: (event: Event) => boolean;
|
79
79
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], string, {
|
80
80
|
target: string;
|
81
|
-
theme: "success" | "warning" | "danger" | "default" | "primary";
|
82
|
-
disabled: boolean;
|
83
81
|
underline: boolean;
|
82
|
+
disabled: boolean;
|
83
|
+
theme: "success" | "warning" | "danger" | "default" | "primary";
|
84
84
|
href: string;
|
85
85
|
}> & {
|
86
86
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -164,9 +164,9 @@ declare const BkLink: {
|
|
164
164
|
handleClick: (event: Event) => boolean;
|
165
165
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", {
|
166
166
|
target: string;
|
167
|
-
theme: "success" | "warning" | "danger" | "default" | "primary";
|
168
|
-
disabled: boolean;
|
169
167
|
underline: boolean;
|
168
|
+
disabled: boolean;
|
169
|
+
theme: "success" | "warning" | "danger" | "default" | "primary";
|
170
170
|
href: string;
|
171
171
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
172
172
|
export default BkLink;
|
package/lib/link/link.d.ts
CHANGED
@@ -52,9 +52,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
52
52
|
onClick?: (...args: any[]) => any;
|
53
53
|
}, {
|
54
54
|
target: string;
|
55
|
-
theme: "success" | "warning" | "danger" | "default" | "primary";
|
56
|
-
disabled: boolean;
|
57
55
|
underline: boolean;
|
56
|
+
disabled: boolean;
|
57
|
+
theme: "success" | "warning" | "danger" | "default" | "primary";
|
58
58
|
href: string;
|
59
59
|
}>;
|
60
60
|
export default _default;
|
package/lib/loading/index.d.ts
CHANGED
@@ -6,10 +6,10 @@ declare const BkLoading: {
|
|
6
6
|
$props: Partial<{
|
7
7
|
title: string;
|
8
8
|
zIndex: number;
|
9
|
-
mode: "default" | "spin";
|
10
9
|
color: string;
|
11
|
-
inline: boolean;
|
12
10
|
size: "" | "small" | "large" | "mini";
|
11
|
+
inline: boolean;
|
12
|
+
mode: "default" | "spin";
|
13
13
|
opacity: number;
|
14
14
|
loading: boolean;
|
15
15
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
@@ -57,7 +57,7 @@ declare const BkLoading: {
|
|
57
57
|
} & {
|
58
58
|
default: number;
|
59
59
|
};
|
60
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "zIndex" | "
|
60
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "zIndex" | "color" | "size" | "inline" | "mode" | "opacity" | "loading">;
|
61
61
|
$attrs: {
|
62
62
|
[x: string]: unknown;
|
63
63
|
};
|
@@ -119,10 +119,10 @@ declare const BkLoading: {
|
|
119
119
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
120
120
|
title: string;
|
121
121
|
zIndex: number;
|
122
|
-
mode: "default" | "spin";
|
123
122
|
color: string;
|
124
|
-
inline: boolean;
|
125
123
|
size: "" | "small" | "large" | "mini";
|
124
|
+
inline: boolean;
|
125
|
+
mode: "default" | "spin";
|
126
126
|
opacity: number;
|
127
127
|
loading: boolean;
|
128
128
|
}> & {
|
@@ -242,10 +242,10 @@ declare const BkLoading: {
|
|
242
242
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
243
243
|
title: string;
|
244
244
|
zIndex: number;
|
245
|
-
mode: "default" | "spin";
|
246
245
|
color: string;
|
247
|
-
inline: boolean;
|
248
246
|
size: "" | "small" | "large" | "mini";
|
247
|
+
inline: boolean;
|
248
|
+
mode: "default" | "spin";
|
249
249
|
opacity: number;
|
250
250
|
loading: boolean;
|
251
251
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
package/lib/loading/loading.d.ts
CHANGED
@@ -150,10 +150,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
150
150
|
}>>, {
|
151
151
|
title: string;
|
152
152
|
zIndex: number;
|
153
|
-
mode: "default" | "spin";
|
154
153
|
color: string;
|
155
|
-
inline: boolean;
|
156
154
|
size: "" | "small" | "large" | "mini";
|
155
|
+
inline: boolean;
|
156
|
+
mode: "default" | "spin";
|
157
157
|
opacity: number;
|
158
158
|
loading: boolean;
|
159
159
|
}>;
|
package/lib/menu/index.d.ts
CHANGED
@@ -6,8 +6,8 @@ declare const BkMenu: {
|
|
6
6
|
$: import("vue").ComponentInternalInstance;
|
7
7
|
$data: {};
|
8
8
|
$props: Partial<{
|
9
|
-
mode: "vertical";
|
10
9
|
collapse: boolean;
|
10
|
+
mode: "vertical";
|
11
11
|
uniqueOpen: boolean;
|
12
12
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
13
13
|
activeKey: StringConstructor;
|
@@ -28,7 +28,7 @@ declare const BkMenu: {
|
|
28
28
|
"onUpdate:activeKey"?: (...args: any[]) => any;
|
29
29
|
"onUpdate:openKeys"?: (...args: any[]) => any;
|
30
30
|
onOpenChange?: (...args: any[]) => any;
|
31
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
31
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "collapse" | "mode" | "uniqueOpen">;
|
32
32
|
$attrs: {
|
33
33
|
[x: string]: unknown;
|
34
34
|
};
|
@@ -62,8 +62,8 @@ declare const BkMenu: {
|
|
62
62
|
"onUpdate:openKeys"?: (...args: any[]) => any;
|
63
63
|
onOpenChange?: (...args: any[]) => any;
|
64
64
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:activeKey" | "update:openKeys" | "openChange")[], string, {
|
65
|
-
mode: "vertical";
|
66
65
|
collapse: boolean;
|
66
|
+
mode: "vertical";
|
67
67
|
uniqueOpen: boolean;
|
68
68
|
}> & {
|
69
69
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -128,8 +128,8 @@ declare const BkMenu: {
|
|
128
128
|
"onUpdate:openKeys"?: (...args: any[]) => any;
|
129
129
|
onOpenChange?: (...args: any[]) => any;
|
130
130
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:activeKey" | "update:openKeys" | "openChange")[], "click" | "update:activeKey" | "update:openKeys" | "openChange", {
|
131
|
-
mode: "vertical";
|
132
131
|
collapse: boolean;
|
132
|
+
mode: "vertical";
|
133
133
|
uniqueOpen: boolean;
|
134
134
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
135
135
|
Item: import("vue").DefineComponent<{
|
package/lib/menu/menu.d.ts
CHANGED
@@ -48,8 +48,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
48
48
|
"onUpdate:openKeys"?: (...args: any[]) => any;
|
49
49
|
onOpenChange?: (...args: any[]) => any;
|
50
50
|
}, {
|
51
|
-
mode: "vertical";
|
52
51
|
collapse: boolean;
|
52
|
+
mode: "vertical";
|
53
53
|
uniqueOpen: boolean;
|
54
54
|
}>;
|
55
55
|
export default _default;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { HTMLAttributes } from '@vue/runtime-dom';
|
2
|
+
import '../overflow.less';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
content: StringConstructor;
|
5
|
+
type: {
|
6
|
+
type: import("vue").PropType<import("../props").TipsType>;
|
7
|
+
default: string;
|
8
|
+
};
|
9
|
+
calType: {
|
10
|
+
type: import("vue").PropType<import("../props").CalType>;
|
11
|
+
default: string;
|
12
|
+
};
|
13
|
+
resizeable: BooleanConstructor;
|
14
|
+
}, {
|
15
|
+
boxRef: import("vue").Ref<HTMLElement>;
|
16
|
+
textRef: import("vue").Ref<HTMLElement>;
|
17
|
+
isShowTips: import("vue").Ref<boolean>;
|
18
|
+
contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
19
|
+
[key: string]: any;
|
20
|
+
}>[]>;
|
21
|
+
textProps: import("vue").ShallowRef<HTMLAttributes>;
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
23
|
+
content: StringConstructor;
|
24
|
+
type: {
|
25
|
+
type: import("vue").PropType<import("../props").TipsType>;
|
26
|
+
default: string;
|
27
|
+
};
|
28
|
+
calType: {
|
29
|
+
type: import("vue").PropType<import("../props").CalType>;
|
30
|
+
default: string;
|
31
|
+
};
|
32
|
+
resizeable: BooleanConstructor;
|
33
|
+
}>>, {
|
34
|
+
type: import("../props").TipsType;
|
35
|
+
calType: import("../props").CalType;
|
36
|
+
resizeable: boolean;
|
37
|
+
}>;
|
38
|
+
export default _default;
|
@@ -0,0 +1,129 @@
|
|
1
|
+
import OverflowTitle from './components/OverflowTitle';
|
2
|
+
import overflowTitle from './directive/overflowTitle';
|
3
|
+
import getActualWidthByCanvas from './utils/getActualWidthByCanvas';
|
4
|
+
import getActualWidthByDom from './utils/getActualWidthByDom';
|
5
|
+
declare const BkOverflowTitle: {
|
6
|
+
new (...args: any[]): {
|
7
|
+
$: import("vue").ComponentInternalInstance;
|
8
|
+
$data: {};
|
9
|
+
$props: Partial<{
|
10
|
+
type: import("./props").TipsType;
|
11
|
+
calType: import("./props").CalType;
|
12
|
+
resizeable: boolean;
|
13
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
content: StringConstructor;
|
15
|
+
type: {
|
16
|
+
type: import("vue").PropType<import("./props").TipsType>;
|
17
|
+
default: string;
|
18
|
+
};
|
19
|
+
calType: {
|
20
|
+
type: import("vue").PropType<import("./props").CalType>;
|
21
|
+
default: string;
|
22
|
+
};
|
23
|
+
resizeable: BooleanConstructor;
|
24
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "calType" | "resizeable">;
|
25
|
+
$attrs: {
|
26
|
+
[x: string]: unknown;
|
27
|
+
};
|
28
|
+
$refs: {
|
29
|
+
[x: string]: unknown;
|
30
|
+
};
|
31
|
+
$slots: Readonly<{
|
32
|
+
[name: string]: import("vue").Slot;
|
33
|
+
}>;
|
34
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
35
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
36
|
+
$emit: (event: string, ...args: any[]) => void;
|
37
|
+
$el: any;
|
38
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
39
|
+
content: StringConstructor;
|
40
|
+
type: {
|
41
|
+
type: import("vue").PropType<import("./props").TipsType>;
|
42
|
+
default: string;
|
43
|
+
};
|
44
|
+
calType: {
|
45
|
+
type: import("vue").PropType<import("./props").CalType>;
|
46
|
+
default: string;
|
47
|
+
};
|
48
|
+
resizeable: BooleanConstructor;
|
49
|
+
}>>, {
|
50
|
+
boxRef: import("vue").Ref<HTMLElement>;
|
51
|
+
textRef: import("vue").Ref<HTMLElement>;
|
52
|
+
isShowTips: import("vue").Ref<boolean>;
|
53
|
+
contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
54
|
+
[key: string]: any;
|
55
|
+
}>[]>;
|
56
|
+
textProps: import("vue").ShallowRef<import("vue").HTMLAttributes>;
|
57
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
58
|
+
type: import("./props").TipsType;
|
59
|
+
calType: import("./props").CalType;
|
60
|
+
resizeable: boolean;
|
61
|
+
}> & {
|
62
|
+
beforeCreate?: (() => void) | (() => void)[];
|
63
|
+
created?: (() => void) | (() => void)[];
|
64
|
+
beforeMount?: (() => void) | (() => void)[];
|
65
|
+
mounted?: (() => void) | (() => void)[];
|
66
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
67
|
+
updated?: (() => void) | (() => void)[];
|
68
|
+
activated?: (() => void) | (() => void)[];
|
69
|
+
deactivated?: (() => void) | (() => void)[];
|
70
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
71
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
72
|
+
destroyed?: (() => void) | (() => void)[];
|
73
|
+
unmounted?: (() => void) | (() => void)[];
|
74
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
75
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
76
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
77
|
+
};
|
78
|
+
$forceUpdate: () => void;
|
79
|
+
$nextTick: typeof import("vue").nextTick;
|
80
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
81
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
82
|
+
content: StringConstructor;
|
83
|
+
type: {
|
84
|
+
type: import("vue").PropType<import("./props").TipsType>;
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
calType: {
|
88
|
+
type: import("vue").PropType<import("./props").CalType>;
|
89
|
+
default: string;
|
90
|
+
};
|
91
|
+
resizeable: BooleanConstructor;
|
92
|
+
}>> & import("vue").ShallowUnwrapRef<{
|
93
|
+
boxRef: import("vue").Ref<HTMLElement>;
|
94
|
+
textRef: import("vue").Ref<HTMLElement>;
|
95
|
+
isShowTips: import("vue").Ref<boolean>;
|
96
|
+
contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
97
|
+
[key: string]: any;
|
98
|
+
}>[]>;
|
99
|
+
textProps: import("vue").ShallowRef<import("vue").HTMLAttributes>;
|
100
|
+
}> & {} & {} & import("vue").ComponentCustomProperties;
|
101
|
+
__isFragment?: never;
|
102
|
+
__isTeleport?: never;
|
103
|
+
__isSuspense?: never;
|
104
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
105
|
+
content: StringConstructor;
|
106
|
+
type: {
|
107
|
+
type: import("vue").PropType<import("./props").TipsType>;
|
108
|
+
default: string;
|
109
|
+
};
|
110
|
+
calType: {
|
111
|
+
type: import("vue").PropType<import("./props").CalType>;
|
112
|
+
default: string;
|
113
|
+
};
|
114
|
+
resizeable: BooleanConstructor;
|
115
|
+
}>>, {
|
116
|
+
boxRef: import("vue").Ref<HTMLElement>;
|
117
|
+
textRef: import("vue").Ref<HTMLElement>;
|
118
|
+
isShowTips: import("vue").Ref<boolean>;
|
119
|
+
contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
120
|
+
[key: string]: any;
|
121
|
+
}>[]>;
|
122
|
+
textProps: import("vue").ShallowRef<import("vue").HTMLAttributes>;
|
123
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
124
|
+
type: import("./props").TipsType;
|
125
|
+
calType: import("./props").CalType;
|
126
|
+
resizeable: boolean;
|
127
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
128
|
+
export { getActualWidthByDom, getActualWidthByCanvas, overflowTitle, OverflowTitle, };
|
129
|
+
export default BkOverflowTitle;
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../popover")):t(e["../shared"],e.vue,e["../popover"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{"use strict";var o={35:(e,t,n)=>{var o=n(9601),r=n.n(o),i=n(2609);n.n(i)()(r()).push([e.id,".text-ov {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.position-relative {\n position: relative;\n}\n.position-absolute {\n position: absolute;\n}\n",""])},2609:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var l=0;l<this.length;l++){var u=this[l][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var f=[].concat(e[c]);o&&a[f[0]]||(void 0!==i&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=i),n&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=n):f[2]=n),r&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=r):f[4]="".concat(r)),t.push(f))}},t}},9601:e=>{e.exports=function(e){return e[1]}},5537:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,exports:{}};return o[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{OverflowTitle:()=>c,default:()=>s,getActualWidthByCanvas:()=>l,getActualWidthByDom:()=>u,overflowTitle:()=>f});var e=i(4212),t=i(748),n=i(5537),o=i.n(n);const r={content:String,type:{type:String,default:"title"},calType:{type:String,default:"dom"},resizeable:Boolean},l=function(e,t){var n=t.fontSize,o=void 0===n?14:n,r=t.fontFamily,i=void 0===r?"Microsoft YaHei":r,a=document.createElement("canvas").getContext("2d");a.font="".concat(o,"px ").concat(i);var l=a.measureText(e),u=Math.abs(l.actualBoundingBoxLeft)+Math.abs(l.actualBoundingBoxRight);return Math.max(l.width,u)},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.body,o=t||{},r=o.fontSize,i=o.fontFamily,a=document.createElement("div");a.style.cssText="position: absolute;left: -999em;top:-999em;z-index: -1;text-overflow: initial;\n ".concat(r?"font-size:".concat(r," ;"):"","\n ").concat(i?"font-family:".concat(i," "):"","\n "),a.innerText=e,n.append(a);var l=a.clientWidth;return n.removeChild(a),l};i(35);const c=(0,t.defineComponent)({name:"OverflowTitle",props:r,setup:function(n,o){var r=o.slots,i=(0,t.ref)(null),a=(0,t.ref)(null),c=(0,t.ref)(!1),f=(0,t.shallowRef)(),s=(0,t.computed)((function(){var e;return n.content?n.content:null===(e=null==r?void 0:r.default)||void 0===e?void 0:e.call(r)}));return(0,t.onMounted)((function(){var o=i.value.clientWidth,r=(0,e.debounce)(500,(function(){c.value=!1,f.value={};var e=0;if("dom"===n.calType)e=u(a.value.textContent,null,i.value);else{var t=getComputedStyle(i.value),r=t.fontSize,v=t.fontFamily;e=l(s.value,{fontSize:r,fontFamily:v})}e>o&&(c.value=!0,"title"===n.type&&(f.value={title:a.value.innerText}))}));if(r(),n.resizeable){var v=new ResizeObserver(r);v.observe(i.value),(0,t.onUnmounted)((function(){v.unobserve(i.value),v.disconnect()}))}})),{boxRef:i,textRef:a,isShowTips:c,contentText:s,textProps:f}},render:function(){var e=this;return(0,t.createVNode)("div",{ref:"boxRef",class:"position-relative"},[(0,t.createVNode)(o(),{disabled:"title"===this.type},{default:function(){return(0,t.createVNode)("div",(0,t.mergeProps)({ref:"textRef",class:"text-ov"},e.textProps),[e.contentText])},content:function(){return e.contentText}})])}}),f={mounted:function(e,t){var n=t.value,o=void 0===n?{}:n,r=e.parentElement.clientWidth;if(r){var i=o.content,a=o.calType,c=void 0===a?"dom":a,f=i||e.innerText,s=0;if("dom"===c)s=u(e.textContent,null,e.parentElement);else{var v=getComputedStyle(e),d=v.fontSize,p=v.fontFamily;s=l(f,{fontSize:d,fontFamily:p})}s>r&&e.setAttribute("title",f)}}},s=(0,e.withInstall)(c)})(),a})()));
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
export declare type TipsType = 'tips' | 'title';
|
3
|
+
export declare type CalType = 'dom' | 'canvas';
|
4
|
+
declare const _default: {
|
5
|
+
content: StringConstructor;
|
6
|
+
type: {
|
7
|
+
type: PropType<TipsType>;
|
8
|
+
default: string;
|
9
|
+
};
|
10
|
+
calType: {
|
11
|
+
type: PropType<CalType>;
|
12
|
+
default: string;
|
13
|
+
};
|
14
|
+
resizeable: BooleanConstructor;
|
15
|
+
};
|
16
|
+
export default _default;
|
@@ -6,9 +6,9 @@ declare const BkPagination: {
|
|
6
6
|
small: boolean;
|
7
7
|
align: string;
|
8
8
|
type: string;
|
9
|
+
layout: string[];
|
9
10
|
disabled: boolean;
|
10
11
|
location: string;
|
11
|
-
layout: string[];
|
12
12
|
count: number;
|
13
13
|
modelValue: number;
|
14
14
|
beforeChange: (...args: any[]) => any;
|
@@ -86,7 +86,7 @@ declare const BkPagination: {
|
|
86
86
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
87
87
|
"onUpdate:limit"?: (...args: any[]) => any;
|
88
88
|
onLimitChange?: (...args: any[]) => any;
|
89
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "small" | "align" | "type" | "
|
89
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "small" | "align" | "type" | "layout" | "disabled" | "location" | "count" | "modelValue" | "beforeChange" | "prevText" | "nextText" | "limit" | "limitList" | "showLimit" | "showTotalCount">;
|
90
90
|
$attrs: {
|
91
91
|
[x: string]: unknown;
|
92
92
|
};
|
@@ -187,9 +187,9 @@ declare const BkPagination: {
|
|
187
187
|
small: boolean;
|
188
188
|
align: string;
|
189
189
|
type: string;
|
190
|
+
layout: string[];
|
190
191
|
disabled: boolean;
|
191
192
|
location: string;
|
192
|
-
layout: string[];
|
193
193
|
count: number;
|
194
194
|
modelValue: number;
|
195
195
|
beforeChange: (...args: any[]) => any;
|
@@ -393,9 +393,9 @@ declare const BkPagination: {
|
|
393
393
|
small: boolean;
|
394
394
|
align: string;
|
395
395
|
type: string;
|
396
|
+
layout: string[];
|
396
397
|
disabled: boolean;
|
397
398
|
location: string;
|
398
|
-
layout: string[];
|
399
399
|
count: number;
|
400
400
|
modelValue: number;
|
401
401
|
beforeChange: (...args: any[]) => any;
|
@@ -214,9 +214,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
214
214
|
small: boolean;
|
215
215
|
align: string;
|
216
216
|
type: string;
|
217
|
+
layout: string[];
|
217
218
|
disabled: boolean;
|
218
219
|
location: string;
|
219
|
-
layout: string[];
|
220
220
|
count: number;
|
221
221
|
modelValue: number;
|
222
222
|
beforeChange: (...args: any[]) => any;
|
package/lib/popover/index.d.ts
CHANGED
@@ -13,16 +13,16 @@ declare const BkPopover: {
|
|
13
13
|
zIndex: number;
|
14
14
|
content: string | number;
|
15
15
|
trigger: "hover" | "click" | "manual";
|
16
|
+
always: boolean;
|
17
|
+
padding: number;
|
18
|
+
disabled: boolean;
|
16
19
|
arrow: boolean;
|
17
20
|
theme: string;
|
18
|
-
disabled: boolean;
|
19
21
|
width: string | number;
|
20
22
|
height: string | number;
|
21
23
|
maxHeight: string | number;
|
22
24
|
isShow: boolean;
|
23
|
-
always: boolean;
|
24
25
|
renderType: "auto" | "shown";
|
25
|
-
padding: number;
|
26
26
|
disableTeleport: boolean;
|
27
27
|
autoPlacement: boolean;
|
28
28
|
autoVisibility: boolean;
|
@@ -146,7 +146,7 @@ declare const BkPopover: {
|
|
146
146
|
onContentMouseenter?: (...args: any[]) => any;
|
147
147
|
onContentMouseleave?: (...args: any[]) => any;
|
148
148
|
onStopHide?: (...args: any[]) => any;
|
149
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "modifiers" | "offset" | "zIndex" | "content" | "trigger" | "
|
149
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "modifiers" | "offset" | "zIndex" | "content" | "trigger" | "always" | "padding" | "disabled" | "arrow" | "theme" | "width" | "height" | "maxHeight" | "isShow" | "renderType" | "disableTeleport" | "autoPlacement" | "autoVisibility" | "disableOutsideClick" | "disableTransform" | "reference" | "popoverDelay">;
|
150
150
|
$attrs: {
|
151
151
|
[x: string]: unknown;
|
152
152
|
};
|
@@ -309,16 +309,16 @@ declare const BkPopover: {
|
|
309
309
|
zIndex: number;
|
310
310
|
content: string | number;
|
311
311
|
trigger: "hover" | "click" | "manual";
|
312
|
+
always: boolean;
|
313
|
+
padding: number;
|
314
|
+
disabled: boolean;
|
312
315
|
arrow: boolean;
|
313
316
|
theme: string;
|
314
|
-
disabled: boolean;
|
315
317
|
width: string | number;
|
316
318
|
height: string | number;
|
317
319
|
maxHeight: string | number;
|
318
320
|
isShow: boolean;
|
319
|
-
always: boolean;
|
320
321
|
renderType: "auto" | "shown";
|
321
|
-
padding: number;
|
322
322
|
disableTeleport: boolean;
|
323
323
|
autoPlacement: boolean;
|
324
324
|
autoVisibility: boolean;
|
@@ -630,16 +630,16 @@ declare const BkPopover: {
|
|
630
630
|
zIndex: number;
|
631
631
|
content: string | number;
|
632
632
|
trigger: "hover" | "click" | "manual";
|
633
|
+
always: boolean;
|
634
|
+
padding: number;
|
635
|
+
disabled: boolean;
|
633
636
|
arrow: boolean;
|
634
637
|
theme: string;
|
635
|
-
disabled: boolean;
|
636
638
|
width: string | number;
|
637
639
|
height: string | number;
|
638
640
|
maxHeight: string | number;
|
639
641
|
isShow: boolean;
|
640
|
-
always: boolean;
|
641
642
|
renderType: "auto" | "shown";
|
642
|
-
padding: number;
|
643
643
|
disableTeleport: boolean;
|
644
644
|
autoPlacement: boolean;
|
645
645
|
autoVisibility: boolean;
|
package/lib/popover/popover.d.ts
CHANGED
@@ -256,16 +256,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
256
256
|
zIndex: number;
|
257
257
|
content: string | number;
|
258
258
|
trigger: "hover" | "click" | "manual";
|
259
|
+
always: boolean;
|
260
|
+
padding: number;
|
261
|
+
disabled: boolean;
|
259
262
|
arrow: boolean;
|
260
263
|
theme: string;
|
261
|
-
disabled: boolean;
|
262
264
|
width: string | number;
|
263
265
|
height: string | number;
|
264
266
|
maxHeight: string | number;
|
265
267
|
isShow: boolean;
|
266
|
-
always: boolean;
|
267
268
|
renderType: "auto" | "shown";
|
268
|
-
padding: number;
|
269
269
|
disableTeleport: boolean;
|
270
270
|
autoPlacement: boolean;
|
271
271
|
autoVisibility: boolean;
|
package/lib/progress/index.d.ts
CHANGED
@@ -5,10 +5,10 @@ declare const BkProgress: {
|
|
5
5
|
$props: Partial<{
|
6
6
|
fixed: number;
|
7
7
|
type: string;
|
8
|
+
color: string;
|
8
9
|
theme: "success" | "warning" | "danger" | "primary";
|
9
10
|
extCls: string;
|
10
11
|
width: number;
|
11
|
-
color: string;
|
12
12
|
strokeLinecap: string;
|
13
13
|
strokeWidth: number;
|
14
14
|
format: (...args: any[]) => any;
|
@@ -91,7 +91,7 @@ declare const BkProgress: {
|
|
91
91
|
[key: string]: any;
|
92
92
|
};
|
93
93
|
};
|
94
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "fixed" | "type" | "
|
94
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "fixed" | "type" | "color" | "theme" | "extCls" | "width" | "strokeLinecap" | "strokeWidth" | "format" | "percent" | "bgColor" | "titleStyle" | "showText" | "textInside">;
|
95
95
|
$attrs: {
|
96
96
|
[x: string]: unknown;
|
97
97
|
};
|
@@ -185,10 +185,10 @@ declare const BkProgress: {
|
|
185
185
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
186
186
|
fixed: number;
|
187
187
|
type: string;
|
188
|
+
color: string;
|
188
189
|
theme: "success" | "warning" | "danger" | "primary";
|
189
190
|
extCls: string;
|
190
191
|
width: number;
|
191
|
-
color: string;
|
192
192
|
strokeLinecap: string;
|
193
193
|
strokeWidth: number;
|
194
194
|
format: (...args: any[]) => any;
|
@@ -380,10 +380,10 @@ declare const BkProgress: {
|
|
380
380
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
381
381
|
fixed: number;
|
382
382
|
type: string;
|
383
|
+
color: string;
|
383
384
|
theme: "success" | "warning" | "danger" | "primary";
|
384
385
|
extCls: string;
|
385
386
|
width: number;
|
386
|
-
color: string;
|
387
387
|
strokeLinecap: string;
|
388
388
|
strokeWidth: number;
|
389
389
|
format: (...args: any[]) => any;
|
@@ -153,10 +153,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
153
153
|
}>>, {
|
154
154
|
fixed: number;
|
155
155
|
type: string;
|
156
|
+
color: string;
|
156
157
|
theme: "success" | "warning" | "danger" | "primary";
|
157
158
|
extCls: string;
|
158
159
|
width: number;
|
159
|
-
color: string;
|
160
160
|
strokeLinecap: string;
|
161
161
|
strokeWidth: number;
|
162
162
|
format: (...args: any[]) => any;
|