shijiplus-web-plugin 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/extentionPlugin/index.js +1 -0
- package/src/index.js +21 -0
- package/src/main.js +10 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shijiplus-web-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"files": [
|
|
5
5
|
"src"
|
|
6
6
|
],
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"author": "jia",
|
|
9
9
|
"license": "ISC",
|
|
10
10
|
"private": false,
|
|
11
|
-
"main": "./src/
|
|
11
|
+
"main": "./src/index.js",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"serve": "vue-cli-service serve",
|
|
14
14
|
"build": "vue-cli-service build",
|
package/src/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import iView from 'iview'
|
|
3
|
+
import './index.less'
|
|
4
|
+
import i18n from '@/locale'
|
|
5
|
+
import ExtentionPlugin from '@/extentionPlugin'
|
|
6
|
+
import importDirective from '@/directive'
|
|
7
|
+
|
|
8
|
+
Vue.config.productionTip = false
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 注册指令
|
|
12
|
+
*/
|
|
13
|
+
importDirective(Vue)
|
|
14
|
+
|
|
15
|
+
Vue.use(ExtentionPlugin)
|
|
16
|
+
Vue.use(iView, {
|
|
17
|
+
i18n: (key, value) => i18n.t(key, value)
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
export const directiveInstall = importDirective
|
|
21
|
+
export const extentionPlugin = ExtentionPlugin
|
package/src/main.js
CHANGED
|
@@ -8,24 +8,15 @@ import importDirective from '@/directive'
|
|
|
8
8
|
|
|
9
9
|
Vue.config.productionTip = false
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
i18n: (key, value) => i18n.t(key, value)
|
|
22
|
-
})
|
|
23
|
-
console.log('init')
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const vueApp = new Vue({
|
|
11
|
+
/**
|
|
12
|
+
* 注册指令
|
|
13
|
+
*/
|
|
14
|
+
importDirective(Vue)
|
|
15
|
+
|
|
16
|
+
Vue.use(ExtentionPlugin)
|
|
17
|
+
Vue.use(iView, {
|
|
18
|
+
i18n: (key, value) => i18n.t(key, value)
|
|
19
|
+
})
|
|
20
|
+
new Vue({
|
|
28
21
|
render: h => h(App),
|
|
29
22
|
}).$mount('#app')
|
|
30
|
-
init(Vue, vueApp)
|
|
31
|
-
|