Browse Source

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

richard1015 3 years ago
parent
commit
678a9097a9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/packages/__VUE/textarea/index.vue

+ 3 - 3
src/packages/__VUE/textarea/index.vue

@@ -1,4 +1,4 @@
-, nextTick<template>
+<template>
   <view :class="classes">
     <textarea
       ref="textareaRef"
@@ -44,7 +44,7 @@ export default create({
     },
     rows: {
       type: [String, Number],
-      default: ''
+      default: '2'
     },
     placeholder: {
       type: String,
@@ -109,7 +109,7 @@ export default create({
           height = Math.max(height, minHeight);
         }
       }
-      if (height && props.rows == '') {
+      if (height) {
         textarea.style.height = height + 'px';
       }
     };