@lambo-design/workflow-approve 1.0.0-beta.142 → 1.0.0-beta.143

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/workflow-approve",
3
- "version": "1.0.0-beta.142",
3
+ "version": "1.0.0-beta.143",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -30,7 +30,7 @@
30
30
  <!-- 检查是否有待审批记录 -->
31
31
  <template v-if="items.some(item => isPendingAudit(item))">
32
32
  <!-- 待审批的记录:使用折叠面板 -->
33
- <Collapse v-model="pendingActiveName" simple style="margin: -10px 0 0 20px;border: none">
33
+ <Collapse :key="'pending-collapse-' + index + '-' + sortBy" v-model="pendingActiveName" simple style="margin: -10px 0 0;border: none">
34
34
  <Panel :name="'pending-panel' + index" hide-arrow>
35
35
  <span class="pending-audit-title">
36
36
  <Icon type="md-time" style="color: orange; margin-right: 5px;" />
@@ -526,7 +526,7 @@ export default {
526
526
  }
527
527
  ],
528
528
  sortBy: this.historySortBy,
529
- pendingActiveName: [], // 控制待审批折叠面板的展开状态
529
+ pendingActiveName: '', // 控制待审批折叠面板的展开状态
530
530
  }
531
531
  },
532
532
  computed: {
@@ -993,6 +993,7 @@ export default {
993
993
  },
994
994
  toggleSortBy(by) {
995
995
  this.sortBy = by;
996
+ this.pendingActiveName = '';
996
997
  },
997
998
  isPendingAudit(item) {
998
999
  // 判断是否为待审批状态
@@ -1056,20 +1057,18 @@ export default {
1056
1057
  align-items: center;
1057
1058
  }
1058
1059
 
1059
- /* 按时间排序的卡片样式 - 更小,不遮挡时间轴圆点 */
1060
1060
  .portrait-card-time {
1061
- margin-left: 20px !important;
1062
- margin-right: 10px !important;
1063
- margin-bottom: 8px !important;
1064
- background-color: #fafafa !important;
1061
+ width: 100%;
1062
+ max-width: 100%;
1063
+ margin-left: 0 !important;
1064
+ margin-right: 0 !important;
1065
+ margin-bottom: 5px !important;
1066
+ box-sizing: border-box;
1067
+ overflow: hidden;
1065
1068
  }
1066
1069
 
1067
1070
  :deep(.portrait-card-time .ivu-card-body) {
1068
- padding: 8px 12px !important;
1069
- }
1070
-
1071
- :deep(.portrait-card-time .ivu-list-item) {
1072
- padding: 6px 0 !important;
1071
+ padding: 5px !important;
1073
1072
  }
1074
1073
 
1075
1074
  :deep(.docx) {