viewLayout.less 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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. padding: 0 8px;
  63. .dashboard-table { // 表格
  64. height: 100%;
  65. .ant-spin-nested-loading {
  66. height: 100%;
  67. .ant-spin-container {
  68. height: 100%;
  69. padding-bottom: 10px;
  70. .ant-table {
  71. overflow: hidden;
  72. .ant-table-content {
  73. height: 100%;
  74. .ant-table-scroll {
  75. height: 100%;
  76. .ant-table-body {
  77. height: calc(~"100% - 38px");
  78. margin-top: 0;
  79. }
  80. }
  81. }
  82. }
  83. .ant-pagination {
  84. margin: 8px 0;
  85. }
  86. }
  87. }
  88. }
  89. .chart-default { // echart缺省
  90. background-image: url(../../../static/images/thumbnail-default.png);
  91. width: 100%;
  92. height: 100%;
  93. max-width: 200px;
  94. background-position: center;
  95. background-size: contain;
  96. background-repeat: no-repeat;
  97. }
  98. .richtexteditor { // 富文本
  99. height: 100%;
  100. .w-e-toolbar {
  101. height: 40px;
  102. background-color: white !important;
  103. position: absolute;
  104. top: 0;
  105. display: none;
  106. }
  107. .w-e-text-container {
  108. height: 100% !important;
  109. overflow: auto;
  110. border: none !important;
  111. .w-e-text {
  112. padding: 0 14px;
  113. overflow-y: auto;
  114. &>table {
  115. margin: 0;
  116. }
  117. &>p {
  118. margin: 0;
  119. }
  120. }
  121. .w-e-panel-container {
  122. z-index:100000;
  123. }
  124. }
  125. }
  126. }
  127. &:hover {
  128. .chart-tools {
  129. .anticon {
  130. display: inline-block;
  131. &:hover {
  132. color: @icon-color-hover;
  133. }
  134. }
  135. }
  136. }
  137. }
  138. .chartview-edit {
  139. .chartview-toolbar {
  140. cursor: move;
  141. }
  142. .chartview-content {
  143. height: calc(~'100% - 20px');
  144. width: 100%;
  145. padding: 8px;
  146. .richtexteditor {
  147. .w-e-text-container {
  148. pointer-events: all;
  149. }
  150. }
  151. }
  152. }
  153. .react-grid-layout {
  154. // background: #eee;
  155. }
  156. .layoutJSON {
  157. background: #ddd;
  158. border: 1px solid black;
  159. margin-top: 10px;
  160. padding: 10px;
  161. }
  162. .columns {
  163. -moz-columns: 120px;
  164. -webkit-columns: 120px;
  165. columns: 120px;
  166. }
  167. .react-grid-item {
  168. box-sizing: border-box;
  169. }
  170. .react-grid-item.resizing {
  171. opacity: 0.9;
  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. height: 10px;
  262. bottom: 0;
  263. right: 0;
  264. cursor: s-resize;
  265. background: transparent;
  266. &::after {
  267. content: "";
  268. cursor: se-resize;
  269. position: absolute;
  270. right: 3px;
  271. bottom: 3px;
  272. width: 7px;
  273. height: 7px;
  274. border-width: 0 2px 2px 0;
  275. border-style: solid;
  276. border-color: #EEEEEE;
  277. }
  278. }
  279. }
  280. .previewbox {
  281. top: 10%;
  282. padding-bottom: 0;
  283. .ant-modal-content {
  284. height: 100%;
  285. .ant-modal-close {
  286. display: none;
  287. }
  288. .ant-modal-body {
  289. height: 100%;
  290. padding-top: 0;
  291. .chartview {
  292. display: flex;
  293. flex-direction: column;
  294. height: 100%;
  295. padding-top: 40px;
  296. .chartview-toolbar {
  297. padding: 0;
  298. height: 40px;
  299. margin-top: -40px;
  300. display: flex;
  301. justify-content: space-between;
  302. background: #fff;
  303. .chart-title {
  304. font-size: 20px;
  305. line-height: 2.5;
  306. }
  307. .chart-tools {
  308. font-size: 20px;
  309. line-height: 2;
  310. white-space: nowrap;
  311. .anticon {
  312. margin-left: 10px;
  313. cursor: pointer;
  314. }
  315. }
  316. }
  317. .chartview-content {
  318. flex:1;
  319. overflow: hidden;
  320. .ant-table-body {
  321. margin-top: 0;
  322. }
  323. }
  324. }
  325. }
  326. }
  327. }