This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FormValidator { | |
/** | |
* @param {string|Array} trigger 验证触发时机 | |
*/ | |
constructor (trigger = '') { | |
this.validators = [] | |
this.rules = [] | |
this.trigger = trigger | |
return this | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as Qiniu from 'qiniu-js' // 注意qiniu-js并没有export default! | |
import dayjs from 'dayjs' | |
import { getQiniuToken } from '@/api/user' | |
import { QiniuSetting } from '@/api/types' | |
export interface ObserverNextRes { | |
/** | |
* 进度更新回调数据 | |
*/ | |
total: { |