Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

v-money

> 编程语言
Open source

Tiny (<2k gzipped) input/directive mask for currency

776 stars0 likes1 views
WebsiteGitHub

About

Tiny (<2k gzipped) input/directive mask for currency

v-money Mask for Vue.js

Features

  • Lightweight ( Vue.use(money, {precision: 4})

### B. Use as component: https://jsfiddle.net/auom8st8/

```html

  

C. Use as directive: https://jsfiddle.net/nj3cLoum/2/

Must use vmodel.lazy to bind works properly.

xml

  

Properties

property Required Type Default Description
precision true Number 2 How many decimal places
decimal false String "." Decimal separator
thousands false String "," Thousands separator
prefix false String "" Currency symbol followed by a Space, like "R$ "
suffix false String "" Percentage for example: " %"
masked false Boolean false If the component output should include the mask or not

References

  • https://en.wikipedia.org/wiki/Decimal_mark
  • https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html
  • http://www.xe.com/symbols.php
  • https://github.com/kevinongko/vue-numeric
  • https://github.com/plentz/jquery-maskmoney

Issues· 69 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言