全局数字验证

This commit is contained in:
Vergil
2020-02-24 15:20:42 +08:00
parent 6c08cd2ea8
commit a4e5f22b95
7 changed files with 256 additions and 211 deletions

View File

@@ -0,0 +1,11 @@
import AmountInputBox from './AmountInputBox.js'
const directives = [AmountInputBox]
export default {
install: Vue => {
if (directives.length && directives.length > 0) {
directives.map(item => {
Vue.directive(item.key, item.func)
})
}
}
}