We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crud中的bulkActions给crud本身设置值,但设置成功后值并未发生变化
接口返回的demo属性值为demo,点击headtoolbar中的按钮后设置demo的值为123,但是按钮上显示的文字并没有发生变化
但是通过crud外部的按钮进行setValue却能触发更新
粘贴代码到文档即可复现
{"type":"page","body":[{"type":"button","label":"点我-${demo}","onEvent":{"click":{"actions":[{"actionType":"setValue","componentId":"deptTree","args":{"value":{"demo":"333"}}}]}}},{"type":"crud","id":"deptTree","api":{"method":"get","url":"https://mock.apifox.cn/m2/2205290-0-default/66104506","adaptor":"return {data: {demo: \'demo\', rows: []}}"},"columns":[{"name":"label","label":"名称"}],"headerToolbar":[{"type":"button","label":"点我-${demo}","onEvent":{"click":{"actions":[{"actionType":"setValue","componentId":"deptTree","args":{"value":{"demo":"1,2,3"}}}]}}}]}]}
fix: 修复 10126 引发的模型页面编辑器不可拖拽问题
是否有其它方法解决编辑器不可拖拽的问题?
The text was updated successfully, but these errors were encountered:
👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.
Sorry, something went wrong.
fix(amis): table嵌套在crud下面,setValue时通过crud进行操作,解决crud的setValue动作失效的问题
c0d41bb
Closes baidu#11453
Successfully merging a pull request may close this issue.
描述问题:
crud中的bulkActions给crud本身设置值,但设置成功后值并未发生变化
接口返回的demo属性值为demo,点击headtoolbar中的按钮后设置demo的值为123,但是按钮上显示的文字并没有发生变化
但是通过crud外部的按钮进行setValue却能触发更新
截图或视频:
如何复现(请务必完整填写下面内容):
粘贴代码到文档即可复现
排查发现store.IRenderer的updateData.demo值已经发生了变化,但是store.crud中的self.data.demo的值还是接口返回的值,并没有变化
最终定位到是11月这个改动引起.
fix: 修复 10126 引发的模型页面编辑器不可拖拽问题
因为将id向下透传给table,导致事件触发时查找到的组件是table而非crud,最终调用了table的setData属性进行赋值。
是否有其它方法解决编辑器不可拖拽的问题?
The text was updated successfully, but these errors were encountered: