Merge pull request #7734 from dataease/pr@dev-v2@refactor_dashboard-scale

Pr@dev v2@refactor dashboard scale
This commit is contained in:
王嘉豪 2024-01-22 15:04:47 +08:00 committed by GitHub
commit a4abd603e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View File

@ -17,7 +17,7 @@ export interface Panel {
}
export const findCopyResource = async (dvId, busiFlag): Promise<IResponse> => {
return request.get({ url: '/findCopyResource/findById/' + dvId + '/' + busiFlag })
return request.get({ url: '/dataVisualization/findCopyResource/' + dvId + '/' + busiFlag })
}
export const findById = async (dvId, busiFlag): Promise<IResponse> => {

View File

@ -133,7 +133,10 @@ const componentBackgroundStyle = computed(() => {
innerPadding,
borderRadius
} = config.value.commonBackground
const style = { padding: innerPadding + 'px', borderRadius: borderRadius + 'px' }
const style = {
padding: innerPadding * deepScale.value + 'px',
borderRadius: borderRadius + 'px'
}
let colorRGBA = ''
if (backgroundColorSelect && backgroundColor) {
colorRGBA = backgroundColor

View File

@ -141,7 +141,7 @@ const restore = () => {
cellWidth.value = canvasWidth / pcMatrixCount.value.x
cellHeight.value = canvasHeight / pcMatrixCount.value.y
scaleWidth.value = isMainCanvas(canvasId.value)
? scaleWidth.value * 1.5
? scaleWidth.value * 1.2
: outerScale.value * 100
} else {
changeRefComponentsSizeWithScale(