Merge pull request #2356 from dataease/pr@dev@perf_symbol_map

perf: 优化符号地图
This commit is contained in:
fit2cloud-chenyw 2022-05-30 18:13:02 +08:00 committed by GitHub
commit bab6292bb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 0 deletions

View File

@ -751,6 +751,9 @@ export default {
}
return [null, null]
},
triggerPluginEdit(e) {
this.elementMouseDown(e)
},
//
elementTouchDown(e) {
eventsFor = events.touch

View File

@ -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
},

View File

@ -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++