浏览代码

!1926 修复 "Table页自动撑满页面" 样式可能影响无需自动撑满的页面,CardPro 组件支持第三方图标
Merge pull request !1926 from 夜鹰/v2

zuohuaijun 7 月之前
父节点
当前提交
e6f0c662cb
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 1 3
      Web/src/components/CardPro/index.vue
  2. 1 1
      Web/src/theme/element.scss

+ 1 - 3
Web/src/components/CardPro/index.vue

@@ -4,9 +4,7 @@
             <div class="cardpro-header">
                 <div v-if="$slots.prefix || prefixIcon" class="cardpro-header-prefix">
                     <slot v-if="$slots.prefix" name="prefix" />
-                    <el-icon v-else-if="prefixIcon">
-                        <component :is="prefixIcon" />
-                    </el-icon>
+                    <SvgIcon v-else-if="prefixIcon" :name="prefixIcon" />
                 </div>
                 <div class="cardpro-header-title">
                     <span>{{ props.title }}</span>

+ 1 - 1
Web/src/theme/element.scss

@@ -571,7 +571,7 @@ $--el-table-text-color: #fb6d49;
 	}
 
 	// Table页自动撑满页面
-	> div:first-child {
+	> div:has(.full-table) {
 		display: flex;
 		flex-direction: column;
 		height: 100%;