mc-pro-ui
Version:
一个功能强大的 Vue 3 UI 组件库,提供完整的 TypeScript 支持
113 lines (110 loc) • 2.87 kB
TypeScript
/**
* @param {string} path
* @returns {Boolean}
*/
export declare function isExternal(path: any): boolean;
/**
*@description '密码不能低于8位数,并且包含英文字母'
* @param str
*/
export declare function isValidPwd(str: any): boolean;
/**
*@description 验证用户名格式 3-15个字母或数字
* @param str
*/
export declare function isValidUsername(str: any): boolean;
/**
*@description 验证角色名称 2-20个字母或数字
* @param str
*/
export declare function isValidRoleName(str: any): boolean;
/**
*@description 验证角色唯一标识 1-50个字母或数字
* @param str
*/
export declare function isValidRoleSign(str: any): boolean;
/**
*@description 验证组织编码格式 1-50个字母或数字
* @param str
*/
export declare function isValidOrgCode(str: any): boolean;
/**
* @description 验证URL地址格式
* @param str
* @returns {boolean}
*/
export declare function isValidUrl(str: any): boolean;
/**
* @description 判断是否全部小写
* @param str
* @returns {boolean}
*/
export declare function isLowerCase(str: any): boolean;
/**
* @description 判断是否全部大写
* @param str
* @returns {boolean}
*/
export declare function isUpperCase(str: any): boolean;
/**
* @description 判断是否全为字母
* @param str
* @returns {boolean}
*/
export declare function isAlphabets(str: any): boolean;
/**
* @description 判断是否全为数字
* @param str
* @returns {boolean}
*/
export declare function isDigital(str: any): boolean;
/**
* @description 判断是否为正整数和浮点数
* @param str
* @returns {boolean}
*/
export declare function isFloating(str: any): boolean;
/**
* @description 不能包含中文和特殊字符
* @param str
* @returns {boolean}
*/
export declare function isSpecial(str: any): boolean;
/**
* @description 正负数、正负浮点数
* @param str
* @returns {boolean}
*/
export declare function isPositive(str: any): boolean;
/**
* @description 判断是否有中文(也包含日文和韩文)
* @param str
* @returns {boolean}
*/
export declare function isCharacter(str: any): boolean;
/**
* @description 判断是否为电话号码
* @param str
* @returns {boolean}
*/
export declare function isPhoneNumber(str: any): boolean;
export declare function isTelephoneNumber(str: any): boolean;
export declare function validPhone(rule: any, value: any, callback: any): void;
/**
* 判断是否为邮箱
* @param string $email
* @param boolean
*/
export declare function isEmail(str: any): boolean;
/**
* 验证数据源名称格式
* @param string $email
* @param boolean
*/
export declare function isDatasourceName(str: any): boolean;
/**
* @description 判断是否为中文,字母,数字组成(非特殊字符)
* @param str
* @returns {boolean}
*/
export declare function isNonSpecial(str: any): boolean;