dream-num / univer

Univer is an isomorphic full-stack framework for creating and editing spreadsheets, docs, and slides across client and server.
https://univer.ai
Apache License 2.0
7.53k stars 654 forks source link

[Feature] Regional protection permissions [It is expected to support the direct deletion of regional protection permissions within the regional scope] #4165

Open 18860852449 opened 1 week ago

18860852449 commented 1 week ago

初始清单

问题

场景:页面加载时后,整个sheet的单元格都进入禁止编辑状态,此时会调用后端 API 得到多组区域范围,然后期望可以调用 Facade API 来将这些区域范围的禁止编辑状态更改为可编辑状态。 问题:const permission = univerAPI.getPermission();permission.removeRangeProtection(unitId, subUnitId, ruleIds); 目前官方提供的这个 API 需要 ruleIds,而我的场景是不存在 ruleIds 的 期望:我期望可以直接根据多组区域范围 来删除区域保护权限

univer-bot[bot] commented 1 week ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Feature] 区域保护权限[期望支持区域范围直接删除区域保护权限]

Title: [Feature] Regional protection permissions [It is expected to support the direct deletion of regional protection permissions within the regional scope]


Initial list

question

Scenario: After the page is loaded, the cells in the entire sheet enter the edit-prohibited state. At this time, the back-end API is called to obtain multiple sets of area ranges, and then the Facade API is expected to be called to change the edit-prohibited state of these area ranges to editable. state. Problem: const permission = univerAPI.getPermission();permission.removeRangeProtection(unitId, subUnitId, ruleIds); The currently officially provided API requires ruleIds, but ruleIds does not exist in my scenario. Expectation: I expect to be able to delete zone protection permissions directly based on multiple sets of zone ranges