viewLayout.less 6.1 KB

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