You need to sign in or sign up before continuing.
hookehuyr

fix 样式调整

1 <!-- 1 <!--
2 * @Date: 2022-08-29 14:31:20 2 * @Date: 2022-08-29 14:31:20
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-09-02 14:47:57 4 + * @LastEditTime: 2024-09-02 17:17:26
5 * @FilePath: /data-table/src/components/DividerField/index.vue 5 * @FilePath: /data-table/src/components/DividerField/index.vue
6 * @Description: 分隔线组件 6 * @Description: 分隔线组件
7 --> 7 -->
8 <template> 8 <template>
9 <div class="divider-field-page"> 9 <div class="divider-field-page">
10 - <div v-if="styleType === 'type1'" class="type1"></div> 10 + <div v-if="styleType === 'type1'" class="type1">
11 + <div :style="{ color: titleColor, lineHeight: 1.2, marginBottom: '0.25rem' }">字段标题</div>
12 + </div>
11 <div v-if="styleType === 'type2'" class="type2"> 13 <div v-if="styleType === 'type2'" class="type2">
12 <div :style="{ color: titleColor, lineHeight: 1.2, marginBottom: '0.25rem' }">字段标题</div> 14 <div :style="{ color: titleColor, lineHeight: 1.2, marginBottom: '0.25rem' }">字段标题</div>
13 <div :style="{ borderTop: '1px dashed', borderColor: bgColor }"></div> 15 <div :style="{ borderTop: '1px dashed', borderColor: bgColor }"></div>
...@@ -45,7 +47,6 @@ ...@@ -45,7 +47,6 @@
45 <span>字段标题</span> 47 <span>字段标题</span>
46 </div> 48 </div>
47 </div> 49 </div>
48 - <!-- <div class="fx-sub-html">这里是字段的描述信息</div> -->
49 </div> 50 </div>
50 </div> 51 </div>
51 <div v-if="styleType === 'type7'" class="type7"> 52 <div v-if="styleType === 'type7'" class="type7">
...@@ -108,7 +109,7 @@ const styleBorder = ref({}); ...@@ -108,7 +109,7 @@ const styleBorder = ref({});
108 const bgColor = ref(''); 109 const bgColor = ref('');
109 const titleColor = ref(''); 110 const titleColor = ref('');
110 111
111 -const styleType = ref('type8'); 112 +const styleType = ref('type5');
112 113
113 onMounted(() => { 114 onMounted(() => {
114 // styleObj.value = { 115 // styleObj.value = {
...@@ -135,6 +136,11 @@ onMounted(() => { ...@@ -135,6 +136,11 @@ onMounted(() => {
135 .divider-field-page { 136 .divider-field-page {
136 padding: 1rem 1rem 0 1rem; 137 padding: 1rem 1rem 0 1rem;
137 .type5 { 138 .type5 {
139 + -webkit-transform: scale(.8);
140 + transform: scale(.8);
141 + -webkit-transform-origin: 0 50%;
142 + transform-origin: 0 50%;
143 + width: 125%;
138 .sep-line { 144 .sep-line {
139 display: -webkit-box; 145 display: -webkit-box;
140 display: -ms-flexbox; 146 display: -ms-flexbox;
...@@ -259,6 +265,11 @@ onMounted(() => { ...@@ -259,6 +265,11 @@ onMounted(() => {
259 } 265 }
260 } 266 }
261 .type7 { 267 .type7 {
268 + -webkit-transform: scale(.8);
269 + transform: scale(.8);
270 + -webkit-transform-origin: 0 50%;
271 + transform-origin: 0 50%;
272 + width: 125%;
262 .sep-line { 273 .sep-line {
263 height: 28px; 274 height: 28px;
264 position: relative; 275 position: relative;
...@@ -295,6 +306,11 @@ onMounted(() => { ...@@ -295,6 +306,11 @@ onMounted(() => {
295 } 306 }
296 } 307 }
297 .type8 { 308 .type8 {
309 + -webkit-transform: scale(.8);
310 + transform: scale(.8);
311 + -webkit-transform-origin: 0 50%;
312 + transform-origin: 0 50%;
313 + width: 125%;
298 .sep-line { 314 .sep-line {
299 -webkit-box-pack: center; 315 -webkit-box-pack: center;
300 -ms-flex-pack: center; 316 -ms-flex-pack: center;
......