alibaba / x-render

🚴‍♀️ 阿里 - 很易用的中后台「表单 / 表格 / 图表」解决方案
https://xrender.fun
6.98k stars 988 forks source link

自定义labelWidget 能否在props中返回额外的参数信息呢? #1427

Closed xyy7260 closed 10 months ago

xyy7260 commented 10 months ago

请问一下, 要做一些特定的功能 labelWidget 需要获取 当前表单的 value 或者 返回参数全路径。(包括重复添加的的那些)

不过目前labelwidget 只返回了schema 。

能否支持呢。

如果不支持的话就直接关闭issues 谢谢

lhbxs commented 10 months ago

更新版本,支持访问 addons,对象包含 值路径 dataPath,schema 路径 schemaPath,一级 form 的操作方法

xyy7260 commented 10 months ago

@lhbxs 哈哈哈太感谢了!