思源笔记社区正在搭建中,现邀您共建
SiYuan Community is under construction. Join us to co-build.
/api/av/setAttributeViewBlockAttr设置具体的每个列数据,不过,思源新版本提供了批量修改列数据的方法 /api/av/batchSetAttributeViewBlockAttrs,使用方法 https://github.com/siyuan-note/siyuan/issues/15310#issuecomment-3079412833 ,这样就完美实现了添加新行且带绑定块。/api/av/setAttributeViewBlockAttr/api/av/renderAttributeView/api/av/renderAttributeView查询和解析实现/api/av/removeAttributeViewBlocks即可,可批量删除/api/av/getAttributeViewKeysByAvID 参考 https://ld246.com/article/1733365731025#%E8%8E%B7%E5%8F%96%E6%95%B0%E6%8D%AE%E5%BA%93%E7%9A%84%E6%89%80%E6%9C%89key-%E5%88%97id--api-av-getAttributeViewKeysByAvID/api/av/renderAttributeView结果的解析和存储实现,新版也提供了块id和rowID的转换 /api/av/getAttributeViewBoundBlockIDsByItemIDs 和 /api/av/getAttributeViewItemIDsByBoundIDs