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

Grid Col ts type error #4226

Closed
1 task done
mivui opened this issue Jun 18, 2021 · 3 comments
Closed
1 task done

Grid Col ts type error #4226

mivui opened this issue Jun 18, 2021 · 3 comments
Labels

Comments

@mivui
Copy link

mivui commented Jun 18, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.0-beta.3

Environment

vue3.1.1 vite 2.3.7

Reproduction link

Steps to reproduce

What is expected?

https://github.com/vueComponent/ant-design-vue/blob/next/components/grid/Col.tsx#L11
Inconsistent compilation

            md?: string | number | {
                span: string | number;
                order: string | number;
                offset: string | number;
                push: string | number;
                pull: string | number;
            };
            sm?: string | number | {
                span: string | number;
                order: string | number;
                offset: string | number;
                push: string | number;
                pull: string | number;
            };
            xs?: string | number | {
                span: string | number;
                order: string | number;
                offset: string | number;
                push: string | number;
                pull: string | number;
            };

What is actually happening?

image
fix

  xs?: string | number | {
                span?: string | number;
                order?: string | number;
                offset?: string | number;
                push?: string | number;
                pull?: string | number;
            };
@zkwolf
Copy link
Member

zkwolf commented Jun 18, 2021

Welcome pr

@mivui
Copy link
Author

mivui commented Jun 18, 2021

https://github.com/vueComponent/ant-design-vue/blob/next/components/grid/Col.tsx#L32
network problems cannot be pr
fix

export const colSize = PropTypes.shape<ColSize>({

test passed

tangjinzhou added a commit that referenced this issue Jun 19, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants