| 1234567891011121314151617181920212223 |
- import { FormInstance } from 'antd';
- import { LoginApiParams } from '@/apis';
- // 定义状态
- export type State = {
- buttonLoading: boolean,
- };
- // 只读状态
- export type ReadonlyState = Readonly<State>;
- // 修改状态
- export type StateAction = {
- setButtonLoading: (loading: State['buttonLoading']) => void,
- };
- // 仓库类型
- export type LoginStore = {
- state: ReadonlyState,
- onClickLogin: (data: LoginApiParams, remember: boolean) => Promise<any>,
- init: (form: FormInstance) => void,
- reset: () => void,
- };
|