diff --git a/apps/web-antd/src/views/crm/contract/data.ts b/apps/web-antd/src/views/crm/contract/data.ts index 63f2420cc..4289c6d1d 100644 --- a/apps/web-antd/src/views/crm/contract/data.ts +++ b/apps/web-antd/src/views/crm/contract/data.ts @@ -110,6 +110,7 @@ export function useFormSchema(): VbenFormSchema[] { showTime: false, format: 'YYYY-MM-DD', valueFormat: 'x', + placeholder: '请选择下单日期', }, }, { @@ -120,6 +121,7 @@ export function useFormSchema(): VbenFormSchema[] { showTime: false, format: 'YYYY-MM-DD', valueFormat: 'x', + placeholder: '请选择合同开始时间', }, }, { @@ -130,6 +132,7 @@ export function useFormSchema(): VbenFormSchema[] { showTime: false, format: 'YYYY-MM-DD', valueFormat: 'x', + placeholder: '请选择合同结束时间', }, }, { diff --git a/apps/web-antd/src/views/crm/followup/data.ts b/apps/web-antd/src/views/crm/followup/data.ts index 0c275ae0e..1cf26690c 100644 --- a/apps/web-antd/src/views/crm/followup/data.ts +++ b/apps/web-antd/src/views/crm/followup/data.ts @@ -50,6 +50,7 @@ export function useFormSchema( showTime: true, format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', + placeholder: '请选择下次联系时间', }, rules: 'required', }, diff --git a/apps/web-antd/src/views/crm/statistics/customer/data.ts b/apps/web-antd/src/views/crm/statistics/customer/data.ts index e7ce18634..a2ec49ecc 100644 --- a/apps/web-antd/src/views/crm/statistics/customer/data.ts +++ b/apps/web-antd/src/views/crm/statistics/customer/data.ts @@ -74,6 +74,7 @@ export function useGridFormSchema(): VbenFormSchema[] { component: 'Select', componentProps: { allowClear: true, + placeholder: '请选择时间间隔', options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'), }, defaultValue: 2, @@ -91,6 +92,7 @@ export function useGridFormSchema(): VbenFormSchema[] { valueField: 'id', childrenField: 'children', treeDefaultExpandAll: true, + placeholder: '请选择归属部门', }, defaultValue: userStore.userInfo?.deptId, }, diff --git a/apps/web-antd/src/views/crm/statistics/funnel/data.ts b/apps/web-antd/src/views/crm/statistics/funnel/data.ts index a10d4a42b..5dd93db19 100644 --- a/apps/web-antd/src/views/crm/statistics/funnel/data.ts +++ b/apps/web-antd/src/views/crm/statistics/funnel/data.ts @@ -48,6 +48,7 @@ export function useGridFormSchema(): VbenFormSchema[] { component: 'Select', componentProps: { allowClear: true, + placeholder: '请选择时间间隔', options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'), }, defaultValue: 2, @@ -65,6 +66,7 @@ export function useGridFormSchema(): VbenFormSchema[] { valueField: 'id', childrenField: 'children', treeDefaultExpandAll: true, + placeholder: '请选择归属部门', }, defaultValue: userStore.userInfo?.deptId, }, @@ -77,6 +79,7 @@ export function useGridFormSchema(): VbenFormSchema[] { allowClear: true, labelField: 'nickname', valueField: 'id', + placeholder: '请选择员工', }, }, ]; diff --git a/apps/web-antd/src/views/crm/statistics/performance/data.ts b/apps/web-antd/src/views/crm/statistics/performance/data.ts index d3966c926..d95e4c9c1 100644 --- a/apps/web-antd/src/views/crm/statistics/performance/data.ts +++ b/apps/web-antd/src/views/crm/statistics/performance/data.ts @@ -34,6 +34,7 @@ export function useGridFormSchema(): VbenFormSchema[] { picker: 'year', format: 'YYYY', valueFormat: 'YYYY', + placeholder: '请选择年份', }, defaultValue: new Date().getFullYear().toString(), }, @@ -50,6 +51,7 @@ export function useGridFormSchema(): VbenFormSchema[] { valueField: 'id', childrenField: 'children', treeDefaultExpandAll: true, + placeholder: '请选择归属部门', }, defaultValue: userStore.userInfo?.deptId, }, diff --git a/apps/web-antd/src/views/crm/statistics/portrait/data.ts b/apps/web-antd/src/views/crm/statistics/portrait/data.ts index 23657e933..18e22e767 100644 --- a/apps/web-antd/src/views/crm/statistics/portrait/data.ts +++ b/apps/web-antd/src/views/crm/statistics/portrait/data.ts @@ -58,6 +58,7 @@ export function useGridFormSchema(): VbenFormSchema[] { valueField: 'id', childrenField: 'children', treeDefaultExpandAll: true, + placeholder: '请选择归属部门', }, defaultValue: userStore.userInfo?.deptId, }, diff --git a/apps/web-antd/src/views/crm/statistics/rank/data.ts b/apps/web-antd/src/views/crm/statistics/rank/data.ts index fdd7fa04e..b60d90dce 100644 --- a/apps/web-antd/src/views/crm/statistics/rank/data.ts +++ b/apps/web-antd/src/views/crm/statistics/rank/data.ts @@ -72,6 +72,7 @@ export function useGridFormSchema(): VbenFormSchema[] { valueField: 'id', childrenField: 'children', treeDefaultExpandAll: true, + placeholder: '请选择归属部门', }, defaultValue: userStore.userInfo?.deptId, }, diff --git a/apps/web-antd/src/views/infra/demo/demo01/data.ts b/apps/web-antd/src/views/infra/demo/demo01/data.ts index ec8ca5d02..3656a96f8 100644 --- a/apps/web-antd/src/views/infra/demo/demo01/data.ts +++ b/apps/web-antd/src/views/infra/demo/demo01/data.ts @@ -47,6 +47,7 @@ export function useFormSchema(): VbenFormSchema[] { showTime: true, format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', + placeholder: '请选择出生年', }, }, { diff --git a/apps/web-antd/src/views/infra/demo/demo03/erp/data.ts b/apps/web-antd/src/views/infra/demo/demo03/erp/data.ts index f8acac72a..f33d20c9e 100644 --- a/apps/web-antd/src/views/infra/demo/demo03/erp/data.ts +++ b/apps/web-antd/src/views/infra/demo/demo03/erp/data.ts @@ -47,6 +47,7 @@ export function useFormSchema(): VbenFormSchema[] { showTime: true, format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', + placeholder: '请选择出生日期', }, }, { diff --git a/apps/web-antd/src/views/infra/demo/demo03/normal/data.ts b/apps/web-antd/src/views/infra/demo/demo03/normal/data.ts index 583437d99..aaf2e5304 100644 --- a/apps/web-antd/src/views/infra/demo/demo03/normal/data.ts +++ b/apps/web-antd/src/views/infra/demo/demo03/normal/data.ts @@ -47,6 +47,7 @@ export function useFormSchema(): VbenFormSchema[] { showTime: true, format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', + placeholder: '请选择出生日期', }, }, { diff --git a/apps/web-antd/src/views/system/social/client/data.ts b/apps/web-antd/src/views/system/social/client/data.ts index bbcd3c18b..15402d12a 100644 --- a/apps/web-antd/src/views/system/social/client/data.ts +++ b/apps/web-antd/src/views/system/social/client/data.ts @@ -36,6 +36,7 @@ export function useFormSchema(): VbenFormSchema[] { component: 'Select', componentProps: { options: getDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE, 'number'), + placeholder: '请选择社交平台', }, rules: 'required', }, diff --git a/apps/web-antd/src/views/system/tenant/data.ts b/apps/web-antd/src/views/system/tenant/data.ts index d2a7dbf70..4fca673bc 100644 --- a/apps/web-antd/src/views/system/tenant/data.ts +++ b/apps/web-antd/src/views/system/tenant/data.ts @@ -28,6 +28,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'name', label: '租户名称', component: 'Input', + componentProps: { + placeholder: '请输入租户名称', + }, rules: 'required', }, { @@ -46,18 +49,27 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'contactName', label: '联系人', component: 'Input', + componentProps: { + placeholder: '请输入联系人', + }, rules: 'required', }, { fieldName: 'contactMobile', label: '联系手机', component: 'Input', + componentProps: { + placeholder: '请输入联系手机', + }, rules: 'mobile', }, { label: '用户名称', fieldName: 'username', component: 'Input', + componentProps: { + placeholder: '请输入用户名称', + }, rules: 'required', dependencies: { triggerFields: ['id'], @@ -78,6 +90,9 @@ export function useFormSchema(): VbenFormSchema[] { label: '账号额度', fieldName: 'accountCount', component: 'InputNumber', + componentProps: { + placeholder: '请输入账号额度', + }, rules: 'required', }, { diff --git a/apps/web-antd/src/views/system/tenantPackage/data.ts b/apps/web-antd/src/views/system/tenantPackage/data.ts index 7ac4e2899..a89b6a14d 100644 --- a/apps/web-antd/src/views/system/tenantPackage/data.ts +++ b/apps/web-antd/src/views/system/tenantPackage/data.ts @@ -22,6 +22,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'name', label: '套餐名称', component: 'Input', + componentProps: { + placeholder: '请输入套餐名称', + }, rules: 'required', }, { @@ -45,6 +48,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'remark', label: '备注', component: 'Textarea', + componentProps: { + placeholder: '请输入备注', + }, }, ]; } diff --git a/apps/web-antd/src/views/system/user/data.ts b/apps/web-antd/src/views/system/user/data.ts index fca5ddefd..fb9ea8fe8 100644 --- a/apps/web-antd/src/views/system/user/data.ts +++ b/apps/web-antd/src/views/system/user/data.ts @@ -28,6 +28,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'username', label: '用户名称', component: 'Input', + componentProps: { + placeholder: '请输入用户名称', + }, rules: 'required', }, { @@ -44,6 +47,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'nickname', label: '用户昵称', component: 'Input', + componentProps: { + placeholder: '请输入用户昵称', + }, rules: 'required', }, { @@ -117,6 +123,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'remark', label: '备注', component: 'Textarea', + componentProps: { + placeholder: '请输入备注', + }, }, ]; } diff --git a/apps/web-ele/src/views/crm/contract/data.ts b/apps/web-ele/src/views/crm/contract/data.ts index ba930cb0a..db2ee86c0 100644 --- a/apps/web-ele/src/views/crm/contract/data.ts +++ b/apps/web-ele/src/views/crm/contract/data.ts @@ -109,6 +109,7 @@ export function useFormSchema(): VbenFormSchema[] { componentProps: { format: 'YYYY-MM-DD', valueFormat: 'x', + placeholder: '请选择下单日期', class: '!w-full', }, }, @@ -119,6 +120,7 @@ export function useFormSchema(): VbenFormSchema[] { componentProps: { format: 'YYYY-MM-DD', valueFormat: 'x', + placeholder: '请选择合同开始时间', class: '!w-full', }, }, @@ -129,6 +131,7 @@ export function useFormSchema(): VbenFormSchema[] { componentProps: { format: 'YYYY-MM-DD', valueFormat: 'x', + placeholder: '请选择合同结束时间', class: '!w-full', }, }, diff --git a/apps/web-ele/src/views/crm/followup/data.ts b/apps/web-ele/src/views/crm/followup/data.ts index aa0b83e5c..514a2d98d 100644 --- a/apps/web-ele/src/views/crm/followup/data.ts +++ b/apps/web-ele/src/views/crm/followup/data.ts @@ -50,6 +50,7 @@ export function useFormSchema( showTime: true, format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', + placeholder: '请选择下次联系时间', class: '!w-full', }, rules: 'required', diff --git a/apps/web-ele/src/views/crm/statistics/customer/data.ts b/apps/web-ele/src/views/crm/statistics/customer/data.ts index e7ce18634..a2ec49ecc 100644 --- a/apps/web-ele/src/views/crm/statistics/customer/data.ts +++ b/apps/web-ele/src/views/crm/statistics/customer/data.ts @@ -74,6 +74,7 @@ export function useGridFormSchema(): VbenFormSchema[] { component: 'Select', componentProps: { allowClear: true, + placeholder: '请选择时间间隔', options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'), }, defaultValue: 2, @@ -91,6 +92,7 @@ export function useGridFormSchema(): VbenFormSchema[] { valueField: 'id', childrenField: 'children', treeDefaultExpandAll: true, + placeholder: '请选择归属部门', }, defaultValue: userStore.userInfo?.deptId, }, diff --git a/apps/web-ele/src/views/crm/statistics/funnel/data.ts b/apps/web-ele/src/views/crm/statistics/funnel/data.ts index a10d4a42b..5dd93db19 100644 --- a/apps/web-ele/src/views/crm/statistics/funnel/data.ts +++ b/apps/web-ele/src/views/crm/statistics/funnel/data.ts @@ -48,6 +48,7 @@ export function useGridFormSchema(): VbenFormSchema[] { component: 'Select', componentProps: { allowClear: true, + placeholder: '请选择时间间隔', options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'), }, defaultValue: 2, @@ -65,6 +66,7 @@ export function useGridFormSchema(): VbenFormSchema[] { valueField: 'id', childrenField: 'children', treeDefaultExpandAll: true, + placeholder: '请选择归属部门', }, defaultValue: userStore.userInfo?.deptId, }, @@ -77,6 +79,7 @@ export function useGridFormSchema(): VbenFormSchema[] { allowClear: true, labelField: 'nickname', valueField: 'id', + placeholder: '请选择员工', }, }, ]; diff --git a/apps/web-ele/src/views/crm/statistics/performance/data.ts b/apps/web-ele/src/views/crm/statistics/performance/data.ts index 42516fb82..ab86673ac 100644 --- a/apps/web-ele/src/views/crm/statistics/performance/data.ts +++ b/apps/web-ele/src/views/crm/statistics/performance/data.ts @@ -34,6 +34,7 @@ export function useGridFormSchema(): VbenFormSchema[] { type: 'year', format: 'YYYY', valueFormat: 'YYYY', + placeholder: '请选择年份', }, defaultValue: new Date().getFullYear().toString(), }, @@ -50,6 +51,7 @@ export function useGridFormSchema(): VbenFormSchema[] { valueField: 'id', childrenField: 'children', treeDefaultExpandAll: true, + placeholder: '请选择归属部门', }, defaultValue: userStore.userInfo?.deptId, }, diff --git a/apps/web-ele/src/views/crm/statistics/portrait/data.ts b/apps/web-ele/src/views/crm/statistics/portrait/data.ts index 23657e933..18e22e767 100644 --- a/apps/web-ele/src/views/crm/statistics/portrait/data.ts +++ b/apps/web-ele/src/views/crm/statistics/portrait/data.ts @@ -58,6 +58,7 @@ export function useGridFormSchema(): VbenFormSchema[] { valueField: 'id', childrenField: 'children', treeDefaultExpandAll: true, + placeholder: '请选择归属部门', }, defaultValue: userStore.userInfo?.deptId, }, diff --git a/apps/web-ele/src/views/crm/statistics/rank/data.ts b/apps/web-ele/src/views/crm/statistics/rank/data.ts index fdd7fa04e..b60d90dce 100644 --- a/apps/web-ele/src/views/crm/statistics/rank/data.ts +++ b/apps/web-ele/src/views/crm/statistics/rank/data.ts @@ -72,6 +72,7 @@ export function useGridFormSchema(): VbenFormSchema[] { valueField: 'id', childrenField: 'children', treeDefaultExpandAll: true, + placeholder: '请选择归属部门', }, defaultValue: userStore.userInfo?.deptId, }, diff --git a/apps/web-ele/src/views/infra/demo/demo01/data.ts b/apps/web-ele/src/views/infra/demo/demo01/data.ts index 8c2466ef3..d2242a83a 100644 --- a/apps/web-ele/src/views/infra/demo/demo01/data.ts +++ b/apps/web-ele/src/views/infra/demo/demo01/data.ts @@ -45,6 +45,7 @@ export function useFormSchema(): VbenFormSchema[] { showTime: true, format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', + placeholder: '请选择出生年', class: '!w-full', }, }, diff --git a/apps/web-ele/src/views/infra/demo/demo03/erp/data.ts b/apps/web-ele/src/views/infra/demo/demo03/erp/data.ts index 25c9627f0..63580aa17 100644 --- a/apps/web-ele/src/views/infra/demo/demo03/erp/data.ts +++ b/apps/web-ele/src/views/infra/demo/demo03/erp/data.ts @@ -45,6 +45,7 @@ export function useFormSchema(): VbenFormSchema[] { showTime: true, format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', + placeholder: '请选择出生日期', class: '!w-full', }, }, diff --git a/apps/web-ele/src/views/infra/demo/demo03/normal/data.ts b/apps/web-ele/src/views/infra/demo/demo03/normal/data.ts index 759f50a1b..ef76bdd2e 100644 --- a/apps/web-ele/src/views/infra/demo/demo03/normal/data.ts +++ b/apps/web-ele/src/views/infra/demo/demo03/normal/data.ts @@ -45,6 +45,7 @@ export function useFormSchema(): VbenFormSchema[] { showTime: true, format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', + placeholder: '请选择出生日期', class: '!w-full', }, }, diff --git a/apps/web-ele/src/views/system/social/client/data.ts b/apps/web-ele/src/views/system/social/client/data.ts index 3290374ec..f7f15d6b3 100644 --- a/apps/web-ele/src/views/system/social/client/data.ts +++ b/apps/web-ele/src/views/system/social/client/data.ts @@ -36,6 +36,7 @@ export function useFormSchema(): VbenFormSchema[] { component: 'Select', componentProps: { options: getDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE, 'number'), + placeholder: '请选择社交平台', }, rules: 'required', }, diff --git a/apps/web-ele/src/views/system/tenant/data.ts b/apps/web-ele/src/views/system/tenant/data.ts index 261a0417f..54ac87792 100644 --- a/apps/web-ele/src/views/system/tenant/data.ts +++ b/apps/web-ele/src/views/system/tenant/data.ts @@ -28,6 +28,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'name', label: '租户名称', component: 'Input', + componentProps: { + placeholder: '请输入租户名称', + }, rules: 'required', }, { @@ -46,18 +49,27 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'contactName', label: '联系人', component: 'Input', + componentProps: { + placeholder: '请输入联系人', + }, rules: 'required', }, { fieldName: 'contactMobile', label: '联系手机', component: 'Input', + componentProps: { + placeholder: '请输入联系手机', + }, rules: 'mobile', }, { label: '用户名称', fieldName: 'username', component: 'Input', + componentProps: { + placeholder: '请输入用户名称', + }, rules: 'required', dependencies: { triggerFields: ['id'], @@ -82,6 +94,7 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'accountCount', component: 'InputNumber', componentProps: { + placeholder: '请输入账号额度', controlsPosition: 'right', class: '!w-full', }, diff --git a/apps/web-ele/src/views/system/tenantPackage/data.ts b/apps/web-ele/src/views/system/tenantPackage/data.ts index d93f778c2..01f165e52 100644 --- a/apps/web-ele/src/views/system/tenantPackage/data.ts +++ b/apps/web-ele/src/views/system/tenantPackage/data.ts @@ -22,6 +22,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'name', label: '套餐名称', component: 'Input', + componentProps: { + placeholder: '请输入套餐名称', + }, rules: 'required', }, { @@ -43,6 +46,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'remark', label: '备注', component: 'Textarea', + componentProps: { + placeholder: '请输入备注', + }, }, ]; } diff --git a/apps/web-ele/src/views/system/user/data.ts b/apps/web-ele/src/views/system/user/data.ts index 43fc5e49a..98cf580dc 100644 --- a/apps/web-ele/src/views/system/user/data.ts +++ b/apps/web-ele/src/views/system/user/data.ts @@ -28,6 +28,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'username', label: '用户名称', component: 'Input', + componentProps: { + placeholder: '请输入用户名称', + }, rules: 'required', }, { @@ -47,6 +50,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'nickname', label: '用户昵称', component: 'Input', + componentProps: { + placeholder: '请输入用户昵称', + }, rules: 'required', }, { @@ -116,6 +122,9 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'remark', label: '备注', component: 'Textarea', + componentProps: { + placeholder: '请输入备注', + }, }, ]; }