update: 提取公共定义
This commit is contained in:
parent
e5d3c3e400
commit
56da9fa028
5
src/types/element-plus.d.ts
vendored
Normal file
5
src/types/element-plus.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
import type { FormValidateCallback, FormValidationResult } from 'element-plus';
|
||||
|
||||
interface IForm {
|
||||
validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
|
||||
}
|
|
@ -62,13 +62,10 @@
|
|||
import { validUsername } from '@/utils/validate';
|
||||
import { defineComponent } from 'vue';
|
||||
import SocialSign from './components/SocialSignin.vue';
|
||||
import type { FormItemRule, FormValidateCallback, FormValidationResult } from 'element-plus';
|
||||
import type { FormItemRule } from 'element-plus';
|
||||
import type { IForm } from '@/types/element-plus';
|
||||
import store from '@/store';
|
||||
|
||||
interface IForm {
|
||||
validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Login',
|
||||
components: { SocialSign },
|
||||
|
|
Loading…
Reference in New Issue
Block a user