vona-core 5.1.9 → 5.1.11
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/dist/index.js
CHANGED
|
@@ -614,7 +614,7 @@ class AppResource extends BeanSimple {
|
|
|
614
614
|
if (!scene) scene = 'bean';
|
|
615
615
|
scene = scene.replace(/\./g, '');
|
|
616
616
|
// bean class name
|
|
617
|
-
const beanClassName =
|
|
617
|
+
const beanClassName = beanClass.name;
|
|
618
618
|
if (beanClassName.toLocaleUpperCase().startsWith(scene.toLocaleUpperCase())) {
|
|
619
619
|
name = beanClassName.substring(scene.length);
|
|
620
620
|
} else {
|
|
@@ -648,12 +648,6 @@ class AppResource extends BeanSimple {
|
|
|
648
648
|
const beanOptions = this.getBean(beanFullName);
|
|
649
649
|
return beanOptions?.module;
|
|
650
650
|
}
|
|
651
|
-
_fixClassName(className) {
|
|
652
|
-
while (className.endsWith('2')) {
|
|
653
|
-
className = className.substring(0, className.length - 1);
|
|
654
|
-
}
|
|
655
|
-
return className;
|
|
656
|
-
}
|
|
657
651
|
_prepareOnionOptions(options, optionsPrimitive, scene, name) {
|
|
658
652
|
const app = useApp();
|
|
659
653
|
if (!app?.config && scene !== 'scope') {
|
|
@@ -666,6 +660,13 @@ class AppResource extends BeanSimple {
|
|
|
666
660
|
return deepExtend({}, options, optionsConfig);
|
|
667
661
|
}
|
|
668
662
|
}
|
|
663
|
+
|
|
664
|
+
// _fixClassName(className: string) {
|
|
665
|
+
// while (className.endsWith('2')) {
|
|
666
|
+
// className = className.substring(0, className.length - 1);
|
|
667
|
+
// }
|
|
668
|
+
// return className;
|
|
669
|
+
// }
|
|
669
670
|
}
|
|
670
671
|
const appResource = new AppResource();
|
|
671
672
|
|