From 7a7a7ed9b31a75a4ad025668310e0d6bcf96553e Mon Sep 17 00:00:00 2001 From: taohebin Date: Fri, 17 May 2024 16:12:05 +0800 Subject: [PATCH] =?UTF-8?q?test:=20textarea=20flex:1=20=E7=9A=84=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/textarea/textarea.test.js | 9 +++++++++ pages/component/textarea/textarea.uvue | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/pages/component/textarea/textarea.test.js b/pages/component/textarea/textarea.test.js index 94055a6e..2f5c2a5c 100644 --- a/pages/component/textarea/textarea.test.js +++ b/pages/component/textarea/textarea.test.js @@ -49,6 +49,15 @@ describe('component-native-textarea', () => { expect(await textarea.attribute("cursor-color")).toBe("transparent") }) + it("flex 1 height exception", async () => { + const bottomTextarea = await page.$('#textarea-height-exception'); + var { + height + } = await bottomTextarea.size() + expect(height).toEqual(150) + }) + + it("inputmode", async () => { const inputmodeEnum = await page.data("inputmode_enum") for (var i = 0; i < inputmodeEnum.length; i++) { diff --git a/pages/component/textarea/textarea.uvue b/pages/component/textarea/textarea.uvue index 30f07aa6..d76e67b8 100644 --- a/pages/component/textarea/textarea.uvue +++ b/pages/component/textarea/textarea.uvue @@ -137,7 +137,10 @@ export default { :defaultValue="false" title="如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true(仅限小程序平台)" @change="change_fixed_boolean" - > + > + +