Skip to content

Commit

Permalink
fix(amount): 修复中文货币单位不正确的问题 (#675)
Browse files Browse the repository at this point in the history
fix #674
  • Loading branch information
zouhangwithsweet authored May 29, 2020
1 parent 2e6c55c commit 6107a64
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion components/amount/demo/cases/demo3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
<md-amount
:value="1234"
is-capital
></md-amount>
<br>
<md-amount
:value="1234.1118"
is-capital
></md-amount>
<br>
<md-amount
:value="1234.1010"
is-capital
></md-amount>
</div>
</template>
Expand All @@ -26,4 +36,4 @@ export default {
text-align center
font-size 32px
color #666
</style>
</style>
Expand Down
4 changes: 2 additions & 2 deletions components/amount/number-capital.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const cnIntRadice = ['', '\u62fe', '\u4f70', '\u4edf']
// 万 \u4e07 亿 \u4ebf 兆 \u5146
const cnIntUnits = ['', '\u4e07', '\u4ebf', '兆']

// 角 \u89d2 分 \u5206 毫 \u6beb 厘 \u5398
const cnDecUnits = ['\u89d2', '\u5206', '\u6beb', '\u5398']
// 角 \u89d2 分 \u5206 厘 \u5398 毫 \u6beb
const cnDecUnits = ['\u89d2', '\u5206', '\u5398', '\u6beb']
const cnInteger = '\u6574' // 整 \u6574
const cnIntLast = '\u5143' // 元 \u5143

Expand Down

0 comments on commit 6107a64

Please sign in to comment.