From df59fdaee15c20fcd7e0cb1161769c32e1bce080 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Thu, 3 Oct 2024 15:37:14 +0800 Subject: [PATCH] chore: use default placeholder --- .../_core/profile/components/base-setting.vue | 9 ---- .../profile/components/secure-setting.vue | 9 ---- .../src/views/monitor/logininfor/data.tsx | 7 --- .../web-antd/src/views/monitor/online/data.ts | 6 --- .../src/views/monitor/operlog/data.tsx | 11 ----- .../web-antd/src/views/system/client/data.tsx | 14 ------ apps/web-antd/src/views/system/config/data.ts | 19 -------- apps/web-antd/src/views/system/dept/data.ts | 21 --------- .../src/views/system/dict/data/data.ts | 16 ------- .../src/views/system/dict/type/data.ts | 15 ------- apps/web-antd/src/views/system/menu/data.tsx | 23 ---------- apps/web-antd/src/views/system/notice/data.ts | 10 ----- .../src/views/system/oss-config/data.tsx | 34 -------------- apps/web-antd/src/views/system/oss/data.tsx | 12 ----- apps/web-antd/src/views/system/post/data.ts | 24 ---------- .../src/views/system/post/post-drawer.vue | 3 ++ .../src/views/system/role-assign/data.tsx | 6 --- apps/web-antd/src/views/system/role/data.tsx | 20 --------- .../web-antd/src/views/system/tenant/data.tsx | 44 ------------------- .../src/views/system/tenantPackage/data.ts | 9 ---- apps/web-antd/src/views/system/user/data.tsx | 29 ------------ apps/web-antd/src/views/tool/gen/data.tsx | 10 ----- .../src/views/tool/gen/edit-steps/basic.tsx | 34 -------------- 23 files changed, 3 insertions(+), 382 deletions(-) diff --git a/apps/web-antd/src/views/_core/profile/components/base-setting.vue b/apps/web-antd/src/views/_core/profile/components/base-setting.vue index 28be3592..a7828f72 100644 --- a/apps/web-antd/src/views/_core/profile/components/base-setting.vue +++ b/apps/web-antd/src/views/_core/profile/components/base-setting.vue @@ -44,18 +44,12 @@ const [BasicForm, formApi] = useVbenForm({ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'nickName', label: '昵称', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'email', label: '邮箱', rules: z.string().email('请输入正确的邮箱'), @@ -74,9 +68,6 @@ const [BasicForm, formApi] = useVbenForm({ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'phonenumber', label: '电话', rules: z.string().regex(/^1[3-9]\d{9}$/, '请输入正确的电话'), diff --git a/apps/web-antd/src/views/_core/profile/components/secure-setting.vue b/apps/web-antd/src/views/_core/profile/components/secure-setting.vue index 6bf8cab2..52aaeda9 100644 --- a/apps/web-antd/src/views/_core/profile/components/secure-setting.vue +++ b/apps/web-antd/src/views/_core/profile/components/secure-setting.vue @@ -20,9 +20,6 @@ const [BasicForm, formApi] = useVbenForm({ schema: [ { component: 'InputPassword', - componentProps: { - placeholder: '请输入', - }, fieldName: 'oldPassword', label: '旧密码', rules: z @@ -32,9 +29,6 @@ const [BasicForm, formApi] = useVbenForm({ }, { component: 'InputPassword', - componentProps: { - placeholder: '请输入', - }, dependencies: { rules(values) { return z @@ -54,9 +48,6 @@ const [BasicForm, formApi] = useVbenForm({ }, { component: 'InputPassword', - componentProps: { - placeholder: '请输入', - }, dependencies: { rules(values) { return z diff --git a/apps/web-antd/src/views/monitor/logininfor/data.tsx b/apps/web-antd/src/views/monitor/logininfor/data.tsx index 471f4450..f99a3857 100644 --- a/apps/web-antd/src/views/monitor/logininfor/data.tsx +++ b/apps/web-antd/src/views/monitor/logininfor/data.tsx @@ -13,17 +13,11 @@ import { renderBrowserIcon, renderDict, renderOsIcon } from '#/utils/render'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'ipaddr', label: 'IP地址', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'userName', label: '用户账号', }, @@ -31,7 +25,6 @@ export const querySchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { options: getDictOptions(DictEnum.SYS_COMMON_STATUS), - placeholder: '请选择', }, fieldName: 'status', label: '登录状态', diff --git a/apps/web-antd/src/views/monitor/online/data.ts b/apps/web-antd/src/views/monitor/online/data.ts index 8cd60f13..44c1af49 100644 --- a/apps/web-antd/src/views/monitor/online/data.ts +++ b/apps/web-antd/src/views/monitor/online/data.ts @@ -3,17 +3,11 @@ import type { FormSchemaGetter } from '#/adapter'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'ipaddr', label: 'IP地址', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'userName', label: '用户账号', }, diff --git a/apps/web-antd/src/views/monitor/operlog/data.tsx b/apps/web-antd/src/views/monitor/operlog/data.tsx index 5a749da1..6e860ef7 100644 --- a/apps/web-antd/src/views/monitor/operlog/data.tsx +++ b/apps/web-antd/src/views/monitor/operlog/data.tsx @@ -17,17 +17,11 @@ import { export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'title', label: '系统模块', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'operName', label: '操作人员', }, @@ -35,16 +29,12 @@ export const querySchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { options: getDictOptions(DictEnum.SYS_OPER_TYPE), - placeholder: '请选择', }, fieldName: 'businessType', label: '操作类型', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'operIp', label: '操作IP', }, @@ -52,7 +42,6 @@ export const querySchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { options: getDictOptions(DictEnum.SYS_COMMON_STATUS), - placeholder: '请选择', }, fieldName: 'status', label: '状态', diff --git a/apps/web-antd/src/views/system/client/data.tsx b/apps/web-antd/src/views/system/client/data.tsx index 9d87b3c3..d3ea0978 100644 --- a/apps/web-antd/src/views/system/client/data.tsx +++ b/apps/web-antd/src/views/system/client/data.tsx @@ -8,17 +8,11 @@ import { getDictOptions } from '#/utils/dict'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'clientKey', label: '客户端key', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'clientSecret', label: '客户端密钥', }, @@ -26,7 +20,6 @@ export const querySchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { options: getDictOptions(DictEnum.SYS_NORMAL_DISABLE), - placeholder: '请选择', }, fieldName: 'status', label: '状态', @@ -47,7 +40,6 @@ export const drawerSchema: FormSchemaGetter = () => [ component: 'Input', componentProps: { disabled: true, - placeholder: '请输入', }, dependencies: { show: () => false, @@ -58,9 +50,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'clientKey', label: '客户端key', rules: 'required', @@ -79,7 +68,6 @@ export const drawerSchema: FormSchemaGetter = () => [ mode: 'multiple', optionFilterProp: 'label', options: getDictOptions(DictEnum.SYS_GRANT_TYPE), - placeholder: '请选择', }, fieldName: 'grantTypeList', label: '授权类型', @@ -92,7 +80,6 @@ export const drawerSchema: FormSchemaGetter = () => [ class: 'w-full', getPopupContainer, options: getDictOptions(DictEnum.SYS_DEVICE_TYPE), - placeholder: '请选择', }, fieldName: 'deviceType', label: '设备类型', @@ -115,7 +102,6 @@ export const drawerSchema: FormSchemaGetter = () => [ component: 'InputNumber', componentProps: { addonAfter: '秒', - placeholder: '请输入', }, defaultValue: 604_800, fieldName: 'timeout', diff --git a/apps/web-antd/src/views/system/config/data.ts b/apps/web-antd/src/views/system/config/data.ts index 1ba205de..bcf8b8c8 100644 --- a/apps/web-antd/src/views/system/config/data.ts +++ b/apps/web-antd/src/views/system/config/data.ts @@ -8,17 +8,11 @@ import { getDictOptions } from '#/utils/dict'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'configName', label: '参数名称', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'configKey', label: '参数键名', }, @@ -27,7 +21,6 @@ export const querySchema: FormSchemaGetter = () => [ componentProps: { getPopupContainer, options: getDictOptions(DictEnum.SYS_YES_NO), - placeholder: '请选择', }, fieldName: 'configType', label: '系统内置', @@ -51,27 +44,18 @@ export const modalSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'configName', label: '参数名称', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'configKey', label: '参数键名', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'configValue', label: '参数键值', rules: 'required', @@ -90,9 +74,6 @@ export const modalSchema: FormSchemaGetter = () => [ }, { component: 'Textarea', - componentProps: { - placeholder: '请输入', - }, fieldName: 'remark', formItemClass: 'items-baseline', label: '备注', diff --git a/apps/web-antd/src/views/system/dept/data.ts b/apps/web-antd/src/views/system/dept/data.ts index 776c1e09..cd5714fe 100644 --- a/apps/web-antd/src/views/system/dept/data.ts +++ b/apps/web-antd/src/views/system/dept/data.ts @@ -7,9 +7,6 @@ import { getDictOptions } from '#/utils/dict'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'deptName', label: '部门名称', }, @@ -18,7 +15,6 @@ export const querySchema: FormSchemaGetter = () => [ componentProps: { getPopupContainer, options: getDictOptions(DictEnum.SYS_NORMAL_DISABLE), - placeholder: '请选择', }, fieldName: 'status', label: '部门状态', @@ -38,7 +34,6 @@ export const drawerSchema: FormSchemaGetter = () => [ component: 'TreeSelect', componentProps: { getPopupContainer, - placeholder: '请选择', }, dependencies: { show: (model) => model.parentId !== 0, @@ -50,27 +45,18 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'deptName', label: '部门名称', rules: 'required', }, { component: 'InputNumber', - componentProps: { - placeholder: '请输入', - }, fieldName: 'orderNum', label: '显示排序', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'deptCategory', label: '类别编码', }, @@ -80,16 +66,12 @@ export const drawerSchema: FormSchemaGetter = () => [ // 选中了就只能修改 不能重置为无负责人 allowClear: false, getPopupContainer, - placeholder: '请选择', }, fieldName: 'leader', label: '负责人', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'phone', label: '联系电话', rules: z @@ -99,9 +81,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'email', label: '邮箱', rules: z.string().email({ message: '请输入正确的邮箱' }).optional(), diff --git a/apps/web-antd/src/views/system/dict/data/data.ts b/apps/web-antd/src/views/system/dict/data/data.ts index 8464c5ca..273fb824 100644 --- a/apps/web-antd/src/views/system/dict/data/data.ts +++ b/apps/web-antd/src/views/system/dict/data/data.ts @@ -7,16 +7,12 @@ export const querySchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { getPopupContainer, - placeholder: '请选择', }, fieldName: 'dictType', label: '字典类型', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'dictLabel', label: '字典标签', }, @@ -46,18 +42,12 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'dictLabel', label: '数据标签', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'dictValue', label: '数据键值', rules: 'required', @@ -74,18 +64,12 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'InputNumber', - componentProps: { - placeholder: '请输入', - }, fieldName: 'dictSort', label: '显示排序', rules: 'required', }, { component: 'Textarea', - componentProps: { - placeholder: '请输入', - }, fieldName: 'remark', formItemClass: 'items-baseline', label: '备注', diff --git a/apps/web-antd/src/views/system/dict/type/data.ts b/apps/web-antd/src/views/system/dict/type/data.ts index 6be868ee..8fd6c641 100644 --- a/apps/web-antd/src/views/system/dict/type/data.ts +++ b/apps/web-antd/src/views/system/dict/type/data.ts @@ -3,17 +3,11 @@ import { type FormSchemaGetter, z } from '#/adapter'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'dictName', label: '字典名称', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'dictType', label: '字典类型', }, @@ -31,18 +25,12 @@ export const modalSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'dictName', label: '字典名称', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'dictType', help: '使用英文/下划线命名, 如:sys_normal_disable', label: '字典类型', @@ -52,9 +40,6 @@ export const modalSchema: FormSchemaGetter = () => [ }, { component: 'Textarea', - componentProps: { - placeholder: '请输入', - }, fieldName: 'remark', formItemClass: 'items-baseline', label: '备注', diff --git a/apps/web-antd/src/views/system/menu/data.tsx b/apps/web-antd/src/views/system/menu/data.tsx index dc24db87..d4ff2c5c 100644 --- a/apps/web-antd/src/views/system/menu/data.tsx +++ b/apps/web-antd/src/views/system/menu/data.tsx @@ -7,9 +7,6 @@ import { getDictOptions } from '#/utils/dict'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'menuName', label: '菜单名称 ', }, @@ -18,7 +15,6 @@ export const querySchema: FormSchemaGetter = () => [ componentProps: { getPopupContainer, options: getDictOptions(DictEnum.SYS_NORMAL_DISABLE), - placeholder: '请选择', }, fieldName: 'status', label: '菜单状态 ', @@ -28,7 +24,6 @@ export const querySchema: FormSchemaGetter = () => [ componentProps: { getPopupContainer, options: getDictOptions(DictEnum.SYS_SHOW_HIDE), - placeholder: '请选择', }, fieldName: 'visible', label: '显示状态', @@ -58,9 +53,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'TreeSelect', - componentProps: { - placeholder: '请选择', - }, defaultValue: 0, fieldName: 'parentId', label: '上级菜单', @@ -72,7 +64,6 @@ export const drawerSchema: FormSchemaGetter = () => [ buttonStyle: 'solid', options: menuTypeOptions, optionType: 'button', - placeholder: '请选择', }, defaultValue: 'M', dependencies: { @@ -91,9 +82,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, dependencies: { // 类型不为按钮时显示 show: (values) => values.menuType !== 'F', @@ -105,18 +93,12 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'name', label: '菜单名称', rules: 'required', }, { component: 'InputNumber', - componentProps: { - placeholder: '请输入', - }, fieldName: 'orderNum', help: '排序, 数字越小越靠前', label: '显示排序', @@ -161,7 +143,6 @@ export const drawerSchema: FormSchemaGetter = () => [ return { // 为链接时组件disabled disabled: model.isFrame === '0', - placeholder: '请输入', }; }, defaultValue: '', @@ -240,9 +221,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, dependencies: { // 类型为菜单/按钮时显示 show: (values) => values.menuType !== 'M', @@ -257,7 +235,6 @@ export const drawerSchema: FormSchemaGetter = () => [ componentProps: (model) => ({ // 为链接时组件disabled disabled: model.isFrame === '0', - placeholder: '请输入', }), dependencies: { // 类型为菜单时显示 diff --git a/apps/web-antd/src/views/system/notice/data.ts b/apps/web-antd/src/views/system/notice/data.ts index c9d2c0d2..2ac4aae5 100644 --- a/apps/web-antd/src/views/system/notice/data.ts +++ b/apps/web-antd/src/views/system/notice/data.ts @@ -8,17 +8,11 @@ import { getDictOptions } from '#/utils/dict'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'noticeTitle', label: '公告标题', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'createBy', label: '创建人', }, @@ -27,7 +21,6 @@ export const querySchema: FormSchemaGetter = () => [ componentProps: { getPopupContainer, options: getDictOptions(DictEnum.SYS_NOTICE_TYPE), - placeholder: '请选择', }, fieldName: 'noticeType', label: '公告类型', @@ -46,9 +39,6 @@ export const modalSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'noticeTitle', formItemClass: 'col-span-2', label: '公告标题', diff --git a/apps/web-antd/src/views/system/oss-config/data.tsx b/apps/web-antd/src/views/system/oss-config/data.tsx index 57bc17e7..e2ce1f0e 100644 --- a/apps/web-antd/src/views/system/oss-config/data.tsx +++ b/apps/web-antd/src/views/system/oss-config/data.tsx @@ -12,17 +12,11 @@ const accessPolicyOptions = [ export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'configKey', label: '配置名称', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'bucketName', label: '桶名称', }, @@ -30,7 +24,6 @@ export const querySchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { options: getDictOptions(DictEnum.SYS_YES_NO), - placeholder: '请选择', }, fieldName: 'status', label: '是否默认', @@ -59,18 +52,12 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'configKey', label: '配置名称', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'endpoint', label: '服务地址', renderComponentContent: (formModel) => ({ @@ -84,9 +71,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'domain', label: '自定义域名', }, @@ -103,18 +87,12 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'accessKey', label: 'accessKey', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'secretKey', label: 'secretKey', rules: 'required', @@ -132,18 +110,12 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'bucketName', label: '桶名称', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'prefix', label: '前缀', }, @@ -174,17 +146,11 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'region', label: '区域', }, { component: 'Textarea', - componentProps: { - placeholder: '请输入', - }, fieldName: 'remark', formItemClass: 'items-baseline', label: '备注', diff --git a/apps/web-antd/src/views/system/oss/data.tsx b/apps/web-antd/src/views/system/oss/data.tsx index 51cef8b3..4333f5cb 100644 --- a/apps/web-antd/src/views/system/oss/data.tsx +++ b/apps/web-antd/src/views/system/oss/data.tsx @@ -3,33 +3,21 @@ import type { FormSchemaGetter } from '#/adapter'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'fileName', label: '文件名', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'originalName', label: '原名', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'fileSuffix', label: '拓展名', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'service', label: '服务商', }, diff --git a/apps/web-antd/src/views/system/post/data.ts b/apps/web-antd/src/views/system/post/data.ts index df523734..103dab5f 100644 --- a/apps/web-antd/src/views/system/post/data.ts +++ b/apps/web-antd/src/views/system/post/data.ts @@ -7,17 +7,11 @@ import { getDictOptions } from '#/utils/dict'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'postCode', label: '岗位编码', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'postName', label: '岗位名称', }, @@ -26,7 +20,6 @@ export const querySchema: FormSchemaGetter = () => [ componentProps: { getPopupContainer, options: getDictOptions(DictEnum.SYS_NORMAL_DISABLE), - placeholder: '请选择', }, fieldName: 'status', label: '状态', @@ -48,7 +41,6 @@ export const drawerSchema: FormSchemaGetter = () => [ componentProps: { class: 'w-full', getPopupContainer, - placeholder: '请选择', }, fieldName: 'deptId', label: '所属部门', @@ -56,36 +48,23 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'postName', label: '岗位名称', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'postCode', label: '岗位编码', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'postCategory', label: '类别编码', }, { component: 'InputNumber', - componentProps: { - class: 'w-full', - placeholder: '请输入', - }, fieldName: 'postSort', label: '岗位排序', rules: 'required', @@ -104,9 +83,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Textarea', - componentProps: { - placeholder: '请输入', - }, fieldName: 'remark', formItemClass: 'items-baseline', label: '备注', diff --git a/apps/web-antd/src/views/system/post/post-drawer.vue b/apps/web-antd/src/views/system/post/post-drawer.vue index f102a10d..c6071bf4 100644 --- a/apps/web-antd/src/views/system/post/post-drawer.vue +++ b/apps/web-antd/src/views/system/post/post-drawer.vue @@ -21,6 +21,9 @@ const title = computed(() => { const [BasicForm, formApi] = useVbenForm({ commonConfig: { formItemClass: 'col-span-2', + componentProps: { + class: 'w-full', + }, }, schema: drawerSchema(), showDefaultActions: false, diff --git a/apps/web-antd/src/views/system/role-assign/data.tsx b/apps/web-antd/src/views/system/role-assign/data.tsx index 8726bdd4..443c7f04 100644 --- a/apps/web-antd/src/views/system/role-assign/data.tsx +++ b/apps/web-antd/src/views/system/role-assign/data.tsx @@ -3,17 +3,11 @@ import type { FormSchemaGetter } from '#/adapter'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'userName', label: '用户账号', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'phonenumber', label: '手机号码', }, diff --git a/apps/web-antd/src/views/system/role/data.tsx b/apps/web-antd/src/views/system/role/data.tsx index 129d2e51..a9d4181b 100644 --- a/apps/web-antd/src/views/system/role/data.tsx +++ b/apps/web-antd/src/views/system/role/data.tsx @@ -19,17 +19,11 @@ export const authScopeOptions = [ export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'roleName', label: '角色名称', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'roleKey', label: '权限字符', }, @@ -37,7 +31,6 @@ export const querySchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { options: getDictOptions(DictEnum.SYS_NORMAL_DISABLE), - placeholder: '请选择', }, fieldName: 'status', label: '状态', @@ -61,18 +54,12 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'roleName', label: '角色名称', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'roleKey', help: '如: test simpleUser等', label: '权限标识', @@ -80,9 +67,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'InputNumber', - componentProps: { - placeholder: '请输入', - }, fieldName: 'roleSort', label: '角色排序', rules: 'required', @@ -92,7 +76,6 @@ export const drawerSchema: FormSchemaGetter = () => [ componentProps: { allowClear: false, options: getDictOptions(DictEnum.SYS_NORMAL_DISABLE), - placeholder: '请选择', }, defaultValue: '0', fieldName: 'status', @@ -108,9 +91,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Textarea', - componentProps: { - placeholder: '请输入', - }, defaultValue: '', fieldName: 'remark', formItemClass: 'items-baseline', diff --git a/apps/web-antd/src/views/system/tenant/data.tsx b/apps/web-antd/src/views/system/tenant/data.tsx index 2c194bf3..1148a479 100644 --- a/apps/web-antd/src/views/system/tenant/data.tsx +++ b/apps/web-antd/src/views/system/tenant/data.tsx @@ -7,33 +7,21 @@ import { type FormSchemaGetter, z } from '#/adapter'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'tenantId', label: '租户编号', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'companyName', label: '租户名称', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'contactUserName', label: '联系人', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'contactPhone', label: '联系电话', }, @@ -76,27 +64,18 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'companyName', label: '企业名称', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'contactUserName', label: '联系人', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'contactPhone', label: '联系电话', rules: z @@ -116,18 +95,12 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'username', label: '用户账号', rules: 'required', }, { component: 'InputPassword', - componentProps: { - placeholder: '请输入', - }, fieldName: 'password', label: '密码', rules: 'required', @@ -148,7 +121,6 @@ export const drawerSchema: FormSchemaGetter = () => [ componentProps: { class: 'w-full', getPopupContainer, - placeholder: '请选择', }, fieldName: 'packageId', label: '租户套餐', @@ -170,7 +142,6 @@ export const drawerSchema: FormSchemaGetter = () => [ component: 'InputNumber', componentProps: { min: -1, - placeholder: '请输入', }, defaultValue: -1, fieldName: 'accountCount', @@ -186,9 +157,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'domain', help: '可填写域名/端口 填写域名如: www.test.com 或者 www.test.com:8080 填写ip:端口如: 127.0.0.1:8080', label: '绑定域名', @@ -219,34 +187,22 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'address', label: '企业地址', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'licenseNumber', label: '企业代码', }, { component: 'Textarea', - componentProps: { - placeholder: '请输入', - }, fieldName: 'intro', formItemClass: 'items-baseline', label: '企业介绍', }, { component: 'Textarea', - componentProps: { - placeholder: '请输入', - }, fieldName: 'remark', formItemClass: 'items-baseline', label: '备注', diff --git a/apps/web-antd/src/views/system/tenantPackage/data.ts b/apps/web-antd/src/views/system/tenantPackage/data.ts index b4803af2..f2dcd25c 100644 --- a/apps/web-antd/src/views/system/tenantPackage/data.ts +++ b/apps/web-antd/src/views/system/tenantPackage/data.ts @@ -3,9 +3,6 @@ import type { FormSchemaGetter } from '#/adapter'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'packageName', label: '套餐名称', }, @@ -30,9 +27,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'packageName', label: '套餐名称', rules: 'required', @@ -45,9 +39,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Textarea', - componentProps: { - placeholder: '请输入', - }, fieldName: 'remark', formItemClass: 'items-baseline', label: '备注', diff --git a/apps/web-antd/src/views/system/user/data.tsx b/apps/web-antd/src/views/system/user/data.tsx index 73463946..c8c6f011 100644 --- a/apps/web-antd/src/views/system/user/data.tsx +++ b/apps/web-antd/src/views/system/user/data.tsx @@ -7,25 +7,16 @@ import { getDictOptions } from '#/utils/dict'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'userName', label: '用户账号', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'nickName', label: '用户昵称', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'phonenumber', label: '手机号码', rules: z @@ -38,7 +29,6 @@ export const querySchema: FormSchemaGetter = () => [ componentProps: { getPopupContainer, options: getDictOptions(DictEnum.SYS_NORMAL_DISABLE), - placeholder: '请选择', }, fieldName: 'status', label: '用户状态', @@ -60,27 +50,18 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'userName', label: '用户账号', rules: 'required', }, { component: 'InputPassword', - componentProps: { - placeholder: '请输入', - }, fieldName: 'password', label: '用户密码', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'nickName', label: '用户昵称', rules: 'required', @@ -95,9 +76,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'phone', label: '手机号码', rules: z @@ -107,9 +85,6 @@ export const drawerSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'email', label: '邮箱', rules: z.string().email('请输入正确的邮箱').optional(), @@ -158,16 +133,12 @@ export const drawerSchema: FormSchemaGetter = () => [ mode: 'multiple', optionFilterProp: 'label', optionLabelProp: 'label', - placeholder: '请选择', }, fieldName: 'roleIds', label: '角色', }, { component: 'Textarea', - componentProps: { - placeholder: '请输入', - }, fieldName: 'remark', formItemClass: 'items-baseline', label: '备注', diff --git a/apps/web-antd/src/views/tool/gen/data.tsx b/apps/web-antd/src/views/tool/gen/data.tsx index b30b2e0d..f53fa00d 100644 --- a/apps/web-antd/src/views/tool/gen/data.tsx +++ b/apps/web-antd/src/views/tool/gen/data.tsx @@ -3,27 +3,17 @@ import type { FormSchemaGetter } from '#/adapter'; export const querySchema: FormSchemaGetter = () => [ { component: 'Select', - componentProps: { - allowClear: false, - placeholder: '请选择', - }, defaultValue: '', fieldName: 'dataName', label: '数据源', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'tableName', label: '表名称', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'tableComment', label: '表描述', }, diff --git a/apps/web-antd/src/views/tool/gen/edit-steps/basic.tsx b/apps/web-antd/src/views/tool/gen/edit-steps/basic.tsx index 0b872a6d..234f798d 100644 --- a/apps/web-antd/src/views/tool/gen/edit-steps/basic.tsx +++ b/apps/web-antd/src/views/tool/gen/edit-steps/basic.tsx @@ -14,36 +14,24 @@ export const formSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'tableName', label: '表名称', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'tableComment', label: '表描述', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'className', label: '实体类名称', rules: 'required', }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'functionAuthor', label: '作者', rules: 'required', @@ -76,7 +64,6 @@ export const formSchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { getPopupContainer, - placeholder: '请选择', }, dependencies: { show: (values) => values.tplCategory === 'tree', @@ -91,7 +78,6 @@ export const formSchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { allowClear: false, - placeholder: '请选择', }, dependencies: { show: (values) => values.tplCategory === 'tree', @@ -106,7 +92,6 @@ export const formSchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { allowClear: false, - placeholder: '请选择', }, dependencies: { show: (values) => values.tplCategory === 'tree', @@ -119,9 +104,6 @@ export const formSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'packageName', help: '生成在哪个java包下, 例如 com.ruoyi.system', label: '生成包路径', @@ -129,9 +111,6 @@ export const formSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'moduleName', help: '可理解为子系统名,例如 system', label: '生成模块名', @@ -139,9 +118,6 @@ export const formSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'businessName', help: '可理解为功能英文名,例如 user', label: '生成业务名', @@ -149,9 +125,6 @@ export const formSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, fieldName: 'functionName', help: '用作类描述,例如 用户', label: '生成功能名', @@ -162,7 +135,6 @@ export const formSchema: FormSchemaGetter = () => [ componentProps: { allowClear: false, getPopupContainer, - placeholder: '请选择', }, defaultValue: 0, fieldName: 'parentMenuId', @@ -200,9 +172,6 @@ export const formSchema: FormSchemaGetter = () => [ }, { component: 'Input', - componentProps: { - placeholder: '请输入', - }, defaultValue: '/', dependencies: { show: (model) => model.genType === '1', @@ -219,9 +188,6 @@ export const formSchema: FormSchemaGetter = () => [ }, { component: 'Textarea', - componentProps: { - placeholder: '请输入', - }, fieldName: 'remark', formItemClass: 'col-span-2 items-baseline', label: '备注',