fix(过滤组件): 下拉树过滤组件更多选项为空,可以不显示更多选项
This commit is contained in:
parent
1477f64d5e
commit
60d7c8d920
@ -116,7 +116,7 @@
|
||||
style="padding-left: 10px;"
|
||||
>
|
||||
<el-popover popper-class="popover-more-parent" :visible-arrow="false" placement="bottom-start" :width="182" trigger="click">
|
||||
<template #reference>
|
||||
<template v-if="showMore" #reference>
|
||||
<div class="more-select-btn icon iconfont icon-icon-more">
|
||||
{{ $t('panel.more') }}
|
||||
</div>
|
||||
@ -344,6 +344,9 @@ export default {
|
||||
|
||||
const views = this.childViews.viewInfos.filter(view => tableIdList.includes(view.tableId))
|
||||
return views
|
||||
},
|
||||
showMore() {
|
||||
return (this.widget.name && ['textSelectWidget', 'textSelectGridWidget', 'timeDateRangeWidget'].includes(this.widget.name)) || (this.widget.isTimeWidget && this.widget.isTimeWidget()) || this.showParams
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user