refactor: 联动高亮样式优化,优化一些不太明显的高亮

This commit is contained in:
wangjiahao 2022-07-05 14:24:59 +08:00
parent 8f58270388
commit 7b663e7676
3 changed files with 4 additions and 14 deletions

View File

@ -332,8 +332,6 @@ export default {
},
save(withClose) {
//
this.$store.commit('clearPanelLinkageInfo')
//
const requestInfo = {
id: this.panelInfo.id,
@ -342,6 +340,10 @@ export default {
}
const components = deepCopy(this.componentData)
components.forEach(view => {
//
if (view.linkageFilters && view.linkageFilters.length > 0) {
view.linkageFilters.splice(0, view.linkageFilters.length)
}
if (view.DetailAreaCode) {
view.DetailAreaCode = null
}

View File

@ -139,12 +139,6 @@ export function hBaseBarOptionAntV(plot, container, chart, action, isGroup, isSt
slider: slider,
annotations: analyse,
interactions: [
{
type: 'element-active', cfg: {
start: [{ trigger: 'element:mouseenter', action: ['element-highlight:highlight', 'element-active:reset', 'cursor:pointer'] }],
end: [{ trigger: 'element:mouseleave', action: ['element-highlight:reset', 'element-active:reset', 'cursor:default'] }]
}
},
{
type: 'legend-active', cfg: {
start: [{ trigger: 'legend-item:mouseenter', action: ['element-active:reset'] }],

View File

@ -132,12 +132,6 @@ export function baseAreaOptionAntV(plot, container, chart, action) {
slider: slider,
annotations: analyse,
interactions: [
{
type: 'element-active', cfg: {
start: [{ trigger: 'element:mouseenter', action: ['element-highlight:highlight', 'element-active:reset', 'cursor:pointer'] }],
end: [{ trigger: 'element:mouseleave', action: ['element-highlight:reset', 'element-active:reset', 'cursor:default'] }]
}
},
{
type: 'legend-active', cfg: {
start: [{ trigger: 'legend-item:mouseenter', action: ['element-active:reset'] }],