Skip to content

Commit

Permalink
补充文档
Browse files Browse the repository at this point in the history
  • Loading branch information
laizuan committed Oct 16, 2023
1 parent 2951014 commit 505ab2d
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions docs/web/components/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ ElInput 增强
<el-button @click="trimType = 'end'">结尾不能输入空格</el-button>
<el-button @click="trimType = 'both'">两端不能有空格</el-button>
<el-button @click="trimType = 'all'">不能输入空格</el-button>
<n-input
v-model="inputValue"
class="mt-20"
:trim-type="trimType"
@input="onInput"
/>
<n-input v-model="inputValue" class="mt-20" :trim-type="trimType" @input="onInput" />
</n-card>
{{ inputValue }}
Expand All @@ -42,9 +37,9 @@ export default {
}
return {
inputValue,
onInput,
onInput
}
},
}
}
</script>
```
Expand All @@ -53,10 +48,10 @@ export default {

## Props

| Name | Description | Type | Options | Default |
| -------- | -------------- | ------ | ---------------------------------- | ------- |
| format | 字符串格式化 | string | uppercase / lowercase / capitalize | - |
| trimType | 清空输入的空格 | string | 'start', 'end', 'both', 'all' | both |
| Name | Description | Type | Options | Default |
| -------- | -------------- | ------ | ------------------------------------- | ------- |
| format | 字符串格式化 | string | uppercase / lowercase / capitalize | - |
| trimType | 清空输入的空格 | string | 'start', 'end', 'both', 'all', 'none' | both |

## Events

Expand Down

0 comments on commit 505ab2d

Please sign in to comment.