zova-module-a-action 5.1.8 → 5.1.10
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.
|
@@ -20,15 +20,15 @@ export default async function (options: IMetadataCustomGenerateOptions): Promise
|
|
|
20
20
|
|
|
21
21
|
async function generateRestAction(options: IMetadataCustomGenerateOptions, globFile: IGlobBeanFile) {
|
|
22
22
|
const { moduleName, modulePath } = options;
|
|
23
|
-
const { beanName, beanNameCapitalize
|
|
23
|
+
const { beanName, beanNameCapitalize } = globFile;
|
|
24
24
|
// options
|
|
25
25
|
const typeOptionsName = `IActionOptions${beanNameCapitalize}`;
|
|
26
26
|
// import
|
|
27
27
|
const contentImports: string[] = [];
|
|
28
28
|
contentImports.push("import type { TypeActionOptionsRest } from 'zova-module-a-action';");
|
|
29
|
-
contentImports.push(`import type { ${typeOptionsName} } from '
|
|
29
|
+
contentImports.push(`import type { ${typeOptionsName} } from 'zova-module-${moduleName}';`);
|
|
30
30
|
// component
|
|
31
|
-
const componentNamePrefix = '
|
|
31
|
+
const componentNamePrefix = 'BBA';
|
|
32
32
|
const componentName = beanName;
|
|
33
33
|
const componentNameFull = `${componentNamePrefix}${toUpperCaseFirstChar(combineResourceName(componentName, moduleName, true, true))}`;
|
|
34
34
|
const contentComponent = `export function ${componentNameFull}(
|
|
@@ -15,15 +15,15 @@ export default async function (options) {
|
|
|
15
15
|
}
|
|
16
16
|
async function generateRestAction(options, globFile) {
|
|
17
17
|
const { moduleName, modulePath } = options;
|
|
18
|
-
const { beanName, beanNameCapitalize
|
|
18
|
+
const { beanName, beanNameCapitalize } = globFile;
|
|
19
19
|
// options
|
|
20
20
|
const typeOptionsName = `IActionOptions${beanNameCapitalize}`;
|
|
21
21
|
// import
|
|
22
22
|
const contentImports = [];
|
|
23
23
|
contentImports.push("import type { TypeActionOptionsRest } from 'zova-module-a-action';");
|
|
24
|
-
contentImports.push(`import type { ${typeOptionsName} } from '
|
|
24
|
+
contentImports.push(`import type { ${typeOptionsName} } from 'zova-module-${moduleName}';`);
|
|
25
25
|
// component
|
|
26
|
-
const componentNamePrefix = '
|
|
26
|
+
const componentNamePrefix = 'BBA';
|
|
27
27
|
const componentName = beanName;
|
|
28
28
|
const componentNameFull = `${componentNamePrefix}${toUpperCaseFirstChar(combineResourceName(componentName, moduleName, true, true))}`;
|
|
29
29
|
const contentComponent = `export function ${componentNameFull}(
|
package/package.json
CHANGED