refactor: 升级框架

This commit is contained in:
caiyuchao
2025-07-09 11:28:52 +08:00
parent bbe6d7e76e
commit 258c0e2934
310 changed files with 11060 additions and 8152 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',
@@ -32,7 +34,6 @@ export function useGridColumns(): VxeTableGridOptions<SystemAreaApi.Area>['colum
{
field: 'id',
title: '地区编码',
minWidth: 120,
align: 'left',
fixed: 'left',
treeNode: true,
@@ -40,7 +41,6 @@ export function useGridColumns(): VxeTableGridOptions<SystemAreaApi.Area>['colum
{
field: 'name',
title: '地区名称',
minWidth: 200,
},
];
}