mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 03:52:59 +08:00
Merge pull request #241 from dataease/pr@dev@panel
fix:仪表板全屏预览过滤组件下拉框不显示问题
This commit is contained in:
commit
1d927404d9
@ -12,6 +12,7 @@
|
|||||||
:style="getComponentStyleDefault(config.style)"
|
:style="getComponentStyleDefault(config.style)"
|
||||||
:out-style="config.style"
|
:out-style="config.style"
|
||||||
:element="config"
|
:element="config"
|
||||||
|
:in-screen="inScreen"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<component
|
<component
|
||||||
@ -50,6 +51,11 @@ export default {
|
|||||||
type: Number,
|
type: Number,
|
||||||
required: false,
|
required: false,
|
||||||
default: 0
|
default: 0
|
||||||
|
},
|
||||||
|
inScreen: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
:key="index"
|
:key="index"
|
||||||
:config="item"
|
:config="item"
|
||||||
:search-count="searchCount"
|
:search-count="searchCount"
|
||||||
|
:in-screen="inScreen"
|
||||||
/>
|
/>
|
||||||
<!--视图详情-->
|
<!--视图详情-->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@ -54,6 +55,11 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
required: false,
|
required: false,
|
||||||
default: 'full'
|
default: 'full'
|
||||||
|
},
|
||||||
|
inScreen: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="width: 100%;height: 100vh;">
|
<div style="width: 100%;height: 100vh;">
|
||||||
<fullscreen style="height:100%;background: #f7f8fa;overflow-y: auto" :fullscreen.sync="fullscreen" @change="fullscreenChange">
|
<fullscreen style="height:100%;background: #f7f8fa;overflow-y: auto" :fullscreen.sync="fullscreen" @change="fullscreenChange">
|
||||||
<Preview v-if="fullscreen" />
|
<Preview v-if="fullscreen" :in-screen="!fullscreen" />
|
||||||
</fullscreen>
|
</fullscreen>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
class="component-custom"
|
class="component-custom"
|
||||||
:out-style="element.style"
|
:out-style="element.style"
|
||||||
:element="element"
|
:element="element"
|
||||||
|
:in-draw="inDraw"
|
||||||
|
:in-screen="inScreen"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -42,6 +44,11 @@ export default {
|
|||||||
inDraw: {
|
inDraw: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
},
|
||||||
|
inScreen: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
:clearable="!options.attrs.multiple"
|
:clearable="!options.attrs.multiple"
|
||||||
:multiple="options.attrs.multiple"
|
:multiple="options.attrs.multiple"
|
||||||
:placeholder="options.attrs.placeholder"
|
:placeholder="options.attrs.placeholder"
|
||||||
|
:popper-append-to-body="inScreen"
|
||||||
@change="changeValue"
|
@change="changeValue"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
@ -32,6 +33,11 @@ export default {
|
|||||||
inDraw: {
|
inDraw: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
},
|
||||||
|
inScreen: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<el-select v-if="options!== null && options.attrs!==null" v-model="values" :multiple="options.attrs.multiple" :placeholder="options.attrs.placeholder" @change="changeValue">
|
<el-select v-if="options!== null && options.attrs!==null" v-model="values" :multiple="options.attrs.multiple" :placeholder="options.attrs.placeholder" :popper-append-to-body="inScreen" @change="changeValue">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in options.attrs.datas"
|
v-for="item in options.attrs.datas"
|
||||||
:key="item[options.attrs.key]"
|
:key="item[options.attrs.key]"
|
||||||
@ -23,6 +23,11 @@ export default {
|
|||||||
inDraw: {
|
inDraw: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
},
|
||||||
|
inScreen: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -154,7 +154,7 @@
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<fullscreen style="height: 100%;background: #f7f8fa;overflow-y: auto" :fullscreen.sync="previewVisible">
|
<fullscreen style="height: 100%;background: #f7f8fa;overflow-y: auto" :fullscreen.sync="previewVisible">
|
||||||
<Preview v-if="previewVisible" :show-type="canvasStyleData.selfAdaption?'full':'width'" />
|
<Preview v-if="previewVisible" :in-screen="!previewVisible" :show-type="canvasStyleData.selfAdaption?'full':'width'" />
|
||||||
</fullscreen>
|
</fullscreen>
|
||||||
<input id="input" ref="files" type="file" accept="image/*" hidden @change="handleFileChange">
|
<input id="input" ref="files" type="file" accept="image/*" hidden @change="handleFileChange">
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
<el-row class="panel-design-preview">
|
<el-row class="panel-design-preview">
|
||||||
<div ref="imageWrapper" style="width: 100%;height: 100%">
|
<div ref="imageWrapper" style="width: 100%;height: 100%">
|
||||||
<fullscreen style="height: 100%;background: #f7f8fa;overflow-y: auto" :fullscreen.sync="fullscreen">
|
<fullscreen style="height: 100%;background: #f7f8fa;overflow-y: auto" :fullscreen.sync="fullscreen">
|
||||||
<Preview v-if="showMain" :show-type="canvasStyleData.selfAdaption?'full':'width'" />
|
<Preview v-if="showMain" :in-screen="!fullscreen" :show-type="canvasStyleData.selfAdaption?'full':'width'" />
|
||||||
</fullscreen>
|
</fullscreen>
|
||||||
</div>
|
</div>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -116,6 +116,14 @@ export default {
|
|||||||
this.showMain = true
|
this.showMain = true
|
||||||
this.initHasStar()
|
this.initHasStar()
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
fullscreen(newVal, oldVla) {
|
||||||
|
// 刷新 进行重新渲染
|
||||||
|
this.showMain = false
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.showMain = true
|
||||||
|
this.initHasStar()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
Loading…
Reference in New Issue
Block a user