Cong-Cong Pan
Cong-Cong Pan
个人角度,type alias 语法上更像代数数据类型,或许会受到喜欢函数式编程的程序员青睐。例如 type student = [string, number]; 可以看做元组,type student = {name: string, old: number} 可以看做命名元组。 a & b 可以看做 a 和 b 类型的积(product), a | b 可以看做 a 和...
You are right, with generic is better.
@xiao252 目前内部没有实现 TabBar 相关的 API,需要开发,有兴趣 PR 么?
[@swc/plugin-transform-imports](https://www.npmjs.com/package/@swc/plugin-transform-imports) 可以代替 taro-import-plugin
参照 [next_ssg](https://github.com/vercel/next.js/blob/canary/packages/next-swc/crates/core/src/next_ssg.rs) 编写 taro-ssg-plugin。
9个月了,ant-design 都发 v5 了。
@alicecoding If your want to build your app and start it on iOS simulator, use XCode to open 'ios' directory in project, then click the build button.
@pointhalo 抱歉这么久才回复,`display: none` 无法满足需要,因为期望使用 `hidden` 属性时可以让 `Field` 组件不会渲染 DOM 节点,而非仅仅进行隐藏。 有这种场景,在一个 DOM 节点非常多的情况下,我们仅渲染处于视口中的组件,即虚拟化列表,此时希望 `Field` 内部保存表单状态,但不渲染实际 DOM 节点。