{ required: true, message: '不能为空!', pattern: '[^ \x22]+' }
- 24小时制 "YYYY-MM-DD HH:mm" ;12小时制"YYYY-MM-DD hh:mm"
-
<span class="suffix_content"> {{ `${ (ruleForm.content && ruleForm.content.length) || 0 }/${5000}` }} </span>
.ant-form-item-control { position: relative; display: block; } .suffix_content { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; color: rgba(0, 0, 0, 0.65); line-height: 0; transform: translateY(-50%); right: 0; }
文本域字数限定,计数