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>
<div class="editor-container"> <el-form-item prop="content">
<Tinymce ref="editor" :height="400" v-model="postForm.content" /> <div class="editor-container">
</div> <Tinymce ref="editor" :height="400" v-model="postForm.content" />
</div>
<div style="margin-bottom: 20px;"> </el-form-item>
<Upload v-model="postForm.image_uri" /> <el-form-item prop="image_uri">
</div> <div style="margin-bottom: 20px;">
<Upload v-model="postForm.image_uri" />
</div>
</el-form-item>
</div> </div>
</el-form> </el-form>