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

fix: 修复 input-excel 在二维数据模式下 plainText 属性不生效问题 #7065

Merged
merged 1 commit into from Jun 9, 2023

Conversation

nwind
Copy link
Contributor

@nwind nwind commented Jun 2, 2023

What

🤖 Generated by Copilot at 7e25a0c

This pull request enhances the InputExcel component by adding a plainText option and refactoring the rich text conversion logic. This improves the user experience and the maintainability of the code.

🤖 Generated by Copilot at 7e25a0c

To make InputExcel more usable
A new option was added, quite suitable
It lets you use plainText
Without any complex
Conversion from richText2PlainString mutable

Why

How

🤖 Generated by Copilot at 7e25a0c

  • Add a new option plainText to the InputExcel component to allow converting excel cell values to plain text or keeping the original formatting (link)
  • Refactor the logic of converting rich text values to plain strings by using a helper function richText2PlainString in InputExcel.tsx (link, link)

@github-actions github-actions bot added the fix label Jun 2, 2023
@github-actions
Copy link

github-actions bot commented Jun 2, 2023

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

Please review the labels and make any necessary changes.

@lurunze1226 lurunze1226 merged commit 30a42fd into baidu:master Jun 9, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants