@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.
@@ -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: margin-left 0.3s cubic-bezier(0.2, 0, 0, 1), grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
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
 
@@ -14,6 +14,8 @@ declare const _default: {
14
14
  tabMenuCloseOthers: string;
15
15
  tabMenuCloseRight: string;
16
16
  tabMenuCloseAll: string;
17
+ tabMenuPin: string;
18
+ tabMenuUnpin: string;
17
19
  };
18
20
  ProHeader: {
19
21
  versionTitle: string;
@@ -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',
@@ -14,6 +14,8 @@ declare const _default: {
14
14
  tabMenuCloseOthers: string;
15
15
  tabMenuCloseRight: string;
16
16
  tabMenuCloseAll: string;
17
+ tabMenuPin: string;
18
+ tabMenuUnpin: string;
17
19
  };
18
20
  ProHeader: {
19
21
  versionTitle: string;
@@ -13,7 +13,9 @@ export default {
13
13
  tabMenuClose: '关闭',
14
14
  tabMenuCloseOthers: '关闭其他',
15
15
  tabMenuCloseRight: '关闭右侧标签页',
16
- tabMenuCloseAll: '关闭全部'
16
+ tabMenuCloseAll: '关闭全部',
17
+ tabMenuPin: '固定标签',
18
+ tabMenuUnpin: '取消固定'
17
19
  },
18
20
  ProHeader: {
19
21
  versionTitle: '版本号',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "4.5.6-beta.3",
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",