代码优化
This commit is contained in:
parent
1c870c7b51
commit
5af27bd5ad
|
|
@ -37,6 +37,8 @@
|
|||
placeholder="请输入内容"
|
||||
class="input-content"
|
||||
style="min-height: 30vh"
|
||||
count
|
||||
maxlength="500"
|
||||
/>
|
||||
</up-form-item>
|
||||
|
||||
|
|
@ -117,13 +119,18 @@ const opinionRules = ref({
|
|||
message: '请填写正确的手机号码',
|
||||
},
|
||||
],
|
||||
options: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请填写意见',
|
||||
trigger: ['blur', 'change'],
|
||||
max: 500,
|
||||
},
|
||||
options: [
|
||||
{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请填写意见',
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
{
|
||||
max: 500,
|
||||
message: '字数不能超过500',
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
// 表单实例
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@
|
|||
placeholder="请输入内容"
|
||||
class="input-content"
|
||||
style="min-height: 30vh"
|
||||
:maxlength="3"
|
||||
count
|
||||
/>
|
||||
</up-form-item>
|
||||
|
||||
|
|
@ -119,12 +121,14 @@ const opinionRules = ref({
|
|||
message: '请填写正确的手机号码',
|
||||
},
|
||||
],
|
||||
options: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请填写意见',
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
options: [
|
||||
{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请填写意见',
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
// 表单实例
|
||||
|
|
|
|||
Loading…
Reference in New Issue