提交 2398e685 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 插件视图属性和样式无法显示

上级 eea37713
......@@ -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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论