样式优化
This commit is contained in:
@@ -76,27 +76,27 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row type="flex" justify="center">
|
||||
<el-form-item label="排序" label-width="48px">
|
||||
<el-input style="width:500px" v-model="addForm.sort"></el-input>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row type="flex" justify="center" v-if="addForm.contentType == 2">
|
||||
<el-form-item label="url" prop="url" label-width="48px">
|
||||
<el-input style="width:500px" v-model="addForm.url"></el-input>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row type="flex" justify="center" v-if="addForm.contentType == 1">
|
||||
<el-form-item label="内容" prop="content" label-width="48px">
|
||||
<el-form-item label="内容" prop="content" label-width="48px" class="custom-height">
|
||||
<!-- <el-input style="width:500px" v-model="addForm.content" :rows="5" type="textarea"></el-input> -->
|
||||
<el-upload class="avatar-uploader" :action="baseUrl + '/oss/fileoss'" accept=".jpeg,.jpg,.gif,.png" :show-file-list="false" :on-success="contentUploadSuccess" >
|
||||
</el-upload>
|
||||
<quill-editor v-model="addForm.content" ref="myQuillEditor" :options="editorOption"
|
||||
@blur="onEditorBlur($event)" @focus="onEditorFocus($event)"
|
||||
@ready="onEditorReady($event)" class="shangpin_editor">
|
||||
@ready="onEditorReady($event)" class="general_editor">
|
||||
</quill-editor>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row type="flex" justify="center">
|
||||
<el-form-item label="排序" label-width="48px">
|
||||
<el-input style="width:500px" v-model="addForm.sort"></el-input>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="cancleClose">取 消</el-button>
|
||||
@@ -521,3 +521,16 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
.custom-height{
|
||||
height: 270px;
|
||||
}
|
||||
.avatar-uploader{
|
||||
height: 1px;
|
||||
}
|
||||
.general_editor {
|
||||
height: 150px;
|
||||
width:500px
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user