wip(Login): Login developing

This commit is contained in:
陈凯龙
2022-01-05 17:02:25 +08:00
parent 77097c8d92
commit 4216f7c218
26 changed files with 391 additions and 1597 deletions

View File

@@ -1,5 +1,4 @@
import type { CSSProperties } from 'vue'
import type { RuleItem } from 'async-validator'
declare global {
// Form types start
@@ -37,18 +36,18 @@ declare global {
declare type FormValueTypes = string | number | string[] | number[] | boolean | undefined | null
declare interface FormItemRule extends RuleItem {
trigger?: string
}
// declare interface FormItemRule extends RuleItem {
// trigger?: string
// }
declare type FormRulesMap<T extends string = string> = Partial<
Record<T, FormItemRule | FormItemRule[]>
>
// declare type FormRulesMap<T extends string = string> = Partial<
// Record<T, FormItemRule | FormItemRule[]>
// >
declare type FormItemProps = {
labelWidth?: string | number
required?: boolean
rules?: FormRulesMap
rules?: Recordable
error?: string
showMessage?: boolean
inlineMessage?: boolean