mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
13 lines
267 B
TypeScript
13 lines
267 B
TypeScript
import { VXETable } from '../../../packages/all'
|
|
|
|
// 自定义全局的格式化处理函数
|
|
VXETable.validators.mixin({
|
|
mobile: {
|
|
cellValidatorMethod ({ cellValue }) {
|
|
if (!cellValue) {
|
|
return new Error('手机号不正确')
|
|
}
|
|
}
|
|
}
|
|
})
|