Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: CRUD组件matchFunc支持使用matchSorter函数; docs: 前端分页的使用提示 #8862

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

lurunze1226
Copy link
Collaborator

@lurunze1226 lurunze1226 commented Nov 23, 2023

What

🤖[deprecated] Generated by Copilot at bac12a2

This pull request adds support for custom matching functions in the CRUD component, using the matchSorter library. It also adds a custom editor control for editing the matching function code, and fixes some minor issues and improves documentation in the CRUDStore class. It modifies the files crud.ts, CRUD.tsx, MatchFunc.jsx, and APIAdaptorControl.tsx.

🤖[deprecated] Generated by Copilot at bac12a2

Sing, O Muse, of the skillful coder who enhanced the CRUD store
With matchSorter, a wondrous function, swift and subtle as Hermes
He exported genCodeSchema from the APIAdaptorControl
And crafted a custom editor, shining and splendid as Apollo

Why

How

🤖[deprecated] Generated by Copilot at bac12a2

  • Add a custom editor control for the matchFunc property of the CRUD component (link)
  • Import the genCodeSchema function from the APIAdaptorControl component to generate the code schema for the function parameters (link, link)
  • Add the matchSorter function to the MatchFunc interface and the CRUDStore class (link, link, link, link, link)
    • Import the MatchSorterOptions type from the match-sorter library to document the possible options for the function (link)
  • Add a type annotation for the matchSorter function in the MatchFunc component (link)

@github-actions github-actions bot added doc optimizing document feat labels Nov 23, 2023
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@igrowp igrowp merged commit a60d174 into baidu:master Nov 23, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc optimizing document feat
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants