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.
@@ -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", "rePrimary", "success", "reSuccess", "warning", "reWarning", "info", "reInfo", "danger", "reDanger", "text", ""];
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", "rePrimary", "success", "reSuccess", "warning", "reWarning", "info", "reInfo", "danger", "reDanger", "text", ""];
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" | "rePrimary" | "reSuccess" | "reWarning" | "reInfo" | "reDanger";
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", "rePrimary", "success", "reSuccess", "warning", "reWarning", "info", "reInfo", "danger", "reDanger", "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,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", "rePrimary", "success", "reSuccess", "warning", "reWarning", "info", "reInfo", "danger", "reDanger", "text", ""];
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 {};