hellof2e / quark-design

Browser-native component library, framework-agnostic, base on web components.(移动端 UI 组件库,无框架,即插即用。)
https://quark-ecosystem.github.io/quarkd-docs
MIT License
1.9k stars 189 forks source link

cascadepicker ts类型错误 #341

Open thinke5 opened 3 months ago

thinke5 commented 3 months ago

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. https://github.com/hellof2e/quark-design/blob/25f7809af9b19383fd46cf2ae07a09d4a00ac978/packages/quarkd/src/cascadepicker/index.tsx#L35 comfirm 拼写错误,应该是 confirm

  2. https://github.com/hellof2e/quark-design/blob/25f7809af9b19383fd46cf2ae07a09d4a00ac978/packages/quarkd/src/cascadepicker/index.tsx#L19 children 应该是可选的

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

sanqi-med commented 2 months ago

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

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