[Feature] 希望原生支持一下 表格选中的时候 禁掉外部的userSelect
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
What problem does this feature solve?
希望原生支持一下 表格选中的时候 禁掉外部的userSelect
`// import * as ReactVTable from '@visactor/react-vtable';
const option = {
columns: [
{
field: '0',
title: 'name'
},
{
field: '1',
title: 'age'
},
{
field: '2',
title: 'gender'
},
{
field: '3',
title: 'hobby'
}
],
records: new Array(1000).fill(['John', 18, 'male', '🏀'])
};
const root = ReactDom.createRoot(document.getElementById(CONTAINER_ID));
root.render(
// release openinula instance, do not copy
window.customRelease = () => {
root.unmount();
};`
https://visactor.io/vtable/demo-react/usage/option
What does the proposed API look like?
希望原生支持一下 表格选中的时候 禁掉外部的userSelect
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
Start from the React usage example and the ListTable selection and drag-scrolling behavior described in the issue. Trace how selection events are handled and identify the relevant tests or entry point; done means dragging within the table does not select surrounding page text without requiring a consumer-level mouse handler.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100