提交 0aba5c86 编写于 作者: Q qiang

chore: build

上级 47316adf
...@@ -6474,6 +6474,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -6474,6 +6474,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
emit: emit2 emit: emit2
}) { }) {
const rootRef = vue.ref(null); const rootRef = vue.ref(null);
const wrapperRef = vue.ref(null);
const { const {
fieldRef, fieldRef,
state, state,
...@@ -6488,6 +6489,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -6488,6 +6489,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
vue.watch(() => heightRef.value, (height) => { vue.watch(() => heightRef.value, (height) => {
const el = rootRef.value; const el = rootRef.value;
const lineEl = lineRef.value; const lineEl = lineRef.value;
const wrapper2 = wrapperRef.value;
let lineHeight = parseFloat(getComputedStyle(el).lineHeight); let lineHeight = parseFloat(getComputedStyle(el).lineHeight);
if (isNaN(lineHeight)) { if (isNaN(lineHeight)) {
lineHeight = lineEl.offsetHeight; lineHeight = lineEl.offsetHeight;
...@@ -6499,7 +6501,8 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -6499,7 +6501,8 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
lineCount lineCount
}); });
if (props2.autoHeight) { if (props2.autoHeight) {
el.style.height = height + "px"; el.style.height = "auto";
wrapper2.style.height = height + "px";
} }
}); });
function onResize({ function onResize({
...@@ -6564,6 +6567,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -6564,6 +6567,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
return vue.createVNode("uni-textarea", { return vue.createVNode("uni-textarea", {
"ref": rootRef "ref": rootRef
}, [vue.createVNode("div", { }, [vue.createVNode("div", {
"ref": wrapperRef,
"class": "uni-textarea-wrapper" "class": "uni-textarea-wrapper"
}, [vue.withDirectives(vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { }, [vue.withDirectives(vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, {
"style": props2.placeholderStyle, "style": props2.placeholderStyle,
...@@ -6580,7 +6584,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -6580,7 +6584,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
"action": "", "action": "",
"onSubmit": () => false, "onSubmit": () => false,
"class": "uni-input-form" "class": "uni-input-form"
}, [textareaNode], 40, ["onSubmit"]) : textareaNode])], 512); }, [textareaNode], 40, ["onSubmit"]) : textareaNode], 512)], 512);
}; };
} }
}); });
......
...@@ -13475,6 +13475,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -13475,6 +13475,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
emit: emit2 emit: emit2
}) { }) {
const rootRef = ref(null); const rootRef = ref(null);
const wrapperRef = ref(null);
const { const {
fieldRef, fieldRef,
state: state2, state: state2,
...@@ -13489,6 +13490,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -13489,6 +13490,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
watch(() => heightRef.value, (height) => { watch(() => heightRef.value, (height) => {
const el = rootRef.value; const el = rootRef.value;
const lineEl = lineRef.value; const lineEl = lineRef.value;
const wrapper2 = wrapperRef.value;
let lineHeight = parseFloat(getComputedStyle(el).lineHeight); let lineHeight = parseFloat(getComputedStyle(el).lineHeight);
if (isNaN(lineHeight)) { if (isNaN(lineHeight)) {
lineHeight = lineEl.offsetHeight; lineHeight = lineEl.offsetHeight;
...@@ -13500,7 +13502,8 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -13500,7 +13502,8 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
lineCount lineCount
}); });
if (props2.autoHeight) { if (props2.autoHeight) {
el.style.height = height + "px"; el.style.height = "auto";
wrapper2.style.height = height + "px";
} }
}); });
function onResize2({ function onResize2({
...@@ -13568,6 +13571,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -13568,6 +13571,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
return createVNode("uni-textarea", { return createVNode("uni-textarea", {
"ref": rootRef "ref": rootRef
}, [createVNode("div", { }, [createVNode("div", {
"ref": wrapperRef,
"class": "uni-textarea-wrapper" "class": "uni-textarea-wrapper"
}, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, {
"style": props2.placeholderStyle, "style": props2.placeholderStyle,
...@@ -13584,7 +13588,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -13584,7 +13588,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
"action": "", "action": "",
"onSubmit": () => false, "onSubmit": () => false,
"class": "uni-input-form" "class": "uni-input-form"
}, [textareaNode], 40, ["onSubmit"]) : textareaNode])], 512); }, [textareaNode], 40, ["onSubmit"]) : textareaNode], 512)], 512);
}; };
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册