mirror of
https://gitee.com/dromara/go-view.git
synced 2025-10-13 22:12:11 +08:00
feat: 打包代码优化
This commit is contained in:
parent
9a1ecb7243
commit
c10b88d35a
@ -35,7 +35,7 @@
|
|||||||
</n-input-number>
|
</n-input-number>
|
||||||
<n-input-number
|
<n-input-number
|
||||||
:value="marginBottom"
|
:value="marginBottom"
|
||||||
@update:value="v => handleUpdate('y', v)"
|
@update:value="(v: number) => handleUpdate('y', v)"
|
||||||
:min="0"
|
:min="0"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="px"
|
placeholder="px"
|
||||||
@ -47,7 +47,7 @@
|
|||||||
</n-input-number>
|
</n-input-number>
|
||||||
<n-input-number
|
<n-input-number
|
||||||
:value="marginRight"
|
:value="marginRight"
|
||||||
@update:value="v => handleUpdate('x', v)"
|
@update:value="(v: number) => handleUpdate('x', v)"
|
||||||
:min="0"
|
:min="0"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="px"
|
placeholder="px"
|
||||||
|
@ -146,7 +146,7 @@ export const useChartCommonData = (
|
|||||||
else throw Error()
|
else throw Error()
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
window['$message'].error('数据错误')
|
if(!isPreview()) window['$message'].error('数据错误')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,11 +21,11 @@ import {computed} from 'vue'
|
|||||||
import type {Ref} from 'vue'
|
import type {Ref} from 'vue'
|
||||||
import {SettingItemBox} from '@/components/Pages/ChartItemSetting'
|
import {SettingItemBox} from '@/components/Pages/ChartItemSetting'
|
||||||
import {useTargetData} from '../../hooks/useTargetData.hook'
|
import {useTargetData} from '../../hooks/useTargetData.hook'
|
||||||
import {commonDataType} from '@/store/modules/chartEditStore/chartEditStore.d'
|
import {commonDataType, DeviceClassType} from '@/store/modules/chartEditStore/chartEditStore.d'
|
||||||
const {targetData} = useTargetData() as { targetData: Ref<{ commonData: commonDataType, id: string }> }
|
const {targetData} = useTargetData() as { targetData: Ref<{ commonData: commonDataType, id: string }> }
|
||||||
|
|
||||||
const currentObj = computed(() => {
|
const currentObj = computed(() => {
|
||||||
return targetData.value.commonData[targetData.value.commonData.currentSource]
|
return targetData.value.commonData[targetData.value.commonData.currentSource] as DeviceClassType
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user