forked from AkkomaGang/admin-fe
fix[Example]: add <el-form-item> wrapper for validate (#1428)
创建文章里js里有验证规则,但是由于少了<el-form-item>元素而不起作用。
This commit is contained in:
parent
999ea3a443
commit
c2a2fec067
1 changed files with 10 additions and 7 deletions
|
@ -60,13 +60,16 @@
|
||||||
<span v-show="contentShortLength" class="word-counter">{{ contentShortLength }}字</span>
|
<span v-show="contentShortLength" class="word-counter">{{ contentShortLength }}字</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item prop="content">
|
||||||
<div class="editor-container">
|
<div class="editor-container">
|
||||||
<Tinymce ref="editor" :height="400" v-model="postForm.content" />
|
<Tinymce ref="editor" :height="400" v-model="postForm.content" />
|
||||||
</div>
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="image_uri">
|
||||||
<div style="margin-bottom: 20px;">
|
<div style="margin-bottom: 20px;">
|
||||||
<Upload v-model="postForm.image_uri" />
|
<Upload v-model="postForm.image_uri" />
|
||||||
</div>
|
</div>
|
||||||
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue