Skip to content

请问 vc-drawings 组件的预添加数据如何设置自定义属性 #435

Answered by zouyaoji
Qvod asked this question in Q&A
Discussion options

You must be logged in to vote

你好,现在更推荐给组件绑定ref,通过ref获取到给每个action的renderDatas来预添加数据。例如

drawingsRef.value.getDrawingActionInstances()[2].cmpRef.value.renderDatas.value

自定义属性也可以一并加进去。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Qvod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants