All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
2.6.3 (2022-10-25)
- loadComponentLoader时异步组件时序有可能出现冲突 (4f8ecba)
2.6.2 (2022-08-09)
- 小程序中switchTab相同的页面不触发 (b7cc9c1)
2.6.1 (2022-08-09)
- 小程序中路由back(1,'page')时,会通知原生路由 (086c100)
2.6.0 (2022-08-02)
2.5.1 (2022-07-20)
- 在SSR时调用了env.addEventListener (7c163b4)
2.5.0 (2022-07-20)
- 为vue增加connectStore方法 (f0cc1d7)
现在您可以在vue项目中使用类似react-redux的connect()方法:connectStore(...)
参见最新模版...
export interface StoreProps {
curView?: CurView;
curRender?: CurRender;
itemDetail?: ItemDetail;
}
function mapStateToProps(appState: APPState): StoreProps {
const {curView, curRender, itemDetail} = appState.article!;
return {curView, curRender, itemDetail};
}
const Component = defineComponent({
setup() {
const storeProps = connectStore(mapStateToProps);
return () => {
const {curView, curRender, itemDetail, dispatch} = storeProps;
return (
<Switch elseView={<ErrorPage />}>
{curView === 'list' && curRender === 'maintain' && <Maintain />}
{curView === 'list' && curRender === 'index' && <Index />}
{curView === 'item' && curRender === 'detail' && <Detail itemDetail={itemDetail} />}
{curView === 'item' && curRender === 'edit' && <Edit itemDetail={itemDetail} />}
</Switch>
);
};
},
});
2.4.0 (2022-07-16)
- 支持router.back('')传空值表示退出本站 (987cbc3)
2.3.4 (2022-07-16)
- 去除history依赖引起的bug (3ccc192)
2.3.3 (2022-07-16)
- 无法强制退出应用 (acad73c)
2.3.2 (2022-07-16)
- vue路由切换时被强制刷新 (d7a28ca)
2.3.1 (2022-07-12)
- 路由跳转继承当前classname (fcec6fc)
2.3.0 (2022-07-11)
- react中不能复用Fiber (6da83b9)
- 1.框架不自动处理路由back时的溢出|2.路由跳转如果不指定classname,将沿用当前window的classname (307ea2a)
- 路由location中增加state存放任何数据,以替代原来路由跳转方法中的payload参数 (6a0e423)
- 原来router.push({url:'/login'},'page',{data:111}) => 现在router.push({url:'/login',state:{data:111}},'page')
2.2.1 (2022-06-06)
- vue开发小程序时路由初始化不触发 (85810c0)
2.2.0 (2022-06-03)
2.1.0 (2022-05-17)
- 补充部分API (4ae5479)