Skip to content
Snippets Groups Projects
Commit c2a2fec0 authored by Yulong Jing's avatar Yulong Jing Committed by 花裤衩
Browse files

fix[Example]: add <el-form-item> wrapper for validate (#1428)

创建文章里js里有验证规则,但是由于少了<el-form-item>元素而不起作用。
parent 999ea3a4
No related branches found
No related tags found
No related merge requests found
......@@ -60,13 +60,16 @@
<span v-show="contentShortLength" class="word-counter">{{ contentShortLength }}</span>
</el-form-item>
<div class="editor-container">
<Tinymce ref="editor" :height="400" v-model="postForm.content" />
</div>
<div style="margin-bottom: 20px;">
<Upload v-model="postForm.image_uri" />
</div>
<el-form-item prop="content">
<div class="editor-container">
<Tinymce ref="editor" :height="400" v-model="postForm.content" />
</div>
</el-form-item>
<el-form-item prop="image_uri">
<div style="margin-bottom: 20px;">
<Upload v-model="postForm.image_uri" />
</div>
</el-form-item>
</div>
</el-form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment