rappel-ui 1.0.28 → 1.0.30
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/README.md +1 -0
- package/README.zh.md +1 -0
- package/cjs/components/button/src/constants.d.ts +1 -1
- package/cjs/components/button/src/constants.js +1 -1
- package/cjs/components/index.d.ts +2 -0
- package/cjs/components/index.js +1 -1
- package/cjs/components/message/index.d.ts +4 -0
- package/cjs/components/message/index.js +1 -0
- package/cjs/components/message/src/constants.d.ts +2 -0
- package/cjs/components/message/src/constants.js +1 -0
- package/cjs/components/message/src/create-message.d.ts +2 -0
- package/cjs/components/message/src/create-message.js +1 -0
- package/cjs/components/message/src/message.js +1 -0
- package/{es/components/tooltip/src/content.vue.d.ts → cjs/components/message/src/message.vue.d.ts} +17 -19
- package/cjs/components/message/src/message.vue_vue_type_script_setup_true_lang.js +6 -0
- package/cjs/components/message/src/types.d.ts +58 -0
- package/{es/components/tooltip/src/use-emit.d.ts → cjs/components/message/src/use-message-emit.d.ts} +2 -6
- package/cjs/components/message/src/use-message-emit.js +1 -0
- package/cjs/components/message/src/use-message.d.ts +2 -0
- package/cjs/components/message/src/use-message.js +1 -0
- package/cjs/components/message/style/css.d.ts +0 -0
- package/cjs/components/message/style/css.js +2 -0
- package/cjs/components/message/style/index.d.ts +0 -0
- package/cjs/components/message/style/index.js +2 -0
- package/cjs/components/popconfirm/index.d.ts +6 -26
- package/cjs/components/popconfirm/src/popconfirm.vue.d.ts +22 -30
- package/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popconfirm/src/types.d.ts +2 -2
- package/cjs/components/{tooltip/src/use-emit.d.ts → popconfirm/src/use-popconfirm-emit.d.ts} +2 -6
- package/cjs/components/popconfirm/src/use-popconfirm-emit.js +1 -0
- package/cjs/components/popover/index.d.ts +1 -20
- package/cjs/components/popover/index.js +1 -1
- package/cjs/components/popover/src/popover.vue.d.ts +3 -11
- package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popover/src/types.d.ts +2 -2
- package/cjs/components/popover/src/use-popover-emit.d.ts +12 -0
- package/cjs/components/popover/src/use-popover-emit.js +1 -0
- package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/svg-icon/src/types.d.ts +1 -0
- package/cjs/components/tooltip/index.d.ts +24 -33
- package/cjs/components/tooltip/index.js +1 -1
- package/cjs/components/tooltip/src/tooltip.vue.d.ts +18 -15
- package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/tooltip/src/types.d.ts +5 -40
- package/cjs/components/tooltip/src/use-tooltip-emit.d.ts +12 -0
- package/cjs/components/tooltip/src/use-tooltip-emit.js +1 -0
- package/cjs/components/transition/index.d.ts +67 -0
- package/cjs/components/transition/index.js +1 -0
- package/cjs/components/transition/src/transition.js +1 -0
- package/cjs/components/transition/src/transition.vue.d.ts +33 -0
- package/cjs/components/transition/src/transition.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/transition/src/types.d.ts +21 -0
- package/cjs/components/transition/src/use-transition-emit.d.ts +12 -0
- package/cjs/components/transition/src/use-transition-emit.js +1 -0
- package/cjs/components/transition/style/css.d.ts +0 -0
- package/cjs/components/transition/style/css.js +0 -0
- package/cjs/components/transition/style/index.d.ts +0 -0
- package/cjs/components/transition/style/index.js +0 -0
- package/cjs/index.d.ts +426 -143
- package/cjs/index.js +1 -1
- package/cjs/svg-icons/create-icon.d.ts +2 -2
- package/cjs/svg-icons/create-icon.js +1 -1
- package/cjs/svg-icons/get-async-icon.d.ts +3 -0
- package/cjs/svg-icons/get-async-icon.js +1 -0
- package/cjs/svg-icons/icon-names.d.ts +1 -1
- package/cjs/svg-icons/icon-names.js +1 -1
- package/cjs/svg-icons/index.d.ts +7 -3
- package/cjs/svg-icons/index.js +1 -1
- package/cjs/svg-icons/src/arrow-backward.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-down.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-downward.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-forward.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-left.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-right.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-up.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-upward.d.ts +2 -2
- package/cjs/svg-icons/src/check-circle.d.ts +2 -2
- package/cjs/svg-icons/src/check-fill.d.ts +43 -0
- package/cjs/svg-icons/src/check-fill.js +1 -0
- package/cjs/svg-icons/src/check.d.ts +2 -2
- package/cjs/svg-icons/src/close-circle.d.ts +43 -0
- package/cjs/svg-icons/src/close-circle.js +1 -0
- package/cjs/svg-icons/src/close-fill.d.ts +43 -0
- package/cjs/svg-icons/src/close-fill.js +1 -0
- package/cjs/svg-icons/src/close-short.d.ts +2 -2
- package/cjs/svg-icons/src/close-short.js +1 -1
- package/cjs/svg-icons/src/close.d.ts +2 -2
- package/cjs/svg-icons/src/copy-closure.d.ts +2 -2
- package/cjs/svg-icons/src/copy.d.ts +2 -2
- package/cjs/svg-icons/src/delete.d.ts +2 -2
- package/cjs/svg-icons/src/exclam-fill.d.ts +43 -0
- package/cjs/svg-icons/src/exclam-fill.js +1 -0
- package/cjs/svg-icons/src/exclam.d.ts +2 -2
- package/cjs/svg-icons/src/help.d.ts +2 -2
- package/cjs/svg-icons/src/info-circle.d.ts +43 -0
- package/cjs/svg-icons/src/info-circle.js +1 -0
- package/cjs/svg-icons/src/info-fill.d.ts +43 -0
- package/cjs/svg-icons/src/info-fill.js +1 -0
- package/cjs/svg-icons/src/loading.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle-horizontal.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle-outline-vertical.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-square-horizontal.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-square.d.ts +2 -2
- package/cjs/svg-icons/src/more-line.d.ts +2 -2
- package/cjs/svg-icons/src/search-bold.d.ts +2 -2
- package/cjs/svg-icons/src/search.d.ts +2 -2
- package/cjs/svg-icons/src/star-fill.d.ts +2 -2
- package/cjs/svg-icons/src/star-fill.js +1 -1
- package/cjs/svg-icons/src/star.d.ts +2 -2
- package/cjs/svg-icons/types.d.ts +2 -0
- package/cjs/utils/util.d.ts +3 -3
- package/es/components/button/src/constants.d.ts +1 -1
- package/es/components/button/src/constants.mjs +1 -0
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +20 -10
- package/es/components/message/index.d.ts +4 -0
- package/es/components/message/index.mjs +6 -0
- package/es/components/message/src/constants.d.ts +2 -0
- package/es/components/message/src/constants.mjs +15 -0
- package/es/components/message/src/create-message.d.ts +2 -0
- package/es/components/message/src/create-message.mjs +137 -0
- package/es/components/message/src/message.mjs +5 -0
- package/{cjs/components/tooltip/src/content.vue.d.ts → es/components/message/src/message.vue.d.ts} +17 -19
- package/es/components/message/src/message.vue_vue_type_script_setup_true_lang.mjs +271 -0
- package/es/components/message/src/types.d.ts +58 -0
- package/es/components/message/src/use-message-emit.d.ts +12 -0
- package/es/components/message/src/use-message-emit.mjs +7 -0
- package/es/components/message/src/use-message.d.ts +2 -0
- package/es/components/message/src/use-message.mjs +7 -0
- package/es/components/message/style/css.d.ts +0 -0
- package/es/components/message/style/css.mjs +2 -0
- package/es/components/message/style/index.d.ts +0 -0
- package/es/components/message/style/index.mjs +2 -0
- package/es/components/popconfirm/index.d.ts +6 -26
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +22 -30
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +41 -48
- package/es/components/popconfirm/src/types.d.ts +2 -2
- package/es/components/popconfirm/src/use-popconfirm-emit.d.ts +12 -0
- package/es/components/popconfirm/src/use-popconfirm-emit.mjs +7 -0
- package/es/components/popover/index.d.ts +1 -20
- package/es/components/popover/index.mjs +4 -3
- package/es/components/popover/src/popover.vue.d.ts +3 -11
- package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +21 -28
- package/es/components/popover/src/types.d.ts +2 -2
- package/es/components/popover/src/use-popover-emit.d.ts +12 -0
- package/es/components/popover/src/use-popover-emit.mjs +7 -0
- package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +6 -3
- package/es/components/svg-icon/src/types.d.ts +1 -0
- package/es/components/tooltip/index.d.ts +24 -33
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/tooltip.vue.d.ts +18 -15
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +137 -124
- package/es/components/tooltip/src/types.d.ts +5 -40
- package/es/components/tooltip/src/use-tooltip-emit.d.ts +12 -0
- package/es/components/tooltip/src/use-tooltip-emit.mjs +7 -0
- package/es/components/transition/index.d.ts +67 -0
- package/es/components/transition/index.mjs +8 -0
- package/es/components/transition/src/transition.mjs +5 -0
- package/es/components/transition/src/transition.vue.d.ts +33 -0
- package/es/components/transition/src/transition.vue_vue_type_script_setup_true_lang.mjs +83 -0
- package/es/components/transition/src/types.d.ts +21 -0
- package/es/components/transition/src/use-transition-emit.d.ts +12 -0
- package/es/components/{tooltip/src/use-emit.mjs → transition/src/use-transition-emit.mjs} +2 -6
- package/es/components/transition/style/css.d.ts +0 -0
- package/es/components/transition/style/css.mjs +0 -0
- package/es/components/transition/style/index.d.ts +0 -0
- package/es/components/transition/style/index.mjs +0 -0
- package/es/index.d.ts +426 -143
- package/es/index.mjs +74 -62
- package/es/svg-icons/create-icon.d.ts +2 -2
- package/es/svg-icons/create-icon.mjs +3 -2
- package/es/svg-icons/get-async-icon.d.ts +3 -0
- package/es/svg-icons/get-async-icon.mjs +50 -0
- package/es/svg-icons/icon-names.d.ts +1 -1
- package/es/svg-icons/icon-names.mjs +1 -1
- package/es/svg-icons/index.d.ts +7 -3
- package/es/svg-icons/index.mjs +77 -103
- package/es/svg-icons/src/arrow-backward.d.ts +2 -2
- package/es/svg-icons/src/arrow-down.d.ts +2 -2
- package/es/svg-icons/src/arrow-downward.d.ts +2 -2
- package/es/svg-icons/src/arrow-forward.d.ts +2 -2
- package/es/svg-icons/src/arrow-left.d.ts +2 -2
- package/es/svg-icons/src/arrow-right.d.ts +2 -2
- package/es/svg-icons/src/arrow-up.d.ts +2 -2
- package/es/svg-icons/src/arrow-upward.d.ts +2 -2
- package/es/svg-icons/src/check-circle.d.ts +2 -2
- package/es/svg-icons/src/check-fill.d.ts +43 -0
- package/es/svg-icons/src/check-fill.mjs +8 -0
- package/es/svg-icons/src/check.d.ts +2 -2
- package/es/svg-icons/src/close-circle.d.ts +43 -0
- package/es/svg-icons/src/close-circle.mjs +7 -0
- package/es/svg-icons/src/close-fill.d.ts +43 -0
- package/es/svg-icons/src/close-fill.mjs +9 -0
- package/es/svg-icons/src/close-short.d.ts +2 -2
- package/es/svg-icons/src/close-short.mjs +1 -1
- package/es/svg-icons/src/close.d.ts +2 -2
- package/es/svg-icons/src/copy-closure.d.ts +2 -2
- package/es/svg-icons/src/copy.d.ts +2 -2
- package/es/svg-icons/src/delete.d.ts +2 -2
- package/es/svg-icons/src/exclam-fill.d.ts +43 -0
- package/es/svg-icons/src/exclam-fill.mjs +9 -0
- package/es/svg-icons/src/exclam.d.ts +2 -2
- package/es/svg-icons/src/help.d.ts +2 -2
- package/es/svg-icons/src/info-circle.d.ts +43 -0
- package/es/svg-icons/src/info-circle.mjs +7 -0
- package/es/svg-icons/src/info-fill.d.ts +43 -0
- package/es/svg-icons/src/info-fill.mjs +9 -0
- package/es/svg-icons/src/loading.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle-horizontal.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle-outline-vertical.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle.d.ts +2 -2
- package/es/svg-icons/src/more-dot-square-horizontal.d.ts +2 -2
- package/es/svg-icons/src/more-dot-square.d.ts +2 -2
- package/es/svg-icons/src/more-line.d.ts +2 -2
- package/es/svg-icons/src/search-bold.d.ts +2 -2
- package/es/svg-icons/src/search.d.ts +2 -2
- package/es/svg-icons/src/star-fill.d.ts +2 -2
- package/es/svg-icons/src/star-fill.mjs +1 -1
- package/es/svg-icons/src/star.d.ts +2 -2
- package/es/svg-icons/types.d.ts +2 -0
- package/es/utils/util.d.ts +3 -3
- package/package.json +2 -2
- package/theme-chalk/base.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/re-button.css +1 -1
- package/theme-chalk/re-message.css +1 -0
- package/theme-chalk/root-vars.css +1 -1
- package/theme-chalk/src/css-vars/_button.scss +1 -1
- package/theme-chalk/src/css-vars/_colors.scss +19 -16
- package/theme-chalk/src/css-vars/_message.scss +49 -0
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/message.scss +272 -0
- package/theme-chalk/src/mixins/_message.scss +70 -0
- package/cjs/components/tooltip/src/content.js +0 -1
- package/cjs/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/tooltip/src/use-emit.js +0 -1
- package/es/components/tooltip/src/content.mjs +0 -5
- package/es/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.mjs +0 -166
|
@@ -6,7 +6,7 @@ export declare const Exclam: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const Exclam: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const Help: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const Help: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export declare const InfoCircle: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
size: {
|
|
4
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
fill: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
spin: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
22
|
+
size: {
|
|
23
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
color: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
fill: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
spin: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
}>> & Readonly<{}>, {
|
|
39
|
+
size: string | number;
|
|
40
|
+
fill: string;
|
|
41
|
+
color: string;
|
|
42
|
+
spin: boolean;
|
|
43
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=require("../create-icon.js").createIcon({name:`info-circle`,path:`M3 12A9 9 0 0 1 21 12A9 9 0 0 1 3 12M10.4894 11.7793C11.0539 11.2642 12.9614 10.1218 12.9276 10.5009C12.765 11.169 12.425 12.3958 12.0924 13.7461C11.9024 14.4937 11.4465 16.0581 11.3852 16.2957C11.2726 16.7324 11.2162 16.9405 11.1308 17.2798C11.0796 17.8528 11.8422 17.0719 12.0929 16.8945M12.5 7.2a0.5 0.5 0 0 1 1 0a0.5 0.5 0 0 1 -1 0`});exports.InfoCircle=e;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export declare const InfoFill: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
size: {
|
|
4
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
fill: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
spin: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
22
|
+
size: {
|
|
23
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
color: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
fill: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
spin: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
}>> & Readonly<{}>, {
|
|
39
|
+
size: string | number;
|
|
40
|
+
fill: string;
|
|
41
|
+
color: string;
|
|
42
|
+
spin: boolean;
|
|
43
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=require("../create-icon.js").createIcon({name:`info-fill`,path:`M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM11.2462 10.3312C10.536 10.7268 9.99236 11.0966 9.61541 11.4405C9.20173 11.818 9.17325 12.4396 9.5507 12.8533C9.92815 13.267 10.5497 13.2954 10.9634 12.918C11.0385 12.8495 11.1264 12.7776 11.2271 12.7025C11.1036 13.1796 11.0017 13.5811 10.9214 13.9069C10.842 14.2196 10.6683 14.8476 10.4005 15.7907C10.2942 16.1651 10.233 16.3835 10.2169 16.446L10.0486 17.0931L9.94193 17.5104L9.93475 17.5909C9.90578 17.9154 9.96149 18.1841 10.1019 18.3969C10.2025 18.5495 10.3467 18.6733 10.5344 18.7684C10.6556 18.8299 10.7795 18.8681 10.9063 18.8833C11.136 18.9106 11.3748 18.8619 11.6227 18.7371C11.7958 18.6499 12.0325 18.4792 12.3329 18.2251C12.4141 18.1563 12.46 18.1182 12.4705 18.1108C12.9268 17.788 13.0323 17.1764 12.7111 16.7195C12.7105 16.7186 12.7099 16.7178 12.7092 16.7169C12.6028 16.5664 12.4649 16.4541 12.3115 16.3826C12.3158 16.3677 12.3201 16.3525 12.3245 16.337C12.5973 15.376 12.777 14.7254 12.8634 14.3853C12.9878 13.8804 13.1661 13.1865 13.3983 12.3036C13.5505 11.7252 13.6508 11.3364 13.6992 11.1373L13.717 11.0645L13.7236 10.9898C13.7392 10.8157 13.7189 10.6553 13.6628 10.5085C13.6119 10.3752 13.5315 10.2532 13.4215 10.1425C13.3409 10.0613 13.2522 9.99568 13.1555 9.94561C13.0294 9.88036 12.8897 9.84154 12.7363 9.82913C12.5508 9.81415 12.3454 9.84475 12.12 9.92096C11.887 9.99973 11.5958 10.1365 11.2462 10.3312ZM14.4 7.3C14.4 8.12843 13.7284 8.8 12.9 8.8C12.0716 8.8 11.4 8.12843 11.4 7.3C11.4 6.47157 12.0716 5.8 12.9 5.8C13.7284 5.8 14.4 6.47157 14.4 7.3Z`,fill:`currentColor`,fillRule:`evenodd`});exports.InfoFill=e;
|
|
@@ -6,7 +6,7 @@ export declare const Loading: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const Loading: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const MoreDotCircleHorizontal: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const MoreDotCircleHorizontal: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const MoreDotCircleOutlineHorizontal: DefineComponent<ExtractProp
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const MoreDotCircleOutlineHorizontal: DefineComponent<ExtractProp
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const MoreDotCircleOutlineVertical: DefineComponent<ExtractPropTy
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const MoreDotCircleOutlineVertical: DefineComponent<ExtractPropTy
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const MoreDotCircle: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const MoreDotCircle: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const MoreDotSquareHorizontal: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const MoreDotSquareHorizontal: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const MoreDotSquare: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const MoreDotSquare: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const MoreLine: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const MoreLine: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const SearchBold: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const SearchBold: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const Search: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const Search: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const StarFill: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const StarFill: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=require("../create-icon.js").createIcon({name:`star-fill`,path:`M12
|
|
1
|
+
var e=require("../create-icon.js").createIcon({name:`star-fill`,path:`M12 1L15 8.86L23.41 9.29L16.86 14.58L19.05 22.71L12 18.11L4.95 22.71L7.14 14.58L0.59 9.29L9 8.86L12 1`,fill:`currentColor`});exports.StarFill=e;
|
|
@@ -6,7 +6,7 @@ export declare const Star: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: undefined;
|
|
9
|
+
default: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
fill: {
|
|
12
12
|
type: StringConstructor;
|
|
@@ -25,7 +25,7 @@ export declare const Star: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
color: {
|
|
27
27
|
type: StringConstructor;
|
|
28
|
-
default: undefined;
|
|
28
|
+
default: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
fill: {
|
|
31
31
|
type: StringConstructor;
|
package/cjs/svg-icons/types.d.ts
CHANGED
package/cjs/utils/util.d.ts
CHANGED
|
@@ -79,21 +79,21 @@ export declare function buildTree(data: any[], props?: {
|
|
|
79
79
|
}): any[];
|
|
80
80
|
/**
|
|
81
81
|
* 计算半透明颜色与白色背景混合后的等效不透明颜色值
|
|
82
|
-
* @param hexColor 原始十六进制颜色值 (例如 '#
|
|
82
|
+
* @param hexColor 原始十六进制颜色值 (例如 '#a895ff')
|
|
83
83
|
* @param opacity 透明度值 (0-1之间,默认为0.9)
|
|
84
84
|
* @returns 等效的不透明颜色值 (十六进制格式)
|
|
85
85
|
*/
|
|
86
86
|
export declare function getEqualOpacityColor(hexColor: string, opacity?: number, isDark?: boolean): string;
|
|
87
87
|
/**
|
|
88
88
|
* 将颜色向黑色靠近(变暗)
|
|
89
|
-
* @param hexColor 原始十六进制颜色值 (例如 '#
|
|
89
|
+
* @param hexColor 原始十六进制颜色值 (例如 '#a895ff')
|
|
90
90
|
* @param factor 混合因子 (0-1, 0表示完全不改变,1表示完全变为黑色)
|
|
91
91
|
* @returns 调整后的颜色值
|
|
92
92
|
*/
|
|
93
93
|
export declare function darkenColor(hexColor: string, factor?: number): string;
|
|
94
94
|
/**
|
|
95
95
|
* @description 创建层次颜色数组,包含一个变暗的颜色(hover/active)和多个透明度的等值颜色值
|
|
96
|
-
* @param baseColor - 基础颜色的十六进制字符串 (例如 '#
|
|
96
|
+
* @param baseColor - 基础颜色的十六进制字符串 (例如 '#a895ff')
|
|
97
97
|
* @param isDark - 是否为暗色模式,默认为false
|
|
98
98
|
* @param darkDegree - 变暗程度,默认为0.12,取值范围为0-1,0表示不变,1表示完全变为黑色
|
|
99
99
|
* @param opacityLevels - 透明度数组,默认为 [0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const buttonTypes: readonly ["primary", "success", "warning", "danger", "info", ""];
|
|
1
|
+
export declare const buttonTypes: readonly ["primary", "success", "warning", "danger", "error", "info", ""];
|
|
2
2
|
export declare const buttonSizes: readonly ["mini", "small", "", "large"];
|
|
3
3
|
export declare const buttonNativeTypes: readonly ["button", "submit", "reset"];
|
|
4
4
|
export declare const _buttonGroupProps: unique symbol;
|
package/es/components/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './secondary-color';
|
|
|
6
6
|
export * from './neutral-color';
|
|
7
7
|
export * from './filter-panel';
|
|
8
8
|
export * from './svg-icon';
|
|
9
|
+
export * from './transition';
|
|
9
10
|
export * from './tooltip';
|
|
10
11
|
export * from './popover';
|
|
11
12
|
export * from './popconfirm';
|
|
13
|
+
export * from './message';
|
package/es/components/index.mjs
CHANGED
|
@@ -8,29 +8,39 @@ import { ReSecondaryColor as u } from "./secondary-color/index.mjs";
|
|
|
8
8
|
import { ReNeutralColor as d } from "./neutral-color/index.mjs";
|
|
9
9
|
import { ReFilterPanel as f } from "./filter-panel/index.mjs";
|
|
10
10
|
import { ReSvgIcon as p } from "./svg-icon/index.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { useTransitionEmits as m } from "./transition/src/use-transition-emit.mjs";
|
|
12
|
+
import { ReTransition as h } from "./transition/index.mjs";
|
|
13
|
+
import { useTooltipEmits as g } from "./tooltip/src/use-tooltip-emit.mjs";
|
|
14
|
+
import { ReTooltip as _ } from "./tooltip/index.mjs";
|
|
15
|
+
import { usePopoverEmits as v } from "./popover/src/use-popover-emit.mjs";
|
|
16
|
+
import { RePopover as y } from "./popover/index.mjs";
|
|
17
|
+
import { RePopconfirm as b } from "./popconfirm/index.mjs";
|
|
18
|
+
import { createMessage as x } from "./message/src/create-message.mjs";
|
|
19
|
+
import { ReMessage as S } from "./message/index.mjs";
|
|
15
20
|
//#region packages/components/index.ts
|
|
16
|
-
var
|
|
21
|
+
var C = e({
|
|
17
22
|
ReButton: () => a,
|
|
18
23
|
ReButtonGroup: () => o,
|
|
19
24
|
ReFilterPanel: () => f,
|
|
20
25
|
ReInput: () => s,
|
|
26
|
+
ReMessage: () => S,
|
|
21
27
|
ReNeutralColor: () => d,
|
|
22
|
-
RePopconfirm: () =>
|
|
23
|
-
RePopover: () =>
|
|
28
|
+
RePopconfirm: () => b,
|
|
29
|
+
RePopover: () => y,
|
|
24
30
|
RePrimaryColor: () => l,
|
|
25
31
|
ReSecondaryColor: () => u,
|
|
26
32
|
ReSvgIcon: () => p,
|
|
27
33
|
ReTabs: () => c,
|
|
28
|
-
ReTooltip: () =>
|
|
34
|
+
ReTooltip: () => _,
|
|
35
|
+
ReTransition: () => h,
|
|
29
36
|
_buttonGroupProps: () => t,
|
|
30
37
|
buttonNativeTypes: () => n,
|
|
31
38
|
buttonSizes: () => r,
|
|
32
39
|
buttonTypes: () => i,
|
|
33
|
-
|
|
40
|
+
createMessage: () => x,
|
|
41
|
+
usePopoverEmits: () => v,
|
|
42
|
+
useTooltipEmits: () => g,
|
|
43
|
+
useTransitionEmits: () => m
|
|
34
44
|
});
|
|
35
45
|
//#endregion
|
|
36
|
-
export { a as ReButton, o as ReButtonGroup, f as ReFilterPanel, s as ReInput, d as ReNeutralColor,
|
|
46
|
+
export { a as ReButton, o as ReButtonGroup, f as ReFilterPanel, s as ReInput, S as ReMessage, d as ReNeutralColor, b as RePopconfirm, y as RePopover, l as RePrimaryColor, u as ReSecondaryColor, p as ReSvgIcon, c as ReTabs, _ as ReTooltip, h as ReTransition, t as _buttonGroupProps, n as buttonNativeTypes, r as buttonSizes, i as buttonTypes, C as components_exports, x as createMessage, v as usePopoverEmits, g as useTooltipEmits, m as useTransitionEmits };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region packages/components/message/src/constants.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"primary",
|
|
4
|
+
"success",
|
|
5
|
+
"warning",
|
|
6
|
+
"error",
|
|
7
|
+
"info"
|
|
8
|
+
], t = [
|
|
9
|
+
"left-top",
|
|
10
|
+
"left-bottom",
|
|
11
|
+
"right-top",
|
|
12
|
+
"right-bottom"
|
|
13
|
+
];
|
|
14
|
+
//#endregion
|
|
15
|
+
export { e as messageTypes, t as verticalPlacement };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { isPlainObject as e } from "../../../utils/util.mjs";
|
|
2
|
+
import "../../../utils/index.mjs";
|
|
3
|
+
import { useNamespace as t } from "../../../composables/use-namespace/index.mjs";
|
|
4
|
+
import "../../../composables/index.mjs";
|
|
5
|
+
import { messageTypes as n, verticalPlacement as r } from "./constants.mjs";
|
|
6
|
+
import i from "./message.mjs";
|
|
7
|
+
import { createVNode as a, nextTick as o, render as s, watch as c } from "vue";
|
|
8
|
+
import { useElementSize as l } from "@vueuse/core";
|
|
9
|
+
//#region packages/components/message/src/create-message.ts
|
|
10
|
+
var { ng: u } = t("message"), d = 0, f = {}, p = {}, m = (e, t) => {
|
|
11
|
+
let n = p[e] || [], r = t;
|
|
12
|
+
n.forEach((e) => {
|
|
13
|
+
var t;
|
|
14
|
+
(t = e.vnode) != null && (t = t.component) != null && (t = t.exposed) != null && t.setOffset && (e.vnode.component.exposed.setOffset(r), r += e.offset);
|
|
15
|
+
});
|
|
16
|
+
}, h = (e, t, n, i) => {
|
|
17
|
+
let a = n.getBoundingClientRect(), o = f[e];
|
|
18
|
+
if (!o) return;
|
|
19
|
+
let { vnode: s } = o, c = r.includes(t) ? t : t.split("-")[0];
|
|
20
|
+
switch (p[t] || (p[t] = []), c) {
|
|
21
|
+
case "left-top":
|
|
22
|
+
case "left-bottom":
|
|
23
|
+
case "right-top":
|
|
24
|
+
case "right-bottom":
|
|
25
|
+
case "top":
|
|
26
|
+
case "bottom": {
|
|
27
|
+
let n = i + a.height;
|
|
28
|
+
p[t].push({
|
|
29
|
+
offset: n,
|
|
30
|
+
id: e,
|
|
31
|
+
vnode: s
|
|
32
|
+
});
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
case "left":
|
|
36
|
+
case "right": {
|
|
37
|
+
let n = i + a.width;
|
|
38
|
+
p[t].push({
|
|
39
|
+
offset: n,
|
|
40
|
+
id: e,
|
|
41
|
+
vnode: s
|
|
42
|
+
});
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
m(t, i);
|
|
47
|
+
}, g = (e, t) => {
|
|
48
|
+
let n = f[e];
|
|
49
|
+
if (!n || !n.placement) return;
|
|
50
|
+
let r = p[n.placement];
|
|
51
|
+
if (!r) return;
|
|
52
|
+
let i = r.findIndex((t) => t.id === e);
|
|
53
|
+
i > -1 && r.splice(i, 1), m(n.placement, t), r.length === 0 && delete p[n.placement];
|
|
54
|
+
}, _ = (e, t = 20) => (p[e] || []).reduce((e, t) => e + t.offset, 0) + t, v = (e, t, n, i) => {
|
|
55
|
+
let a = p[n];
|
|
56
|
+
if (!a) return;
|
|
57
|
+
let o = a.find((e) => e.id === t);
|
|
58
|
+
if (o) {
|
|
59
|
+
let t = r.includes(n) ? n : n.split("-")[0], a = e.getBoundingClientRect();
|
|
60
|
+
switch (t) {
|
|
61
|
+
case "left-top":
|
|
62
|
+
case "left-bottom":
|
|
63
|
+
case "right-top":
|
|
64
|
+
case "right-bottom":
|
|
65
|
+
case "top":
|
|
66
|
+
case "bottom":
|
|
67
|
+
o.offset = i + a.height;
|
|
68
|
+
break;
|
|
69
|
+
case "left":
|
|
70
|
+
case "right": o.offset = i + a.width;
|
|
71
|
+
}
|
|
72
|
+
m(n, i);
|
|
73
|
+
}
|
|
74
|
+
}, y = (e, t, n, r) => {
|
|
75
|
+
let { stop: i, width: a, height: o } = l(e), { stop: s } = c(() => [a.value, o.value], () => v(e, t, n, r));
|
|
76
|
+
return { stop: () => {
|
|
77
|
+
i(), s();
|
|
78
|
+
} };
|
|
79
|
+
}, b = (e) => {
|
|
80
|
+
var t;
|
|
81
|
+
let n = Object.assign({}, {
|
|
82
|
+
placement: "top",
|
|
83
|
+
offset: 16
|
|
84
|
+
}, x(e || {})), r = document.createElement("div"), c = u(`${d++}`), l = parseFloat(n.offset), p = _(n.placement, l), m = null, v = a(i, {
|
|
85
|
+
...n,
|
|
86
|
+
id: c,
|
|
87
|
+
offset: p,
|
|
88
|
+
onBeforeEnter(e) {
|
|
89
|
+
var t;
|
|
90
|
+
o(() => {
|
|
91
|
+
h(c, n.placement, e, l), m = y(e, c, n.placement, l);
|
|
92
|
+
}), n == null || (t = n.onShow) == null || t.call(n, e);
|
|
93
|
+
},
|
|
94
|
+
onAfterEnter(e) {
|
|
95
|
+
var t;
|
|
96
|
+
n == null || (t = n.onShown) == null || t.call(n, e);
|
|
97
|
+
},
|
|
98
|
+
onBeforeLeave(e) {
|
|
99
|
+
var t;
|
|
100
|
+
n == null || (t = n.onClose) == null || t.call(n, e), g(c, l);
|
|
101
|
+
},
|
|
102
|
+
onAfterLeave(e) {
|
|
103
|
+
var t, i;
|
|
104
|
+
s(null, r), delete f[c], n == null || (t = n.onClosed) == null || t.call(n, e), m == null || (i = m.stop) == null || i.call(m);
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
return s(v, r), f[c] = {
|
|
108
|
+
id: c,
|
|
109
|
+
container: r,
|
|
110
|
+
vnode: v,
|
|
111
|
+
props: (v == null || (t = v.component) == null ? void 0 : t.props) || {},
|
|
112
|
+
placement: n.placement,
|
|
113
|
+
actualOffset: p,
|
|
114
|
+
close() {
|
|
115
|
+
var e;
|
|
116
|
+
(e = v.component) == null || (e = e.exposed) == null || e.close();
|
|
117
|
+
},
|
|
118
|
+
show() {
|
|
119
|
+
var e;
|
|
120
|
+
(e = v.component) == null || (e = e.exposed) == null || e.show();
|
|
121
|
+
}
|
|
122
|
+
}, f[c];
|
|
123
|
+
}, x = (t) => typeof t == "string" ? { content: t } : e(t) ? t : {};
|
|
124
|
+
n.forEach((e) => {
|
|
125
|
+
b[e] = (t) => b({
|
|
126
|
+
...x(t),
|
|
127
|
+
type: e
|
|
128
|
+
});
|
|
129
|
+
}), b.closeAll = () => {
|
|
130
|
+
Object.values(f).forEach((e) => {
|
|
131
|
+
var t;
|
|
132
|
+
e == null || (t = e.close) == null || t.call(e);
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
var S = b;
|
|
136
|
+
//#endregion
|
|
137
|
+
export { S as createMessage };
|