VisActor / VisActor/VTable

[Feature] 希望原生支持一下 表格选中的时候 禁掉外部的userSelect

Open
#2,865 2 comments 0 reactions 0 assignees View on GitHub

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?

希望原生支持一下 表格选中的时候 禁掉外部的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(

{ // if (e.button === 0) { // document.body.style.userSelect = 'none'; // const handleMouseUp = () => { // document.body.style.userSelect = ''; // document.removeEventListener('mouseup', handleMouseUp); // }; // document.addEventListener('mouseup', handleMouseUp); // } // }} > 选中表格上下左右拖拽滚动不会被选中文字 选中表格上下左右拖拽滚动不会被选中文字 );

// release openinula instance, do not copy
window.customRelease = () => {
root.unmount();
};`
https://visactor.io/vtable/demo-react/usage/option
image

What does the proposed API look like?

希望原生支持一下 表格选中的时候 禁掉外部的userSelect

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.