doway-coms 1.4.51 → 1.4.52

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": "doway-coms",
3
- "version": "1.4.51",
3
+ "version": "1.4.52",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -43,8 +43,6 @@
43
43
  </template>
44
44
 
45
45
  <script>
46
- // 右键菜单
47
- import Contextmenu from "vue-contextmenujs"
48
46
  //VXETable插件
49
47
  import VXETable from "vxe-table";
50
48
  //轻量级剪贴板复制函数
@@ -57,7 +55,6 @@ export default {
57
55
  Input,
58
56
  ValidationProvider,
59
57
  Tooltip,
60
- Contextmenu,
61
58
  },
62
59
  data() {
63
60
  return {
package/packages/index.js CHANGED
@@ -79,8 +79,10 @@ import './utils/gridFormat'
79
79
  // 右键菜单插件
80
80
  import Contextmenu from "vue-contextmenujs"
81
81
 
82
+ Vue.use(Contextmenu);
83
+
82
84
  const install = function (Vue) {
83
- Vue.use(Contextmenu);
85
+ if (install.installed === true) return console.log('install', install.installed);
84
86
  //注册grid组件
85
87
  Vue.use(VXETable)
86
88
 
@@ -90,7 +92,8 @@ const install = function (Vue) {
90
92
  });
91
93
  };
92
94
 
93
- // 判断是否是直接引入文件
95
+ // 环境监测
96
+ // 判断是否是直接引入文件
94
97
  if (typeof window !== 'undefined' && window.Vue) {
95
98
  install(window.Vue);
96
99
  }