ソースを参照

Merge branch 'v4' of https://github.com/jdf2e/nutui into upstream_v4

lkjh3214 3 年 前
コミット
293f4649c0

+ 2 - 1
src/packages/__VUE/address/doc.taro.md

@@ -172,6 +172,7 @@ app.use(Address);
       @change="onChange"
       @close="close"
       custom-address-title="请选择所在地区"
+      height="270px"
   ></nut-address>
 </template>
 <script>
@@ -443,7 +444,7 @@ app.use(Address);
       custom-and-exist-title="选择其他地址"
       @switch-module="switchModule"
       @close-mask="closeMask"
-       @change='onChange'
+      @change='onChange'
   ></nut-address>
 </template>
 <script>

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

@@ -33,7 +33,7 @@ export default {
   props: {},
   setup() {
     const inputVal = ref('');
-    const danmu = ref(null);
+    const danmu = ref();
     let list = ref(['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff']);
     function addDanmu() {
       let n = Math.random();

+ 3 - 3
src/packages/__VUE/barrage/doc.taro.md

@@ -32,7 +32,7 @@ export default {
   props: {},
   setup() {
     const inputVal = ref('');
-    const danmu = ref(null);
+    const danmu = ref();
     let list = ref(['画美不看', '不明觉厉', '喜大普奔', '男默女泪', '累觉不爱', '爷青结-']);
     function addDanmu() {
       let n = Math.random();
@@ -61,8 +61,8 @@ export default {
 |--------------|----------------------------------|--------|------------------|
 | danmu         | 弹幕列表数据               | Array | `[]`              |
 | frequency        | 可视区域内每个弹幕出现的时间间隔                         | number | `500`               |
-| speeds         | 每个弹幕的滚动时间 | number |  `2000`               |
-| rows  | 弹幕行数,分几行展示     | number | `1` |
+| speeds         | 每个弹幕的滚动时间 | number |  `5000`               |
+| rows  | 弹幕行数,分几行展示     | number | `3` |
 | top  | 弹幕垂直距离    | number | `10` |
 | loop  | 是否循环播放     | boolean | `true` |
 

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

@@ -177,7 +177,7 @@ app.use(Card);
 ```
 :::
 
-### 自定义右下角内容
+### Customize bottom right content
 :::demo
 ```html
 <template>

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

@@ -30,7 +30,7 @@ app.use(Ecard);
   ></nut-ecard>
 </template>
 <script>
-  import {ref, reactive, toRefs } from 'vue';
+  import {ref, reactive } from 'vue';
   export default {
     setup() {
       const dataList=reactive([

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

@@ -32,7 +32,7 @@ app.use(Ecard);
   </nut-cell>
 </template>
 <script>
-  import {ref, reactive, toRefs } from 'vue';
+  import {ref, reactive } from 'vue';
   export default {
     setup() {
       const dataList=reactive([

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

@@ -30,7 +30,7 @@ app.use(Ecard);
   ></nut-ecard>
 </template>
 <script>
-  import {ref, reactive, toRefs } from 'vue';
+  import {ref, reactive } from 'vue';
   export default {
     setup() {
       const dataList=reactive([

+ 4 - 0
src/packages/__VUE/ecard/index.scss

@@ -25,6 +25,10 @@
         background-color: transparent;
         color: $dark-color3;
       }
+      .nut-ecard-input {
+        outline: none;
+        border: none;
+      }
     }
   }
 }

+ 1 - 0
src/packages/__VUE/ecard/index.taro.vue

@@ -17,6 +17,7 @@
             type="text"
             v-model="inputValue"
             @input="change"
+            class="nut-ecard-input"
             :placeholder="placeholder || translate('placeholder')"
           />
           {{ suffix }}

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

@@ -22,7 +22,7 @@ app.use(Empty);
 ```
 :::
 
-### 图片类型,内置 3 个
+### 图片类型
 :::demo
 ```html
 <template>

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

@@ -22,7 +22,7 @@ app.use(Empty);
 ```
 :::
 
-### 图片类型,内置 3 个
+### 图片类型
 :::demo
 ```html
 <template>

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

@@ -9,10 +9,9 @@ For quick layout
 
 ```javascript
 import { createApp } from 'vue';
-import { Layout, Row, Col } from '@nutui/nutui';
+import { Row, Col } from '@nutui/nutui';
 
 const app = createApp();
-app.use(Layout);
 app.use(Row);
 app.use(Col);
 ```

+ 1 - 2
src/packages/__VUE/layout/doc.md

@@ -8,10 +8,9 @@
 
 ```javascript
 import { createApp } from 'vue';
-import { Layout, Row, Col } from '@nutui/nutui';
+import { Row, Col } from '@nutui/nutui';
 
 const app = createApp();
-app.use(Layout);
 app.use(Row);
 app.use(Col);
 ```

+ 1 - 2
src/packages/__VUE/layout/doc.taro.md

@@ -8,10 +8,9 @@
 
 ```javascript
 import { createApp } from 'vue';
-import { Layout, Row, Col } from '@nutui/nutui-taro';
+import { Row, Col } from '@nutui/nutui-taro';
 
 const app = createApp();
-app.use(Layout);
 app.use(Row);
 app.use(Col);
 ```

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

@@ -149,7 +149,7 @@ app.use(Progress);
 | text-inside | Progress bar text display position(false:outside,true:Inside) | boolean | `false`
 | text-color | Progress bar text color setting | string | `#333`
 | text-background | Progress bar text background color setting | string | `Same progress bar color`
-| status | The current state of the progress bar,active(show animation)/icon(show icon) | string | `text`
+| status | The current state of the progress bar,`active(display animation effect)` `icon(display icon label)`| string | `text`
 
 ### Slots
 | Name  | Description     | 

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

@@ -144,7 +144,7 @@ app.use(Progress);
 | text-inside | 进度条文字显示位置(false:外显,true:内显) | boolean | `false`
 | text-color | 进度条文字颜色设置 | string | `#333`
 | text-background | 进度条文字背景颜色设置 | string | `同进度条颜色`
-| status | 进度条当前状态,active(展示动画效果)/icon(展示icon标签) | string | `text`
+| status | 进度条当前状态,可选值`active(展示动画效果)` `icon(展示icon标签)` | string | `text`
 
 ### Slots
 | 名称  | 说明     | 回调参数    |

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

@@ -137,7 +137,7 @@ app.use(Progress);
 | text-inside | 进度条文字显示位置(false:外显,true:内显) | boolean | `false`
 | text-color | 进度条文字颜色设置 | string | `#333`
 | text-background | 进度条文字背景颜色设置 | string | `同进度条颜色`
-| status | 进度条当前状态,active(展示动画效果)/icon(展示icon标签) | string | `text`
+| status | 进度条当前状态,`active(展示动画效果)` `icon(展示icon标签)` | string | `text`
 
 ### Slots
 | 名称  | 说明     | 回调参数    |