@tarojs/shared
Taro 内部使用的 utils。包含了常用的类型判断、错误断言、组件类型/声明/参数等。@tarojs/shared
会跨 node/浏览器/小程序/React Native 使用,不得使用平台特有特性。
引入此包的必须采用 ES6 引用单个模块语法,且打包配置 external 不得包括此包。
Taro utils internal use.
@tarojs/shared
Taro 内部使用的 utils。包含了常用的类型判断、错误断言、组件类型/声明/参数等。@tarojs/shared
会跨 node/浏览器/小程序/React Native 使用,不得使用平台特有特性。
引入此包的必须采用 ES6 引用单个模块语法,且打包配置 external 不得包括此包。
onShareTimeline
(4de12c7)scrollOffset
fix (e8af0a8)path
(#4921) (bef8531)shallowEqual
导出到各程序端 API (279becb)fontSize
of type string
的警告 (bebacd9):
的写法,close #2389 (a0806c5)#
号符,第一次运行需要做一次类型判断,close #1589 (117e5d3)-
需要特殊处理,close #1559 (6f90d14)this.state
的对象没有加入 usedState,close #1492 (9bec112)create-react-app
保持一致 (#1456) (a2ca3b9)this
可能导致爆栈, #1430 (7e48dbe)= =
包裹住 (32627dc)foo
, close #1381 (66424fd)data-e-stop
" (a49df38)Component
(495ca99)properties
可以转化为 defaultProps
(66d691b)name
属性 (#1168) (404c21f)on
开头 (9827866)[].length
的写法时报错 (12d5252)taroKey
alias key
(c95c8b2)children
, close #826 (aba4774)this.props
在 JSX children 中无法使用 (5dd8f12)bind
或 catch 的情况 (6a1670a)BaseComponent
(b2880b1)static properties
(ac16eb0)isNormal
参数,直接返回 ast (7e81930)key
, close #129 (9b660df)state
并且使用过, close #107 (399eae9)