index.less.bak 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. .form-drawing-container{
  2. position: relative;
  3. box-sizing: border-box;
  4. height: calc(100% - 45px);
  5. padding: 10px;
  6. display: flex;
  7. align-items: center;
  8. justify-content: center;
  9. .form-drawing{
  10. width: 100%;
  11. height: 100%;
  12. &--mobile{ // 移动端
  13. width: 375px;
  14. height: 667px;
  15. margin: 0 auto;
  16. padding: 0;
  17. .form-item-wrap{
  18. border-radius: 8px;
  19. }
  20. }
  21. }
  22. .cip-form{
  23. height: 100%;
  24. }
  25. // form-item draggable 组件所在样式
  26. .form-item-wrap{
  27. width: 100%;
  28. box-sizing: border-box;
  29. min-height: 100%;
  30. border: 1px dashed #333;
  31. background: #fff;
  32. .ghost.form-drawing-item{
  33. margin: 0;
  34. width: auto;
  35. border: 2px solid @danger;
  36. height: 0;
  37. overflow: hidden;
  38. }
  39. }
  40. .table-design{
  41. display: flex;
  42. width: 100%;
  43. &.table-design--m{
  44. .el-form-item__content{
  45. margin-left: 0 !important;
  46. flex-grow: 2;
  47. display: block;
  48. width: 0;
  49. }
  50. .table-design{
  51. &__index{
  52. // mobile 特有
  53. }
  54. &__drag-wrapper{
  55. background: #fff;
  56. height: auto;
  57. width: 100%;
  58. overflow-x:hidden;
  59. overflow-y:auto;
  60. .form-drawing-item{
  61. margin: 4px 2px;
  62. }
  63. .form-table-options{
  64. min-height: 100px;
  65. }
  66. }
  67. }
  68. .form-table-options{
  69. box-sizing:border-box;
  70. width: calc(100% - 4px) !important;
  71. .table-ghost{
  72. margin: 0;
  73. box-sizing: content-box;
  74. height: 0 ;
  75. width: 99%;
  76. border: 2px solid @danger;
  77. overflow: hidden;
  78. }
  79. }
  80. }
  81. &.table-design--pc{
  82. .form-table-options{
  83. height: 100%;
  84. width: 100%;
  85. border: 1px dashed #ddd;
  86. box-sizing:border-box;
  87. display: flex;
  88. flex-grow: 2;
  89. .form-drawing-item{
  90. .cip-form-item{
  91. height: 100%;
  92. .el-form-item{
  93. width: 100%;
  94. height: 100%;
  95. display: flex;
  96. flex-direction: column;
  97. margin: 0;
  98. &__label{
  99. box-sizing: border-box;
  100. line-height: 1em;
  101. font-weight: bold;
  102. color: #909399;
  103. height: 48px;
  104. display: block;
  105. width: 100% !important;
  106. padding: 12px 10px;
  107. text-align: left;
  108. background: @tableHeadColor;
  109. border-bottom: 1px solid #ddd;
  110. }
  111. &__content{
  112. box-sizing: border-box;
  113. width: 100%;
  114. flex-grow: 2;
  115. background: #fff;
  116. padding: 12px 10px;
  117. }
  118. }
  119. }
  120. }
  121. .table-ghost{
  122. margin: 0;
  123. box-sizing: content-box;
  124. height: 99% ;
  125. width: 0;
  126. border: 2px solid @danger;
  127. overflow: hidden;
  128. }
  129. }
  130. }
  131. .el-form-item__content{
  132. margin-left: 0 !important;
  133. flex-grow: 2;
  134. display: flex;
  135. width: 0;
  136. }
  137. &__drag-wrapper{
  138. height: 110px;
  139. flex-grow: 2;
  140. overflow-x:auto;
  141. overflow-y:hidden;
  142. box-sizing: border-box;
  143. .form-drawing-item{
  144. margin: 0 2px;
  145. }
  146. }
  147. &__column{
  148. display: flex;
  149. flex-direction: column;
  150. margin: 0;
  151. border-left: 1px solid #ddd;
  152. border-bottom: 1px solid #ddd;
  153. &__label{
  154. box-sizing: border-box;
  155. line-height: 1em;
  156. font-weight: bold;
  157. color: #909399;
  158. height: 52px;
  159. display: block;
  160. width: 100% !important;
  161. padding: 12px 10px;
  162. text-align: left;
  163. background: @tableHeadColor;
  164. border-bottom: 1px solid #ddd;
  165. }
  166. &__content{
  167. background: #fff;
  168. padding: 12px 10px;
  169. flex-grow: 2;
  170. display: flex;
  171. align-items: center;
  172. }
  173. }
  174. }
  175. // table context draggable 组件所在样式
  176. }