viewLayout.less 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. .chartview {
  2. padding-top: 30px;
  3. z-index: 1;
  4. .chartview-toolbar {
  5. height: 30px;
  6. margin-top: -30px;
  7. display: flex;
  8. padding: 0 10px;
  9. justify-content: space-between;
  10. .chart-title {
  11. font-size: 16px;
  12. line-height: 2;
  13. }
  14. .chart-tools {
  15. font-size: 20px;
  16. .anticon {
  17. display: none;
  18. margin-left: 10px;
  19. cursor: pointer;
  20. }
  21. .visible-icon {
  22. display: inline-block;
  23. }
  24. }
  25. }
  26. .chartview-content {
  27. .dashboard-table { // 表格
  28. height: 100%;
  29. .ant-spin-nested-loading {
  30. height: 100%;
  31. .ant-spin-container {
  32. height: 100%;
  33. padding-bottom: 50px;
  34. .ant-table {
  35. height: 100%;
  36. overflow: hidden;
  37. .ant-table-content {
  38. height: 100%;
  39. .ant-table-scroll {
  40. height: 100%;
  41. }
  42. .ant-table-body {
  43. height: calc(~"100% - 38px");
  44. }
  45. }
  46. }
  47. .ant-pagination {
  48. margin: 8px 0;
  49. }
  50. }
  51. }
  52. }
  53. .chart-default { // echart缺省
  54. background-image: url(/images/chart-default.png);
  55. width: 100%;
  56. height: 100%;
  57. background-position: center;
  58. background-size: contain;
  59. background-repeat: no-repeat;
  60. }
  61. .richtexteditor { // 富文本
  62. padding-bottom: 10px;
  63. height: 100%;
  64. .w-e-toolbar {
  65. height: 30px;
  66. background-color: white !important;
  67. position: absolute;
  68. top: 0;
  69. display: none;
  70. }
  71. .w-e-text-container {
  72. height: 100% !important;
  73. pointer-events: none;
  74. border: none !important;
  75. .w-e-text {
  76. overflow-y: auto;
  77. padding: 0 14px;
  78. &>table {
  79. margin: 0;
  80. }
  81. &>p {
  82. margin: 0;
  83. }
  84. }
  85. .w-e-panel-container {
  86. z-index:100000;
  87. }
  88. }
  89. }
  90. }
  91. &:hover {
  92. .chart-tools {
  93. .anticon {
  94. display: inline-block;
  95. &:hover {
  96. color: red;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. .chartview-edit {
  103. .chartview-toolbar {
  104. cursor: move;
  105. }
  106. .chartview-content {
  107. canvas {
  108. cursor: move;
  109. }
  110. .richtexteditor {
  111. .w-e-text-container {
  112. pointer-events: all;
  113. }
  114. }
  115. }
  116. }
  117. .previewbox {
  118. top: 10%;
  119. padding-bottom: 0;
  120. .ant-modal-content {
  121. height: 100%;
  122. .ant-modal-close {
  123. display: none;
  124. }
  125. .ant-modal-body {
  126. height: 100%;
  127. padding-top: 0;
  128. .chartview {
  129. height: 100%;
  130. padding-top: 40px;
  131. .chartview-toolbar {
  132. padding: 0;
  133. height: 40px;
  134. margin-top: -40px;
  135. .chart-title {
  136. line-height: 2.5;
  137. }
  138. .chart-tools {
  139. line-height: 2;
  140. }
  141. }
  142. }
  143. }
  144. }
  145. }
  146. .react-grid-layout {
  147. background: #eee;
  148. }
  149. .layoutJSON {
  150. background: #ddd;
  151. border: 1px solid black;
  152. margin-top: 10px;
  153. padding: 10px;
  154. }
  155. .columns {
  156. -moz-columns: 120px;
  157. -webkit-columns: 120px;
  158. columns: 120px;
  159. }
  160. .react-grid-item {
  161. box-sizing: border-box;
  162. }
  163. .react-grid-item:not(.react-grid-placeholder) {
  164. background: white;
  165. border: 1px solid #D6D6D6;
  166. }
  167. .react-grid-item.resizing {
  168. opacity: 0.9;
  169. }
  170. .react-grid-item.static {
  171. background: #cce;
  172. }
  173. .react-grid-item .text {
  174. font-size: 24px;
  175. text-align: center;
  176. position: absolute;
  177. top: 0;
  178. bottom: 0;
  179. left: 0;
  180. right: 0;
  181. margin: auto;
  182. }
  183. .react-grid-item .minMax {
  184. font-size: 12px;
  185. }
  186. .react-grid-item .add {
  187. cursor: pointer;
  188. }
  189. .react-grid-dragHandleExample {
  190. cursor: move; /* fallback if grab cursor is unsupported */
  191. cursor: grab;
  192. cursor: -moz-grab;
  193. cursor: -webkit-grab;
  194. }
  195. li b {
  196. font-size: 19px;
  197. line-height: 14px;
  198. }
  199. .toolbox {
  200. background-color: #dfd;
  201. width: 100%;
  202. height: 120px;
  203. overflow: scroll;
  204. }
  205. .hide-button {
  206. cursor: pointer;
  207. position: absolute;
  208. font-size: 20px;
  209. top: 0px;
  210. right: 5px;
  211. }
  212. .toolbox__title {
  213. font-size: 24px;
  214. margin-bottom: 5px;
  215. }
  216. .toolbox__items {
  217. display: block;
  218. }
  219. .toolbox__items__item {
  220. display: inline-block;
  221. text-align: center;
  222. line-height: 40px;
  223. cursor: pointer;
  224. width: 40px;
  225. height: 40px;
  226. padding: 10px;
  227. margin: 5px;
  228. border: 1px solid black;
  229. background-color: #ddd;
  230. }
  231. .react-grid-layout {
  232. position: relative;
  233. transition: height 200ms ease;
  234. }
  235. .react-grid-item {
  236. transition: all 200ms ease;
  237. transition-property: left, top;
  238. }
  239. .react-grid-item.cssTransforms {
  240. transition-property: transform;
  241. }
  242. .react-grid-item.resizing {
  243. z-index: 2;
  244. opacity: 0.5;
  245. will-change: width, height;
  246. }
  247. .react-grid-item.react-draggable-dragging {
  248. transition: none;
  249. opacity: 0.8;
  250. z-index: 3 !important;
  251. will-change: transform;
  252. }
  253. .react-grid-item.react-grid-placeholder {
  254. background: #dddddd;
  255. border: 5px dashed #cccccc;
  256. transition-duration: 100ms;
  257. z-index: 1;
  258. user-select: none;
  259. }
  260. .react-grid-item > .react-resizable-handle {
  261. position: absolute;
  262. width: 20px;
  263. height: 20px;
  264. bottom: 0;
  265. right: 0;
  266. cursor: se-resize;
  267. }
  268. .react-grid-item > .react-resizable-handle::after {
  269. content: "";
  270. position: absolute;
  271. right: 3px;
  272. bottom: 3px;
  273. width: 5px;
  274. height: 5px;
  275. border-right: 2px solid rgba(0, 0, 0, 0.4);
  276. border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  277. }