chore: update docs

This commit is contained in:
07akioni 2021-07-16 01:21:15 +08:00
parent 11952a31f4
commit d13bea8d65
6 changed files with 8 additions and 8 deletions

View File

@ -58,7 +58,7 @@
### Feats
- `n-loading-bar` export `LoadingBarApi` type.
- `n-image` add `imgProps` prop.
- `n-image` add `img-props` prop.
- Add native `title` attributes to some components to enhance the experience.
- `n-tree` add `prefix` and `suffix` in TreeOption.
- `n-carousel` add `dot-placement` prop.

View File

@ -59,7 +59,7 @@
### Feats
- `n-loading-bar` 导出 `LoadingBarApi` 类型
- `n-image` 增加 `imgProps` 属性
- `n-image` 增加 `img-props` 属性
- 在部分组件上添加原生 `title` 属性,以提高用户体验
- `n-tree` 在 TreeOption 中增加 `prefix``suffix` 属性
- `n-carousel` 增加 `dot-placement` 属性

View File

@ -1,4 +1,4 @@
# Allow Activated Half of the Icon
# Allow Selecting Half Star
```html
<n-rate allow-half />

View File

@ -1,4 +1,4 @@
# 可以激活一半星星
# 允许半颗
```html
<n-rate allow-half />

View File

@ -1,4 +1,4 @@
# Batch Render
# Batch Rendering
As you can see, prefix, label, and suffix all have render functions.
@ -10,7 +10,7 @@ As you can see, prefix, label, and suffix all have render functions.
:render-prefix="renderPrefix"
:render-label="renderLabel"
:render-suffix="renderSuffix"
selectable
:selectable="false"
/>
```
@ -47,7 +47,7 @@ function renderPrefix ({ option }) {
}
function renderLabel ({ option }) {
return `${option.label} ^_^`
return `${option.label} :)`
}
function renderSuffix ({ option }) {

View File

@ -10,7 +10,7 @@
:render-prefix="renderPrefix"
:render-label="renderLabel"
:render-suffix="renderSuffix"
selectable
:selectable="false"
/>
```