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

[ConfigProvider]ConfigProvider.config类型不支持 JSXConstructor 类型的组件 #4751

Closed
YSMJ1994 opened this issue Feb 20, 2024 · 0 comments · Fixed by #4754
Closed
Assignees
Labels
🐞 Bug Something isn't working Next release issues to close in next release

Comments

@YSMJ1994
Copy link
Contributor

YSMJ1994 commented Feb 20, 2024

Component

ConfigProvider

Steps to reproduce

不支持 JSXConstructor 类型组件

function Demo() {
    return <div></div>
}

const ConfiguredDemo = ConfigProvider.config(Demo); // throw types error

Props 类型异常

interface Props {
    name:  string;
   // name?: string;   // 若 name 非必填则不会类型异常
}
const Demo: FC<Props> = ({ name }) => {
    return <div>{name}</div>
}

const ConfiguredDemo = ConfigProvider.config(Demo); // throw types error
@YSMJ1994 YSMJ1994 self-assigned this Feb 20, 2024
@YSMJ1994 YSMJ1994 added the 🐞 Bug Something isn't working label Feb 20, 2024
@YSMJ1994 YSMJ1994 linked a pull request Feb 21, 2024 that will close this issue
@YSMJ1994 YSMJ1994 added the Next release issues to close in next release label Feb 21, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in DAILY WORK Feb 21, 2024
@YSMJ1994 YSMJ1994 moved this from 🆕 New to 👀 In review in DAILY WORK Feb 21, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to Ready to release in DAILY WORK Feb 22, 2024
@YSMJ1994 YSMJ1994 moved this from Ready to release to ✅ Done in DAILY WORK Feb 27, 2024
zizairufengLT added a commit to zizairufengLT/next that referenced this issue Mar 15, 2024
chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): upgrade test tools

chore(Tree): upgrade test tools

chore(Tree): upgrade test tools

chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): ts improve

chore(Tree): upgrade test tools

chore(Tree): ts improve

chore(Tree): docs improve

chore(Tree): ts improve

fix(Tree): expand action area should not shrink when the content is oversize, close alibaba-fusion#4689 (alibaba-fusion#4723)

* fix(Tree): [Tree] content whit long text align-right issue, close alibaba-fusion#4689

* chore(Tree): remove unnecessary css specificity  close alibaba-fusion#4689

* chore(Tree): ret test code,close alibaba-fusion#4689

* chore(Tree): update test code ,close alibaba-fusion#4689

---------

Co-authored-by: lancely <[email protected]>

chore(Animate): fix accidental test error

fix(Menu): should update layout when children size changed, close alibaba-fusion#4640 (alibaba-fusion#4722)

* fix(Menu): fix menu async load items renderMore issues, close alibaba-fusion#4640

* chore(Menu): update test: menu async load items renderMore issues, close alibaba-fusion#4640

* fix(Menu): update fix menu async load items renderMore issues, close alibaba-fusion#4640

* fix(Menu): update for fix menu async load items renderMore issues, close alibaba-fusion#4640

* fix(Menu): format code for fix menu async load items renderMore issues, close alibaba-fusion#4640

* fix(Menu): format codes for fix menu async load items renderMore issues, close alibaba-fusion#4640

---------

Co-authored-by: lancely <[email protected]>

chore(Box): rename to ts

refactor(Box): convert to TypeScript, impove docs and tests

feat(Input): TextArea support hasClear, close alibaba-fusion#4334 (alibaba-fusion#4714)

* feat(Input): textarea support hasClear, close alibaba-fusion#4334

* feat(Input): textarea code optimization , close alibaba-fusion#4334

* feat(Input): modify the class name of the clear button close alibaba-fusion#4334

* feat(Input): Internationalization

---------

Co-authored-by: WB01081293 <[email protected]>

chore(Search): rename to ts

refactor(Search): convert to TypeScript, impove docs and tests

feat(Search): restore code logic

chore(BuildTool): remove node-sass in deep dependencies

fix(Rating): fix grade background, close alibaba-fusion#4734 (alibaba-fusion#4735)

Co-authored-by: chenkeyao.chenkeya <[email protected]>

docs(*): Generate docs from tsdoc

chore(*): Release-1.27.3

fix(Util): compatibility breaking introduced by Object.hasOwn

chore(*): apply assignSubComponent util

chore(*): Release-1.27.4

chore(BuildTool): sync together

refactor(Grid): convert to TypeScript, impove docs and tests

refactor(Grid):  impove docs and types

refactor(Grid): improve typescript

refactor(Grid): rename to ts

refactor(Grid): improve typescript

chore(List): rename files to ts

refactor(List): convert to TypeScript, impove docs and tests

refactor(List): improve docs

refactor(List): improve docs

test(Animate): add log for debugging accidental failed expand test case

chore(Validate): rename to ts

refactor(Validate): convert to TypeScript, improve tests

test(Validate): improve for pr comments

chore(BuildTool): move index.html to serve dir

chore(BuildTool): improve jsx adjustment

fix(TimePicker2): should has focus style when visible, close alibaba-fusion#4657 (alibaba-fusion#4738)

* fix(TimePicker2): TimePicker2 focusing issue  noborder, close alibaba-fusion#4657

* fix(TimePicker2): Update test TimePicker2 focusing issue noborder, close alibaba-fusion#4657

---------

Co-authored-by: lancely <[email protected]>

refactor(Cascader): rename filename to ts

refactor(Cascader): ts improve

refactor(Cascader): doc improve

refactor(Cascader): test improve

refactor(Cascader): fix comments issue

fix(ConfigProvider): improve config types, close alibaba-fusion#4751

chore(*): export scoped type for make compiled types simply

chore(ConfigProvider): improve for codereview

fix(Overlay): shouldUpdatePosition when status is mounting or none, close alibaba-fusion#4740

chore(*): Release-1.27.5-beta.0

fix(Overlay): solve problems caused by numerical floating, close alibaba-fusion#4740

chore(*): Release-1.27.5-beta.1

fix(*): rollback alibaba-fusion#4746 and fix textarea clear spec

chore(*): Release-1.27.5

Update stale.yml

chore(BuildTool): 支持指定主题包调试`run start --theme xxx`

chore(DatePicker): fix theme demo margin, close alibaba-fusion#3627

chore(Tree): upgrade test tools

chore(Tree): ts improve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working Next release issues to close in next release
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant