forked from github/dataease
perf(仪表板): 优化仪表板查询按钮样式
This commit is contained in:
parent
6e369c0ff7
commit
13e73de5fe
@ -11,12 +11,12 @@
|
|||||||
<de-out-widget
|
<de-out-widget
|
||||||
v-if="config.type==='custom'"
|
v-if="config.type==='custom'"
|
||||||
:id="'component' + config.id"
|
:id="'component' + config.id"
|
||||||
|
ref="deOutWidget"
|
||||||
class="component-custom"
|
class="component-custom"
|
||||||
:style="getComponentStyleDefault(config.style)"
|
:style="getComponentStyleDefault(config.style)"
|
||||||
style="overflow: hidden"
|
style="overflow: hidden"
|
||||||
:out-style="config.style"
|
:out-style="config.style"
|
||||||
:is-relation="isRelation"
|
:is-relation="isRelation"
|
||||||
ref="deOutWidget"
|
|
||||||
:element="config"
|
:element="config"
|
||||||
:in-screen="inScreen"
|
:in-screen="inScreen"
|
||||||
:edit-mode="'preview'"
|
:edit-mode="'preview'"
|
||||||
@ -255,9 +255,9 @@ export default {
|
|||||||
this.previewVisible = false
|
this.previewVisible = false
|
||||||
},
|
},
|
||||||
getCondition() {
|
getCondition() {
|
||||||
if(this.$refs.deOutWidget && this.$refs.deOutWidget.getCondition) {
|
if (this.$refs.deOutWidget && this.$refs.deOutWidget.getCondition) {
|
||||||
return this.$refs.deOutWidget.getCondition()
|
return this.$refs.deOutWidget.getCondition()
|
||||||
}else {
|
} else {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
:round="element.options.attrs.round"
|
:round="element.options.attrs.round"
|
||||||
:plain="element.options.attrs.plain"
|
:plain="element.options.attrs.plain"
|
||||||
:size="size"
|
:size="size"
|
||||||
|
class="de-search-button"
|
||||||
@click="triggerSearch"
|
@click="triggerSearch"
|
||||||
>
|
>
|
||||||
{{ element.options.value }}
|
{{ element.options.value }}
|
||||||
@ -44,5 +45,8 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.de-search-button {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user