Skip to content

Latest commit

 

History

History
184 lines (103 loc) · 7.04 KB

CHANGELOG.md

File metadata and controls

184 lines (103 loc) · 7.04 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.6.3 (2022-10-25)

Bug Fixes

  • loadComponentLoader时异步组件时序有可能出现冲突 (4f8ecba)

2.6.2 (2022-08-09)

Bug Fixes

  • 小程序中switchTab相同的页面不触发 (b7cc9c1)

2.6.1 (2022-08-09)

Bug Fixes

  • 小程序中路由back(1,'page')时,会通知原生路由 (086c100)

2.6.0 (2022-08-02)

Features

  • 拆分与UI框架无关的model专用包 (b2a2809)
  • 支持无UI、纯Model (3c6c083)
  • 不再打包react-redux,项目请自行安装

2.5.1 (2022-07-20)

Bug Fixes

  • 在SSR时调用了env.addEventListener (7c163b4)

2.5.0 (2022-07-20)

Features

  • 为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)

Features

  • 支持router.back('')传空值表示退出本站 (987cbc3)

2.3.4 (2022-07-16)

Bug Fixes

  • 去除history依赖引起的bug (3ccc192)

2.3.3 (2022-07-16)

Bug Fixes

  • 无法强制退出应用 (acad73c)

2.3.2 (2022-07-16)

Bug Fixes

  • vue路由切换时被强制刷新 (d7a28ca)

2.3.1 (2022-07-12)

Bug Fixes

  • 路由跳转继承当前classname (fcec6fc)

2.3.0 (2022-07-11)

Bug Fixes

  • react中不能复用Fiber (6da83b9)

Features

  • 1.框架不自动处理路由back时的溢出|2.路由跳转如果不指定classname,将沿用当前window的classname (307ea2a)
  • 路由location中增加state存放任何数据,以替代原来路由跳转方法中的payload参数 (6a0e423)

BREAKING CHANGES

  • 原来router.push({url:'/login'},'page',{data:111}) => 现在router.push({url:'/login',state:{data:111}},'page')

2.2.1 (2022-06-06)

Bug Fixes

  • vue开发小程序时路由初始化不触发 (85810c0)

2.2.0 (2022-06-03)

Bug Fixes

  • 动态设置documentTitle有时出现错误 (2e6a91a)
  • 修复demote兼容IE时的私有Action错误 (defb0f6)

Features

  • 新增方法moduleExists用于探测模块是否存在 (910940a)
  • 支持路由中断 (c0de305)
  • 支持以Dialog的方式跳转路由 (a53d0de)

2.1.0 (2022-05-17)

Bug Fixes

  • 修正RouterInitOptions类型定义错误 (54b2406), closes #7

Features

2.0.1 (2022-05-04)

Bug Fixes

  • 某些小程序启动时不能同步获取launchOptions (63a023b), closes #4
  • 支付宝小程序onLaunch执行滞后 (7817ff8)

2.0.0 (2022-04-25)

Features