mine-h5-ui
Version:
一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍
20 lines (19 loc) • 427 B
TypeScript
/**
* 校验
* @example
* ```ts
* import { useValidator } from 'mine-h5-ui'
*
* const { phone, password, email, idCard, imgs, thousand, thousandFloat } = useValidator()
* console.log(phone.test('')) // 输出: false
* ```
*/
export declare const useValidator: () => {
phone: RegExp;
password: RegExp;
email: RegExp;
idCard: RegExp;
imgs: RegExp;
thousand: RegExp;
thousandFloat: RegExp;
};