@zat-design/sisyphus-react 4.5.6-beta.3 → 4.5.6
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/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProLayout/components/ProCollapse/index.js +3 -1
- package/es/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +1 -1
- package/es/ProLayout/components/TabsManager/components/TabContextMenu.js +16 -1
- package/es/ProLayout/components/TabsManager/components/TabItem.d.ts +6 -0
- package/es/ProLayout/components/TabsManager/components/TabItem.js +26 -3
- package/es/ProLayout/components/TabsManager/hooks/useTabsState.js +56 -12
- package/es/ProLayout/components/TabsManager/index.js +59 -29
- package/es/ProLayout/components/TabsManager/propTypes.d.ts +10 -0
- package/es/ProLayout/components/TabsManager/style/index.less +12 -0
- package/es/ProLayout/components/TabsManager/utils/index.d.ts +32 -0
- package/es/ProLayout/components/TabsManager/utils/index.js +106 -1
- package/es/ProLayout/propTypes.d.ts +21 -0
- package/es/ProLayout/style/index.less +17 -1
- package/es/locale/en_US.d.ts +2 -0
- package/es/locale/en_US.js +3 -1
- package/es/locale/zh_CN.d.ts +2 -0
- package/es/locale/zh_CN.js +3 -1
- package/package.json +2 -1
|
@@ -129,6 +129,10 @@ export interface MenusType {
|
|
|
129
129
|
* @default "_self"
|
|
130
130
|
*/
|
|
131
131
|
target?: '_blank' | '_parent' | '_self' | '_top';
|
|
132
|
+
/**
|
|
133
|
+
* @description 标签页关联键;相同关联键的业务详情重复打开时复用已有标签页
|
|
134
|
+
*/
|
|
135
|
+
relationKey?: string | number;
|
|
132
136
|
/**
|
|
133
137
|
* @description 允许扩展字段
|
|
134
138
|
*/
|
|
@@ -324,6 +328,11 @@ export interface TabItem {
|
|
|
324
328
|
* @description 是否可关闭
|
|
325
329
|
*/
|
|
326
330
|
closable: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* @description 是否固定标签(本质状态)。固定后不可关闭并排入左侧固定区;
|
|
333
|
+
* closable 为其派生结果(pinned 时 closable=false)。未设置时以 closable===false 推导。
|
|
334
|
+
*/
|
|
335
|
+
pinned?: boolean;
|
|
327
336
|
/**
|
|
328
337
|
* @description 关联菜单项
|
|
329
338
|
*/
|
|
@@ -336,6 +345,10 @@ export interface TabItem {
|
|
|
336
345
|
* @description 图标
|
|
337
346
|
*/
|
|
338
347
|
icon?: ReactNode | string;
|
|
348
|
+
/**
|
|
349
|
+
* @description 标签页关联键;用于业务详情页复用已有标签页
|
|
350
|
+
*/
|
|
351
|
+
relationKey?: string | number;
|
|
339
352
|
}
|
|
340
353
|
export interface TabsState {
|
|
341
354
|
tabsList: TabItem[];
|
|
@@ -361,6 +374,10 @@ export interface AddTabParams {
|
|
|
361
374
|
* @description 额外的业务数据
|
|
362
375
|
*/
|
|
363
376
|
extra?: Record<string, any>;
|
|
377
|
+
/**
|
|
378
|
+
* @description 标签页关联键;相同关联键的业务详情重复打开时复用已有标签页
|
|
379
|
+
*/
|
|
380
|
+
relationKey?: string | number;
|
|
364
381
|
}
|
|
365
382
|
/**
|
|
366
383
|
* @description 添加标签页的选项
|
|
@@ -397,6 +414,10 @@ export interface UpdateTabParams {
|
|
|
397
414
|
* @description 是否可关闭
|
|
398
415
|
*/
|
|
399
416
|
closable?: boolean;
|
|
417
|
+
/**
|
|
418
|
+
* @description 是否固定标签(本质状态,driven closable)
|
|
419
|
+
*/
|
|
420
|
+
pinned?: boolean;
|
|
400
421
|
}
|
|
401
422
|
/**
|
|
402
423
|
* @description 获取标签页信息返回值
|
|
@@ -308,7 +308,9 @@
|
|
|
308
308
|
// 高度动画:CSS Grid 技巧,支持不定高度平滑过渡
|
|
309
309
|
display: grid;
|
|
310
310
|
grid-template-rows: 0fr;
|
|
311
|
-
transition:
|
|
311
|
+
transition:
|
|
312
|
+
margin-left 0.3s cubic-bezier(0.2, 0, 0, 1),
|
|
313
|
+
grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
312
314
|
|
|
313
315
|
// 菜单展开时与内容区同步右移
|
|
314
316
|
&.tabs-menu-open {
|
|
@@ -383,6 +385,20 @@
|
|
|
383
385
|
border-radius: 0;
|
|
384
386
|
padding-top: var(--zaui-space-size-md, 16px);
|
|
385
387
|
border-top-right-radius: var(--zaui-border-radius, 8px);
|
|
388
|
+
|
|
389
|
+
.pro-layout-tabs-content {
|
|
390
|
+
> .tab-pane {
|
|
391
|
+
> .pro-header.pro-header-no-describe:first-child {
|
|
392
|
+
padding: 0 !important;
|
|
393
|
+
|
|
394
|
+
.pro-header-title,
|
|
395
|
+
.pro-header-top {
|
|
396
|
+
margin: 0;
|
|
397
|
+
padding: 0;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
386
402
|
}
|
|
387
403
|
}
|
|
388
404
|
|
package/es/locale/en_US.d.ts
CHANGED
package/es/locale/en_US.js
CHANGED
|
@@ -13,7 +13,9 @@ export default {
|
|
|
13
13
|
tabMenuClose: 'Close',
|
|
14
14
|
tabMenuCloseOthers: 'Close others',
|
|
15
15
|
tabMenuCloseRight: 'Close tabs to the right',
|
|
16
|
-
tabMenuCloseAll: 'Close all'
|
|
16
|
+
tabMenuCloseAll: 'Close all',
|
|
17
|
+
tabMenuPin: 'Pin tab',
|
|
18
|
+
tabMenuUnpin: 'Unpin tab'
|
|
17
19
|
},
|
|
18
20
|
ProHeader: {
|
|
19
21
|
versionTitle: 'Version number',
|
package/es/locale/zh_CN.d.ts
CHANGED
package/es/locale/zh_CN.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zat-design/sisyphus-react",
|
|
3
|
-
"version": "4.5.6
|
|
3
|
+
"version": "4.5.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"es",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"pack:mcp": "npm run build:ai-meta && cd packages/sisyphus-react-mcp && npm pack --dry-run",
|
|
79
79
|
"release": "yarn build && npm publish",
|
|
80
80
|
"release:mcp": "npm run build:ai-meta && cd packages/sisyphus-react-mcp && npm publish",
|
|
81
|
+
"release:scene": "cd sisyphus-agent/sisyphus-scene && npm publish --access public",
|
|
81
82
|
"release:beta": "yarn build && npm publish --tag=beta",
|
|
82
83
|
"start": "cross-env NODE_OPTIONS=\"--openssl-legacy-provider\" dumi dev",
|
|
83
84
|
"test": "umi-test",
|