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

cascadepicker ts类型错误 #341

Open
thinke5 opened this issue Jul 23, 2024 · 1 comment
Open

cascadepicker ts类型错误 #341

thinke5 opened this issue Jul 23, 2024 · 1 comment

Comments

@thinke5
Copy link

thinke5 commented Jul 23, 2024

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

  1. comfirm: (e: { detail: { value: SelectedColumn[] } }) => void;

    comfirm 拼写错误,应该是 confirm


  2. children 应该是可选的

另外 columns 是否可以由 props传入 不用setColumns?某些情况下 columns 是固定的 用setColumns会显得麻烦一些

@sanqi-med
Copy link

另外 columns 是否可以由 props传入 不用setColumns?某些情况下 columns 是固定的 用setColumns会显得麻烦一些

web components 的 props 是不支持复杂数据类型的,使用setColumns 是一种折中的方案

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants