Browse Source

chore: 升级Taro依赖到v3.4.0

suzigang 3 years ago
parent
commit
09e9da37c9

+ 2 - 1
package.json

@@ -64,13 +64,14 @@
     }
   },
   "dependencies": {
+    "@tarojs/cli": "^3.4.0",
     "sass": "~1.32.0",
     "vue-router": "^4.0.11"
   },
   "devDependencies": {
     "@commitlint/cli": "^10.0.0",
     "@commitlint/config-conventional": "^10.0.0",
-    "@tarojs/taro": "^3.3.0-alpha.8",
+    "@tarojs/taro": "^3.4.0",
     "@types/jest": "^26.0.22",
     "@types/node": "^14.14.31",
     "@typescript-eslint/eslint-plugin": "^4.20.0",

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

@@ -46,7 +46,7 @@ app.use(OverLay);
 | duration               | 动画时长,单位秒 | String, Number | `0.3`    |
 | overlay-class          | 自定义遮罩类名   | String         | -      |
 | overlay-style          | 自定义遮罩样式   | CSSProperties  | -      |
-| lock-scroll            | 背景是否锁定     | Boolean        | `false`  |
+| lock-scroll            | 背景是否锁定(`小程序不支持`)     | Boolean        | `false`  |
 | close-on-click-overlay | 是否点击遮罩关闭 | Boolean        | `true`   |
 
 ### Events

+ 1 - 4
src/packages/__VUE/overlay/index.taro.vue

@@ -1,9 +1,6 @@
 <template>
   <Transition name="overlay-fade">
-    <view v-if="lockScroll" :class="classes" @click="onClick" :style="style" v-show="visible" :catch-move="true">
-      <slot></slot>
-    </view>
-    <view v-else :class="classes" @click="onClick" :style="style" v-show="visible">
+    <view :class="classes" @click="onClick" :style="style" v-show="visible">
       <slot></slot>
     </view>
   </Transition>

+ 8 - 8
src/sites/mobile-taro/vue/package.json

@@ -37,18 +37,18 @@
   "dependencies": {
     "@babel/runtime": "^7.7.7",
     "@nutui/nutui-taro": "^3.0.2",
-    "@tarojs/components": "^3.3.0-alpha.8",
-    "@tarojs/mini-runner": "^3.3.16",
-    "@tarojs/runtime": "^3.3.0-alpha.8",
-    "@tarojs/taro": "^3.3.0-alpha.8",
+    "@tarojs/components": "^3.4.0",
+    "@tarojs/mini-runner": "^3.4.0",
+    "@tarojs/runtime": "^3.4.0",
+    "@tarojs/taro": "^3.4.0",
     "vue": "^3.0.0"
   },
   "devDependencies": {
     "@babel/core": "^7.8.0",
-    "@tarojs/cli": "^3.3.0-alpha.8",
-    "@tarojs/mini-runner": "^3.3.0-alpha.8",
-    "@tarojs/plugin-html": "^3.3.0-alpha.8",
-    "@tarojs/webpack-runner": "^3.3.0-alpha.8",
+    "@tarojs/cli": "^3.4.0",
+    "@tarojs/mini-runner": "^3.4.0",
+    "@tarojs/plugin-html": "^3.4.0",
+    "@tarojs/webpack-runner": "^3.4.0",
     "@types/webpack-env": "^1.13.6",
     "@typescript-eslint/eslint-plugin": "^4.15.1",
     "@typescript-eslint/parser": "^4.15.1",