hot-form
Version:
A project developed based on ant-design-vue and vant whitch do some things on create/render/modify and etc. for forms. Also can custom some component on the form items if you want. 一个基于antdv/vant开发的创建表单组件,包含表单渲染、表单编辑页面、以及植入自定义附加内容的组件
94 lines (93 loc) • 1.97 kB
CSS
.create-form {
text-align: left;
}
@font-face {
font-family: 'iconfont';
src: url('//at.alicdn.com/t/font_2430989_23qw8965azq.woff2') format('woff2'), url('//at.alicdn.com/t/font_2430989_23qw8965azq.woff') format('woff'), url('//at.alicdn.com/t/font_2430989_23qw8965azq.ttf') format('truetype');
}
.create-form .iconfont {
display: inline-block;
margin-right: 6px;
font-family: "iconfont" ;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.form-option,
.form-content,
.form-edit {
border: 1px dashed #eee;
}
.form-option {
width: 20%;
}
.form-content,
.form-edit {
margin-left: 1%;
}
.form-edit {
display: flex;
padding: 8px 12px;
flex-direction: column;
}
.form-edit .control-container {
flex: 1;
max-height: 700px;
padding: 12px;
overflow: auto;
}
.form-edit .save-container {
padding-bottom: 24px;
text-align: center;
}
.create-form {
margin-top: 50px;
padding: 2px 12px;
}
.create-form .form-row {
display: flex;
}
.create-form .field-title {
font-size: 20px;
font-weight: 500;
margin-bottom: 8px;
}
.create-form .field-item {
display: inline-block;
padding: 8px 4px 8px 5px;
cursor: pointer;
}
.create-form .field-item .item-container {
display: flex;
flex-direction: column;
align-items: center;
}
.create-form .field-item .item-icon {
width: 100%;
height: 50px;
text-align: center;
object-fit: cover;
}
.create-form .field-item .item-icon .icon-path {
display: inline-block;
padding-top: 10%;
font-size: 24px;
color: #52A7B5;
}
.create-form .item-title {
margin: 8px auto;
text-align: center;
font-weight: 600;
font-size: 15px;
}
.create-form .form-btn {
width: 100%;
padding: 0 6px;
text-align: left;
font-size: 13px;
}
.control-container .edit-title {
font-size: 20px;
font-weight: 500;
}