@truenewx/tnxvue3 3.0.0-alpha.41 → 3.0.0-alpha.42

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": "@truenewx/tnxvue3",
3
- "version": "3.0.0-alpha.41",
3
+ "version": "3.0.0-alpha.42",
4
4
  "description": "互联网技术解决方案:Vue3扩展支持",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -24,7 +24,7 @@
24
24
  "vue-router": "~4.4.0"
25
25
  },
26
26
  "dependencies": {
27
- "@truenewx/tnxcore": "3.0.0-alpha.26",
27
+ "@truenewx/tnxcore": "3.0.0-alpha.27",
28
28
  "@element-plus/icons-vue": "2.3.1",
29
29
  "async-validator": "4.2.5",
30
30
  "mitt": "3.0.1"
@@ -404,13 +404,14 @@ export default build('tnxel', () => {
404
404
  }
405
405
  });
406
406
 
407
+ tnxel.libs.ElementPlus = ElementPlus;
408
+
407
409
  tnxel.install = tnxel.util.function.around(tnxel.install, function (install, vm) {
408
410
  install.call(tnxel, vm);
409
411
  // 始终安装ElementPlus,以避免对于不同Vue实例未安装的问题
410
412
  vm.use(ElementPlus, {
411
413
  locale: ElementPlus_zh_CN,
412
414
  });
413
- tnxel.libs = Object.assign({}, tnxel.libs, {ElementPlus});
414
415
  });
415
416
 
416
417
  tnxel.router.beforeLeave =
package/src/tnxvue.js CHANGED
@@ -107,7 +107,6 @@ export default build('tnxvue', () => {
107
107
  const component = this.components[key];
108
108
  vm.component(component.name, component);
109
109
  }
110
- this.libs.Vue = Vue;
111
110
  },
112
111
  dialog(content, title, buttons, options, contentProps) {
113
112
  // 默认不实现,由UI框架扩展层实现
@@ -199,6 +198,8 @@ export default build('tnxvue', () => {
199
198
  },
200
199
  });
201
200
 
201
+ tnxvue.libs.Vue = Vue;
202
+
202
203
  Object.assign(tnxvue.util, {
203
204
  /**
204
205
  * 判断指定对象是否组件实例