mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 修改页面 changeSize 逻辑
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
size="small"
|
||||
v-model:value="canvasConfig.width"
|
||||
:validator="validator"
|
||||
@update:value="chartEditStore.computedScale"
|
||||
@update:value="changeSizeHandle"
|
||||
/>
|
||||
</n-form-item>
|
||||
<n-form-item label="高度">
|
||||
@@ -15,7 +15,7 @@
|
||||
size="small"
|
||||
v-model:value="canvasConfig.height"
|
||||
:validator="validator"
|
||||
@update:value="chartEditStore.computedScale"
|
||||
@update:value="changeSizeHandle"
|
||||
/>
|
||||
</n-form-item>
|
||||
</n-form>
|
||||
@@ -182,6 +182,12 @@ const beforeUploadHandle = async ({ file }) => {
|
||||
return true
|
||||
}
|
||||
|
||||
// 修改尺寸
|
||||
const changeSizeHandle = () => {
|
||||
chartEditStore.computedScale
|
||||
chartEditStore.setPageSize
|
||||
}
|
||||
|
||||
// 清除背景
|
||||
const clearImage = () => {
|
||||
chartEditStore.setEditCanvasConfig(
|
||||
|
||||
@@ -38,6 +38,7 @@ const targetData: Ref<CreateComponentType> = computed(() => {
|
||||
const targetIndex = chartEditStore.fetchTargetIndex()
|
||||
return list[targetIndex]
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user