ep-craft 0.1.4 → 0.1.6
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 +3 -3
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/use-button-custom.d.ts +10 -0
- package/dist/index.css +1 -1
- package/dist/locale/index.d.ts +17 -0
- package/dist/locale/index.js +1 -0
- package/package.json +5 -1
- package/theme-chalk/src/button.scss +163 -34
|
@@ -17,7 +17,7 @@ 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", "
|
|
20
|
+
readonly values: readonly ["default", "primary", "success", "warning", "info", "danger", "text", ""];
|
|
21
21
|
readonly default: "";
|
|
22
22
|
};
|
|
23
23
|
readonly icon: {
|
|
@@ -82,7 +82,7 @@ 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", "
|
|
85
|
+
readonly values: readonly ["default", "primary", "success", "warning", "info", "danger", "text", ""];
|
|
86
86
|
readonly default: "";
|
|
87
87
|
};
|
|
88
88
|
readonly icon: {
|
|
@@ -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: "" | "primary" | "success" | "warning" | "info" | "default" | "text" | "danger"
|
|
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", "
|
|
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,7 +19,7 @@ export declare const buttonProps: {
|
|
|
19
19
|
/** 按钮类型 */
|
|
20
20
|
readonly type: {
|
|
21
21
|
readonly type: PropType<(typeof buttonTypes)[number]>;
|
|
22
|
-
readonly values: readonly ["default", "primary", "
|
|
22
|
+
readonly values: readonly ["default", "primary", "success", "warning", "info", "danger", "text", ""];
|
|
23
23
|
readonly default: "";
|
|
24
24
|
};
|
|
25
25
|
/** 图标组件 */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import type { ButtonProps } from './button';
|
|
3
|
+
interface UseButtonCustomStyleOptions {
|
|
4
|
+
props: ButtonProps;
|
|
5
|
+
plain: ComputedRef<boolean>;
|
|
6
|
+
text: ComputedRef<boolean>;
|
|
7
|
+
disabled: ComputedRef<boolean>;
|
|
8
|
+
}
|
|
9
|
+
export declare function useButtonCustomStyle({ props, plain, text, disabled, }: UseButtonCustomStyleOptions): ComputedRef<Record<string, string>>;
|
|
10
|
+
export {};
|