dream-num / univer

Univer is an open-source productivity tool dev kit helping you integrate spreadsheets, docs and slides into your applications.
https://univer.ai
Apache License 2.0
6.71k stars 581 forks source link

[Feature] How to set cells in the WORKBOOK_DATA sheet to be read-only #2549

Closed ManderGao closed 3 months ago

ManderGao commented 3 months ago

初始清单

问题

在luckysheet中可以在init中设置保护单元格只读, Univer中实现是使用权限管控(IPermissionService ),针对vue2使用不友好

解决方案

希望能够简化权限管控

univer-bot[bot] commented 3 months ago

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

Origin Title: [Feature] WORKBOOK_DATA的sheet中如何设置单元格只读

Title: [Feature] How to set cells in the WORKBOOK_DATA sheet to be read-only


Initial list

question

In luckysheet, you can set the protection cell read-only in init. The implementation in Univer is to use permission control (IPermissionService), which is not friendly to vue2.

solution

Hope to simplify permission management and control

hexf00 commented 3 months ago

You can refer to it https://stackblitz.com/~/github.com/awesome-univer/sheets-permission-demo