Unverified 提交 bac23c3c authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

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

fix: 插件视图属性和样式无法显示
...@@ -652,7 +652,7 @@ ...@@ -652,7 +652,7 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('chart.chart_style')" class="padding-tab" style="width: 300px"> <el-tab-pane :label="$t('chart.chart_style')" class="padding-tab" style="width: 300px">
<chart-style <chart-style
v-if="chartProperties" v-if="chartProperties || view.isPlugin"
:param="param" :param="param"
:view="view" :view="view"
:chart="chart" :chart="chart"
...@@ -1171,7 +1171,7 @@ export default { ...@@ -1171,7 +1171,7 @@ export default {
const _this = this const _this = this
if (_this.chart && _this.chart.render) { if (_this.chart && _this.chart.render) {
const viewConfig = TYPE_CONFIGS.filter(item => item.render === _this.chart.render && item.value === _this.chart.type) 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 return viewConfig[0].properties
} else { } else {
return null return null
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论