alibaba / alibaba/lowcode-engine
setter多个配置无法联动的问题
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
我有两个setter,动画类型选完后第二个配置项的值会动态改变,目前通过extraProps下的setValue和getValue方法。

点击之后会赋值第二个选择器,可是第二个选择器没有立即更新。需要切换下设计面板的组件重新点一下才能重新渲染上新的配置项


附录:meta.js
```
{
setter: {
name:"aos",
componentName: 'ObjectSetter',
props: {
config: {
items: [
{
name: 'animation',
title: '动画类型',
setter: {
componentName: 'SelectSetter',
initialValue: '',
props: {
mode: 'single',
options: [
{
title: '默认',
value: '',
},
{
title: '淡入淡出',
value: 'fade',
},
{
title: '翻转',
value: 'flip',
},
{
title: '滑动',
value: 'slide',
},
{
title: '缩放',
value: 'zoom',
},
],
},
},
extraProps: {
setValue: (target, value) => {
const aos = target.getNode().settingEntry.get('aos.direction')
aos.setter.props.options = [{
title:"测试",
value: "dasa"
}]
},
getValue:(target) => {
const animation = target.getProps().getPropValue('aos.animation');
console.log('animation',animation)
return animation
}
}
},
{
name: 'direction',
title: '动画方向',
setter: {
componentName: 'SelectSetter',
props: {
options: [],
},
}
},
],
},
},
},
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.