Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-09-02 17:36:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aba0fcd58e1b617e0a93557c55e8da255da45619
aba0fcd5
1 parent
e843bbcd
fix 样式调整
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
src/components/DividerField/index.vue
src/components/DividerField/index.vue
View file @
aba0fcd
<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-02 1
4:47:57
* @LastEditTime: 2024-09-02 1
7:17:26
* @FilePath: /data-table/src/components/DividerField/index.vue
* @Description: 分隔线组件
-->
<template>
<div class="divider-field-page">
<div v-if="styleType === 'type1'" class="type1"></div>
<div v-if="styleType === 'type1'" class="type1">
<div :style="{ color: titleColor, lineHeight: 1.2, marginBottom: '0.25rem' }">字段标题</div>
</div>
<div v-if="styleType === 'type2'" class="type2">
<div :style="{ color: titleColor, lineHeight: 1.2, marginBottom: '0.25rem' }">字段标题</div>
<div :style="{ borderTop: '1px dashed', borderColor: bgColor }"></div>
...
...
@@ -45,7 +47,6 @@
<span>字段标题</span>
</div>
</div>
<!-- <div class="fx-sub-html">这里是字段的描述信息</div> -->
</div>
</div>
<div v-if="styleType === 'type7'" class="type7">
...
...
@@ -108,7 +109,7 @@ const styleBorder = ref({});
const bgColor = ref('');
const titleColor = ref('');
const styleType = ref('type
8
');
const styleType = ref('type
5
');
onMounted(() => {
// styleObj.value = {
...
...
@@ -135,6 +136,11 @@ onMounted(() => {
.divider-field-page {
padding: 1rem 1rem 0 1rem;
.type5 {
-webkit-transform: scale(.8);
transform: scale(.8);
-webkit-transform-origin: 0 50%;
transform-origin: 0 50%;
width: 125%;
.sep-line {
display: -webkit-box;
display: -ms-flexbox;
...
...
@@ -259,6 +265,11 @@ onMounted(() => {
}
}
.type7 {
-webkit-transform: scale(.8);
transform: scale(.8);
-webkit-transform-origin: 0 50%;
transform-origin: 0 50%;
width: 125%;
.sep-line {
height: 28px;
position: relative;
...
...
@@ -295,6 +306,11 @@ onMounted(() => {
}
}
.type8 {
-webkit-transform: scale(.8);
transform: scale(.8);
-webkit-transform-origin: 0 50%;
transform-origin: 0 50%;
width: 125%;
.sep-line {
-webkit-box-pack: center;
-ms-flex-pack: center;
...
...
Please
register
or
login
to post a comment