diff --git a/pages/component/button/button.test.js b/pages/component/button/button.test.js index e6eaaaf0a6bfe5758c0d5f7104aa4523823c826b..f53a4f38683ca34ec8d5cdfa0e76d9f73646acad 100644 --- a/pages/component/button/button.test.js +++ b/pages/component/button/button.test.js @@ -26,8 +26,8 @@ describe('Button.uvue', () => { expect(elements.length).toBe(13) }) it('text', async () => { - const textBtn = await page.$('.text-button') - expect(await textBtn.text()).toEqual('按钮') + const textBtn = await page.$('.text-button') + expect(await textBtn.text()).toEqual('文字来自data绑定') await page.setData({ text: 'button', }) diff --git a/pages/component/button/button.uvue b/pages/component/button/button.uvue index cb3c3646c9874fc649c98c2d9c87540693ae19b7..36bc53327dd8b7bad0fecd6ba1bce840b5d9f1da 100644 --- a/pages/component/button/button.uvue +++ b/pages/component/button/button.uvue @@ -109,7 +109,7 @@ export default { .button-sp-area { margin: 0 auto; - width: 70%; + width: 90%; } .mini-btn {