Commit 42dc71551869b03a4959c255538608df42b679a5
Merge branch 'fix/build-error' into 'main_dev'
fix(src): 修改打包,ts类型错误 See merge request yunteng/thingskit-view!246
Showing
4 changed files
with
6 additions
and
6 deletions
... | ... | @@ -14,7 +14,7 @@ export const useChartInteract = ( |
14 | 14 | useChartEditStore: ChartEditStoreType, |
15 | 15 | param: { [T: string]: any }, |
16 | 16 | interactEventOn: string, |
17 | - attrNames: string[] | |
17 | + attrNames?: string[] | |
18 | 18 | ) => { |
19 | 19 | const chartEditStore = useChartEditStore() |
20 | 20 | const { interactEvents } = chartConfig.events | ... | ... |
... | ... | @@ -52,7 +52,7 @@ use([ |
52 | 52 | ]) |
53 | 53 | |
54 | 54 | const option = computed(() => { |
55 | - const mergeThemeData = mergeTheme(props.chartConfig.option, props.themeSetting, includes) | |
55 | + const mergeThemeData = mergeTheme(props.chartConfig.option, props.themeSetting, includes) as unknown as Recordable | |
56 | 56 | Reflect.deleteProperty(mergeThemeData.yAxis, 'min') |
57 | 57 | Reflect.deleteProperty(mergeThemeData.yAxis, 'max') |
58 | 58 | return mergeThemeData | ... | ... |
... | ... | @@ -42,15 +42,14 @@ const checkedKeys = ref([]) |
42 | 42 | |
43 | 43 | const onClick = (v: string[]) => { |
44 | 44 | // nTreeRef.value?.selectedKeys(v) |
45 | - console.log(nTreeRef.value) | |
46 | - console.log(v) | |
47 | 45 | // nTreeRef.value?.onUpdateCheckedKeys(v) |
48 | 46 | if (Array.isArray(v) && v.length == 0) return |
49 | 47 | useChartInteract( |
50 | 48 | props.chartConfig, |
51 | 49 | useChartEditStore, |
52 | 50 | { [ComponentInteractParamsEnum.DATA]: v[0] }, |
53 | - InteractEventOn.CHANGE | |
51 | + InteractEventOn.CHANGE, | |
52 | + [] | |
54 | 53 | ) |
55 | 54 | } |
56 | 55 | </script> | ... | ... |