Merge branch 'master-fetch-dev' into master-fetch

This commit is contained in:
奔跑的面条 2024-11-26 09:58:49 +08:00
commit 08f1b8380f
2 changed files with 14 additions and 5 deletions

View File

@ -8,8 +8,8 @@
<n-input-number v-model:value="optionData.size" size="small" :min="0" placeholder="尺寸"></n-input-number>
</setting-item>
</setting-item-box>
<setting-item-box name="旋转">
<setting-item name="旋转">
<setting-item-box name="快捷旋转">
<setting-item name="也可使用通用的【变换】来旋转">
<n-select v-model:value="optionData.rotate" size="small" :options="rotateMode"></n-select>
</setting-item>
</setting-item-box>
@ -35,15 +35,15 @@ const rotateMode = [
label: '0°'
},
{
value: 1,
value: 90,
label: '90°'
},
{
value: 2,
value: 180,
label: '180°'
},
{
value: 3,
value: 270,
label: '270°'
}
]

View File

@ -36,6 +36,8 @@
import { computed, PropType, toRefs, watch, reactive, ref } from 'vue'
import { CreateComponentType } from '@/packages/index.d'
import { icon } from '@/plugins'
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
import { useChartDataFetch } from '@/hooks'
const props = defineProps({
chartConfig: {
@ -83,6 +85,13 @@ watch(
deep: true
}
)
// setdata
useChartDataFetch(props.chartConfig, useChartEditStore, (newData: any) => {
props.chartConfig.option.dataset = newData
})
</script>
<style lang="scss" scoped>