mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
chore: update docs
This commit is contained in:
parent
11952a31f4
commit
d13bea8d65
@ -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.
|
||||
|
@ -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` 属性
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Allow Activated Half of the Icon
|
||||
# Allow Selecting Half Star
|
||||
|
||||
```html
|
||||
<n-rate allow-half />
|
||||
|
@ -1,4 +1,4 @@
|
||||
# 可以激活一半星星
|
||||
# 允许半颗
|
||||
|
||||
```html
|
||||
<n-rate allow-half />
|
||||
|
@ -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 }) {
|
||||
|
@ -10,7 +10,7 @@
|
||||
:render-prefix="renderPrefix"
|
||||
:render-label="renderLabel"
|
||||
:render-suffix="renderSuffix"
|
||||
selectable
|
||||
:selectable="false"
|
||||
/>
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user