uview-plus 3.4.2 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +3 -0
- package/components/u-textarea/u-textarea.vue +11 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<textarea
|
|
4
4
|
class="u-textarea__field"
|
|
5
5
|
:value="innerValue"
|
|
6
|
-
:style="
|
|
6
|
+
:style="fieldStyle"
|
|
7
7
|
:placeholder="placeholder"
|
|
8
8
|
:placeholder-style="addStyle(placeholderStyle, typeof placeholderStyle === 'string' ? 'string' : 'object')"
|
|
9
9
|
:placeholder-class="placeholderClass"
|
|
@@ -145,7 +145,16 @@ export default {
|
|
|
145
145
|
}
|
|
146
146
|
// #endif
|
|
147
147
|
},
|
|
148
|
-
computed: {
|
|
148
|
+
computed: {
|
|
149
|
+
fieldStyle() {
|
|
150
|
+
let style = {};
|
|
151
|
+
style['height'] = addUnit(this.height);
|
|
152
|
+
if (this.autoHeight) {
|
|
153
|
+
style['height'] = 'auto';
|
|
154
|
+
style['minHeight'] = addUnit(this.height);
|
|
155
|
+
}
|
|
156
|
+
return style;
|
|
157
|
+
},
|
|
149
158
|
// 组件的类名
|
|
150
159
|
textareaClass() {
|
|
151
160
|
let classes = [],
|