View.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. @import "~assets/less/variable";
  2. .viewEditor {
  3. flex: 1;
  4. display: flex;
  5. flex-direction: column;
  6. overflow-y: scroll;
  7. .header {
  8. height: 64px;
  9. line-height: 64px;
  10. background-color: @light-bg;
  11. border-bottom: 1px solid @border-color-base;
  12. }
  13. .steps {
  14. width: 33.33%;
  15. margin: auto;
  16. height: 100%;
  17. display: flex;
  18. align-items: center;
  19. }
  20. .containerVertical {
  21. flex: 1;
  22. display: flex;
  23. flex-direction: row;
  24. min-width: 0;
  25. min-height: 0;
  26. }
  27. .containerHorizontal {
  28. flex: 1;
  29. display: flex;
  30. flex-direction: column;
  31. min-width: 0;
  32. min-height: 0;
  33. }
  34. .sider {
  35. border-right: 1px solid @border-color-base;
  36. display: flex;
  37. flex-direction: column;
  38. & > div {
  39. flex: 1;
  40. display: flex;
  41. }
  42. :global(.react-resizable-handle) {
  43. position: absolute;
  44. width: 16px;
  45. height: 100%;
  46. padding: 0;
  47. bottom: 0;
  48. right: -8px;
  49. cursor: col-resize;
  50. background: none;
  51. }
  52. }
  53. .right {
  54. border-bottom: 1px solid @border-color-base;
  55. margin-bottom: -1px;
  56. box-sizing: content-box;
  57. user-select: none;
  58. flex-shrink: 0;
  59. display: flex;
  60. flex-direction: column;
  61. :global(.react-resizable-handle) {
  62. position: absolute;
  63. height: 16px;
  64. width: 100%;
  65. padding: 0;
  66. bottom: 0;
  67. cursor: row-resize;
  68. background: none;
  69. }
  70. }
  71. .sqlEditor {
  72. flex: 1;
  73. padding: 16px;
  74. border-right: 1px solid @border-color-base;
  75. min-height: 0;
  76. min-width: 0;
  77. }
  78. .preview {
  79. padding: 0 16px;
  80. overflow: hidden;
  81. }
  82. .authTab {
  83. position: relative;
  84. margin-left: 16px;
  85. .containerHorizontal
  86. }
  87. .authTable {
  88. position: absolute;
  89. overflow-y: auto;
  90. top: 52px;
  91. left: 0;
  92. right: 0;
  93. bottom: 8px;
  94. padding-right: 16px;
  95. background: #f7f7f7;
  96. }
  97. .bottom {
  98. border: 1px solid @border-color-base;
  99. border-left: none;
  100. padding: 16px;
  101. .previewInput span {
  102. display: inline-block;
  103. padding: 0 8px;
  104. }
  105. :global(.ant-input) {
  106. width: 72px;
  107. }
  108. .toolBtns {
  109. text-align: right;
  110. button {
  111. margin-left: 16px;
  112. }
  113. }
  114. }
  115. }
  116. .sourceTable {
  117. width: 100%;
  118. display: flex;
  119. flex-direction: column;
  120. :global(.ant-row) {
  121. padding: 16px 16px 0 16px;
  122. }
  123. div[class*='col-'] {
  124. margin-bottom: 16px;
  125. }
  126. .tree {
  127. flex: 1;
  128. padding: 0 16px;
  129. margin-bottom: 16px;
  130. position: relative;
  131. > ul {
  132. overflow: auto;
  133. user-select: none;
  134. position: absolute;
  135. top: 0;
  136. bottom: 0;
  137. left: 16px;
  138. right: 16px;
  139. }
  140. }
  141. }
  142. .viewVariable {
  143. width: 280px;
  144. display: flex;
  145. flex-direction: column;
  146. .viewVariableHeader {
  147. display: flex;
  148. flex-direction: row;
  149. padding: 0 16px;
  150. line-height: 1;
  151. h4 {
  152. flex: 1;
  153. }
  154. }
  155. :global {
  156. .ant-spin-nested-loading {
  157. flex: 1;
  158. }
  159. .ant-list-item-action {
  160. margin-left: 8px;
  161. display: none;
  162. li {
  163. padding: 0 4px;
  164. }
  165. }
  166. .ant-list-item:hover .ant-list-item-action {
  167. display: block;
  168. }
  169. .ant-list-item-action {
  170. margin-left: 0;
  171. margin-right: 12px;
  172. }
  173. .ant-tag {
  174. width: 55px;
  175. text-align: center;
  176. margin-left: 16px;
  177. }
  178. }
  179. .variableItem {
  180. flex: 1;
  181. white-space: nowrap;
  182. text-overflow: ellipsis;
  183. overflow: hidden;
  184. padding-right: 16px;
  185. }
  186. }
  187. .sqlPreview {
  188. background: #f7f7f7;
  189. padding-top: 1px;
  190. :global {
  191. .ant-table-tbody > tr > td {
  192. word-break: break-all;
  193. }
  194. }
  195. }
  196. .modelAuth {
  197. .cellIcon {
  198. margin-left: 8px;
  199. }
  200. .tableControl {
  201. width: 160px;
  202. }
  203. .cellVarValue {
  204. display: flex;
  205. flex-direction: row;
  206. align-items: center;
  207. }
  208. .cellVarCheckbox {
  209. margin-right: 8px;
  210. margin-bottom: 4px;
  211. }
  212. .cellVarInput {
  213. flex: 1;
  214. }
  215. }
  216. .errorMessage {
  217. max-width: 640px;
  218. max-height: 480px;
  219. overflow-y: auto;
  220. }
  221. .shortcuts {
  222. width: 300px;
  223. }