zova-cli-set-front 1.2.46 → 1.2.48
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PrefixKeys } from 'zova';
|
|
2
|
-
import type { IActionRecord, TypeActionOptions } from 'zova-module-a-action';
|
|
3
2
|
import type { IVonaComponentRecord, TypeComponentOptions } from 'zova-module-a-bean';
|
|
3
|
+
import type { ICommandRecord, TypeCommandOptions } from 'zova-module-a-command';
|
|
4
4
|
import type { IIconRecord } from 'zova-module-a-icon';
|
|
5
5
|
import type { TypePagePathSchema } from 'zova-module-a-router';
|
|
6
6
|
import type { CssBase } from 'zova-module-home-theme';
|
|
@@ -28,7 +28,7 @@ export function $cssMerge(
|
|
|
28
28
|
[className: string]: any;
|
|
29
29
|
}
|
|
30
30
|
)[]
|
|
31
|
-
): any
|
|
31
|
+
): any {
|
|
32
32
|
return classes;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -36,9 +36,9 @@ export function $iconName<K extends keyof IIconRecord>(name: K): any {
|
|
|
36
36
|
return name;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export function
|
|
40
|
-
if (!options.name) throw new Error('should specify the
|
|
41
|
-
return options.name.replace(':', '.
|
|
39
|
+
export function Command<K extends keyof ICommandRecord>(options: TypeCommandOptions<K>) {
|
|
40
|
+
if (!options.name) throw new Error('should specify the command name');
|
|
41
|
+
return options.name.replace(':', '.command.');
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export function Component<K extends keyof IVonaComponentRecord>(options: TypeComponentOptions<K>) {
|
package/package.json
CHANGED