template的改动

This commit is contained in:
Xu Chang 2024-02-13 14:46:49 +08:00
parent 16d76c876b
commit 0ad9aa5e4a
3 changed files with 17 additions and 13 deletions

View File

@ -14,24 +14,24 @@ import AbsListPro from 'oak-frontend-base/es/components/listPro';
import AbsDetail from 'oak-frontend-base/es/components/detail';
import AbsUpsert from 'oak-frontend-base/es/components/upsert';
const FilterPanel = AbsFilterPanel as (
...props: Parameters<typeof AbsFilterPanel<EntityDict, keyof EntityDict>>
const FilterPanel = AbsFilterPanel as <T extends keyof EntityDict>(
...props: Parameters<typeof AbsFilterPanel<EntityDict, T>>
) => React.ReactElement;
const List = AbsList as (
...props: Parameters<typeof AbsList<EntityDict, keyof EntityDict>>
const List = AbsList as <T extends keyof EntityDict>(
...props: Parameters<typeof AbsList<EntityDict, T>>
) => React.ReactElement;
const ListPro = AbsListPro as (
...props: Parameters<typeof AbsListPro<EntityDict, keyof EntityDict>>
const ListPro = AbsListPro as <T extends keyof EntityDict>(
...props: Parameters<typeof AbsListPro<EntityDict, T>>
) => React.ReactElement;
const Detail = AbsDetail as (
...props: Parameters<typeof AbsDetail<EntityDict, keyof EntityDict>>
const Detail = AbsDetail as <T extends keyof EntityDict>(
...props: Parameters<typeof AbsDetail<EntityDict, T>>
) => React.ReactElement;
const Upsert = AbsUpsert as (
...props: Parameters<typeof AbsUpsert<EntityDict, keyof EntityDict>>
const Upsert = AbsUpsert as <T extends keyof EntityDict>(
...props: Parameters<typeof AbsUpsert<EntityDict, T>>
) => React.ReactElement;
export {

View File

@ -0,0 +1,5 @@
"use oak router builder"; // 这行备注说明是用oak的router builder来生成allRouters
import React from 'react';
import { IRouter } from '../../../types/router';
let allRouters: IRouter[] = [];
export default allRouters;

View File

@ -1,4 +1,3 @@
import { IRouter } from '../../../types/router';
let allRouters: IRouter[] = [];
import allRouters from "./allRouters";
export default allRouters;