@truenewx/tnxvue3 2.6.5 → 2.6.6

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.5",
3
+ "version": "2.6.6",
4
4
  "description": "互联网技术解决方案:Vue3扩展支持",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -377,15 +377,13 @@ export default build('tnxel', () => {
377
377
  });
378
378
 
379
379
  tnxel.install = tnxel.util.function.around(tnxel.install, function(install, vm) {
380
- install.call(window.tnx, vm);
381
- let ElementComponent = ElementPlus;
382
- if (window.tnx.libs && window.tnx.libs.ElementPlus) {
383
- ElementComponent = window.tnx.libs.ElementPlus;
380
+ install.call(tnxel, vm);
381
+ if (!tnxel.libs.ElementPlus) {
382
+ vm.use(ElementPlus, {
383
+ locale: ElementPlus_zh_CN,
384
+ });
385
+ tnxel.libs = Object.assign({}, tnxel.libs, {ElementPlus});
384
386
  }
385
- vm.use(ElementComponent, {
386
- locale: ElementPlus_zh_CN,
387
- });
388
- window.tnx.libs = Object.assign({}, window.tnx.libs, {ElementPlus: ElementComponent});
389
387
  });
390
388
 
391
389
  tnxel.router.beforeLeave = tnxel.util.function.around(tnxel.router.beforeLeave, function(beforeLeave, router, from) {