修复Pad/H5表单布局的预览显示样式问题。
parent
9811d9389e
commit
50b32fed66
|
@ -15,7 +15,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
designerConfig: {
|
||||
resetFormJson: true,
|
||||
resetFormJson: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -162,6 +162,7 @@ export default {
|
|||
|
||||
if ((this.field.type === 'radio') || (this.field.type === 'checkbox')
|
||||
|| (this.field.type === 'select') || (this.field.type === 'cascader')) {
|
||||
/* 异步更新option-data之后globalOptionData不能获取到最新值,改用provide的getOptionData()方法 */
|
||||
const newOptionItems = this.getOptionData()
|
||||
if (!!newOptionItems && newOptionItems.hasOwnProperty(this.field.options.name)) {
|
||||
if (!!keepSelected) {
|
||||
|
|
|
@ -173,7 +173,6 @@
|
|||
|
||||
<style lang="scss" scoped>
|
||||
.container-scroll-bar {
|
||||
|
||||
::v-deep .el-scrollbar__wrap, ::v-deep .el-scrollbar__view {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
@ -187,14 +186,6 @@
|
|||
overflow-y: auto;
|
||||
|
||||
.el-form.full-height-width {
|
||||
/*
|
||||
margin: 0 auto;
|
||||
width: 420px;
|
||||
border-radius: 15px;
|
||||
//border-width: 10px;
|
||||
box-shadow: 0 0 1px 10px #495060;
|
||||
*/
|
||||
|
||||
height: 100%;
|
||||
padding: 3px;
|
||||
background: #ffffff;
|
||||
|
|
|
@ -45,9 +45,10 @@
|
|||
|
||||
<el-dialog :title="i18nt('designer.toolbar.preview')" :visible.sync="showPreviewDialogFlag" v-if="showPreviewDialogFlag"
|
||||
:show-close="true" :close-on-click-modal="false" :close-on-press-escape="false" center v-dialog-drag
|
||||
:destroy-on-close="true" class="small-padding-dialog" width="75%" :fullscreen="layoutType === 'H5'">
|
||||
:destroy-on-close="true" class="small-padding-dialog" width="75%"
|
||||
:fullscreen="(layoutType === 'H5') || (layoutType === 'Pad')">
|
||||
<div>
|
||||
<div class="form-render-wrapper" :class="[layoutType === 'H5' ? 'h5-layout' : '']">
|
||||
<div class="form-render-wrapper" :class="[layoutType === 'H5' ? 'h5-layout' : (layoutType === 'Pad' ? 'pad-layout' : '')]">
|
||||
<VFormRender ref="preForm" :form-json="formJson" :form-data="testFormData" :preview-state="true"
|
||||
:option-data="testOptionData"
|
||||
@appendButtonClick="testOnAppendButtonClick" @buttonClick="testOnButtonClick"
|
||||
|
@ -695,7 +696,7 @@
|
|||
|
||||
.form-render-wrapper {
|
||||
//height: calc(100vh - 142px);
|
||||
all: revert !important; /* 防止表单继承el-dialog等外部样式,未生效,原因不明?? */
|
||||
//all: revert !important; /* 防止表单继承el-dialog等外部样式,未生效,原因不明?? */
|
||||
}
|
||||
|
||||
.form-render-wrapper.h5-layout {
|
||||
|
@ -707,6 +708,15 @@
|
|||
height: calc(100vh - 142px);
|
||||
}
|
||||
|
||||
.form-render-wrapper.pad-layout {
|
||||
margin: 0 auto;
|
||||
width: 960px;
|
||||
border-radius: 15px;
|
||||
//border-width: 10px;
|
||||
box-shadow: 0 0 1px 10px #495060;
|
||||
height: calc(100vh - 142px);
|
||||
}
|
||||
|
||||
.node-tree-drawer ::v-deep {
|
||||
.el-drawer {
|
||||
padding: 10px;
|
||||
|
|
Loading…
Reference in New Issue