在 SpreadJS V14 新版本中,将允许用户对批注标识进行自定义,效果如下:
# 改变颜色
- sheet.comments.add(5, 5, 'new comment!');
- sheet.comments.get(5, 5).indicatorColor('blue');
复制代码
#改变大小
- sheet.comments.add(5, 5, 'new comment!');
- sheet.comments.get(5, 5).indicatorColor('blue');
- sheet.comments.get(5, 5).indicatorSize(20);
复制代码
- indicatorSize : number && > 1
- indicatorColor: string (if a illegal color, indicator color will be set to #000000, but return the illegal value)
- you can set color like these strings:
- 'blue'
- '#000000'
- 'rgba(255, 255, 0, 0.5)'
|
|