shijiplus-web-plugin 0.1.5 → 0.1.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shijiplus-web-plugin",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
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/main.js",
11
+ "main": "./src/index.js",
12
12
  "scripts": {
13
13
  "serve": "vue-cli-service serve",
14
14
  "build": "vue-cli-service build",
@@ -6,6 +6,7 @@ import objectPlugin from '@/extentionPlugin/object'
6
6
  import regularPlugin from '@/extentionPlugin/regular'
7
7
 
8
8
  const install = (vue) => {
9
+ console.log('install extentionPlugin')
9
10
  vue.use(arrayPlugin)
10
11
  vue.use(datePlugin)
11
12
  vue.use(stringPlugin)
package/src/index.js ADDED
@@ -0,0 +1,16 @@
1
+ import iView from 'iview'
2
+ import './index.less'
3
+ import i18n from '@/locale'
4
+ import ExtentionPlugin from '@/extentionPlugin'
5
+ import importDirective from '@/directive'
6
+
7
+ console.log('--------web-tool---index.js----------')
8
+
9
+ export default {
10
+ i18n,
11
+ ExtentionPlugin,
12
+ importDirective,
13
+ installDirectives(Vue) {
14
+ importDirective(Vue)
15
+ }
16
+ }
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
- export const init = (outVue, outApp) => {
15
- /**
16
- * 注册指令
17
- */
18
- importDirective(outVue)
19
- outVue.use(ExtentionPlugin)
20
- outVue.use(iView, {
21
- i18n: (key, value) => i18n.t(key, value)
22
- })
23
- console.log('init')
24
- }
25
-
26
- init(Vue, App)
27
-
11
+ /**
12
+ * 注册指令
13
+ */
14
+ importDirective(Vue)
15
+
16
+ Vue.use(ExtentionPlugin)
17
+ Vue.use(iView, {
18
+ i18n: (key, value) => i18n.t(key, value)
19
+ })
28
20
  new Vue({
29
21
  render: h => h(App),
30
22
  }).$mount('#app')
31
-