@mobileaction/action-kit 1.1.17 → 1.1.19
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/action-kit.js +3 -3
- package/dist/action-kit.mjs +711 -477
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.vue.d.ts +147 -0
- package/dist/components/modal/types.d.ts +5 -0
- package/dist/components/rate/components/star.vue.d.ts +35 -0
- package/dist/components/rate/index.vue.d.ts +84 -0
- package/dist/components/rate/types.d.ts +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/src/components/modal/index.d.ts +2 -0
- package/dist/src/components/modal/index.vue.d.ts +66 -0
- package/dist/src/components/modal/stories/constants.d.ts +7 -0
- package/dist/src/components/modal/stories/custom.stories.d.ts +6 -0
- package/dist/src/components/modal/stories/default.stories.d.ts +11 -0
- package/dist/src/components/modal/stories/functions.stories.d.ts +10 -0
- package/dist/src/components/modal/types.d.ts +5 -0
- package/dist/src/components/rate/components/star.vue.d.ts +17 -0
- package/dist/src/components/rate/index.vue.d.ts +41 -0
- package/dist/src/components/rate/stories/constants.d.ts +4 -0
- package/dist/src/components/rate/stories/default.stories.d.ts +9 -0
- package/dist/src/components/rate/types.d.ts +4 -0
- package/dist/src/components/tooltip/tooltip.test.d.ts +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/star-half-colored-3b10f42e.mjs +23 -0
- package/dist/star-half-colored-aba13f97.js +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { ModalProps } from "ant-design-vue";
|
|
3
|
+
import { MaModalPropType } from "./types";
|
|
4
|
+
import { MaButtonProps } from "../button/index.vue";
|
|
5
|
+
export interface MaModalProps extends ModalProps {
|
|
6
|
+
visible?: boolean;
|
|
7
|
+
type?: MaModalPropType;
|
|
8
|
+
title?: string;
|
|
9
|
+
content?: string;
|
|
10
|
+
confirmLoading?: boolean;
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
okText?: string;
|
|
13
|
+
okButtonProps?: MaButtonProps;
|
|
14
|
+
cancelText?: string;
|
|
15
|
+
cancelButtonProps?: MaButtonProps;
|
|
16
|
+
mask?: boolean;
|
|
17
|
+
maskClosable?: boolean;
|
|
18
|
+
width?: number;
|
|
19
|
+
}
|
|
20
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
21
|
+
visible: {
|
|
22
|
+
type: __PropType<boolean>;
|
|
23
|
+
required: false;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
type: {
|
|
27
|
+
type: __PropType<string>;
|
|
28
|
+
required: false;
|
|
29
|
+
};
|
|
30
|
+
title: {
|
|
31
|
+
type: __PropType<string>;
|
|
32
|
+
required: false;
|
|
33
|
+
};
|
|
34
|
+
content: {
|
|
35
|
+
type: __PropType<string>;
|
|
36
|
+
required: false;
|
|
37
|
+
};
|
|
38
|
+
confirmLoading: {
|
|
39
|
+
type: __PropType<boolean>;
|
|
40
|
+
required: false;
|
|
41
|
+
};
|
|
42
|
+
closable: {
|
|
43
|
+
type: __PropType<boolean>;
|
|
44
|
+
required: false;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
okText: {
|
|
48
|
+
type: __PropType<string>;
|
|
49
|
+
required: false;
|
|
50
|
+
};
|
|
51
|
+
okButtonProps: {
|
|
52
|
+
type: __PropType<MaButtonProps>;
|
|
53
|
+
required: false;
|
|
54
|
+
};
|
|
55
|
+
cancelText: {
|
|
56
|
+
type: __PropType<string>;
|
|
57
|
+
required: false;
|
|
58
|
+
};
|
|
59
|
+
cancelButtonProps: {
|
|
60
|
+
type: __PropType<MaButtonProps>;
|
|
61
|
+
required: false;
|
|
62
|
+
};
|
|
63
|
+
mask: {
|
|
64
|
+
type: __PropType<boolean>;
|
|
65
|
+
required: false;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
maskClosable: {
|
|
69
|
+
type: __PropType<boolean>;
|
|
70
|
+
required: false;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
width: {
|
|
74
|
+
type: __PropType<number>;
|
|
75
|
+
required: false;
|
|
76
|
+
default: number;
|
|
77
|
+
};
|
|
78
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "ok" | "cancel")[], "update:visible" | "ok" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
|
+
visible: {
|
|
80
|
+
type: __PropType<boolean>;
|
|
81
|
+
required: false;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
type: {
|
|
85
|
+
type: __PropType<string>;
|
|
86
|
+
required: false;
|
|
87
|
+
};
|
|
88
|
+
title: {
|
|
89
|
+
type: __PropType<string>;
|
|
90
|
+
required: false;
|
|
91
|
+
};
|
|
92
|
+
content: {
|
|
93
|
+
type: __PropType<string>;
|
|
94
|
+
required: false;
|
|
95
|
+
};
|
|
96
|
+
confirmLoading: {
|
|
97
|
+
type: __PropType<boolean>;
|
|
98
|
+
required: false;
|
|
99
|
+
};
|
|
100
|
+
closable: {
|
|
101
|
+
type: __PropType<boolean>;
|
|
102
|
+
required: false;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
okText: {
|
|
106
|
+
type: __PropType<string>;
|
|
107
|
+
required: false;
|
|
108
|
+
};
|
|
109
|
+
okButtonProps: {
|
|
110
|
+
type: __PropType<MaButtonProps>;
|
|
111
|
+
required: false;
|
|
112
|
+
};
|
|
113
|
+
cancelText: {
|
|
114
|
+
type: __PropType<string>;
|
|
115
|
+
required: false;
|
|
116
|
+
};
|
|
117
|
+
cancelButtonProps: {
|
|
118
|
+
type: __PropType<MaButtonProps>;
|
|
119
|
+
required: false;
|
|
120
|
+
};
|
|
121
|
+
mask: {
|
|
122
|
+
type: __PropType<boolean>;
|
|
123
|
+
required: false;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
maskClosable: {
|
|
127
|
+
type: __PropType<boolean>;
|
|
128
|
+
required: false;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
width: {
|
|
132
|
+
type: __PropType<number>;
|
|
133
|
+
required: false;
|
|
134
|
+
default: number;
|
|
135
|
+
};
|
|
136
|
+
}>> & {
|
|
137
|
+
onOk?: (...args: any[]) => any;
|
|
138
|
+
onCancel?: (...args: any[]) => any;
|
|
139
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
140
|
+
}, {
|
|
141
|
+
closable: boolean;
|
|
142
|
+
width: number;
|
|
143
|
+
visible: boolean;
|
|
144
|
+
maskClosable: boolean;
|
|
145
|
+
mask: boolean;
|
|
146
|
+
}>;
|
|
147
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { MaRateSize } from "../types";
|
|
3
|
+
export interface MaRateStarProps {
|
|
4
|
+
value: number;
|
|
5
|
+
starRate: number;
|
|
6
|
+
iconSize: MaRateSize;
|
|
7
|
+
}
|
|
8
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
9
|
+
value: {
|
|
10
|
+
type: __PropType<number>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
starRate: {
|
|
14
|
+
type: __PropType<number>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
iconSize: {
|
|
18
|
+
type: __PropType<string>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
value: {
|
|
23
|
+
type: __PropType<number>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
starRate: {
|
|
27
|
+
type: __PropType<number>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
iconSize: {
|
|
31
|
+
type: __PropType<string>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}>>, {}>;
|
|
35
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { MaRateSize, MaRateColor } from "./types";
|
|
3
|
+
export interface MaRateProps {
|
|
4
|
+
value: number;
|
|
5
|
+
allowClear?: boolean;
|
|
6
|
+
allowHalf?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
size?: MaRateSize;
|
|
9
|
+
color?: MaRateColor;
|
|
10
|
+
tabIndex?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
13
|
+
value: {
|
|
14
|
+
type: __PropType<number>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
allowClear: {
|
|
18
|
+
type: __PropType<boolean>;
|
|
19
|
+
required: false;
|
|
20
|
+
};
|
|
21
|
+
allowHalf: {
|
|
22
|
+
type: __PropType<boolean>;
|
|
23
|
+
required: false;
|
|
24
|
+
};
|
|
25
|
+
disabled: {
|
|
26
|
+
type: __PropType<boolean>;
|
|
27
|
+
required: false;
|
|
28
|
+
};
|
|
29
|
+
size: {
|
|
30
|
+
type: __PropType<string>;
|
|
31
|
+
required: false;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
color: {
|
|
35
|
+
type: __PropType<string>;
|
|
36
|
+
required: false;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
tabIndex: {
|
|
40
|
+
type: __PropType<number>;
|
|
41
|
+
required: false;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
value: {
|
|
46
|
+
type: __PropType<number>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
allowClear: {
|
|
50
|
+
type: __PropType<boolean>;
|
|
51
|
+
required: false;
|
|
52
|
+
};
|
|
53
|
+
allowHalf: {
|
|
54
|
+
type: __PropType<boolean>;
|
|
55
|
+
required: false;
|
|
56
|
+
};
|
|
57
|
+
disabled: {
|
|
58
|
+
type: __PropType<boolean>;
|
|
59
|
+
required: false;
|
|
60
|
+
};
|
|
61
|
+
size: {
|
|
62
|
+
type: __PropType<string>;
|
|
63
|
+
required: false;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
color: {
|
|
67
|
+
type: __PropType<string>;
|
|
68
|
+
required: false;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
tabIndex: {
|
|
72
|
+
type: __PropType<number>;
|
|
73
|
+
required: false;
|
|
74
|
+
default: number;
|
|
75
|
+
};
|
|
76
|
+
}>> & {
|
|
77
|
+
onChange?: (...args: any[]) => any;
|
|
78
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
79
|
+
}, {
|
|
80
|
+
size: string;
|
|
81
|
+
color: string;
|
|
82
|
+
tabIndex: number;
|
|
83
|
+
}>;
|
|
84
|
+
export default _sfc_main;
|
package/dist/index.d.ts
CHANGED
|
@@ -19,5 +19,7 @@ export { default as MaRadioGroup } from './components/radio/group.vue';
|
|
|
19
19
|
export { default as MaBadge } from './components/badge/index.vue';
|
|
20
20
|
export { default as MaAlert } from './components/alert/index.vue';
|
|
21
21
|
export { default as MaAnimation } from './components/animation/index.vue';
|
|
22
|
+
export { default as MaModal } from './components/modal/index';
|
|
23
|
+
export { default as MaRate } from './components/rate/index.vue';
|
|
22
24
|
export { ActionKitConfig } from './services/config';
|
|
23
25
|
export { useActionKitConfig } from './composables/config';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ModalProps } from "ant-design-vue";
|
|
2
|
+
import { MaModalPropType } from "./types";
|
|
3
|
+
import { MaButtonProps } from "../button/index.vue";
|
|
4
|
+
export interface MaModalProps extends ModalProps {
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
type?: MaModalPropType;
|
|
7
|
+
title?: string;
|
|
8
|
+
content?: string;
|
|
9
|
+
confirmLoading?: boolean;
|
|
10
|
+
closable?: boolean;
|
|
11
|
+
okText?: string;
|
|
12
|
+
okButtonProps?: MaButtonProps;
|
|
13
|
+
cancelText?: string;
|
|
14
|
+
cancelButtonProps?: MaButtonProps;
|
|
15
|
+
mask?: boolean;
|
|
16
|
+
maskClosable?: boolean;
|
|
17
|
+
width?: number;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaModalProps>, {
|
|
20
|
+
visible: boolean;
|
|
21
|
+
closable: boolean;
|
|
22
|
+
mask: boolean;
|
|
23
|
+
maskClosable: boolean;
|
|
24
|
+
width: number;
|
|
25
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "ok" | "cancel")[], "update:visible" | "ok" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaModalProps>, {
|
|
26
|
+
visible: boolean;
|
|
27
|
+
closable: boolean;
|
|
28
|
+
mask: boolean;
|
|
29
|
+
maskClosable: boolean;
|
|
30
|
+
width: number;
|
|
31
|
+
}>>> & {
|
|
32
|
+
onOk?: (...args: any[]) => any;
|
|
33
|
+
onCancel?: (...args: any[]) => any;
|
|
34
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
35
|
+
}, {
|
|
36
|
+
mask: boolean;
|
|
37
|
+
closable: boolean;
|
|
38
|
+
width: number;
|
|
39
|
+
visible: boolean;
|
|
40
|
+
maskClosable: boolean;
|
|
41
|
+
}>, {
|
|
42
|
+
title: (_: {}) => any;
|
|
43
|
+
content: (_: {}) => any;
|
|
44
|
+
default: (_: {}) => any;
|
|
45
|
+
footer: (_: {}) => any;
|
|
46
|
+
}>;
|
|
47
|
+
export default _default;
|
|
48
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
50
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
+
} : {
|
|
53
|
+
type: import('vue').PropType<T[K]>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
58
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
59
|
+
default: D[K];
|
|
60
|
+
} : P[K];
|
|
61
|
+
};
|
|
62
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
63
|
+
new (): {
|
|
64
|
+
$slots: S;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import MaModal from '../index';
|
|
3
|
+
export declare const baseConfig: Meta<typeof MaModal>;
|
|
4
|
+
export declare const functionsBaseConfig: any;
|
|
5
|
+
export declare const Template: StoryFn;
|
|
6
|
+
export declare const CustomTemplate: StoryFn;
|
|
7
|
+
export declare const FunctionsTemplate: StoryFn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaModal from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaModal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaModal>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Success: Story;
|
|
8
|
+
export declare const Confirm: Story;
|
|
9
|
+
export declare const Error: Story;
|
|
10
|
+
export declare const Warning: Story;
|
|
11
|
+
export declare const Info: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaModal from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaModal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaModal>;
|
|
6
|
+
export declare const Info: Story;
|
|
7
|
+
export declare const Success: Story;
|
|
8
|
+
export declare const Confirm: Story;
|
|
9
|
+
export declare const Error: Story;
|
|
10
|
+
export declare const Warning: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MaRateSize } from "../types";
|
|
2
|
+
export interface MaRateStarProps {
|
|
3
|
+
value: number;
|
|
4
|
+
starRate: number;
|
|
5
|
+
iconSize: MaRateSize;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaRateStarProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaRateStarProps>>>, {}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { MaRateSize, MaRateColor } from "./types";
|
|
2
|
+
export interface MaRateProps {
|
|
3
|
+
value: number;
|
|
4
|
+
allowClear?: boolean;
|
|
5
|
+
allowHalf?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
size?: MaRateSize;
|
|
8
|
+
color?: MaRateColor;
|
|
9
|
+
tabIndex?: number;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaRateProps>, {
|
|
12
|
+
size: string;
|
|
13
|
+
color: string;
|
|
14
|
+
tabIndex: number;
|
|
15
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaRateProps>, {
|
|
16
|
+
size: string;
|
|
17
|
+
color: string;
|
|
18
|
+
tabIndex: number;
|
|
19
|
+
}>>> & {
|
|
20
|
+
onChange?: (...args: any[]) => any;
|
|
21
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
22
|
+
}, {
|
|
23
|
+
size: string;
|
|
24
|
+
color: string;
|
|
25
|
+
tabIndex: number;
|
|
26
|
+
}>;
|
|
27
|
+
export default _default;
|
|
28
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
+
} : {
|
|
33
|
+
type: import('vue').PropType<T[K]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
38
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
39
|
+
default: D[K];
|
|
40
|
+
} : P[K];
|
|
41
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaRate from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaRate>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaRate>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const AllowHalf: Story;
|
|
8
|
+
export declare const AllowClear: Story;
|
|
9
|
+
export declare const ReadOnly: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -20,5 +20,7 @@ export { default as MaRadioGroup } from './components/radio/group.vue';
|
|
|
20
20
|
export { default as MaBadge } from './components/badge/index.vue';
|
|
21
21
|
export { default as MaAlert } from './components/alert/index.vue';
|
|
22
22
|
export { default as MaAnimation } from './components/animation/index.vue';
|
|
23
|
+
export { default as MaModal } from './components/modal/index';
|
|
24
|
+
export { default as MaRate } from './components/rate/index.vue';
|
|
23
25
|
export { ActionKitConfig } from './services/config';
|
|
24
26
|
export { useActionKitConfig } from './composables/config';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { openBlock as c, createElementBlock as e, createElementVNode as l } from "vue";
|
|
2
|
+
const t = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
viewBox: "0 0 16 16"
|
|
6
|
+
}, o = /* @__PURE__ */ l("path", {
|
|
7
|
+
fill: "#EAECF0",
|
|
8
|
+
d: "M3.827 10.667c.073-.327-.06-.794-.293-1.027l-1.62-1.62c-.507-.507-.707-1.047-.56-1.513.153-.467.626-.787 1.333-.907l2.08-.347c.3-.053.667-.32.807-.593l1.146-2.3c.334-.66.787-1.027 1.28-1.027.494 0 .947.367 1.28 1.027l1.147 2.3c.087.173.267.34.46.453l-7.18 7.18c-.093.094-.253.007-.227-.126l.347-1.5Z"
|
|
9
|
+
}, null, -1), n = /* @__PURE__ */ l("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M12.467 9.64c-.24.24-.373.7-.293 1.027l.46 2.006c.193.834.073 1.46-.34 1.76a1 1 0 0 1-.6.18c-.34 0-.74-.126-1.18-.386l-1.953-1.16c-.307-.18-.814-.18-1.12 0l-1.954 1.16c-.74.433-1.373.506-1.78.206a.981.981 0 0 1-.34-.466l8.107-8.107c.306-.307.74-.447 1.16-.373l.673.113c.707.12 1.18.44 1.333.907.147.466-.053 1.006-.56 1.513l-1.613 1.62Z"
|
|
12
|
+
}, null, -1), r = [
|
|
13
|
+
o,
|
|
14
|
+
n
|
|
15
|
+
];
|
|
16
|
+
function s(a, d) {
|
|
17
|
+
return c(), e("svg", t, r);
|
|
18
|
+
}
|
|
19
|
+
const _ = { render: s };
|
|
20
|
+
export {
|
|
21
|
+
_ as default,
|
|
22
|
+
s as render
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},c=e.createElementVNode("path",{fill:"#EAECF0",d:"M3.827 10.667c.073-.327-.06-.794-.293-1.027l-1.62-1.62c-.507-.507-.707-1.047-.56-1.513.153-.467.626-.787 1.333-.907l2.08-.347c.3-.053.667-.32.807-.593l1.146-2.3c.334-.66.787-1.027 1.28-1.027.494 0 .947.367 1.28 1.027l1.147 2.3c.087.173.267.34.46.453l-7.18 7.18c-.093.094-.253.007-.227-.126l.347-1.5Z"},null,-1),o=e.createElementVNode("path",{fill:"currentColor",d:"M12.467 9.64c-.24.24-.373.7-.293 1.027l.46 2.006c.193.834.073 1.46-.34 1.76a1 1 0 0 1-.6.18c-.34 0-.74-.126-1.18-.386l-1.953-1.16c-.307-.18-.814-.18-1.12 0l-1.954 1.16c-.74.433-1.373.506-1.78.206a.981.981 0 0 1-.34-.466l8.107-8.107c.306-.307.74-.447 1.16-.373l.673.113c.707.12 1.18.44 1.333.907.147.466-.053 1.006-.56 1.513l-1.613 1.62Z"},null,-1),n=[c,o];function l(s,d){return e.openBlock(),e.createElementBlock("svg",t,n)}const r={render:l};exports.default=r;exports.render=l;
|