forked from github/dataease
Merge pull request #2356 from dataease/pr@dev@perf_symbol_map
perf: 优化符号地图
This commit is contained in:
commit
bab6292bb8
@ -751,6 +751,9 @@ export default {
|
|||||||
}
|
}
|
||||||
return [null, null]
|
return [null, null]
|
||||||
},
|
},
|
||||||
|
triggerPluginEdit(e) {
|
||||||
|
this.elementMouseDown(e)
|
||||||
|
},
|
||||||
// 元素触摸按下
|
// 元素触摸按下
|
||||||
elementTouchDown(e) {
|
elementTouchDown(e) {
|
||||||
eventsFor = events.touch
|
eventsFor = events.touch
|
||||||
|
@ -100,6 +100,7 @@
|
|||||||
:h="getShapeStyleIntDeDrag(item.style,'height')"
|
:h="getShapeStyleIntDeDrag(item.style,'height')"
|
||||||
:canvas-style-data="canvasStyleData"
|
:canvas-style-data="canvasStyleData"
|
||||||
@input="handleInput"
|
@input="handleInput"
|
||||||
|
@trigger-plugin-edit="pluginEditHandler"
|
||||||
/>
|
/>
|
||||||
</de-drag>
|
</de-drag>
|
||||||
<!--拖拽阴影部分-->
|
<!--拖拽阴影部分-->
|
||||||
@ -1067,6 +1068,21 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
pluginEditHandler({ e, id }) {
|
||||||
|
let index = -1
|
||||||
|
for (let i = 0; i < this.componentData.length; i++) {
|
||||||
|
const item = this.componentData[i]
|
||||||
|
const itemId = item.id
|
||||||
|
if (id === itemId) {
|
||||||
|
index = i
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (index >= 0) {
|
||||||
|
const _this = this
|
||||||
|
_this.$refs.deDragRef && _this.$refs.deDragRef[index] && _this.$refs.deDragRef[index].triggerPluginEdit && _this.$refs.deDragRef[index].triggerPluginEdit(e)
|
||||||
|
}
|
||||||
|
},
|
||||||
linkageActiveCheck(item) {
|
linkageActiveCheck(item) {
|
||||||
return this.linkageSettingStatus && item === this.curLinkageView
|
return this.linkageSettingStatus && item === this.curLinkageView
|
||||||
},
|
},
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
class="chart-class"
|
class="chart-class"
|
||||||
@onChartClick="chartClick"
|
@onChartClick="chartClick"
|
||||||
@onJumpClick="jumpClick"
|
@onJumpClick="jumpClick"
|
||||||
|
@trigger-edit-click="pluginEditHandler"
|
||||||
/>
|
/>
|
||||||
<chart-component
|
<chart-component
|
||||||
v-else-if="charViewShowFlag"
|
v-else-if="charViewShowFlag"
|
||||||
@ -417,6 +418,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
pluginEditHandler(e) {
|
||||||
|
this.$emit('trigger-plugin-edit', { e, id: this.element.id })
|
||||||
|
},
|
||||||
batchOptChange(param) {
|
batchOptChange(param) {
|
||||||
if (this.curBatchOptComponents.includes(this.element.propValue.viewId)) {
|
if (this.curBatchOptComponents.includes(this.element.propValue.viewId)) {
|
||||||
this.$store.state.styleChangeTimes++
|
this.$store.state.styleChangeTimes++
|
||||||
|
Loading…
Reference in New Issue
Block a user