From 711ac6c4a087516788e71cf8b092259dd88e12a8 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Wed, 16 Aug 2023 10:43:10 +0800 Subject: [PATCH] feat(component): text \n --- pages/component/text/text-props.test.js | 12 ++ pages/component/text/text-props.uvue | 206 +++++++++++++----------- 2 files changed, 120 insertions(+), 98 deletions(-) create mode 100644 pages/component/text/text-props.test.js diff --git a/pages/component/text/text-props.test.js b/pages/component/text/text-props.test.js new file mode 100644 index 00000000..bbe185d2 --- /dev/null +++ b/pages/component/text/text-props.test.js @@ -0,0 +1,12 @@ +const PAGE_PATH = '/pages/component/text/text-props' + +describe('text-props', () => { + beforeAll(async () => { + const page = await program.navigateTo(PAGE_PATH) + await page.waitFor(1000) + }) + it('screenshot', async () => { + const image = await program.screenshot({ fullPage: true }) + expect(image).toMatchImageSnapshot() + }) +}) diff --git a/pages/component/text/text-props.uvue b/pages/component/text/text-props.uvue index 08f6cb08..691cf291 100644 --- a/pages/component/text/text-props.uvue +++ b/pages/component/text/text-props.uvue @@ -1,111 +1,121 @@ \ No newline at end of file +.text { + font-size: 30rpx; + color: #353535; + line-height: 54rpx; + text-align: center; +} + -- GitLab