reactor:【system 系统管理】area 在 element-plus 和 antd 保持一致

This commit is contained in:
YunaiV
2025-09-05 23:27:12 +08:00
parent 079dac3969
commit 8d93c843ad
4 changed files with 27 additions and 17 deletions

View File

@@ -2,6 +2,8 @@ import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { SystemAreaApi } from '#/api/system/area';
import { z } from '#/adapter/form';
/** 查询 IP 的表单 */
export function useFormSchema(): VbenFormSchema[] {
return [
@@ -12,7 +14,7 @@ export function useFormSchema(): VbenFormSchema[] {
componentProps: {
placeholder: '请输入 IP 地址',
},
rules: 'required',
rules: z.string().ip({ message: '请输入正确的 IP 地址' }),
},
{
fieldName: 'result',