fix: 修改自适应比例

This commit is contained in:
MTrun 2022-03-03 09:57:48 +08:00
parent 499f36bc62
commit 7412c777ee

View File

@ -80,24 +80,24 @@ const { lockScale, scale } = toRefs(chartEditStore.getEditCanvas)
//
let filterOptions = [
{
label: '自适应',
value: 0
},
{
label: '50%',
value: 50
},
{
label: '100%',
value: 100
label: '200%',
value: 200
},
{
label: '150%',
value: 150
},
{
label: '200%',
value: 200
label: '100%',
value: 100
},
{
label: '50%',
value: 50
},
{
label: '自适应',
value: 0
}
]
@ -115,17 +115,14 @@ const selectHandle = (v: number) => {
//
const lockHandle = () => {
chartEditStore.setEditCanvas(
ChartEditStoreEnum.LOCK_SCALE,
!lockScale.value
)
chartEditStore.setEditCanvas(ChartEditStoreEnum.LOCK_SCALE, !lockScale.value)
}
//
const sliderValue = ref(100)
//
const sliderFormatTooltip = (v: string) => `${v}%`
const sliderFormatTooltip = (v: string) => `${v}%`
//
const sliderHandle = (v: number) => {
@ -161,7 +158,7 @@ const shortcutKeyOptions = [
{
label: 'Ctrl + Shift + Z 前进',
value: '6'
},
}
]
// scale