Commit 56bf8331681e1480dfbfdedc950b161e3d01fa2f
1 parent
e364d8bd
fix(src/packages/components): 下拉选择和图表联动功能测试未生效
Showing
2 changed files
with
3 additions
and
6 deletions
| @@ -93,6 +93,7 @@ const extraValue = (object: Recordable) => { | @@ -93,6 +93,7 @@ const extraValue = (object: Recordable) => { | ||
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | const handleParams = (Params: Recordable) => { | 95 | const handleParams = (Params: Recordable) => { |
| 96 | + Reflect.deleteProperty(Params, 'attrName') | ||
| 96 | if (Params.keys && Params?.keys?.length) { | 97 | if (Params.keys && Params?.keys?.length) { |
| 97 | // 过滤无效参数 | 98 | // 过滤无效参数 |
| 98 | Reflect.deleteProperty(Params, 'attrName') | 99 | Reflect.deleteProperty(Params, 'attrName') |
| @@ -56,12 +56,8 @@ export const useChartInteract = ( | @@ -56,12 +56,8 @@ export const useChartInteract = ( | ||
| 56 | } | 56 | } |
| 57 | // | 57 | // |
| 58 | Object.keys(item.interactFn).forEach(key => { | 58 | Object.keys(item.interactFn).forEach(key => { |
| 59 | - if (Params.value[key]) { | ||
| 60 | - Params.value[key] = param[item.interactFn[key]] | ||
| 61 | - } | ||
| 62 | - if (Header.value[key]) { | ||
| 63 | - Header.value[key] = param[item.interactFn[key]] | ||
| 64 | - } | 59 | + Params.value[key] = param[item.interactFn[key]] |
| 60 | + Header.value[key] = param[item.interactFn[key]] | ||
| 65 | }) | 61 | }) |
| 66 | } | 62 | } |
| 67 | } | 63 | } |