Merge pull request #2274 from dataease/pr@dev@fix_plugin_view_miss

fix: 插件视图属性和样式无法显示
This commit is contained in:
fit2cloud-chenyw 2022-05-19 10:51:35 +08:00 committed by GitHub
commit bac23c3c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -652,7 +652,7 @@
</el-tab-pane>
<el-tab-pane :label="$t('chart.chart_style')" class="padding-tab" style="width: 300px">
<chart-style
v-if="chartProperties"
v-if="chartProperties || view.isPlugin"
:param="param"
:view="view"
:chart="chart"
@ -1171,7 +1171,7 @@ export default {
const _this = this
if (_this.chart && _this.chart.render) {
const viewConfig = TYPE_CONFIGS.filter(item => item.render === _this.chart.render && item.value === _this.chart.type)
if (viewConfig) {
if (viewConfig && viewConfig.length) {
return viewConfig[0].properties
} else {
return null