We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7cc4e7 commit baad3a1Copy full SHA for baad3a1
src/index.js
@@ -5,7 +5,7 @@ import NumberFormat from './number-format'
5
6
export { number, vNumber, options, NumberFormat }
7
8
-export default {
+const VueNumberFormat = {
9
install(app, config = {}) {
10
if (config) {
11
Object.assign(options, config)
@@ -14,3 +14,9 @@ export default {
14
app.component('number', number)
15
},
16
}
17
+
18
+export default VueNumberFormat
19
20
+if (typeof window !== 'undefined' && window.Vue) {
21
+ window.Vue.use(VueNumberFormat)
22
+}
0 commit comments