@liuman/react-workspace 1.4.4 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/Workspace-Cu-5fdR4.js +1463 -0
- package/dist/Workspace-Dz0CyJIn.cjs +1 -0
- package/dist/antd.d.ts +16 -0
- package/dist/components/WindowTabs.d.ts.map +1 -1
- package/dist/components/Workspace.d.ts.map +1 -1
- package/dist/hooks/useWorkspace.d.ts.map +1 -1
- package/dist/react-workspace-antd.cjs +1 -1
- package/dist/react-workspace-antd.js +2 -2
- package/dist/react-workspace.cjs +1 -1
- package/dist/react-workspace.css +1 -1
- package/dist/react-workspace.js +1 -1
- package/dist/types.d.ts +23 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/windowStorage.d.ts +4 -0
- package/dist/utils/windowStorage.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/Workspace-BJJGfZO9.js +0 -1372
- package/dist/Workspace-LroLpOVn.cjs +0 -1
package/README.md
CHANGED
|
@@ -495,6 +495,12 @@ npm install @liuman/react-workspace
|
|
|
495
495
|
|
|
496
496
|
## 版本历史
|
|
497
497
|
|
|
498
|
+
### v1.5.0
|
|
499
|
+
- 新增**未保存标记**:`setWindowDirty(id, dirty)`、`ctx.setDirty(dirty)`,标签名前出现一颗黄点
|
|
500
|
+
- 新增 `onBeforeCloseWindow(window)`:关窗(含批量关)之前问一句,返回 `false` 或 `Promise<false>` 就不关
|
|
501
|
+
- 标签名**刷新保留**:`updateWindowTitle` 改过的名字存进 localStorage,刷新后还在;关窗即忘
|
|
502
|
+
- 黄点不写进 URL / localStorage:刷新后编辑状态本就没了,画回来是撒谎
|
|
503
|
+
|
|
498
504
|
### v1.3.0
|
|
499
505
|
- 新增 `AntdWorkspace` 开箱即用组件
|
|
500
506
|
- 新增 `windows` 映射表,简化调用(无需手写 renderWindow switch)
|