Browse Source

fix: 解决Picker 在Taro 上的高度问题 (#1604)

* feat: taro-picker 问题修改

* fix: 解决Taro高度问题
yangxiaolu1993 3 years ago
parent
commit
f75157b8e2
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/packages/__VUE/picker/ColumnTaro.vue

+ 14 - 0
src/packages/__VUE/picker/ColumnTaro.vue

@@ -307,6 +307,20 @@ export default create({
     );
 
     watch(
+      () => props.itemShow,
+      (val) => {
+        if (val) {
+          setTimeout(() => {
+            getReference();
+          }, 200);
+        }
+      },
+      {
+        deep: true
+      }
+    );
+
+    watch(
       () => props.value,
       (val) => {
         state.transformY = 0;