Browse Source

style: Image global variable plus !default is used for theme configuration fault tolerance (#1151)

YyumeiZhang 3 years ago
parent
commit
12c692be25
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/semi-foundation/image/variables.scss

+ 3 - 0
packages/semi-foundation/image/variables.scss

@@ -45,3 +45,6 @@ $color-image_header_close-bg: rgba(0, 0, 0, 0.75); //图像预览header的关闭
 $color-image_preview_footer-bg: rgba(0, 0, 0, 0.75); // 图像预览footer部分背景色
 $color-image-preview_divider-bg: rgba(255, 255, 255, .5); // 图像预览footer中的分割线背景色
 $color-image_preview_image_spin: #ccc; // 图像预览的加载状态颜色
+
+$z-image_preview: 1070 !default; // Image 组件预览层z-index
+$z-image_preview_header: 1 !default; // Image 组件预览层中 header 部分 z-index