forked from github/dataease
Merge pull request #9178 from dataease/pr@dev-v2@style_drill-menu
style(仪表板): 调整下钻弹框样式
This commit is contained in:
commit
b0595d19b3
@ -101,6 +101,16 @@
|
||||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.dataease</groupId>
|
||||
<artifactId>xpack-permissions</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.dataease</groupId>
|
||||
<artifactId>xpack-base</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -422,9 +422,9 @@ export async function decompressionPre(params, callBack) {
|
||||
}
|
||||
|
||||
export function trackBarStyleCheck(element, trackbarStyle, scale) {
|
||||
const { width, height } = element.value.style
|
||||
const widthReal = width * scale
|
||||
const heightReal = height * scale
|
||||
const { width, height } = element.style
|
||||
const widthReal = width
|
||||
const heightReal = height
|
||||
if (trackbarStyle.left < 0) {
|
||||
trackbarStyle.left = 0
|
||||
} else if (widthReal - trackbarStyle.left < 60) {
|
||||
|
@ -15,6 +15,7 @@ import ChartError from '@/views/chart/components/views/components/ChartError.vue
|
||||
import { BASE_VIEW_CONFIG } from '../../editor/util/chart'
|
||||
import { customAttrTrans, customStyleTrans, recursionTransObj } from '@/utils/canvasStyle'
|
||||
import { deepCopy } from '@/utils/utils'
|
||||
import { trackBarStyleCheck } from '@/utils/canvasUtils'
|
||||
|
||||
const dvMainStore = dvMainStoreWithOut()
|
||||
const { nowPanelTrackInfo, nowPanelJumpInfo, mobileInPc } = storeToRefs(dvMainStore)
|
||||
@ -202,8 +203,13 @@ const action = param => {
|
||||
trackClick(trackMenu.value[0])
|
||||
} else {
|
||||
// 图表关联多个事件
|
||||
state.trackBarStyle.left = param.x - 50 + 'px'
|
||||
state.trackBarStyle.top = param.y + 10 + 'px'
|
||||
const barStyleTemp = {
|
||||
left: param.x - 50,
|
||||
top: param.y + 10
|
||||
}
|
||||
trackBarStyleCheck(props.element, barStyleTemp, props.scale)
|
||||
state.trackBarStyle.left = barStyleTemp.left + 'px'
|
||||
state.trackBarStyle.top = barStyleTemp.top + 'px'
|
||||
viewTrack.value.trackButtonClick()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user