viewLayout.less 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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. .chartview-toolbar {
  25. height: 40px;
  26. margin-top: -40px;
  27. display: flex;
  28. padding: 0 10px;
  29. justify-content: space-between;
  30. .chart-title {
  31. color: #2C82BE;
  32. font-size: 16px;
  33. line-height: 40px;
  34. display: flex;
  35. flex-wrap: nowrap;
  36. }
  37. .chart-tools {
  38. display: none;
  39. font-size: 20px;
  40. line-height: 40px;
  41. white-space: nowrap;
  42. .anticon {
  43. color: @icon-color-default;
  44. display: none;
  45. margin-left: 10px;
  46. cursor: pointer;
  47. &:hover {
  48. color: @icon-color-hover;
  49. }
  50. }
  51. .visible-icon {
  52. display: inline-block;
  53. }
  54. }
  55. }
  56. .chartview-content {
  57. display: flex;
  58. flex-direction: column;
  59. flex: 1;
  60. overflow: hidden;
  61. padding: 0 8px 8px;
  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/thumbnail-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. &.mobile {
  127. .chartview-toolbar {
  128. .chart-tools {
  129. display: block;
  130. .anticon {
  131. display: inline-block;
  132. }
  133. }
  134. }
  135. }
  136. &:hover {
  137. .chartview-toolbar {
  138. .chart-tools {
  139. display: block;
  140. .anticon {
  141. display: inline-block;
  142. }
  143. }
  144. }
  145. }
  146. }
  147. .chartview-edit {
  148. .chartview-toolbar {
  149. cursor: move;
  150. }
  151. .chartview-content {
  152. height: calc(~'100% - 20px');
  153. width: 100%;
  154. .richtexteditor {
  155. .w-e-text-container {
  156. pointer-events: all;
  157. }
  158. }
  159. }
  160. }
  161. .react-grid-layout {
  162. // background: #eee;
  163. }
  164. .layoutJSON {
  165. background: #ddd;
  166. border: 1px solid black;
  167. margin-top: 10px;
  168. padding: 10px;
  169. }
  170. .columns {
  171. -moz-columns: 120px;
  172. -webkit-columns: 120px;
  173. columns: 120px;
  174. }
  175. .react-grid-item {
  176. box-sizing: border-box;
  177. }
  178. .react-grid-item.resizing {
  179. opacity: 0.9;
  180. }
  181. .react-grid-item .text {
  182. font-size: 24px;
  183. text-align: center;
  184. position: absolute;
  185. top: 0;
  186. bottom: 0;
  187. left: 0;
  188. right: 0;
  189. margin: auto;
  190. }
  191. .react-grid-item .minMax {
  192. font-size: 12px;
  193. }
  194. .react-grid-item .add {
  195. cursor: pointer;
  196. }
  197. .react-grid-dragHandleExample {
  198. cursor: move; /* fallback if grab cursor is unsupported */
  199. cursor: grab;
  200. cursor: -moz-grab;
  201. cursor: -webkit-grab;
  202. }
  203. li b {
  204. font-size: 19px;
  205. line-height: 14px;
  206. }
  207. .toolbox {
  208. background-color: #dfd;
  209. width: 100%;
  210. height: 120px;
  211. overflow: scroll;
  212. }
  213. .hide-button {
  214. cursor: pointer;
  215. position: absolute;
  216. font-size: 20px;
  217. top: 0px;
  218. right: 5px;
  219. }
  220. .toolbox__title {
  221. font-size: 24px;
  222. margin-bottom: 5px;
  223. }
  224. .toolbox__items {
  225. display: block;
  226. }
  227. .toolbox__items__item {
  228. display: inline-block;
  229. text-align: center;
  230. line-height: 40px;
  231. cursor: pointer;
  232. width: 40px;
  233. height: 40px;
  234. padding: 10px;
  235. margin: 5px;
  236. border: 1px solid black;
  237. background-color: #ddd;
  238. }
  239. .react-grid-layout {
  240. position: relative;
  241. transition: height 200ms ease;
  242. }
  243. .react-grid-item {
  244. transition: all 200ms ease;
  245. transition-property: left, top;
  246. }
  247. .react-grid-item.cssTransforms {
  248. transition-property: transform;
  249. }
  250. .react-grid-item.resizing {
  251. z-index: 2;
  252. opacity: 0.5;
  253. will-change: width, height;
  254. }
  255. .react-grid-item.react-draggable-dragging {
  256. transition: none;
  257. opacity: 0.8;
  258. z-index: 3 !important;
  259. will-change: transform;
  260. }
  261. .react-grid-item.react-grid-placeholder {
  262. background: #dddddd;
  263. border: 5px dashed #cccccc;
  264. transition-duration: 100ms;
  265. z-index: 1;
  266. user-select: none;
  267. }
  268. .react-grid-item > .react-resizable-handle {
  269. height: 10px;
  270. bottom: 0;
  271. right: 0;
  272. cursor: s-resize;
  273. background: transparent;
  274. &::after {
  275. content: "";
  276. cursor: se-resize;
  277. position: absolute;
  278. right: 3px;
  279. bottom: 3px;
  280. width: 7px;
  281. height: 7px;
  282. border-width: 0 2px 2px 0;
  283. border-style: solid;
  284. border-color: #EEEEEE;
  285. }
  286. }
  287. }
  288. .previewbox {
  289. top: 0;
  290. padding-bottom: 0;
  291. .ant-modal-content {
  292. height: 100%;
  293. .ant-modal-close {
  294. display: none;
  295. }
  296. .ant-modal-body {
  297. height: 100%;
  298. padding-top: 0;
  299. .chartview {
  300. display: flex;
  301. flex-direction: column;
  302. height: 100%;
  303. padding-top: 40px;
  304. .chartview-toolbar {
  305. padding: 0;
  306. height: 40px;
  307. margin-top: -40px;
  308. display: flex;
  309. justify-content: space-between;
  310. background: #fff;
  311. .chart-title {
  312. font-size: 20px;
  313. line-height: 2.5;
  314. }
  315. .chart-tools {
  316. font-size: 20px;
  317. line-height: 2;
  318. white-space: nowrap;
  319. .anticon {
  320. margin-left: 10px;
  321. cursor: pointer;
  322. }
  323. }
  324. }
  325. .chartview-content {
  326. flex:1;
  327. overflow: hidden;
  328. .ant-table-body {
  329. margin-top: 0;
  330. }
  331. }
  332. }
  333. }
  334. }
  335. &.mobile {
  336. top: 0;
  337. margin: 0;
  338. max-width: 100%;
  339. .ant-modal-body {
  340. padding: 0 12px;
  341. }
  342. }
  343. }