@neatui/vue 1.2.18 → 1.2.19
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/package.json
CHANGED
|
@@ -150,9 +150,9 @@
|
|
|
150
150
|
const el: any = ref(null);
|
|
151
151
|
const fAutoHeight = () => {
|
|
152
152
|
nextTick(() => {
|
|
153
|
-
if (props.autoHeight) {
|
|
153
|
+
if (props.autoHeight && el.value.scrollHeight > el.value.clientHeight) {
|
|
154
154
|
el.value.style.height = 'auto';
|
|
155
|
-
el.value.style.height = el.value.scrollHeight +
|
|
155
|
+
el.value.style.height = el.value.scrollHeight + 1 + 'px';
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
158
|
};
|