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

创建文章里js里有验证规则,但是由于少了<el-form-item>元素而不起作用。
This commit is contained in:
Yulong Jing 2018-12-20 14:49:14 +08:00 committed by 花裤衩
parent 999ea3a443
commit c2a2fec067

View file

@ -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>