element-easy-form
Version:
vue3.0 的自定义表单,基于element-Plus
459 lines (416 loc) • 8.13 kB
CSS
@charset "UTF-8";.selector[data-v-597f658a] {
height: auto;
margin: 2px 0;
padding: 3px;
position: relative;
z-index: 1;
}
.selector .selectorContent[data-v-597f658a] {
position: absolute;
z-index: 2;
width: 100%;
height: 100%;
}
.selector .drag-handler[data-v-597f658a] {
position: absolute;
top: 0px;
left: 0px;
height: 20px;
line-height: 20px;
z-index: 3;
font-size: 14px;
font-style: normal;
color: #fff;
cursor: move;
padding: 0 5px;
background: var(--el-color-primary);
}
.selector .field-action[data-v-597f658a] {
position: absolute;
bottom: 0;
right: 0px;
height: 22px;
padding: 0 5px;
line-height: 22px;
background: var(--el-color-primary);
z-index: 3;
}.ElDragTable {
margin: 20px 0;
}
.el-table .cell {
overflow: var(--18953936-renderTypeoverflow);
}
.elDragTableHeader {
display: flex;
align-items: center;
justify-content: space-between;
}
.is-required {
color: var(--el-color-danger);
margin-right: 4px;
}.lineTitle-darg-form[data-v-73e11729] {
font-weight: bold;
font-size: 14px;
color: #333;
display: flex;
align-items: center;
}
.lineTitle-darg-form .after[data-v-73e11729] {
width: 3px;
margin-right: 5px;
height: 20px;
background: var(--el-color-primary);
border-radius: 2px;
}.grid-container {
margin: 0 ;
cursor: pointer;
padding: 3px;
outline: 1px dashed #336699;
}
.grid-container .el-col {
padding: 0 ;
outline: 1px dashed #336699;
}
.colDraggable {
width: 100%;
min-height: 30px;
}.dialog__icon[data-v-dd1918d4] {
position: absolute;
top: 22px;
right: 45px;
color: #909399;
font-size: 12px;
color: #909399;
cursor: pointer;
transition: color 0.2s;
}
.com-dialog__content .content__wrap[data-v-dd1918d4] {
padding-right: 10px;
}
.com-dialog__content[data-v-dd1918d4] .el-scrollbar__wrap {
padding-bottom: 13px;
max-height: 600px;
overflow-x: hidden;
}
.com-dialog__content[data-v-dd1918d4] .el-scrollbar__view {
height: 100%;
}.preview[data-v-1a709566] {
width: 900px;
}.language-icon-wrapper[data-v-23ecfc8e] {
display: inline-flex;
align-items: center;
justify-content: center;
}
.language-icon-wrapper .icon-container[data-v-23ecfc8e] {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
}
.language-icon-wrapper .icon-container .icon[data-v-23ecfc8e] {
width: 32px;
height: 32px;
}
.language-icon-wrapper .icon-container .lang-badge[data-v-23ecfc8e] {
position: absolute;
bottom: -6px;
right: -8px;
min-width: 20px;
max-width: 60px;
height: auto;
min-height: 16px;
padding: 2px 6px;
font-size: 10px;
font-weight: bold;
color: #fff;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
html {
--color-red:9;
--color-green:96;
--color-blue:189;
}
.textline1 {
font-size: 13px;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
line-clamp: 1;
-webkit-box-orient: vertical;
}
.fd, .aic, .jcc, .jcb, .jca, .fdc, .jcfend {
display: flex;
}
.aic {
align-items: center;
}
.jcc {
justify-content: center;
}
.jcb {
justify-content: space-between;
}
.jca {
justify-content: space-around;
}
.jcfend {
justify-content: flex-end;
}
.fdc {
flex-direction: column;
}
.flexWrap {
flex-wrap: wrap;
}
.flex-shrink0 {
flex-shrink: 0;
}
.flex1 {
flex: 1;
}
.flex2 {
flex: 2;
}
.flex5 {
flex: 5;
}
.flex7 {
flex: 7;
}
.mx30 {
margin: 0 30px;
}
.mx15 {
margin: 0 15px;
}
.ml15 {
margin-left: 15px;
}
.mx5 {
margin: 0 5px;
}
.mt30 {
margin-top: 30px;
}
.mt10 {
margin-top: 10px;
}
.ml30 {
margin-left: 30px;
}
.m20 {
margin: 20px;
}
.w80 {
width: 80px;
}
.mt20 {
margin-top: 20px;
}
.p10 {
padding: 10px;
}
.p20 {
padding: 20px;
}
.w400 {
width: 400px;
}
.llt-icon-size-21 {
font-size: 20px;
color: #333;
cursor: pointer;
}
.fontSize16 {
font-size: 16px;
font-weight: 400;
}
.w100 {
width: 100%;
}
.w50 {
width: 50%;
}
.h100 {
height: 100%;
}
* {
margin: 0;
box-sizing: border-box;
}
#app, html, body {
overflow: hidden;
font-size: 14px;
height: 100%;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
background-color: transparent;
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
background-color: transparent;
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
background-color: rgba(144, 147, 153, 0);
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(144, 147, 153, 0.5);
}
/* ========== 选中状态样式 ========== */
.selectorSelected {
outline: 2px solid var(--el-color-primary) ;
z-index: 2;
}
/* ========== 拖拽表单主容器 ========== */
.drag-form {
width: 100%;
height: 100vh;
display: grid;
grid-template-columns: 262px 1fr 351px;
background: var(--el-bg-color);
/* ========== 左侧组件面板 ========== */
/* ========== 中间画布区域 ========== */
/* ========== 右侧属性面板 ========== */
}
.drag-form .drag-form-title {
font-size: 18px;
font-weight: bold;
color: var(--el-color-primary);
height: 40px;
text-align: center;
}
.drag-form .drag-form-left {
height: 100%;
overflow-y: auto;
}
.drag-form .drag-form-left .drag-form-left-conetnt {
height: 100%;
}
.drag-form .drag-form-content {
padding: 0 20px;
box-sizing: border-box;
display: grid;
grid-template-rows: 42px 1fr;
}
.drag-form .drag-form-content .drag-form-content-tool {
border-bottom: 1px solid var(--el-border-color);
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
}
.drag-form .drag-form-right {
padding: 0 10px;
overflow-y: auto;
}
.drag-form .drag-form-right .drag-form-right-conetnt {
padding: 30px 0;
}
/* ========== 视图画布区域 ========== */
.views {
width: 100%;
height: calc(100vh - 82px);
padding: 10px;
overflow: auto;
}
/* ========== 表单容器 ========== */
.formBox {
position: relative;
width: 100%;
height: 100%;
}
/* ========== 空数据提示 ========== */
#noData {
position: absolute;
height: 100%;
display: flex;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 1;
}
/* ========== 拖拽区域 ========== */
#draggabidBox {
position: absolute;
left: 0;
top: 0;
padding: 10px;
z-index: 2;
}
.text-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.component-item {
margin-bottom: 8px;
margin-right: 8px;
display: inline-block;
vertical-align: top;
}
.component-item .component-btn {
width: 110px;
min-height: 36px;
height: auto;
padding: 6px 10px;
font-size: 12px;
line-height: 1.4;
white-space: normal;
word-break: break-all;
text-align: center;
border-radius: 4px;
transition: all 0.2s;
}
.component-item .component-btn:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}.ElRowAttrs[data-v-e6d2a766] {
display: flex;
align-items: center;
margin-bottom: 10px;
}.ElRowAttrs[data-v-4dfc9c7d] {
display: flex;
align-items: center;
margin-bottom: 10px;
}.ElRateColors[data-v-19012495] {
display: flex;
align-items: center;
justify-content: space-around;
}.ElRowAttrs[data-v-0b18aaf6] {
display: flex;
align-items: center;
margin-bottom: 10px;
}.ElRowAttrs[data-v-39ed5f94] {
display: flex;
align-items: center;
margin-bottom: 10px;
}.ElRowAttrs[data-v-0a3da03c] {
display: flex;
align-items: center;
margin-bottom: 10px;
}.elFunctionTitle[data-v-2bbf9a47] {
color: var(--el-text-color-primary);
}.elFunctionTitle[data-v-7f24a48d] {
color: var(--el-text-color-primary);
}.elFunctionTitle[data-v-bca7e02e] {
color: var(--el-text-color-primary);
}
.w300[data-v-bca7e02e] {
width: 300px;
}