Przeglądaj źródła

fix(组件-SmartLayoutSeparate): 修复上下布局 上面元素宽度异常的问题

shizhongming 2 lat temu
rodzic
commit
208b21be56

+ 2 - 2
src/components/SmartLayoutSeparate/src/SmartLayoutSeparate.less

@@ -3,11 +3,11 @@
 .smart-layout-separate {
   display: flex;
 
-  .first-container {
+  .smart-first-container {
     position: relative;
   }
   //
-  .second-container {
+  .smart-second-container {
     position: relative;
   }
   // 左右布局

+ 1 - 1
src/components/SmartLayoutSeparate/src/SmartLayoutSeparate.tsx

@@ -192,7 +192,7 @@ export default defineComponent({
       return (
         <div class={computedContainerClassList.value}>
           {/* 第一块区域,左或者上 */}
-          <div class="first-container" style={layoutStyle.value.firstStyle}>
+          <div class="smart-first-container" style={layoutStyle.value.firstStyle}>
             <div class={computedFirstContainerClass.value}>{first ? first() : ''}</div>
             {/* 分割线 */}
             {props.showLine ? (