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