docs(button-edit): add properties and events

This commit is contained in:
Sagi 2022-10-05 15:13:32 +08:00
parent c614e40404
commit 58880e89cb
1 changed files with 39 additions and 0 deletions

View File

@ -95,8 +95,47 @@ const enableClear = ref(true);
## 类型
```typescript
type TextAlignment = 'left' | 'center' | 'right';
```
## 属性
| 属性名 | 类型 | 默认值 | 说明 |
| :--------------------- | :------------------------ | :----- | :--- |
| id | `string` | -- | -- |
| autoComplete | `boolean` | false | -- |
| buttonContent | `string` | -- | -- |
| customClass | `string` | -- | -- |
| disable | `boolean` | false | -- |
| editable | `boolean` | true | -- |
| enableClear | `boolean` | false | -- |
| readonly | `boolean` | false | -- |
| textAlign | `string as TextAlignment` | 'left' | -- |
| showButtonWhenDisabled | `boolean` | false | -- |
| enableTitle | `boolean` | false | -- |
| inputType | `'text' \| 'password'` | 'text' | -- |
| forcePlaceholder | `boolean` | false | -- |
| placeholder | `string` | -- | -- |
| minLength | `number` | -- | -- |
| maxLength | `number` | -- | -- |
| tabIndex | `number` | -- | -- |
## 事件
| 事件名 | 类型 | 说明 |
| :------------- | :------------------ | :--- |
| clear | `EventEmitter<any>` | -- |
| change | `EventEmitter<any>` | -- |
| click | `EventEmitter<any>` | -- |
| clickButton | `EventEmitter<any>` | -- |
| blur | `EventEmitter<any>` | -- |
| focus | `EventEmitter<any>` | -- |
| mouseEnterIcon | `EventEmitter<any>` | -- |
| mouseLeaveIcon | `EventEmitter<any>` | -- |
| keyup | `EventEmitter<any>` | -- |
| keydown | `EventEmitter<any>` | -- |
| inputClick | `EventEmitter<any>` | -- |
| input | `EventEmitter<any>` | -- |
## 插槽