ep-craft 0.1.11 → 0.1.13
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/components/button/EpButton.vue.d.ts +6 -6
- package/dist/components/button/button.d.ts +3 -3
- package/dist/components/check-tag/EpCheckTag.vue.d.ts +38 -0
- package/dist/components/check-tag/check-tag.d.ts +23 -0
- package/dist/components/tag/EpTag.vue.d.ts +67 -0
- package/dist/components/tag/tag.d.ts +41 -0
- package/dist/index.css +1 -1
- package/dist/resolver.d.ts +0 -4
- package/dist/resolver.js +13 -12
- package/package.json +1 -1
- package/theme-chalk/src/button.scss +0 -16
- package/theme-chalk/src/check-tag.scss +72 -33
- package/theme-chalk/src/tag.scss +109 -0
|
@@ -17,8 +17,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
17
17
|
};
|
|
18
18
|
readonly type: {
|
|
19
19
|
readonly type: import("vue").PropType<typeof import("./button").buttonTypes[number]>;
|
|
20
|
-
readonly values: readonly ["default", "primary", "success", "warning", "info", "danger", "text"
|
|
21
|
-
readonly default: "";
|
|
20
|
+
readonly values: readonly ["default", "primary", "success", "warning", "info", "danger", "text"];
|
|
21
|
+
readonly default: "primary";
|
|
22
22
|
};
|
|
23
23
|
readonly icon: {
|
|
24
24
|
readonly type: import("vue").PropType<any>;
|
|
@@ -66,7 +66,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
66
66
|
}>, {
|
|
67
67
|
ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
68
68
|
size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
69
|
-
type: import("vue").ComputedRef<
|
|
69
|
+
type: import("vue").ComputedRef<"primary" | "success" | "warning" | "info" | "default" | "text" | "danger">;
|
|
70
70
|
disabled: import("vue").ComputedRef<boolean>;
|
|
71
71
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
72
72
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -82,8 +82,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
82
82
|
};
|
|
83
83
|
readonly type: {
|
|
84
84
|
readonly type: import("vue").PropType<typeof import("./button").buttonTypes[number]>;
|
|
85
|
-
readonly values: readonly ["default", "primary", "success", "warning", "info", "danger", "text"
|
|
86
|
-
readonly default: "";
|
|
85
|
+
readonly values: readonly ["default", "primary", "success", "warning", "info", "danger", "text"];
|
|
86
|
+
readonly default: "primary";
|
|
87
87
|
};
|
|
88
88
|
readonly icon: {
|
|
89
89
|
readonly type: import("vue").PropType<any>;
|
|
@@ -131,7 +131,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
131
131
|
}>> & Readonly<{
|
|
132
132
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
133
133
|
}>, {
|
|
134
|
-
readonly type: "
|
|
134
|
+
readonly type: "primary" | "success" | "warning" | "info" | "default" | "text" | "danger";
|
|
135
135
|
readonly dark: boolean;
|
|
136
136
|
readonly disabled: boolean;
|
|
137
137
|
readonly autofocus: boolean;
|
|
@@ -3,7 +3,7 @@ import type { ExtractPropTypes, PropType } from 'vue';
|
|
|
3
3
|
* EpButton 的 props / emits / 常量定义
|
|
4
4
|
* 从 element-plus 按钮源码 vendored 而来,可直接修改。
|
|
5
5
|
*/
|
|
6
|
-
export declare const buttonTypes: readonly ["default", "primary", "success", "warning", "info", "danger", "text"
|
|
6
|
+
export declare const buttonTypes: readonly ["default", "primary", "success", "warning", "info", "danger", "text"];
|
|
7
7
|
export declare const buttonNativeTypes: readonly ["button", "submit", "reset"];
|
|
8
8
|
export declare const buttonProps: {
|
|
9
9
|
/** 按钮尺寸 */
|
|
@@ -19,8 +19,8 @@ export declare const buttonProps: {
|
|
|
19
19
|
/** 按钮类型 */
|
|
20
20
|
readonly type: {
|
|
21
21
|
readonly type: PropType<(typeof buttonTypes)[number]>;
|
|
22
|
-
readonly values: readonly ["default", "primary", "success", "warning", "info", "danger", "text"
|
|
23
|
-
readonly default: "";
|
|
22
|
+
readonly values: readonly ["default", "primary", "success", "warning", "info", "danger", "text"];
|
|
23
|
+
readonly default: "primary";
|
|
24
24
|
};
|
|
25
25
|
/** 图标组件 */
|
|
26
26
|
readonly icon: {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
readonly checked: BooleanConstructor;
|
|
7
|
+
readonly disabled: BooleanConstructor;
|
|
8
|
+
readonly type: {
|
|
9
|
+
readonly type: import("vue").PropType<typeof import("./check-tag").checkTagTypes[number]>;
|
|
10
|
+
readonly values: readonly ["primary", "success", "info", "warning", "danger"];
|
|
11
|
+
readonly default: "primary";
|
|
12
|
+
};
|
|
13
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
change: (value: boolean) => void;
|
|
15
|
+
"update:checked": (value: boolean) => void;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
readonly checked: BooleanConstructor;
|
|
18
|
+
readonly disabled: BooleanConstructor;
|
|
19
|
+
readonly type: {
|
|
20
|
+
readonly type: import("vue").PropType<typeof import("./check-tag").checkTagTypes[number]>;
|
|
21
|
+
readonly values: readonly ["primary", "success", "info", "warning", "danger"];
|
|
22
|
+
readonly default: "primary";
|
|
23
|
+
};
|
|
24
|
+
}>> & Readonly<{
|
|
25
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
26
|
+
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
readonly type: "primary" | "success" | "warning" | "info" | "danger";
|
|
29
|
+
readonly disabled: boolean;
|
|
30
|
+
readonly checked: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* EpCheckTag 的 props / emits / 常量定义
|
|
4
|
+
* 从 element-plus 可选标签源码 vendored 而来,可直接修改。
|
|
5
|
+
*/
|
|
6
|
+
export declare const checkTagTypes: readonly ["primary", "success", "info", "warning", "danger"];
|
|
7
|
+
export declare const checkTagProps: {
|
|
8
|
+
/** 是否被选中 */
|
|
9
|
+
readonly checked: BooleanConstructor;
|
|
10
|
+
/** 是否禁用 */
|
|
11
|
+
readonly disabled: BooleanConstructor;
|
|
12
|
+
/** 标签类型 */
|
|
13
|
+
readonly type: {
|
|
14
|
+
readonly type: PropType<(typeof checkTagTypes)[number]>;
|
|
15
|
+
readonly values: readonly ["primary", "success", "info", "warning", "danger"];
|
|
16
|
+
readonly default: "primary";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const checkTagEmits: {
|
|
20
|
+
'update:checked': (value: boolean) => boolean;
|
|
21
|
+
change: (value: boolean) => boolean;
|
|
22
|
+
};
|
|
23
|
+
export type CheckTagProps = ExtractPropTypes<typeof checkTagProps>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_19: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
default?: (props: typeof __VLS_19) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
readonly type: {
|
|
9
|
+
readonly type: import("vue").PropType<typeof import("./tag").tagTypes[number]>;
|
|
10
|
+
readonly values: readonly ["primary", "success", "info", "warning", "danger"];
|
|
11
|
+
readonly default: "primary";
|
|
12
|
+
};
|
|
13
|
+
readonly closable: BooleanConstructor;
|
|
14
|
+
readonly disableTransitions: BooleanConstructor;
|
|
15
|
+
readonly hit: BooleanConstructor;
|
|
16
|
+
readonly color: StringConstructor;
|
|
17
|
+
readonly size: {
|
|
18
|
+
readonly type: import("vue").PropType<"" | "large" | "default" | "small">;
|
|
19
|
+
readonly values: readonly ["", "large", "default", "small"];
|
|
20
|
+
};
|
|
21
|
+
readonly effect: {
|
|
22
|
+
readonly type: import("vue").PropType<typeof import("./tag").tagEffects[number]>;
|
|
23
|
+
readonly values: readonly ["dark", "light", "plain"];
|
|
24
|
+
readonly default: "light";
|
|
25
|
+
};
|
|
26
|
+
readonly round: BooleanConstructor;
|
|
27
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
close: (evt: MouseEvent) => void;
|
|
29
|
+
click: (evt: MouseEvent) => void;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
readonly type: {
|
|
32
|
+
readonly type: import("vue").PropType<typeof import("./tag").tagTypes[number]>;
|
|
33
|
+
readonly values: readonly ["primary", "success", "info", "warning", "danger"];
|
|
34
|
+
readonly default: "primary";
|
|
35
|
+
};
|
|
36
|
+
readonly closable: BooleanConstructor;
|
|
37
|
+
readonly disableTransitions: BooleanConstructor;
|
|
38
|
+
readonly hit: BooleanConstructor;
|
|
39
|
+
readonly color: StringConstructor;
|
|
40
|
+
readonly size: {
|
|
41
|
+
readonly type: import("vue").PropType<"" | "large" | "default" | "small">;
|
|
42
|
+
readonly values: readonly ["", "large", "default", "small"];
|
|
43
|
+
};
|
|
44
|
+
readonly effect: {
|
|
45
|
+
readonly type: import("vue").PropType<typeof import("./tag").tagEffects[number]>;
|
|
46
|
+
readonly values: readonly ["dark", "light", "plain"];
|
|
47
|
+
readonly default: "light";
|
|
48
|
+
};
|
|
49
|
+
readonly round: BooleanConstructor;
|
|
50
|
+
}>> & Readonly<{
|
|
51
|
+
onClose?: ((evt: MouseEvent) => any) | undefined;
|
|
52
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
53
|
+
}>, {
|
|
54
|
+
readonly type: "primary" | "success" | "warning" | "info" | "danger";
|
|
55
|
+
readonly closable: boolean;
|
|
56
|
+
readonly effect: "light" | "dark" | "plain";
|
|
57
|
+
readonly round: boolean;
|
|
58
|
+
readonly disableTransitions: boolean;
|
|
59
|
+
readonly hit: boolean;
|
|
60
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
62
|
+
export default _default;
|
|
63
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
64
|
+
new (): {
|
|
65
|
+
$slots: S;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* EpTag 的 props / emits / 常量定义
|
|
4
|
+
* 从 element-plus 标签源码 vendored 而来,可直接修改。
|
|
5
|
+
*/
|
|
6
|
+
export declare const tagTypes: readonly ["primary", "success", "info", "warning", "danger"];
|
|
7
|
+
export declare const tagEffects: readonly ["dark", "light", "plain"];
|
|
8
|
+
export declare const tagProps: {
|
|
9
|
+
/** 标签类型 */
|
|
10
|
+
readonly type: {
|
|
11
|
+
readonly type: PropType<(typeof tagTypes)[number]>;
|
|
12
|
+
readonly values: readonly ["primary", "success", "info", "warning", "danger"];
|
|
13
|
+
readonly default: "primary";
|
|
14
|
+
};
|
|
15
|
+
/** 是否可关闭 */
|
|
16
|
+
readonly closable: BooleanConstructor;
|
|
17
|
+
/** 是否禁用渐变动画 */
|
|
18
|
+
readonly disableTransitions: BooleanConstructor;
|
|
19
|
+
/** 是否有边框描边 */
|
|
20
|
+
readonly hit: BooleanConstructor;
|
|
21
|
+
/** 背景色 */
|
|
22
|
+
readonly color: StringConstructor;
|
|
23
|
+
/** 标签尺寸 */
|
|
24
|
+
readonly size: {
|
|
25
|
+
readonly type: PropType<"" | "large" | "default" | "small">;
|
|
26
|
+
readonly values: readonly ["", "large", "default", "small"];
|
|
27
|
+
};
|
|
28
|
+
/** 主题 */
|
|
29
|
+
readonly effect: {
|
|
30
|
+
readonly type: PropType<(typeof tagEffects)[number]>;
|
|
31
|
+
readonly values: readonly ["dark", "light", "plain"];
|
|
32
|
+
readonly default: "light";
|
|
33
|
+
};
|
|
34
|
+
/** 是否为圆形标签 */
|
|
35
|
+
readonly round: BooleanConstructor;
|
|
36
|
+
};
|
|
37
|
+
export declare const tagEmits: {
|
|
38
|
+
close: (evt: MouseEvent) => boolean;
|
|
39
|
+
click: (evt: MouseEvent) => boolean;
|
|
40
|
+
};
|
|
41
|
+
export type TagProps = ExtractPropTypes<typeof tagProps>;
|