@innoways/drip-form
Version:
drip-form表单渲染core
186 lines (177 loc) • 3.28 kB
CSS
.drip-form-root {
position: relative;
display: flex;
flex-flow: row wrap;
width: 100%;
}
.form-container__title {
display: flex;
flex-shrink: 0;
word-break: break-all;
}
.form-container__title_webcircle svg:hover {
fill: var(--ant-primary-color-hover);
}
.form-container__other {
line-height: 20px;
}
.form-container__tips {
font-size: 12px;
line-height: 20px;
color: #999;
}
.form-container__error {
font-size: 12px;
line-height: 20px;
min-height: 20px;
color: #f00;
}
.form-container__error--no-title {
padding-left: 0;
}
.form-container {
font-size: 12px;
}
.form-container--main {
display: flex;
}
.form-container--main.title-top {
flex-direction: column;
}
.form-container--main.title-bottom {
flex-direction: column-reverse;
}
.form-container--main.title-right {
flex-direction: row-reverse;
}
.form-container--content {
flex: 1;
min-width: 0;
}
.form-container--arrayWithAddRemoveContent {
display: flex;
flex: 1;
min-width: 0;
align-items: center;
}
/*
* @Author: jiangxiaowei
* @Date: 2020-05-15 16:55:53
* @Last Modified by: jiangxiaowei
* @Last Modified time: 2022-01-18 22:22:16
*/
.field__sure--container {
display: flex;
flex: 1;
align-items: center;
}
.field__sure--button {
margin-left: 10px;
width: 40px;
height: 32px;
border: 1px #eee solid;
text-align: center;
line-height: 32px;
cursor: pointer;
user-select: none;
}
.field__sure--button-disabled {
background: #eee;
color: #999;
cursor: not-allowed;
}
.object-container-err {
color: #f00;
}
.drip-form_objectContainer {
min-height: 30px;
}
.drip-form_objectContainer--collapse>div>div {
background-color: var(--ant-primary-1);
}
.drip-form_objectContainerFlex {
display: flex;
flex-flow: row wrap;
}
.array-item--action {
display: flex;
flex: 0 0 auto;
justify-content: center;
align-items: center;
padding: 0 8px;
width: 28px;
height: 32px;
outline: none;
border: none;
border-radius: 5px;
background-color: transparent;
cursor: pointer;
touch-action: none;
appearance: none;
}
.array-item--action svg {
flex: 0 0 auto;
overflow: visible;
margin: auto;
height: 100%;
fill: #919eab;
}
.array-item--action:hover {
background-color: rgba(0,0,0,0.05);
}
.array-item--field {
position: relative;
}
.array-item--field_last-child {
border-bottom: none;
}
.array-item--field .fa-trash-alt {
margin-right: 20px;
color: #2d64ff;
font-size: 0.9rem;
opacity: 0.7;
cursor: pointer;
}
.array-item--header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 4px 0;
height: 32px;
background-color: rgba(40,100,255,0.102);
}
.array-item--header:hover .array-item--removehover {
display: block;
}
.array-item--handle {
display: flex;
align-items: center;
}
.array-item--removehover {
display: none;
}
.array-item--remove {
diplay: block;
}
.array-item--case {
padding: 20px 20px 0;
}
.array-item--number {
margin-left: 20px;
font-size: 12px;
}
.array-item--add {
display: flex;
justify-content: center;
align-items: center;
height: 32px;
border: 1px #d9d9d9 dashed;
cursor: pointer;
}
.array-item--add_title {
margin-left: 8px;
}
.drip-form_container--footer {
display: flex;
width: 100%;
}