Commit 7a9bbec3 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复 requied 写在外部失效的问题

parent 84db6afe
......@@ -31,13 +31,15 @@ export const auditModalSchema: ISchema = {
type: 'string',
title: intl.formatMessage({ id: 'afterService.components.FinishedModal.content' }, { default: '售后评价' }),
'x-component': 'textarea',
required: true,
'x-component-props': {
placeholder: intl.formatMessage({ id: 'afterService.components.FinishedModal.content.placeholder' }, { default: '在此输入你的内容,最长120个字符,60个汉字' }),
rows: 5,
},
'x-rules': [
{
required: true, // 写外边不生效了???
},
{
limitByte: true, // 自定义校验规则
maxByte: 120,
}
......
......@@ -27,13 +27,15 @@ export const auditModalSchema: ISchema = {
type: 'string',
title: intl.formatMessage({ id: 'afterService.components.VerifyModal.reason.noPass' }, { default: '审核不通过原因' }),
'x-component': 'textarea',
required: true,
'x-component-props': {
placeholder: intl.formatMessage({ id: 'afterService.components.VerifyModal.reason.placeholder' }, { default: '在此输入你的内容,最长120个字符,60个汉字' }),
rows: 5,
},
'x-rules': [
{
required: true,
},
{
limitByte: true, // 自定义校验规则
maxByte: 120,
}
......
......@@ -34,13 +34,15 @@ const schema: ISchema = {
type: 'string',
title: intl.formatMessage({ id: 'member.components.VerifyModal.reason.noPass' }),
'x-component': 'textarea',
required: true,
'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.components.VerifyModal.reason.placeholder' }),
rows: 5,
},
'x-rules': [
{
required: true,
},
{
limitByte: true, // 自定义校验规则
maxByte: 120,
}
......
......@@ -369,13 +369,15 @@ export const schema: ISchema = {
type: 'string',
title: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.verify.reason' }),
'x-component': 'Textarea',
required: true,
'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.memberPrComingClassify.drawer.form.verify.placeholder' }),
rows: 5,
},
'x-rules': [
{
required: true,
},
{
limitByte: true, // 自定义校验规则
maxByte: 120,
}
......
......@@ -133,13 +133,15 @@ export const schema: ISchema = {
type: 'string',
title: intl.formatMessage({ id: 'member.management.memberPrComingInvestigate.drawer.form.verify.reason' }),
'x-component': 'Textarea',
required: true,
'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.memberPrComingInvestigate.drawer.form.verify.placeholder' }),
rows: 5,
},
'x-rules': [
{
required: true,
},
{
limitByte: true, // 自定义校验规则
maxByte: 120,
}
......
......@@ -33,13 +33,15 @@ const schema: ISchema = {
type: 'string',
title: intl.formatMessage({ id: 'merchantCoupon.Notpassingthereason' }),
'x-component': 'textarea',
required: true,
'x-component-props': {
placeholder: intl.formatMessage({ id: 'merchantCoupon.up120characters60characters' }),
rows: 5,
},
'x-rules': [
{
required: true,
},
{
limitByte: true, // 自定义校验规则
maxByte: 120,
}
......
......@@ -36,13 +36,15 @@ const schema: ISchema = {
type: 'string',
title: `${intl.formatMessage({ id: 'merchantCoupon.reason'})}`,
'x-component': 'textarea',
required: true,
'x-component-props': {
placeholder: `${intl.formatMessage({ id: 'merchantCoupon.between50and100' })}`,
rows: 4,
},
'x-rules': [
{
required: true,
},
{
limitByte: true, // 自定义校验规则
maxByte: 100,
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment