Browse Source

docs: 更新 (#2003)

* fix: popover

* fix: 代码回退

* feat: 文档修改

* feat: 修改Imagepreview

* feat: imagepreview文案修改

* feat: noticebar文案修改

* fix: noticebar小程序不能运行问题修改

* feat: 组件文档修改picker

* docs: 文案修改

* docs: countdown

* feat: image

* docs: 文本修改

* fix: imagepreview

* docs: 单位修改

* docs: 文档修噶
yangxiaolu1993 3 years ago
parent
commit
6a9b1fb19c

+ 1 - 1
src/packages/__VUE/layout/doc.en-US.md

@@ -235,7 +235,7 @@ The Layout component provides a 24-column grid, by adding the span attribute on
 | Field | Description | Type | Default
 |----- | ----- | ----- | -----
 | type | layout method, optional value is `flex` | string | `-`
-| gutter | spacing between column elements (in `px`) | string \| number | `-`
+| gutter | spacing between column elements (`px`) | string \| number | `-`
 | justify | Flex main axis alignment, optional values are `start` `end` `center` `space-around` `space-between` `space-evenly` | string | `start`
 | align | Flex cross axis alignment, optional values are `flex-start` `center` `flex-end` | string | `flex-start`
 | flex-wrap | Whether flex wraps, optional values are `nowrap` `wrap` `reverse` | string | `nowrap`

+ 5 - 3
src/packages/__VUE/price/demo.vue

@@ -21,7 +21,7 @@
     </nut-cell>
     <h2>{{ translate('title4') }}</h2>
     <nut-cell>
-      <nut-price :price="8888.01" position="after" symbol="元" />
+      <nut-price :price="8888.01" position="after" :symbol="translate('symbol')" />
     </nut-cell>
     <h2>{{ translate('title5') }}</h2>
     <nut-cell>
@@ -41,14 +41,16 @@ const initTranslate = () =>
       title2: '不保留小数',
       title3: '货币符号',
       title4: '货币符号位置',
-      title5: '千位分隔'
+      title5: '千位分隔',
+      symbol: '元'
     },
     'en-US': {
       title1: 'Support three sizes:small、normal、large',
       title2: 'No decimals',
       title3: 'Currency symbol',
       title4: 'Currency symbol position',
-      title5: 'Separated by thousands'
+      title5: 'Separated by thousands',
+      symbol: 'RMB'
     }
   });
 export default createDemo({

+ 1 - 1
src/packages/__VUE/price/doc.en-US.md

@@ -67,7 +67,7 @@ Three sizes are supported: small, normal, and large, and the default is normal.
 
 ``` html
 <template>
-    <nut-price :price="8888.01" position="after" symbol="" />
+    <nut-price :price="8888.01" position="after" symbol="RMB" />
 </template>
 ```