[Feature] 点击单元格,整行高亮可以加上行上下边框的配置吗,目前用updateoption动态更新样式,导致没法编辑
Open
Nobody has claimed this yet.
feature
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
What problem does this feature solve?
点击单元格,整行高亮可以加上行上下边框的配置吗,
目前动态加需updateoption(),但是用updateoption的话,在点击编辑单元格时候,会更新canvas,导致编辑状态没显示出来的效果。也就是连续刷新,导致没法编辑。
interface SelectionStyle {
// 选中单元格的边框颜色
cellBorderColor?: string;
// 选中单元格的边框线宽度
cellBorderLineWidth?: number;
// 选中单元格的背景颜色
cellBgColor?: string;
// 整行高亮时的背景颜色
inlineRowBgColor?: string;
// 整列高亮时的背景颜色
inlineColumnBgColor?: string;
// 选择框填充模式
selectionFillMode?: 'overlay' | 'replace';
// 选择框大小随滚动动态变化
dynamicUpdateSelectionSize?: boolean;
}。
What does the proposed API look like?
如果可以加上设置该行的上下边框就好
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the issue. Start by reading the SelectionStyle configuration and tracing updateOption() through the row-selection rendering and cell-editing paths; done means row highlights support configurable top and bottom borders without refreshing the canvas in a way that hides edit mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100