Merge pull request #5416 from dataease/dev

merge dev
This commit is contained in:
fit2cloudrd 2023-06-06 14:36:19 +08:00 committed by GitHub
commit 25943acd44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 4 deletions

View File

@ -345,6 +345,9 @@ export default {
.component {
position: absolute;
}
.component-outer {
transform: translate(0);
}
.component-outer:hover {
box-shadow: 0px 0px 3px #0a7be0;
}

View File

@ -423,10 +423,6 @@ export default {
if (this.canvasId === 'canvas-main' && !this.showPosition.includes('multiplexing')) {
listenGlobalKeyDownPreview()
}
//
this.$cancelRequest('/chart/view/getData/**')
this.$cancelRequest('/api/link/viewDetail/**')
this.$cancelRequest('/static-resource/**')
},
mounted() {
this.initWatermark()

View File

@ -11,6 +11,7 @@ import store from '@/store'
import { AIDED_DESIGN, MOBILE_SETTING, PAGE_LINE_DESIGN, PANEL_CHART_INFO, TAB_COMMON_STYLE } from '@/views/panel/panel'
import html2canvas from 'html2canvasde'
import xssCheck from 'xss'
import Vue from 'vue'
export function deepCopy(target) {
if (typeof target === 'object' && target !== null) {
@ -70,6 +71,10 @@ export function mobile2MainCanvas(mainSource, mobileSource) {
}
export function panelInit(componentData, componentStyle) {
// 取消视图请求
Vue.prototype.$cancelRequest('/chart/view/getData/**')
Vue.prototype.$cancelRequest('/api/link/viewDetail/**')
Vue.prototype.$cancelRequest('/static-resource/**')
panelDataPrepare(componentData, componentStyle, function() {
// 将data 和 style 数据设置到全局store中
store.commit('setComponentData', resetID(componentData))

View File

@ -33,6 +33,7 @@
<div
:id="chartId"
style="width: 100%;overflow: hidden;"
class="g2-container"
:style="{height:chartHeight}"
/>
</div>
@ -437,3 +438,10 @@ export default {
}
}
</script>
<style lang="less" scoped>
.g2-container {
::v-deep .g2-tooltip {
position: fixed !important;
}
}
</style>