Skip to content

Commit da3e594

Browse files
authored
fix(amount): Fix the issue of inconsistent currency input and display in the table (#3672)
* fix(amount): 修复表格中币种输入和显示不一致的问题 * fix: 顺带修复pc端e2e测试用例报错
1 parent f7a615d commit da3e594

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/sites/demos/pc/app/amount/custom-service.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ test('自定义服务', async ({ page }) => {
1010
.filter({ hasText: /^MZNCNY$/ })
1111
.getByRole('textbox')
1212
.click()
13-
await page.getByRole('listitem').filter({ hasText: 'MZN' }).click()
14-
await page.getByRole('textbox').nth(3).click()
15-
await page.getByRole('textbox').nth(3).fill('100')
13+
await page.getByRole('listitem', { name: 'MZN' }).locator('div').click()
14+
await page.getByRole('tooltip', { name: '币种 MZN 金额 确定 重置' }).getByRole('textbox').nth(1).click()
15+
await page.getByRole('tooltip', { name: '币种 MZN 金额 确定 重置' }).getByRole('textbox').nth(1).fill('100')
1616
await page.getByRole('button', { name: '确定' }).click()
17-
expect(await page.locator('.reference-wrapper input').inputValue()).toEqual('$100.00')
17+
expect(await demo.locator('.reference-wrapper input').inputValue()).toEqual('$100.00')
1818
})

packages/vue/src/amount/src/mobile-first.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<div
8484
data-tag="tiny-amount-currency-mark"
8585
:class="
86-
'pl-1 text-color-text-primary' +
86+
'pl-1 text-color-text-primary break-normal' +
8787
' ' +
8888
(disabled ? 'text-color-text-disabled' : '') +
8989
' ' +

0 commit comments

Comments
 (0)