.jnpf-basic-generator {
|
position: relative;
|
display: flex;
|
width: 100%;
|
height: 100%;
|
|
.common-board {
|
height: 100%;
|
overflow: hidden;
|
border-radius: 8px;
|
}
|
|
.left-board {
|
display: flex;
|
flex-shrink: 0;
|
flex-direction: column;
|
width: 250px;
|
background-color: var(--component-background);
|
|
.ant-collapse-header {
|
.ant-collapse-header-text {
|
font-weight: 600;
|
}
|
}
|
|
.components-list {
|
.ant-collapse-content-box {
|
padding: 0 10px;
|
}
|
|
.components-part {
|
padding: 10px 10px 0;
|
margin-bottom: 10px;
|
background-color: var(--component-background);
|
border-radius: 4px;
|
|
&:last-child {
|
margin-bottom: 0;
|
}
|
}
|
|
.components-title {
|
margin-bottom: 10px;
|
font-size: 14px;
|
font-weight: bold;
|
line-height: 30px;
|
}
|
|
.components-draggable {
|
display: flex;
|
flex-wrap: wrap;
|
justify-content: space-between;
|
}
|
|
.components-item {
|
width: 110px;
|
margin-bottom: 10px;
|
transition: transform 0ms !important;
|
|
&.disabled {
|
.components-body {
|
color: var(--text-color-secondary);
|
cursor: not-allowed;
|
|
&:hover {
|
color: var(--text-color-secondary);
|
border-color: var(--border-color-base);
|
}
|
}
|
}
|
|
.components-body {
|
display: flex;
|
align-items: center;
|
height: 36px;
|
padding-left: 8px;
|
font-size: 12px;
|
line-height: 34px;
|
color: var(--text-color-base);
|
cursor: move;
|
border: 1px solid var(--border-color-base);
|
border-radius: var(--radius);
|
|
span {
|
flex: 1;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
|
i {
|
flex-shrink: 0;
|
height: 16px;
|
margin-right: 4px;
|
line-height: 16px;
|
}
|
|
&:hover {
|
color: var(--primary-color);
|
border: 1px solid var(--primary-color);
|
}
|
}
|
}
|
}
|
}
|
|
.center-board {
|
box-sizing: border-box;
|
flex: 1;
|
margin: 0 10px;
|
background-color: var(--component-background);
|
}
|
|
.center-board-main {
|
box-sizing: border-box;
|
height: calc(100% - 42px);
|
overflow: hidden;
|
|
.scrollbar__view {
|
padding: 10px;
|
}
|
|
.center-board-row {
|
& > .ant-form {
|
width: 100%;
|
height: calc(100vh - 150px);
|
}
|
}
|
|
.empty-info {
|
position: absolute;
|
top: 20%;
|
left: calc(50% - 250px);
|
pointer-events: none;
|
|
&.app-empty-info {
|
top: calc(50% - 150px);
|
left: calc(50% - 150px);
|
|
.empty-img {
|
width: 300px;
|
height: 300px;
|
}
|
}
|
|
.empty-img {
|
width: 500px;
|
height: 500px;
|
}
|
}
|
|
.drawing-board {
|
position: relative;
|
display: flex;
|
flex-wrap: wrap;
|
align-content: flex-start;
|
height: 100%;
|
|
.components-body {
|
padding: 0;
|
margin: 0;
|
font-size: 0;
|
}
|
|
.sortable-ghost {
|
position: relative;
|
display: block;
|
overflow: hidden;
|
|
i {
|
display: none;
|
}
|
|
&::before {
|
position: absolute;
|
top: 0;
|
right: 0;
|
left: 0;
|
z-index: 2;
|
height: 3px;
|
content: ' ';
|
background: var(--primary-color);
|
}
|
|
.drawing-item-action {
|
display: none !important;
|
}
|
}
|
|
.components-item.sortable-ghost {
|
width: 100%;
|
height: 60px;
|
background-color: hsl(var(--primary-100));
|
}
|
|
.drawing-item {
|
position: relative;
|
cursor: move;
|
|
.ant-form-item {
|
padding: 10px;
|
margin-bottom: 10px !important;
|
border: 1px dashed var(--border-color-base);
|
border-radius: 8px;
|
|
.common-container {
|
.ant-form-item {
|
padding: 0;
|
margin-bottom: 0 !important;
|
border: unset;
|
border-radius: 0;
|
}
|
}
|
}
|
}
|
|
.drawing-row-item {
|
position: relative;
|
box-sizing: border-box;
|
padding: 0 2px;
|
margin-bottom: 10px;
|
cursor: move;
|
border: 1px dashed var(--border-color-base);
|
border-radius: 8px;
|
|
&.drawing-row-item-table-grid {
|
padding-top: 10px;
|
padding-bottom: 10px;
|
}
|
|
.ant-card {
|
width: 100%;
|
|
.ant-card-body {
|
& > .ant-row {
|
width: 100%;
|
}
|
}
|
}
|
|
.ant-tabs {
|
width: 100%;
|
|
.ant-tabs-nav {
|
margin-bottom: 0;
|
}
|
}
|
|
.ant-collapse {
|
width: 100%;
|
}
|
|
.child-drawing-row {
|
position: relative;
|
}
|
|
&.drawing-row-item-row {
|
position: relative;
|
|
& > .ant-col {
|
width: 100%;
|
}
|
|
.row-tip {
|
top: 50px;
|
}
|
|
.drag-wrapper {
|
min-height: 100px;
|
}
|
}
|
|
&.drawing-row-item-table {
|
.row-tip {
|
top: 50px;
|
}
|
|
.ant-form {
|
width: 100%;
|
}
|
|
.drag-wrapper {
|
min-height: 100px;
|
padding-top: 30px;
|
}
|
|
.table-wrapper-web {
|
display: flex;
|
flex-wrap: nowrap;
|
width: 100%;
|
padding-bottom: 10px;
|
overflow: auto hidden;
|
|
& > .ant-col {
|
flex: none;
|
flex-shrink: 0;
|
width: 200px !important;
|
height: auto;
|
|
.ant-row {
|
display: block;
|
}
|
|
.ant-form-item {
|
margin-bottom: 0 !important;
|
|
.ant-form-item-label {
|
width: auto !important;
|
}
|
}
|
}
|
}
|
}
|
|
.drawing-row-item {
|
margin-bottom: 2px;
|
}
|
|
.drag-wrapper {
|
display: flex;
|
flex-wrap: wrap;
|
align-content: flex-start;
|
width: 100%;
|
min-height: 80px;
|
|
&.tableGrid-app-wrapper {
|
.row-tip {
|
margin-top: 20px;
|
}
|
}
|
}
|
|
&.active-from-item {
|
border: 1px solid var(--primary-color);
|
}
|
|
.component-name {
|
position: absolute;
|
top: 0;
|
left: 0;
|
display: inline-block;
|
padding: 0 6px;
|
font-size: 18px;
|
color: var(--text-color-secondary);
|
}
|
}
|
|
.drawing-item,
|
.drawing-row-item {
|
&:hover {
|
& > .ant-form-item {
|
background: hsl(var(--primary-100));
|
}
|
|
& > .drawing-item-action {
|
display: flex;
|
}
|
|
& > .drawing-item-cell {
|
display: block;
|
}
|
}
|
|
& > .drawing-item-action {
|
position: absolute;
|
top: -10px;
|
right: var(--rightDistance);
|
z-index: 1;
|
display: none;
|
height: 24px;
|
overflow: hidden;
|
font-size: 12px;
|
line-height: 22px;
|
cursor: pointer;
|
background: var(--component-background);
|
border: 1px solid var(--primary-color);
|
border-radius: 24px;
|
|
.drawing-item-action-item {
|
position: relative;
|
display: block;
|
align-items: center;
|
justify-content: flex-start;
|
width: 30px;
|
height: 22px;
|
height: 100%;
|
color: var(--text-color-label);
|
text-align: center;
|
|
&.drawing-item-delete {
|
color: var(--text-color-label);
|
|
&:hover {
|
color: var(--error-color);
|
background: #ffe5e5;
|
}
|
}
|
|
&:hover {
|
color: var(--primary-color);
|
background: hsl(var(--primary-100));
|
}
|
|
&:first-child {
|
&::after {
|
display: none;
|
}
|
}
|
|
&::after {
|
position: absolute;
|
top: 3px;
|
left: 0;
|
display: block;
|
width: 1px;
|
height: 16px;
|
content: '';
|
background-color: var(--border-color-base1);
|
}
|
}
|
}
|
|
& > .drawing-item-cell {
|
position: absolute;
|
right: 0;
|
bottom: 0;
|
z-index: 1;
|
display: none;
|
width: 22px;
|
height: 22px;
|
font-size: 12px;
|
line-height: 22px;
|
color: var(--component-background);
|
text-align: center;
|
cursor: pointer;
|
background-color: var(--primary-color);
|
|
i {
|
color: #fff;
|
}
|
|
.anticon {
|
margin-top: 5px;
|
vertical-align: top !important;
|
}
|
}
|
}
|
|
.active-from-item {
|
& > .ant-form-item {
|
background-color: hsl(var(--primary-100));
|
border: 1px solid var(--primary-color);
|
}
|
|
& > .drawing-item-action {
|
display: flex;
|
}
|
|
& > .drawing-item-cell {
|
display: block;
|
}
|
|
& > .component-name {
|
color: var(--primary-color);
|
}
|
}
|
|
.row-tip {
|
position: absolute;
|
top: 30px;
|
width: 100%;
|
font-size: 14px;
|
color: var(--text-color-secondary);
|
text-align: center;
|
}
|
|
.table-grid {
|
width: 100%;
|
text-align: center;
|
table-layout: fixed;
|
border-collapse: collapse;
|
|
.table-cell {
|
min-height: 75px !important;
|
padding-top: 10px;
|
overflow: auto;
|
}
|
|
.drawing-row-item {
|
padding: 0 2px;
|
text-align: left;
|
}
|
}
|
}
|
|
.ipad {
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
height: calc(100% - 42px);
|
min-height: 711px;
|
|
.outerIpad {
|
width: 389px;
|
height: 711px;
|
padding: 65px 40px;
|
background: url('@/assets/images/iphoneBg.png');
|
|
.ipadBody {
|
height: 100%;
|
|
.center-board-row > .ant-form {
|
height: 550px !important;
|
}
|
}
|
}
|
}
|
}
|
}
|