feat:【antd/ele】useFormSchema 的 placeholder
This commit is contained in:
@@ -191,11 +191,17 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'name',
|
fieldName: 'name',
|
||||||
label: '角色名称',
|
label: '角色名称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入角色名称',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'category',
|
fieldName: 'category',
|
||||||
label: '角色类别',
|
label: '角色类别',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入角色类别',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'publicStatus',
|
fieldName: 'publicStatus',
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'name',
|
fieldName: 'name',
|
||||||
label: '秒杀时段名称',
|
label: '秒杀时段名称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入秒杀时段名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -160,12 +160,18 @@ export function useCreateFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'userId',
|
fieldName: 'userId',
|
||||||
label: '分销员编号',
|
label: '分销员编号',
|
||||||
component: 'InputSearch',
|
component: 'InputSearch',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入分销员编号',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'bindUserId',
|
fieldName: 'bindUserId',
|
||||||
label: '上级推广员编号',
|
label: '上级推广员编号',
|
||||||
component: 'InputSearch',
|
component: 'InputSearch',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入上级推广员编号',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -178,6 +184,9 @@ export function useUpdateFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'bindUserId',
|
fieldName: 'bindUserId',
|
||||||
label: '上级推广员编号',
|
label: '上级推广员编号',
|
||||||
component: 'InputSearch',
|
component: 'InputSearch',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入上级推广员编号',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -21,12 +21,18 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
component: 'Input',
|
component: 'Input',
|
||||||
fieldName: 'name',
|
fieldName: 'name',
|
||||||
label: '岗位名称',
|
label: '岗位名称',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入岗位名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
fieldName: 'code',
|
fieldName: 'code',
|
||||||
label: '岗位编码',
|
label: '岗位编码',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入岗位编码',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -35,6 +41,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
component: 'InputNumber',
|
component: 'InputNumber',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
min: 0,
|
min: 0,
|
||||||
|
placeholder: '请输入显示顺序',
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
@@ -53,6 +60,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '岗位备注',
|
label: '岗位备注',
|
||||||
component: 'Textarea',
|
component: 'Textarea',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入岗位备注',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,11 +189,17 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'name',
|
fieldName: 'name',
|
||||||
label: '角色名称',
|
label: '角色名称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入角色名称',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'category',
|
fieldName: 'category',
|
||||||
label: '角色类别',
|
label: '角色类别',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入角色类别',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'publicStatus',
|
fieldName: 'publicStatus',
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'name',
|
fieldName: 'name',
|
||||||
label: '秒杀时段名称',
|
label: '秒杀时段名称',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入秒杀时段名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -160,12 +160,18 @@ export function useCreateFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'userId',
|
fieldName: 'userId',
|
||||||
label: '分销员编号',
|
label: '分销员编号',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入分销员编号',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'bindUserId',
|
fieldName: 'bindUserId',
|
||||||
label: '上级推广员编号',
|
label: '上级推广员编号',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入上级推广员编号',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -178,6 +184,9 @@ export function useUpdateFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'bindUserId',
|
fieldName: 'bindUserId',
|
||||||
label: '上级推广员编号',
|
label: '上级推广员编号',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入上级推广员编号',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -21,12 +21,18 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
component: 'Input',
|
component: 'Input',
|
||||||
fieldName: 'name',
|
fieldName: 'name',
|
||||||
label: '岗位名称',
|
label: '岗位名称',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入岗位名称',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
fieldName: 'code',
|
fieldName: 'code',
|
||||||
label: '岗位编码',
|
label: '岗位编码',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入岗位编码',
|
||||||
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -35,6 +41,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
component: 'InputNumber',
|
component: 'InputNumber',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
min: 0,
|
min: 0,
|
||||||
|
placeholder: '请输入显示顺序',
|
||||||
controlsPosition: 'right',
|
controlsPosition: 'right',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
},
|
},
|
||||||
@@ -53,6 +60,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '岗位备注',
|
label: '岗位备注',
|
||||||
component: 'Textarea',
|
component: 'Textarea',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入岗位备注',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user