Browse Source

docs(button): 文档修改

eiinu 3 years ago
parent
commit
702d5b1e46

+ 11 - 2
src/packages/__VUE/button/doc.en-US.md

@@ -119,8 +119,17 @@ Set the button shape through the `shape` property, support circle and square but
 
 ```html
 <template>
-  <nut-button shape="square" plain type="primary" icon="star-fill"></nut-button>
-  <nut-button shape="square" type="primary" icon="star">Star</nut-button>
+  <nut-button shape="square" plain type="primary">
+    <template #icon>
+      <StarFill />
+    </template>
+  </nut-button>
+  <nut-button shape="square" type="primary">
+    <template #icon>
+      <Star />
+    </template>
+    Star
+  </nut-button>
 </template>
 ```
 

+ 11 - 2
src/packages/__VUE/button/doc.md

@@ -119,8 +119,17 @@ app.use(Button);
 
 ```html
 <template>
-  <nut-button shape="square" plain type="primary" icon="star-fill"></nut-button>
-  <nut-button shape="square" type="primary" icon="star">收藏</nut-button>
+  <nut-button shape="square" plain type="primary">
+    <template #icon>
+      <StarFill />
+    </template>
+  </nut-button>
+  <nut-button shape="square" type="primary">
+    <template #icon>
+      <Star />
+    </template>
+    收藏
+  </nut-button>
 </template>
 ```
 

+ 11 - 2
src/packages/__VUE/button/doc.taro.md

@@ -119,8 +119,17 @@ app.use(Button);
 
 ```html
 <template>
-  <nut-button shape="square" plain type="primary" icon="star-fill"></nut-button>
-  <nut-button shape="square" type="primary" icon="star">收藏</nut-button>
+  <nut-button shape="square" plain type="primary">
+    <template #icon>
+      <StarFill />
+    </template>
+  </nut-button>
+  <nut-button shape="square" type="primary">
+    <template #icon>
+      <Star />
+    </template>
+    收藏
+  </nut-button>
 </template>
 ```