Skip to content

Commit c58d1fb

Browse files
committed
doc: update upload doc
1 parent 6df5443 commit c58d1fb

File tree

4 files changed

+34
-7
lines changed

4 files changed

+34
-7
lines changed

doc/markdown/nLoader/en-US/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,5 @@ When the page is partially waiting for asynchronous data or the rendering proces
102102
| Property | Description | Type | Default |
103103
| :--- | :--- | :--- | :--- |
104104
| show | Whether to show loading | Boolean | false |
105-
| loaddingText | loading text | String | Loading... |
105+
| loadding-text | loading text | String | Loading... |
106106
| size | loading icon size, options: `xs`,`sm`,`md`,`lg` | String | md |

doc/markdown/nLoader/zh-CN/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@
104104
| 参数 | 说明 | 类型 | 默认值 |
105105
| :--- | :--- | :--- | :--- |
106106
| show | 是否展示加载中图标 | Boolean | false |
107-
| loaddingText | 文字说明 | String | Loading... |
107+
| loadding-text | 文字说明 | String | Loading... |
108108
| size | 图标的大小,可选值 `xs`,`sm`,`md`,`lg` | String | md |

doc/markdown/nUpload/en-US/index.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,33 @@ T
2020
```html
2121
<template>
2222
<div>
23-
<n-upload>
23+
<n-upload :file-list="fileList">
2424
<n-button>
2525
Click Upload
2626
</n-button>
2727
</n-upload>
2828
</div>
2929
</template>
30+
<script>
31+
export default {
32+
data: function () {
33+
return {
34+
fileList: [{
35+
name: 'food1.jpeg',
36+
url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg'
37+
}, {
38+
name: 'food2.jpeg',
39+
url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg'
40+
}]
41+
};
42+
},
43+
}
44+
</script>
3045
```
31-
:::
46+
:::
47+
48+
## API
49+
50+
| Property | Description | Type | Default |
51+
| :--- | :--- | :--- | :--- |
52+
| file-list | List of uploaded files, eg: [{name: 'food.jpg', url: 'https://xxx.cdn.com/xxx.jpg'}] | Array | |

doc/markdown/nUpload/zh-CN/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
```html
1818
<template>
1919
<div>
20-
<n-upload :fileList="fileList">
20+
<n-upload :file-list="fileList">
2121
<n-button>
22-
Click Upload
22+
点击上传
2323
</n-button>
2424
</n-upload>
2525
</div>
@@ -40,4 +40,10 @@
4040
}
4141
</script>
4242
```
43-
:::
43+
:::
44+
45+
## API
46+
47+
| 参数 | 说明 | 类型 | 默认值 |
48+
| :--- | :--- | :--- | :--- |
49+
| file-list | 上传的文件列表, 例如: [{name: 'food.jpg', url: 'https://xxx.cdn.com/xxx.jpg'}] | Array | |

0 commit comments

Comments
 (0)