forked from github/dataease
Merge pull request #8297 from dataease/pr@dev-v2@fix_group-view
fix(数据大屏): 修复数据大屏中的组合组件内部视图标题缩放比例不正确问题
This commit is contained in:
commit
7ba01019cc
@ -46,6 +46,11 @@ const props = defineProps({
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 0
|
||||
},
|
||||
scale: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 1
|
||||
}
|
||||
})
|
||||
const { element, isEdit, showPosition, canvasStyleData, canvasViewInfo, dvInfo, componentData } =
|
||||
@ -71,6 +76,7 @@ const { element, isEdit, showPosition, canvasStyleData, canvasViewInfo, dvInfo,
|
||||
:search-count="searchCount"
|
||||
:prop-value="element.propValue"
|
||||
:show-position="showPosition"
|
||||
:scale="scale * 100"
|
||||
></group-preview>
|
||||
</template>
|
||||
|
||||
|
@ -99,6 +99,7 @@ watch(
|
||||
:canvas-view-info="canvasViewInfo"
|
||||
:is-edit="isEdit"
|
||||
:element="element"
|
||||
:scale="scale"
|
||||
>
|
||||
</canvas-group>
|
||||
</div>
|
||||
|
@ -34,10 +34,15 @@ const props = defineProps({
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 0
|
||||
},
|
||||
scale: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 1
|
||||
}
|
||||
})
|
||||
|
||||
const { propValue, dvInfo, searchCount } = toRefs(props)
|
||||
const { propValue, dvInfo, searchCount, scale } = toRefs(props)
|
||||
|
||||
const customGroupStyle = item => {
|
||||
return {
|
||||
@ -63,6 +68,7 @@ const customGroupStyle = item => {
|
||||
:style="customGroupStyle(item)"
|
||||
:show-position="showPosition"
|
||||
:search-count="searchCount"
|
||||
:scale="scale"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user