viewLayout.less 6.8 KB

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