perf: 合并dev分支,解决组件无法更新数据的问题

This commit is contained in:
奔跑的面条
2022-06-27 20:37:26 +08:00
39 changed files with 525 additions and 321 deletions
@@ -240,7 +240,7 @@ const beforeUploadHandle = async ({ file }) => {
// 清除背景
const clearImage = () => {
chartEditStore.setEditCanvasConfig(
EditCanvasConfigEnum.BACKGROUND_IAMGE,
EditCanvasConfigEnum.BACKGROUND_IMAGE,
undefined
)
chartEditStore.setEditCanvasConfig(
@@ -292,7 +292,7 @@ const customRequest = (options: UploadCustomRequestOptions) => {
if(uploadRes.code === ResultEnum.SUCCESS) {
chartEditStore.setEditCanvasConfig(
EditCanvasConfigEnum.BACKGROUND_IAMGE,
EditCanvasConfigEnum.BACKGROUND_IMAGE,
uploadRes.data.objectContent.httpRequest.uri
)
chartEditStore.setEditCanvasConfig(
@@ -62,7 +62,7 @@ import { ref, toRefs } from 'vue'
import { icon } from '@/plugins'
import { SettingItemBox } from '@/components/Pages/ChartItemSetting'
import { RequestHttpEnum, ResultEnum } from '@/enums/httpEnum'
import { chartDataUrl, rankListUrl, numberUrl } from '@/api/mock'
import { chartDataUrl, rankListUrl, scrollBoardUrl, numberFloatUrl, numberIntUrl, textUrl, imageUrl } from '@/api/mock'
import { http } from '@/api/http'
import { SelectHttpType } from '../../index.d'
import { ChartDataMatchingAndShow } from '../ChartDataMatchingAndShow'
@@ -82,11 +82,24 @@ const apiList = [
value: `【图表】${ chartDataUrl }`
},
{
value: `表格${ rankListUrl }`
value: `文本${ textUrl }`
},
{
value: `【0~1数${ numberUrl }`
}
value: `【0~100 整数】${ numberIntUrl }`
},
{
value: `【0~1小数】${ numberFloatUrl }`
},
{
value: `【图片地址】${ imageUrl }`
},
{
value: `【排名列表】${ rankListUrl }`
},
{
value: `【滚动表格】${ scrollBoardUrl }`
},
]
// 选项
@@ -40,10 +40,4 @@ const selectOptions: SelectCreateDataType[] = [
value: RequestDataTypeEnum.AJAX
}
]
</script>
<style></style>
<style lang="scss" scoped>
@include go('chart-configurations-data') {
}
</style>
</script>
@@ -123,7 +123,8 @@ const expandHindle = () => {
const selectTarget = computed(() => {
const selectId = chartEditStore.getTargetChart.selectId
if (!selectId) return undefined
// 排除多个
if (selectId.length !== 1) return undefined
return chartEditStore.componentList[chartEditStore.fetchTargetIndex()]
})