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

@@ -101,7 +101,7 @@
### 修饰符
对应 `Object` 绑定值中的 `type`/`axis`。例如:
对应 `Object` 绑定值中的 `type` / `axis`。例如:
```html
<!-- 沿着垂直方向做位移变换 -->

View File

@@ -14,7 +14,7 @@
### 绑定值
类型:`function|Object`
类型:`function | Object`
使用 `function` 类型则绑定值表示触发长按或后续重复触发的回调函数。例如:
@@ -35,10 +35,10 @@
| 参数 | 类型 | 默认值 | 描述 |
| -- | -- | -- | -- |
| `timeout` | `number` | `longpress.timeout` | 触发长按等待的毫秒数。可进行[全局配置](#全局配置)。 |
| `timeout` | `number` | `longpress.timeout` | 触发长按等待的毫秒数。可进行[全局配置](#configs-longpress-timeout)。 |
| `handler` | `function` | `function() {}` | 触发长按及后续重复触发时的回调函数。 |
| `repeat` | `boolean` | `false` | 保持长按时是否重复触发回调,类似按下键盘按键后连续自动输入的效果。 |
| `repeatInterval` | `number` | `longpress.repeatInterval` | 重复触发回调间隔的毫秒数。可进行[全局配置](#全局配置)。 |
| `repeatInterval` | `number` | `longpress.repeatInterval` | 重复触发回调间隔的毫秒数。可进行[全局配置](#configs-longpress-repeatInterval)。 |
:::warning
`Object` 类型提供的参数会覆盖通过指令参数、修饰符指定的参数。

View File

@@ -24,7 +24,7 @@
### 绑定值
类型:`function|Object`
类型:`function | Object`
使用 `function` 类型则绑定值表示按下方向键后触发的回调函数。例如:
@@ -58,7 +58,7 @@
### 修饰符
对应 `Object` 类型绑定值中的 `axis`/`step`。例如:
对应 `Object` 类型绑定值中的 `axis` / `step`。例如:
```html
<div tabindex="-1" v-nudge.x.2="{ update: delta => this.val += delta }"></div>

View File

@@ -26,7 +26,7 @@
### 绑定值
类型:`function|Object`
类型:`function | Object`
通过 `function` 类型配置触发外部事件时的回调函数。例如:
@@ -48,7 +48,7 @@
| 参数 | 类型 | 默认值 | 描述 |
| -- | -- | -- | -- |
| `refs` | `Array<string|Vue|HTMLElement>` | `[]` | [^refs] |
| `refs` | `Array<string | Vue | HTMLElement>` | `[]` | [^refs] |
| `handler` | `function(event: Event): void` | `function() {}` | 外部事件触发时的回调函数,会接收到相应的原生事件对象参数。回调函数的 `event` 参数会根据 `trigger` 参数变成相应的原生事件对象。 |
| `trigger` | `string` | `'click'` | 外部事件名,可取的值有:`click``mousedown``mouseup``hover``focus`。 |
| `delay` | `number` | `0` | 在 `trigger``hover` 的时候,鼠标移出目标元素 `delay` 毫秒之后,才触发回调函数。如果在 `delay` 毫秒之内,鼠标重新移回了目标元素集合内,就不会触发回调函数。 |
@@ -72,7 +72,7 @@
### 修饰符
对应 `Object` 类型绑定值中的 `trigger`/`delay`/`excludeSelf`。例如:
对应 `Object` 类型绑定值中的 `trigger` / `delay` / `excludeSelf`。例如:
```html
<div v-outside.hover.200.excludeSelf></div>

View File

@@ -16,7 +16,7 @@
### 绑定值
类型:`function|Object`
类型:`function | Object`
使用 `function` 类型则绑定值表示 resize 时触发的回调函数。例如:
@@ -59,7 +59,7 @@
### 修饰符
对应 `Object` 类型绑定值中的 `mode`/`leading`/`wait``leading` 可以与 `debounce`/`throttle` 其中之一同时使用。例如:
对应 `Object` 类型绑定值中的 `mode` / `leading` / `wait``leading` 可以与 `debounce` / `throttle` 其中之一同时使用。例如:
```html
<div v-resize.throttle.leading.500="handler"></div>

View File

@@ -20,7 +20,7 @@ VEUI 对通过 `v-tooltip` 定义的全局浮层提示进行了统一的体验
### 绑定值
类型:`string|Object`
类型:`string | Object`
使用 `string` 类型表示提示的文本信息:
@@ -40,8 +40,8 @@ VEUI 对通过 `v-tooltip` 定义的全局浮层提示进行了统一的体验
| 参数 | 类型 | 默认值 | 描述 |
| -- | -- | -- | -- |
| `content` | `string|VNode|Array<VNode>` | - | 提示信息字符串或通过渲染函数返回的虚拟节点(数组)。 |
| `position` | `string` | - | 浮层提示的展示位置。参考 [`Tooltip`](../components/tooltip) 组件的 [`position`](../components/tooltip#props) 属性。 |
| `content` | `string | VNode | Array<VNode>` | - | 提示信息字符串或通过渲染函数返回的虚拟节点(数组)。 |
| `position` | `string` | - | 浮层提示的展示位置。参考 [`Tooltip`](../components/tooltip) 组件的 [`position`](../components/tooltip#props-position) 属性。 |
| `disabled` | `boolean` | `false` | 是否禁用浮层提示。 |
### 修饰符