feat:【antd/ele】useFormSchema 的 placeholder
This commit is contained in:
@@ -110,6 +110,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
showTime: false,
|
showTime: false,
|
||||||
format: 'YYYY-MM-DD',
|
format: 'YYYY-MM-DD',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择下单日期',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -120,6 +121,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
showTime: false,
|
showTime: false,
|
||||||
format: 'YYYY-MM-DD',
|
format: 'YYYY-MM-DD',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择合同开始时间',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -130,6 +132,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
showTime: false,
|
showTime: false,
|
||||||
format: 'YYYY-MM-DD',
|
format: 'YYYY-MM-DD',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择合同结束时间',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export function useFormSchema(
|
|||||||
showTime: true,
|
showTime: true,
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择下次联系时间',
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
|
placeholder: '请选择时间间隔',
|
||||||
options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'),
|
options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'),
|
||||||
},
|
},
|
||||||
defaultValue: 2,
|
defaultValue: 2,
|
||||||
@@ -91,6 +92,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
childrenField: 'children',
|
childrenField: 'children',
|
||||||
treeDefaultExpandAll: true,
|
treeDefaultExpandAll: true,
|
||||||
|
placeholder: '请选择归属部门',
|
||||||
},
|
},
|
||||||
defaultValue: userStore.userInfo?.deptId,
|
defaultValue: userStore.userInfo?.deptId,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
|
placeholder: '请选择时间间隔',
|
||||||
options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'),
|
options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'),
|
||||||
},
|
},
|
||||||
defaultValue: 2,
|
defaultValue: 2,
|
||||||
@@ -65,6 +66,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
childrenField: 'children',
|
childrenField: 'children',
|
||||||
treeDefaultExpandAll: true,
|
treeDefaultExpandAll: true,
|
||||||
|
placeholder: '请选择归属部门',
|
||||||
},
|
},
|
||||||
defaultValue: userStore.userInfo?.deptId,
|
defaultValue: userStore.userInfo?.deptId,
|
||||||
},
|
},
|
||||||
@@ -77,6 +79,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
allowClear: true,
|
allowClear: true,
|
||||||
labelField: 'nickname',
|
labelField: 'nickname',
|
||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
|
placeholder: '请选择员工',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
picker: 'year',
|
picker: 'year',
|
||||||
format: 'YYYY',
|
format: 'YYYY',
|
||||||
valueFormat: 'YYYY',
|
valueFormat: 'YYYY',
|
||||||
|
placeholder: '请选择年份',
|
||||||
},
|
},
|
||||||
defaultValue: new Date().getFullYear().toString(),
|
defaultValue: new Date().getFullYear().toString(),
|
||||||
},
|
},
|
||||||
@@ -50,6 +51,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
childrenField: 'children',
|
childrenField: 'children',
|
||||||
treeDefaultExpandAll: true,
|
treeDefaultExpandAll: true,
|
||||||
|
placeholder: '请选择归属部门',
|
||||||
},
|
},
|
||||||
defaultValue: userStore.userInfo?.deptId,
|
defaultValue: userStore.userInfo?.deptId,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
childrenField: 'children',
|
childrenField: 'children',
|
||||||
treeDefaultExpandAll: true,
|
treeDefaultExpandAll: true,
|
||||||
|
placeholder: '请选择归属部门',
|
||||||
},
|
},
|
||||||
defaultValue: userStore.userInfo?.deptId,
|
defaultValue: userStore.userInfo?.deptId,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
childrenField: 'children',
|
childrenField: 'children',
|
||||||
treeDefaultExpandAll: true,
|
treeDefaultExpandAll: true,
|
||||||
|
placeholder: '请选择归属部门',
|
||||||
},
|
},
|
||||||
defaultValue: userStore.userInfo?.deptId,
|
defaultValue: userStore.userInfo?.deptId,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
showTime: true,
|
showTime: true,
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择出生年',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
showTime: true,
|
showTime: true,
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择出生日期',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
showTime: true,
|
showTime: true,
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择出生日期',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
options: getDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE, 'number'),
|
options: getDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE, 'number'),
|
||||||
|
placeholder: '请选择社交平台',
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'name',
|
fieldName: 'name',
|
||||||
label: '租户名称',
|
label: '租户名称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入租户名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -46,18 +49,27 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'contactName',
|
fieldName: 'contactName',
|
||||||
label: '联系人',
|
label: '联系人',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入联系人',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'contactMobile',
|
fieldName: 'contactMobile',
|
||||||
label: '联系手机',
|
label: '联系手机',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入联系手机',
|
||||||
|
},
|
||||||
rules: 'mobile',
|
rules: 'mobile',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '用户名称',
|
label: '用户名称',
|
||||||
fieldName: 'username',
|
fieldName: 'username',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入用户名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
dependencies: {
|
dependencies: {
|
||||||
triggerFields: ['id'],
|
triggerFields: ['id'],
|
||||||
@@ -78,6 +90,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
label: '账号额度',
|
label: '账号额度',
|
||||||
fieldName: 'accountCount',
|
fieldName: 'accountCount',
|
||||||
component: 'InputNumber',
|
component: 'InputNumber',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入账号额度',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'name',
|
fieldName: 'name',
|
||||||
label: '套餐名称',
|
label: '套餐名称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入套餐名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -45,6 +48,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Textarea',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入备注',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'username',
|
fieldName: 'username',
|
||||||
label: '用户名称',
|
label: '用户名称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入用户名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -44,6 +47,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'nickname',
|
fieldName: 'nickname',
|
||||||
label: '用户昵称',
|
label: '用户昵称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入用户昵称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -117,6 +123,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Textarea',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入备注',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
format: 'YYYY-MM-DD',
|
format: 'YYYY-MM-DD',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择下单日期',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -119,6 +120,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
format: 'YYYY-MM-DD',
|
format: 'YYYY-MM-DD',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择合同开始时间',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -129,6 +131,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
format: 'YYYY-MM-DD',
|
format: 'YYYY-MM-DD',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择合同结束时间',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export function useFormSchema(
|
|||||||
showTime: true,
|
showTime: true,
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择下次联系时间',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
|
placeholder: '请选择时间间隔',
|
||||||
options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'),
|
options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'),
|
||||||
},
|
},
|
||||||
defaultValue: 2,
|
defaultValue: 2,
|
||||||
@@ -91,6 +92,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
childrenField: 'children',
|
childrenField: 'children',
|
||||||
treeDefaultExpandAll: true,
|
treeDefaultExpandAll: true,
|
||||||
|
placeholder: '请选择归属部门',
|
||||||
},
|
},
|
||||||
defaultValue: userStore.userInfo?.deptId,
|
defaultValue: userStore.userInfo?.deptId,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
|
placeholder: '请选择时间间隔',
|
||||||
options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'),
|
options: getDictOptions(DICT_TYPE.DATE_INTERVAL, 'number'),
|
||||||
},
|
},
|
||||||
defaultValue: 2,
|
defaultValue: 2,
|
||||||
@@ -65,6 +66,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
childrenField: 'children',
|
childrenField: 'children',
|
||||||
treeDefaultExpandAll: true,
|
treeDefaultExpandAll: true,
|
||||||
|
placeholder: '请选择归属部门',
|
||||||
},
|
},
|
||||||
defaultValue: userStore.userInfo?.deptId,
|
defaultValue: userStore.userInfo?.deptId,
|
||||||
},
|
},
|
||||||
@@ -77,6 +79,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
allowClear: true,
|
allowClear: true,
|
||||||
labelField: 'nickname',
|
labelField: 'nickname',
|
||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
|
placeholder: '请选择员工',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
type: 'year',
|
type: 'year',
|
||||||
format: 'YYYY',
|
format: 'YYYY',
|
||||||
valueFormat: 'YYYY',
|
valueFormat: 'YYYY',
|
||||||
|
placeholder: '请选择年份',
|
||||||
},
|
},
|
||||||
defaultValue: new Date().getFullYear().toString(),
|
defaultValue: new Date().getFullYear().toString(),
|
||||||
},
|
},
|
||||||
@@ -50,6 +51,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
childrenField: 'children',
|
childrenField: 'children',
|
||||||
treeDefaultExpandAll: true,
|
treeDefaultExpandAll: true,
|
||||||
|
placeholder: '请选择归属部门',
|
||||||
},
|
},
|
||||||
defaultValue: userStore.userInfo?.deptId,
|
defaultValue: userStore.userInfo?.deptId,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
childrenField: 'children',
|
childrenField: 'children',
|
||||||
treeDefaultExpandAll: true,
|
treeDefaultExpandAll: true,
|
||||||
|
placeholder: '请选择归属部门',
|
||||||
},
|
},
|
||||||
defaultValue: userStore.userInfo?.deptId,
|
defaultValue: userStore.userInfo?.deptId,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
childrenField: 'children',
|
childrenField: 'children',
|
||||||
treeDefaultExpandAll: true,
|
treeDefaultExpandAll: true,
|
||||||
|
placeholder: '请选择归属部门',
|
||||||
},
|
},
|
||||||
defaultValue: userStore.userInfo?.deptId,
|
defaultValue: userStore.userInfo?.deptId,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
showTime: true,
|
showTime: true,
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择出生年',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
showTime: true,
|
showTime: true,
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择出生日期',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
showTime: true,
|
showTime: true,
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
|
placeholder: '请选择出生日期',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
options: getDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE, 'number'),
|
options: getDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE, 'number'),
|
||||||
|
placeholder: '请选择社交平台',
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'name',
|
fieldName: 'name',
|
||||||
label: '租户名称',
|
label: '租户名称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入租户名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -46,18 +49,27 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'contactName',
|
fieldName: 'contactName',
|
||||||
label: '联系人',
|
label: '联系人',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入联系人',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'contactMobile',
|
fieldName: 'contactMobile',
|
||||||
label: '联系手机',
|
label: '联系手机',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入联系手机',
|
||||||
|
},
|
||||||
rules: 'mobile',
|
rules: 'mobile',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '用户名称',
|
label: '用户名称',
|
||||||
fieldName: 'username',
|
fieldName: 'username',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入用户名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
dependencies: {
|
dependencies: {
|
||||||
triggerFields: ['id'],
|
triggerFields: ['id'],
|
||||||
@@ -82,6 +94,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'accountCount',
|
fieldName: 'accountCount',
|
||||||
component: 'InputNumber',
|
component: 'InputNumber',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
placeholder: '请输入账号额度',
|
||||||
controlsPosition: 'right',
|
controlsPosition: 'right',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'name',
|
fieldName: 'name',
|
||||||
label: '套餐名称',
|
label: '套餐名称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入套餐名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -43,6 +46,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Textarea',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入备注',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'username',
|
fieldName: 'username',
|
||||||
label: '用户名称',
|
label: '用户名称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入用户名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -47,6 +50,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'nickname',
|
fieldName: 'nickname',
|
||||||
label: '用户昵称',
|
label: '用户昵称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入用户昵称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -116,6 +122,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Textarea',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入备注',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user