Skip to content

Commit a8f9942

Browse files
author
Dipak Sarkar
committed
updated some issue
1 parent 7386a9a commit a8f9942

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

docs/.vuepress/enhanceApp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import Quasar from 'quasar'
8-
import number from '../../src'
8+
import number from '@coders-tm/vue-number-format'
99

1010
import 'quasar/dist/quasar.min.css'
1111
export default ({

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,7 @@
8080
"publishConfig": {
8181
"@coders-tm:registry": "https://npm.pkg.github.com"
8282
},
83-
"dependencies": {}
83+
"dependencies": {
84+
"@coders-tm/vue-number-format": "^1.0.1"
85+
}
8486
}

src/directive.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { NumberFormat, setCursor } from './utils'
33

44
export default function (el, binding) {
55
const { value } = binding
6+
if (!value) return false
67
const config = Object.assign(options, value)
78
// console.log('src/components/directive:config', config)
89

@@ -76,4 +77,4 @@ export default function (el, binding) {
7677
el.oninput()
7778
el.dispatchEvent(new Event('input'))
7879
el.dispatchEvent(new Event('change'))
79-
}
80+
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,11 @@
937937
exec-sh "^0.3.2"
938938
minimist "^1.2.0"
939939

940+
"@coders-tm/vue-number-format@^1.0.1":
941+
version "1.0.1"
942+
resolved "https://registry.yarnpkg.com/@coders-tm/vue-number-format/-/vue-number-format-1.0.1.tgz#4088de054f8c10943bf0147e126c0ec31795a91f"
943+
integrity sha512-KFrK5oSfjpIWoH/+Lb6gKnDx1kjxVelcxtqdEs4MY+0T9wQz7ff22qKV1ZxmkuIVXiARaB0TETjcPn5p7JJGBg==
944+
940945
"@eslint/eslintrc@^0.4.3":
941946
version "0.4.3"
942947
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c"

0 commit comments

Comments
 (0)