Package Exports
- stb-decorator
 
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stb-decorator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
使用相同的现代API 快速3KB实现STB(Set Top Box)端React。
Decorator 组件的所有功能:
- 开箱即用的: focus 装饰器
 - 通过简单的继承 Logic 实现翻页数据滚动逻辑
 
技术支持:
- 核心思想源于 TypeScript 装饰器概念
 
decorator 会调用以下生命周期方法:
| 生命周期方法 | 当它被调用时 | 
|---|---|
| <!-- | componentWillMount | 
componentDidMount | 
在组件被挂载到 DOM 之后 | 
componentWillUnmount | 
在从 DOM 中删除之前 | 
componentWillReceiveProps | 
在新道具被接受之前 | 
shouldComponentUpdate | 
在render()之前返回 false跳过渲染 | 
componentWillUpdate | 
render() 之前 | 
componentDidUpdate | 
render() 之后 | 
componentFocusDidUpdate | 
componentDidUpdate()&PageType.Focus&PageType.Blur&setFocus() 之后 | 
更新日志
- ✅ focus - 焦点装饰器
 - ✅ children - 焦点子组件装饰器
 - ✅ 更新 stepLigc and cuteData 增加 toAt 方法 修改 getAt 不改变坐标
 - ✅ 修复装饰器与走马灯相关,失焦走马灯原节点未释放问题
 
versions 0.0.2-beta.8
- ✅ 修复数据装饰器数据源重置时,走马灯文字未及时同步
 - ✅ 修复数据装饰器数据切换自动刷新组件
 
Sponsors
支持我们,并帮助我们继续我们的活动。