feat: improve code

This commit is contained in:
chenos 2021-08-16 12:36:17 +08:00
parent 69d47a0331
commit bfa46eb0c0
5 changed files with 8 additions and 12 deletions

View File

@ -8,6 +8,7 @@ export default defineConfig({
define: {
'process.env.API_URL': process.env.API_URL,
},
// mfsu: {},
// ssr: {},
// exportStatic: {},
mode: 'site',

View File

@ -36,7 +36,7 @@
"@umijs/plugin-antd": "^0.9.1",
"antd": "^4.16.11",
"dotenv": "^8.2.0",
"dumi": "^1.1.16",
"dumi": "^1.1.25",
"eslint": "^7.4.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0",

View File

@ -22,6 +22,7 @@ export interface ListOptions {
filter?: any;
defaultAppends?: any[];
appends?: string[];
perPage?: number;
}
export class Resource {

View File

@ -1,19 +1,13 @@
import React from 'react';
import { ISchema as FormilyISchema, observer, Schema, useField } from '@formily/react';
import constate from 'constate';
import { useState } from 'react';
import { createContext } from 'react';
import { ISchema as IFormilySchema, observer, Schema, useField } from '@formily/react';
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;
properties?: {
[key: string]: ISchema | FormilyISchema;
[key: string]: ISchema | IFormilySchema;
};
}

View File

@ -7763,7 +7763,7 @@ dumi-theme-default@1.1.8:
prismjs "^1.21.0"
rc-tabs "^11.7.1"
dumi@^1.1.16:
dumi@^1.1.25:
version "1.1.25"
resolved "https://registry.npmjs.org/dumi/-/dumi-1.1.25.tgz#8d86043cbcb35d02e7eff5097f43d266634d48bc"
integrity sha512-YJGjtFILtfy8v09+CXprFOagZTHk5oWCU3zt1FblDcxYO7CXmKFyPatqyeZLKAih+q6iOfBcqTa1taE61WC56A==