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