فهرست منبع

fix: Remove 'menu' prop

April Hall 1 سال پیش
والد
کامیت
d7b2e40e1d
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      docs/mds/components/button/api.md
  2. 1 1
      docs/mds/components/button/api_en.md
  3. 1 1
      packages/stdf/src/lib/types/index.ts

+ 1 - 1
docs/mds/components/button/api.md

@@ -19,7 +19,7 @@
 | icon            | [`Icon`](https://stdf.design/components?nav=icon&tab=1)\|`null`             | `null`    | N    | 图标参数。                     |
 | loading         | [`Loading`](https://stdf.design/components?nav=loading&tab=1)\|`null`       | `null`    | N    | 加载参数。                     |
 | disabledLoading | `boolean`                                                                     | `false`   | N    | 加载时是否禁用。               |
-| type            | `'button'\|'reset'\|'submit'\|'menu'`                                                | `button`  | N        | button 的类型。               |
+| type            | `'button'\|'reset'\|'submit'`                                                | `button`  | N        | button 的类型。               |
 
 ## Button Events
 

+ 1 - 1
docs/mds/components/button/api_en.md

@@ -19,7 +19,7 @@
 | icon            | [`Icon`](https://stdf.design/components?nav=icon&tab=1)\|`null`               | `null`    | N        | Icon props.                                      |
 | loading         | [`Loading`](https://stdf.design/components?nav=loading&tab=1)\|`null`         | `null`    | N        | Loading props.                                   |
 | disabledLoading | `boolean`                                                                     | `false`   | N        | Whether to disable when loading.                 |
-| type            | `'button'\|'reset'\|'submit'\|'menu'`                                                 | `button`  | N        | The default behavior of the button               |
+| type            | `'button'\|'reset'\|'submit'`                                                 | `button`  | N        | The default behavior of the button               |
 
 ## Button Events
 

+ 1 - 1
packages/stdf/src/lib/types/index.ts

@@ -125,7 +125,7 @@ export type ButtonProps = {
 	icon?: IconProps | null;
 	loading?: LoadingProps | null;
 	disabledLoading?: boolean;
-	type?: 'submit' | 'reset' | 'button' | 'menu';
+	type?: 'submit' | 'reset' | 'button';
 	children?: Snippet;
 	onclick?: () => void;
 };