shijiplus-web-plugin 0.1.6 → 0.1.8

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,14 +1,15 @@
1
1
  {
2
2
  "name": "shijiplus-web-plugin",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "files": [
5
- "src"
5
+ "src",
6
+ "dist"
6
7
  ],
7
8
  "description": "A company project",
8
9
  "author": "jia",
9
10
  "license": "ISC",
10
11
  "private": false,
11
- "main": "./src/index.js",
12
+ "main": "./dist/js/app.js",
12
13
  "scripts": {
13
14
  "serve": "vue-cli-service serve",
14
15
  "build": "vue-cli-service build",
package/src/index.js CHANGED
@@ -1,21 +1,16 @@
1
- import Vue from 'vue'
2
1
  import iView from 'iview'
3
2
  import './index.less'
4
3
  import i18n from '@/locale'
5
4
  import ExtentionPlugin from '@/extentionPlugin'
6
5
  import importDirective from '@/directive'
7
6
 
8
- Vue.config.productionTip = false
7
+ console.log('--------web-tool---index.js----------')
9
8
 
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
9
+ export default {
10
+ i18n,
11
+ ExtentionPlugin,
12
+ importDirective,
13
+ installDirectives(Vue) {
14
+ importDirective(Vue)
15
+ }
16
+ }
package/src/main.js CHANGED
@@ -20,3 +20,12 @@ Vue.use(iView, {
20
20
  new Vue({
21
21
  render: h => h(App),
22
22
  }).$mount('#app')
23
+
24
+ export default {
25
+ i18n,
26
+ ExtentionPlugin,
27
+ importDirective,
28
+ installDirectives(Vue) {
29
+ importDirective(Vue)
30
+ }
31
+ }