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]
|
||||
},
|
||||
triggerPluginEdit(e) {
|
||||
this.elementMouseDown(e)
|
||||
},
|
||||
// 元素触摸按下
|
||||
elementTouchDown(e) {
|
||||
eventsFor = events.touch
|
||||
|
@ -100,6 +100,7 @@
|
||||
:h="getShapeStyleIntDeDrag(item.style,'height')"
|
||||
:canvas-style-data="canvasStyleData"
|
||||
@input="handleInput"
|
||||
@trigger-plugin-edit="pluginEditHandler"
|
||||
/>
|
||||
</de-drag>
|
||||
<!--拖拽阴影部分-->
|
||||
@ -1067,6 +1068,21 @@ export default {
|
||||
created() {
|
||||
},
|
||||
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) {
|
||||
return this.linkageSettingStatus && item === this.curLinkageView
|
||||
},
|
||||
|
@ -36,6 +36,7 @@
|
||||
class="chart-class"
|
||||
@onChartClick="chartClick"
|
||||
@onJumpClick="jumpClick"
|
||||
@trigger-edit-click="pluginEditHandler"
|
||||
/>
|
||||
<chart-component
|
||||
v-else-if="charViewShowFlag"
|
||||
@ -417,6 +418,9 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
pluginEditHandler(e) {
|
||||
this.$emit('trigger-plugin-edit', { e, id: this.element.id })
|
||||
},
|
||||
batchOptChange(param) {
|
||||
if (this.curBatchOptComponents.includes(this.element.propValue.viewId)) {
|
||||
this.$store.state.styleChangeTimes++
|
||||
|
Loading…
Reference in New Issue
Block a user