Commit e2c7a19a authored by 张子雨's avatar 张子雨

feat: 添加卖点限制

parent b885d720
...@@ -639,11 +639,17 @@ class goodsManage extends Component { ...@@ -639,11 +639,17 @@ class goodsManage extends Component {
<FormItem label="商品卖点" labelCol={{ span: 2 }}> <FormItem label="商品卖点" labelCol={{ span: 2 }}>
{getFieldDecorator('character', { {getFieldDecorator('character', {
initialValue: initData.character, initialValue: initData.character,
rules: [
{
required: true,
message: '请输入商品卖点',
},
],
})( })(
<Input <Input
style={{ width: 690 }} style={{ width: 690 }}
maxLength={50} maxLength={50}
placeholder="好的卖点信息有利于提高商品转化,限50字" placeholder="卖点最优可填写3个词,12个字。前后用空格加竖杠分隔,例: 莹莹剔透 | 粒粒优选 | 易煮易熟"
allowClear allowClear
/>, />,
)} )}
......
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