100011797 преди 3 години
родител
ревизия
16a861b23a
променени са 2 файла, в които са добавени 11 реда и са изтрити 3 реда
  1. 1 0
      src/components/ProTableCard/CardItems/Scene/index.less
  2. 10 3
      src/components/ProTableCard/CardItems/Scene/index.tsx

+ 1 - 0
src/components/ProTableCard/CardItems/Scene/index.less

@@ -77,6 +77,7 @@
                 overflow: hidden;
                 .right-item-right-item-contents-item {
                   display: flex;
+                  align-items: center;
                   color: rgba(0, 0, 0, 0.65);
                 }
               }

+ 10 - 3
src/components/ProTableCard/CardItems/Scene/index.tsx

@@ -306,8 +306,15 @@ const branchesActionRender = (actions: any[]) => {
 
     return list.map((item, index) => (
       <div className={styles['right-item-right-item-contents-item']}>
-        <div style={{ minWidth: 40 }}>动作{index + 1}</div>
-        {item}
+        <div style={{ margin: '0 10px' }}>{item}</div>
+        <MyTooltip title={actions[index]?.options?.terms || ''}>
+          {actions[index]?.options?.terms && (
+            <div className={'ellipsis'} style={{ minWidth: 40 }}>
+              动作{index + 1}
+              {actions[index]?.options?.terms}
+            </div>
+          )}
+        </MyTooltip>
       </div>
     ));
   }
@@ -390,7 +397,7 @@ const ContentRender = (data: SceneCardProps) => {
               );
             },
           )}
-          {(data?.branches || []).length > 1 && (
+          {(data?.branches || []).length > 2 && (
             <div
               className={styles['trigger-actions-more']}
               onClick={(e) => {