@truenewx/tnxvue3 2.6.3 → 2.6.4

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": "2.6.3",
3
+ "version": "2.6.4",
4
4
  "description": "互联网技术解决方案:Vue3扩展支持",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -375,10 +375,14 @@ const tnxel = Object.assign({}, tnxbs, tnxvue, {
375
375
 
376
376
  tnxel.install = tnxel.util.function.around(tnxel.install, function(install, vm) {
377
377
  install.call(window.tnx, vm);
378
- vm.use(ElementPlus, {
378
+ let ElementComponent = ElementPlus;
379
+ if (window.tnx.libs && window.tnx.libs.ElementPlus) {
380
+ ElementComponent = window.tnx.libs.ElementPlus;
381
+ }
382
+ vm.use(ElementComponent, {
379
383
  locale: ElementPlus_zh_CN,
380
384
  });
381
- this.libs.ElementPlus = ElementPlus;
385
+ window.tnx.libs = Object.assign({}, window.tnx.libs, {ElementPlus: ElementComponent});
382
386
  });
383
387
 
384
388
  tnxel.router.beforeLeave = tnxel.util.function.around(tnxel.router.beforeLeave, function(beforeLeave, router, from) {