VisActor / VisActor/VTable

关于表格的排序,目前初始点击默认都是升序,允许设置默认排序吗

Open
#2,467 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

image

当前逻辑: 发现排序按钮的上下箭头按键不能单独点击来进行控制,目前点击都是按照先升序(上箭头)后降序(下箭头)再取消排序三种顺序来显示。

问题: 在实际的使用中,用户可能一开始就有明确的点击升降序需求,比如点击降序按钮想看降序的数据,但是目前的按钮需要点击两次才能实现降序。

兼容: 如果上下箭头的图标单独点击拆分麻烦,可以提供一个初始排序类型的api吗,比如可以设置第一次点击时默认是先降序/升序,而不是当前的指定升序。

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

No file or test is named in the issue. Start by tracing the table sorting control and its initial sort-direction configuration; done means users can choose whether the first sort is ascending or descending without breaking the existing three-state sorting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.