Browse Source

fix: 文档,demo 修复

Ymm0008 3 years ago
parent
commit
9768369e94

+ 3 - 3
src/packages/__VUE/cell/demo.vue

@@ -31,7 +31,7 @@
 
 
     <nut-cell-group :title="translate('title5')" :desc="translate('desc1')">
     <nut-cell-group :title="translate('title5')" :desc="translate('desc1')">
       <nut-cell :title="translate('link')" is-link></nut-cell>
       <nut-cell :title="translate('link')" is-link></nut-cell>
-      <nut-cell :title="translate('urlJump')" desc="https://jd.com" is-link url="https://jd.com"></nut-cell>
+      <nut-cell :title="translate('urlJump')" desc="https://m.jd.com" is-link url="https://m.jd.com"></nut-cell>
       <nut-cell :title="translate('routerJump')" to="/"></nut-cell>
       <nut-cell :title="translate('routerJump')" to="/"></nut-cell>
     </nut-cell-group>
     </nut-cell-group>
 
 
@@ -98,7 +98,7 @@ const initTranslate = () =>
       content: '自定义内容',
       content: '自定义内容',
       customRight: '自定义右侧箭头区域',
       customRight: '自定义右侧箭头区域',
       customLeftIcon: '自定义左侧 Icon 区域',
       customLeftIcon: '自定义左侧 Icon 区域',
-      displayIcon: '展示图标'
+      displayIcon: '单元格展示图标'
     },
     },
     'en-US': {
     'en-US': {
       basic: 'Basic Usage',
       basic: 'Basic Usage',
@@ -122,7 +122,7 @@ const initTranslate = () =>
       content: 'Content',
       content: 'Content',
       customRight: 'Customize the right arrow area',
       customRight: 'Customize the right arrow area',
       customLeftIcon: 'Customize the left Icon area',
       customLeftIcon: 'Customize the left Icon area',
-      displayIcon: 'Display Icon'
+      displayIcon: 'cell display icon'
     }
     }
   });
   });
 export default createDemo({
 export default createDemo({

+ 1 - 1
src/packages/__VUE/imagepreview/doc.md

@@ -68,7 +68,7 @@ app.use(ImagePreview);
 ```html
 ```html
 <template>
 <template>
     <nut-image-preview :show="showPreview" :images="imgData" :content-close="true" :init-no="3" @close="hideFn"/>
     <nut-image-preview :show="showPreview" :images="imgData" :content-close="true" :init-no="3" @close="hideFn"/>
-    <nut-cell isLink title="设置初始页码的图片预览" :showIcon="true" @click="showFn"></nut-cell>
+    <nut-cell isLink title="设置初始页码" :showIcon="true" @click="showFn"></nut-cell>
 </template>
 </template>
 <script lang="ts">
 <script lang="ts">
   import { reactive, toRefs } from 'vue';
   import { reactive, toRefs } from 'vue';

+ 1 - 1
src/packages/__VUE/imagepreview/doc.taro.md

@@ -68,7 +68,7 @@ app.use(ImagePreview);
 ```html
 ```html
 <template>
 <template>
     <nut-image-preview :show="showPreview" :images="imgData" :content-close="true" :init-no="3" @close="hideFn"/>
     <nut-image-preview :show="showPreview" :images="imgData" :content-close="true" :init-no="3" @close="hideFn"/>
-    <nut-cell isLink title="设置初始页码的图片预览" :showIcon="true" @click="showFn"></nut-cell>
+    <nut-cell isLink title="设置初始页码" :showIcon="true" @click="showFn"></nut-cell>
 </template>
 </template>
 <script lang="ts">
 <script lang="ts">
   import { reactive, toRefs } from 'vue';
   import { reactive, toRefs } from 'vue';

+ 2 - 2
src/sites/mobile-taro/vue/src/exhibition/pages/imagepreview/index.vue

@@ -7,7 +7,7 @@
 
 
     <h2>设置初始页码</h2>
     <h2>设置初始页码</h2>
     <nut-image-preview :show="showPreview2" :images="imgData" :content-close="true" :init-no="3" @close="hideFn(2)" />
     <nut-image-preview :show="showPreview2" :images="imgData" :content-close="true" :init-no="3" @close="hideFn(2)" />
-    <nut-cell isLink title="设置初始页码的图片预览" :showIcon="true" @click="showFn(2)"></nut-cell>
+    <nut-cell isLink title="设置初始页码" :showIcon="true" @click="showFn(2)"></nut-cell>
 
 
     <h2>设置轮播指示器及颜色</h2>
     <h2>设置轮播指示器及颜色</h2>
     <nut-image-preview
     <nut-image-preview
@@ -17,7 +17,7 @@
       pagination-color="red"
       pagination-color="red"
       @close="hideFn(3)"
       @close="hideFn(3)"
     />
     />
-    <nut-cell isLink title="设置轮播指示器及颜色的图片预览" :showIcon="true" @click="showFn(3)"></nut-cell>
+    <nut-cell isLink title="设置轮播指示器及颜色" :showIcon="true" @click="showFn(3)"></nut-cell>
 
 
     <!-- <h2>视频、图片预览</h2>
     <!-- <h2>视频、图片预览</h2>
     <nut-image-preview :show="showPreview4" :videos="videoData" :images="imgData" @close="hideFn(4)" />
     <nut-image-preview :show="showPreview4" :videos="videoData" :images="imgData" @close="hideFn(4)" />