feat: add link for individual props/events/slots/configs/icons

This commit is contained in:
Justineo
2021-10-20 01:11:27 +08:00
parent df2b6892d2
commit b0dcdbb873
162 changed files with 2176 additions and 2073 deletions

View File

@@ -4,7 +4,7 @@
### 尺寸
可选的 `ui` 属性值:`s`/`m`
可选的 [`ui`](#props-ui) 属性值:`s` / `m`
[[ demo src="/demo/textarea/size.vue" ]]
@@ -26,17 +26,17 @@
| 名称 | 类型 | 默认值 | 描述 |
| -- | -- | -- | -- |
| `ui` | `string=` | - | [^ui] |
| `value` | `string` | '' | [^value] |
| `disabled` | `boolean=` | `false` | 文本域是否为禁用状态。 |
| `readonly` | `boolean=` | `false` | 文本域是否为只读状态。 |
| `line-number` | `boolean` | `false` | 是否显示行号。 |
| `rows` | `number | string` | - | 默认情况下文本域可视行数。 |
| `placeholder` | `string` | - | 输入占位符。 |
| `composition` | `boolean` | `false` | 是否感知输入法输入过程的值。 |
| `select-on-focus` | `boolean` | `false` | 聚焦时是否自动选中文本域文本。 |
| `autoresize` | `boolean` | `false` | 高度是否会被内容撑开。 |
| `get-length` | `function(string): number=` | 自定义的字符长度计算函数。 |
| ``ui`` | `string=` | - | [^ui] |
| ``value`` | `string` | '' | [^value] |
| ``disabled`` | `boolean=` | `false` | 文本域是否为禁用状态。 |
| ``readonly`` | `boolean=` | `false` | 文本域是否为只读状态。 |
| ``line-number`` | `boolean` | `false` | 是否显示行号。 |
| ``rows`` | `number | string` | - | 默认情况下文本域可视行数。 |
| ``placeholder`` | `string` | - | 输入占位符。 |
| ``composition`` | `boolean` | `false` | 是否感知输入法输入过程的值。 |
| ``select-on-focus`` | `boolean` | `false` | 聚焦时是否自动选中文本域文本。 |
| ``autoresize`` | `boolean` | `false` | 高度是否会被内容撑开。 |
| ``get-length`` | `function(string): number=` | 自定义的字符长度计算函数。 |
^^^ui
预设样式。
@@ -61,8 +61,8 @@
| 名称 | 描述 |
| -- | -- |
| `change` | [^event-change] |
| `input` | [^event-input] |
| ``change`` | [^event-change] |
| ``input`` | [^event-input] |
^^^event-change
输入框内容变化时触发,即原生 `change` 事件触发时。回调参数为 `(value, event)`。
@@ -80,7 +80,7 @@
`v-model`
:::
有效输入时触发,受 `composition` 属性影响。回调参数为 `(value: string)``value` 为输入框的 `value` 值。
有效输入时触发,受 [`composition`](#props-composition) 属性影响。回调参数为 `(value: string)``value` 为输入框的 `value` 值。
^^^
此外,`Textarea` 支持如下的原生事件: