diff --git a/pages/component/text/text-props.test.js b/pages/component/text/text-props.test.js
index b98840ee86529863bce74e425a0099bd476106d2..2ec93d6d15a3220112fec5216e48e5bb3d751c9c 100644
--- a/pages/component/text/text-props.test.js
+++ b/pages/component/text/text-props.test.js
@@ -30,6 +30,12 @@ describe('text-props', () => {
expect(width).toBe(0)
expect(height).toBe(0)
}
+ const element3 = await page.$('#empty-text3')
+ if (element3 != null) {
+ const { width, height } = await element3.size()
+ expect(width).toBe(0)
+ expect(height).toBe(0)
+ }
await page.setData({
autoTest: false
})
diff --git a/pages/component/text/text-props.uvue b/pages/component/text/text-props.uvue
index e6ced5d3f4ac3ddcd9cab29d79c35e6a186f1fe9..9ff36bafa35222035ff5443d6f13ef02e0a18d18 100644
--- a/pages/component/text/text-props.uvue
+++ b/pages/component/text/text-props.uvue
@@ -107,6 +107,9 @@
{{emptyText}}
+
+
+ {{emptyText}}
一级节点文本
二级节点文本