sheet.setIsProtected(true)
_forEach(selList, (point) => {
const {col, row} = point
const comment = new GcSpread.Sheets.Comment()
comment.text(commentValue)
comment.backColor('yellow')
comment.foreColor('green')
comment.locked(false)
comment.lockText(false)
comment.displayMode(GcSpread.Sheets.DisplayMode.HoverShown)
sheet.setComment(row, col, comment)
})
sheet.setIsProtected(true)
设置了也是可以编辑呢。 |