Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #134 from path-yu/patch-1
Browse files Browse the repository at this point in the history
Update form.md
  • Loading branch information
wangjue666 authored Oct 31, 2023
2 parents 934a690 + 5d931c4 commit 13d4c6b
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions components/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,32 @@ updateSchema([

### ActionButtonOption

[BasicButtonProps](https://github.com/vbenjs/vue-vben-admin/tree/main/src/components/Button/types.ts)
[BasicButtonProps](https://github.com/vbenjs/vue-vben-admin/tree/main/src/components/Button/src/props.ts)

```ts
export interface ButtonProps extends BasicButtonProps {
text?: string;
}
export const buttonProps = {
color: {
type: String as PropType<ButtonColorType>,
validator: (v) => validColors.includes(v),
default: '',
},
loading: { type: Boolean },
disabled: { type: Boolean },
/**
* Text before icon.
*/
preIcon: { type: String },
/**
* Text after icon.
*/
postIcon: { type: String },
/**
* preIcon and postIcon icon size.
* @default: 14
*/
iconSize: { type: Number, default: 14 },
onClick: { type: [Function, Array] as PropType<(() => any) | (() => any)[]>, default: null },
};
```

### fieldMapToTime
Expand Down

0 comments on commit 13d4c6b

Please sign in to comment.