zova-ui-empty 5.0.209 → 5.0.211

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": "zova-ui-empty",
3
- "version": "5.0.209",
3
+ "version": "5.0.211",
4
4
  "description": "A vue3 empty framework with ioc",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -53,5 +53,5 @@
53
53
  "zova-vite": "^1.0.137"
54
54
  },
55
55
  "license": "MIT",
56
- "gitHead": "20d5666c9835e208eb0ab4c4f09f658d314795f4"
56
+ "gitHead": "c0bd599d6500e3cc82cc5896797929811d2156db"
57
57
  }
@@ -1,4 +1,17 @@
1
- import { BeanControllerPageBase, Local } from 'zova';
1
+ import { BeanControllerPageBase, Local, zz } from 'zova';
2
+ import { ScopeModule } from '../../resource/this.js';
3
+
4
+ export const ParamsSchema = zz.object({});
5
+ export type ParamsInput = zz.input<typeof ParamsSchema>;
6
+ export type ParamsOutput = zz.output<typeof ParamsSchema>;
7
+
8
+ export const QuerySchema = zz.object({});
9
+ export type QueryInput = zz.input<typeof QuerySchema>;
10
+ export type QueryOutput = zz.output<typeof QuerySchema>;
2
11
 
3
12
  @Local()
4
- export class ControllerPageHome extends BeanControllerPageBase {}
13
+ export class ControllerPageHome extends BeanControllerPageBase<ScopeModule, QueryOutput, ParamsOutput> {
14
+ protected async __init__() {}
15
+
16
+ protected __dispose__() {}
17
+ }
@@ -6,5 +6,6 @@
6
6
  import { useControllerPage } from 'zova';
7
7
  import { ControllerPageHome } from './controller.js';
8
8
  import { RenderHome } from './render.jsx';
9
- useControllerPage(ControllerPageHome, RenderHome);
9
+ import { StyleHome } from './style.js';
10
+ useControllerPage(ControllerPageHome, RenderHome, StyleHome);
10
11
  </script>
@@ -1,10 +1,11 @@
1
1
  import { BeanRenderBase, Local } from 'zova';
2
- import type { ControllerPageHome } from './controller.js';
2
+ import type { StyleHome } from './style.js';
3
+ import { ScopeModule } from '../../resource/this.js';
3
4
 
4
- export interface RenderHome extends ControllerPageHome {}
5
+ export interface RenderHome extends StyleHome {}
5
6
 
6
7
  @Local()
7
- export class RenderHome extends BeanRenderBase {
8
+ export class RenderHome extends BeanRenderBase<ScopeModule> {
8
9
  render() {
9
10
  return (
10
11
  <div class="text-center">
@@ -0,0 +1,10 @@
1
+ import { BeanStyleBase, Local } from 'zova';
2
+ import type { ControllerPageHome } from './controller.js';
3
+ import { ScopeModule } from '../../resource/this.js';
4
+
5
+ export interface StyleHome extends ControllerPageHome {}
6
+
7
+ @Local()
8
+ export class StyleHome extends BeanStyleBase<ScopeModule> {
9
+ protected async __init__() {}
10
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './scope.js';
2
2
  export * from './beans.js';
3
3
  export * from './components.js';
4
+ export * from './pages.js';
@@ -0,0 +1,25 @@
1
+ export * as NSControllerPageHome from '../page/home/controller.js';
2
+ import * as NSControllerPageHome from '../page/home/controller.js';
3
+ // import { TypePageParamsQuery } from 'zova';
4
+ import 'zova';
5
+ declare module 'zova' {
6
+ export interface IPagePathRecord {
7
+ '/a/home/home': NSControllerPageHome.QueryInput;
8
+ }
9
+ export interface IPageNameRecord {
10
+ // 'a-home:page-name': TypePageParamsQuery<NSControllerPagePageName.QueryInput, NSControllerPagePageName.ParamsInput>;
11
+ }
12
+ }
13
+
14
+ export const pagePathSchemas = {
15
+ '/a/home/home': {
16
+ query: NSControllerPageHome.QuerySchema,
17
+ },
18
+ };
19
+
20
+ export const pageNameSchemas = {
21
+ // 'a-home:page-name': {
22
+ // params: NSControllerPagePageName.ParamsSchema,
23
+ // query: NSControllerPagePageName.QuerySchema,
24
+ // },
25
+ };
@@ -1,4 +1,4 @@
1
- import { IModuleRoute } from 'zova-module-a-router';
2
1
  import Home from './page/home/index.vue';
2
+ import { IModuleRoute } from 'zova-module-a-router';
3
3
 
4
4
  export const routes: IModuleRoute[] = [{ path: 'home', component: Home }];