feat: improve code
This commit is contained in:
parent
69d47a0331
commit
bfa46eb0c0
@ -8,6 +8,7 @@ export default defineConfig({
|
|||||||
define: {
|
define: {
|
||||||
'process.env.API_URL': process.env.API_URL,
|
'process.env.API_URL': process.env.API_URL,
|
||||||
},
|
},
|
||||||
|
// mfsu: {},
|
||||||
// ssr: {},
|
// ssr: {},
|
||||||
// exportStatic: {},
|
// exportStatic: {},
|
||||||
mode: 'site',
|
mode: 'site',
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
"@umijs/plugin-antd": "^0.9.1",
|
"@umijs/plugin-antd": "^0.9.1",
|
||||||
"antd": "^4.16.11",
|
"antd": "^4.16.11",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"dumi": "^1.1.16",
|
"dumi": "^1.1.25",
|
||||||
"eslint": "^7.4.0",
|
"eslint": "^7.4.0",
|
||||||
"eslint-plugin-import": "^2.22.0",
|
"eslint-plugin-import": "^2.22.0",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
|
@ -22,6 +22,7 @@ export interface ListOptions {
|
|||||||
filter?: any;
|
filter?: any;
|
||||||
defaultAppends?: any[];
|
defaultAppends?: any[];
|
||||||
appends?: string[];
|
appends?: string[];
|
||||||
|
perPage?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Resource {
|
export class Resource {
|
||||||
|
@ -1,19 +1,13 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ISchema as FormilyISchema, observer, Schema, useField } from '@formily/react';
|
import { ISchema as IFormilySchema, observer, Schema, useField } from '@formily/react';
|
||||||
import constate from 'constate';
|
|
||||||
import { useState } from 'react';
|
|
||||||
import { createContext } from 'react';
|
|
||||||
|
|
||||||
import { extend } from 'umi-request';
|
import { extend } from 'umi-request';
|
||||||
import { isVoidField } from '@formily/core';
|
|
||||||
import { useCookieState, useRequest } from 'ahooks';
|
|
||||||
|
|
||||||
export { FormilyISchema };
|
export type FormilyISchema = IFormilySchema
|
||||||
|
|
||||||
export interface ISchema extends FormilyISchema {
|
export interface ISchema extends IFormilySchema {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
properties?: {
|
properties?: {
|
||||||
[key: string]: ISchema | FormilyISchema;
|
[key: string]: ISchema | IFormilySchema;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7763,7 +7763,7 @@ dumi-theme-default@1.1.8:
|
|||||||
prismjs "^1.21.0"
|
prismjs "^1.21.0"
|
||||||
rc-tabs "^11.7.1"
|
rc-tabs "^11.7.1"
|
||||||
|
|
||||||
dumi@^1.1.16:
|
dumi@^1.1.25:
|
||||||
version "1.1.25"
|
version "1.1.25"
|
||||||
resolved "https://registry.npmjs.org/dumi/-/dumi-1.1.25.tgz#8d86043cbcb35d02e7eff5097f43d266634d48bc"
|
resolved "https://registry.npmjs.org/dumi/-/dumi-1.1.25.tgz#8d86043cbcb35d02e7eff5097f43d266634d48bc"
|
||||||
integrity sha512-YJGjtFILtfy8v09+CXprFOagZTHk5oWCU3zt1FblDcxYO7CXmKFyPatqyeZLKAih+q6iOfBcqTa1taE61WC56A==
|
integrity sha512-YJGjtFILtfy8v09+CXprFOagZTHk5oWCU3zt1FblDcxYO7CXmKFyPatqyeZLKAih+q6iOfBcqTa1taE61WC56A==
|
||||||
|
Loading…
Reference in New Issue
Block a user