mirror of
https://github.com/palxiao/poster-design.git
synced 2025-07-15 16:02:19 +08:00
merge: feat-pinia branch
This commit is contained in:
parent
230ef546d2
commit
912a5a7ed6
@ -43,7 +43,8 @@ import { reactive, toRefs, onMounted } from 'vue'
|
||||
import api from '@/api'
|
||||
// import wImage from '../../widgets/wImage/wImage.vue'
|
||||
import wImageSetting from '../../widgets/wImage/wImageSetting'
|
||||
import wSvg from '../../widgets/wSvg/wSvg.vue'
|
||||
import { wSvgSetting } from '../../widgets/wSvg/wSvgSetting'
|
||||
// import wSvg from '../../widgets/wSvg/wSvg.vue'
|
||||
// import { useStore } from 'vuex'
|
||||
import setImageData from '@/common/methods/DesignFeatures/setImage'
|
||||
import DragHelper from '@/common/hooks/dragHelper'
|
||||
@ -193,7 +194,7 @@ async function selectItem(item: TGetListData) {
|
||||
// store.commit('setShowMoveable', false) // 清理掉上一次的选择
|
||||
controlStore.setShowMoveable(false) // 清理掉上一次的选择
|
||||
|
||||
let setting = item.type === 'svg' ? JSON.parse(JSON.stringify(wSvg.setting)) : JSON.parse(JSON.stringify(wImageSetting))
|
||||
let setting = item.type === 'svg' ? JSON.parse(JSON.stringify(wSvgSetting)) : JSON.parse(JSON.stringify(wImageSetting))
|
||||
const img = await setImageData(item)
|
||||
|
||||
setting.width = img.width
|
||||
|
Loading…
x
Reference in New Issue
Block a user