index.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. $primary-color: #409eff;
  2. $primary-active-color: #ecf5ff;
  3. $primary-background-color: #ecf8ff;
  4. *,
  5. :after,
  6. :before {
  7. -webkit-box-sizing: border-box;
  8. -moz-box-sizing: border-box;
  9. box-sizing: border-box;
  10. }
  11. body {
  12. margin: 0 !important;
  13. }
  14. #app {
  15. font-family: "Avenir", Helvetica, Arial, sans-serif;
  16. -webkit-font-smoothing: antialiased;
  17. -moz-osx-font-smoothing: grayscale;
  18. color: #2c3e50;
  19. min-height: 100%;
  20. height: 100%;
  21. }
  22. .form-designer {
  23. height: 100%;
  24. background: #fff;
  25. outline: 1px solid #e4e7ed;
  26. ::-webkit-scrollbar {
  27. width: 0px !important;
  28. height: 0px !important;
  29. }
  30. ::-webkit-scrollbar-track {
  31. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0) !important;
  32. border-radius: 10px !important;
  33. background-color: rgba(0, 0, 0, 0) !important;
  34. }
  35. ::-webkit-scrollbar-thumb {
  36. border-radius: 10px !important;
  37. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0) !important;
  38. background-color: #fff !important;
  39. }
  40. .fields-list {
  41. padding: 10px 0;
  42. width: 100%;
  43. height: 100%;
  44. .field-title {
  45. padding: 8px 12px;
  46. font-size: 13px;
  47. }
  48. ul {
  49. position: relative;
  50. overflow: hidden;
  51. padding: 0 10px 10px;
  52. margin: 0;
  53. }
  54. .field-label {
  55. font-size: 12px;
  56. display: block;
  57. width: 48%;
  58. line-height: 26px;
  59. position: relative;
  60. float: left;
  61. left: 0;
  62. overflow: hidden;
  63. text-overflow: ellipsis;
  64. white-space: nowrap;
  65. margin: 1%;
  66. color: #333;
  67. border: 1px solid #f4f6fc;
  68. &:hover {
  69. color: $primary-color;
  70. border: 1px dashed $primary-color;
  71. }
  72. & > a {
  73. display: block;
  74. cursor: move;
  75. background: #f4f6fc;
  76. border: 1px solid #f4f6fc;
  77. color: #333;
  78. .icon {
  79. margin-right: 6px;
  80. margin-left: 8px;
  81. font-size: 14px;
  82. display: inline-block;
  83. vertical-align: middle;
  84. }
  85. span {
  86. display: inline-block;
  87. vertical-align: middle;
  88. }
  89. }
  90. }
  91. .field-label-disabled {
  92. font-size: 12px;
  93. display: block;
  94. width: 48%;
  95. line-height: 26px;
  96. position: relative;
  97. float: left;
  98. left: 0;
  99. overflow: hidden;
  100. text-overflow: ellipsis;
  101. white-space: nowrap;
  102. margin: 1%;
  103. color: #333;
  104. border: 1px solid #f4f6fc;
  105. &:hover {
  106. color: gray;
  107. border: 1px dashed gray;
  108. }
  109. & > a {
  110. display: block;
  111. cursor: not-allowed;
  112. background: #f4f6fc;
  113. border: 1px solid #f4f6fc;
  114. .icon {
  115. margin-right: 6px;
  116. margin-left: 8px;
  117. font-size: 14px;
  118. display: inline-block;
  119. vertical-align: middle;
  120. }
  121. span {
  122. display: inline-block;
  123. vertical-align: middle;
  124. }
  125. }
  126. }
  127. }
  128. .widget-container {
  129. flex: 1;
  130. border-left: 1px solid #e0e0e0;
  131. border-right: 1px solid #e0e0e0;
  132. .widget-container-header {
  133. height: 45px !important;
  134. display: flex;
  135. justify-content: space-between;
  136. align-items: center;
  137. border-bottom: solid 2px #e4e7ed;
  138. }
  139. .el-main {
  140. padding: 0;
  141. position: relative;
  142. }
  143. }
  144. .widget-form-container {
  145. height: 100%;
  146. position: relative;
  147. top: 0;
  148. left: 0;
  149. right: 0;
  150. bottom: 0;
  151. .el-form {
  152. height: 100%;
  153. .el-row {
  154. height: 100%;
  155. }
  156. }
  157. .widget-form-list {
  158. height: 100%;
  159. min-height: calc(100% - 45px);
  160. padding-bottom: 50px;
  161. overflow: hidden;
  162. overflow-y: scroll;
  163. .widget-form-item {
  164. min-height: 55px;
  165. padding: 5px 10px 18px;
  166. margin: 0;
  167. position: relative;
  168. border-left: 5px solid transparent;
  169. &.required {
  170. .el-form-item__label::before {
  171. content: "*";
  172. color: #f56c6c;
  173. margin-right: 4px;
  174. }
  175. }
  176. &:after {
  177. position: absolute;
  178. left: 0;
  179. right: 0;
  180. bottom: 0;
  181. top: 0;
  182. display: block;
  183. z-index: 1001;
  184. }
  185. &:hover {
  186. background: $primary-background-color;
  187. cursor: move;
  188. }
  189. &.active {
  190. border-left: 3px solid $primary-color;
  191. background: $primary-active-color;
  192. }
  193. .widget-action-delete {
  194. position: absolute;
  195. right: 10px;
  196. bottom: -32px;
  197. z-index: 1002;
  198. }
  199. .widget-action-clone {
  200. position: absolute;
  201. right: 50px;
  202. bottom: -32px;
  203. z-index: 1002;
  204. }
  205. }
  206. .widget-form-table {
  207. position: relative;
  208. padding: 2px;
  209. float: left;
  210. width: 100%;
  211. &__content {
  212. display: flex;
  213. padding: 10px 5px;
  214. width: 100%;
  215. height: 100%;
  216. overflow-y: hidden;
  217. outline: 1px dashed #ccc;
  218. outline-offset: -1px;
  219. min-height: 103px;
  220. .ghost {
  221. background: white;
  222. border-left: 5px solid $primary-color;
  223. box-sizing: border-box;
  224. font-size: 0;
  225. content: "";
  226. overflow: hidden;
  227. padding: 0 !important;
  228. position: relative;
  229. outline: none 0;
  230. height: 100%;
  231. min-height: 90px;
  232. width: 0 !important;
  233. min-width: 0 !important;
  234. margin: 1px 2px 0 2px;
  235. }
  236. }
  237. &__item {
  238. position: relative;
  239. min-width: 33.3%;
  240. width: 33.3%;
  241. padding: 1px;
  242. height: 100%;
  243. &.required {
  244. .el-table__header .cell::before {
  245. content: "*";
  246. color: #f56c6c;
  247. margin-right: 4px;
  248. }
  249. }
  250. &.active {
  251. outline: 1px solid $primary-color;
  252. outline-offset: -1px;
  253. }
  254. &:hover {
  255. outline: 1px solid $primary-color;
  256. outline-offset: -1px;
  257. cursor: move;
  258. }
  259. &:after {
  260. position: absolute;
  261. left: 0;
  262. right: 0;
  263. bottom: 0;
  264. top: 0;
  265. display: block;
  266. content: "";
  267. z-index: 1001;
  268. }
  269. .widget-table-action-delete {
  270. position: absolute;
  271. right: 0;
  272. bottom: 0;
  273. z-index: 1002;
  274. }
  275. .widget-table-action-clone {
  276. position: absolute;
  277. right: 30px;
  278. bottom: 0;
  279. z-index: 1002;
  280. i {
  281. font-size: 10px;
  282. }
  283. }
  284. .el-button--small.is-circle {
  285. padding: 5px;
  286. }
  287. }
  288. &.active {
  289. border-left: 3px solid $primary-color;
  290. background: $primary-active-color;
  291. }
  292. &:hover {
  293. background: $primary-background-color;
  294. cursor: move;
  295. }
  296. .widget-action-delete {
  297. position: absolute;
  298. right: 10px;
  299. bottom: -12px;
  300. z-index: 1001;
  301. }
  302. .widget-action-clear {
  303. position: absolute;
  304. right: 50px;
  305. bottom: -12px;
  306. z-index: 1001;
  307. }
  308. .widget-action-clone {
  309. position: absolute;
  310. right: 90px;
  311. bottom: -12px;
  312. z-index: 1001;
  313. }
  314. }
  315. .widget-form-group {
  316. position: relative;
  317. width: 100%;
  318. float: left;
  319. padding: 2px;
  320. &__head {
  321. margin: 10px;
  322. }
  323. &__body {
  324. min-height: 150px;
  325. height: 100%;
  326. outline: 1px dashed #ccc;
  327. outline-offset: -1px;
  328. overflow: hidden;
  329. padding-bottom: 15px;
  330. .ghost {
  331. background: white;
  332. border-left: 5px solid $primary-color;
  333. box-sizing: border-box;
  334. font-size: 0;
  335. content: "";
  336. overflow: hidden;
  337. padding: 0 !important;
  338. position: relative;
  339. outline: none 0;
  340. height: 100%;
  341. min-height: 57px;
  342. width: 0 !important;
  343. min-width: 0 !important;
  344. margin: 1px 2px 0 2px;
  345. }
  346. }
  347. &__item {
  348. padding: 10px;
  349. margin: 3px;
  350. position: relative;
  351. border-left: 5px solid transparent;
  352. background: white;
  353. &.required {
  354. .el-form-item__label::before {
  355. content: "*";
  356. color: #f56c6c;
  357. margin-right: 4px;
  358. }
  359. }
  360. &.active {
  361. outline: 1px solid $primary-color;
  362. outline-offset: -1px;
  363. }
  364. &:hover {
  365. outline: 1px solid $primary-color;
  366. outline-offset: -1px;
  367. cursor: move;
  368. }
  369. &:after {
  370. position: absolute;
  371. left: 0;
  372. right: 0;
  373. bottom: 0;
  374. top: 0;
  375. display: block;
  376. content: "";
  377. z-index: 1001;
  378. }
  379. &--delete {
  380. position: absolute;
  381. right: 0;
  382. bottom: -24px;
  383. z-index: 1002;
  384. }
  385. &--clone {
  386. position: absolute;
  387. right: 34px;
  388. bottom: -24px;
  389. z-index: 1002;
  390. }
  391. }
  392. &.active {
  393. border-left: 3px solid $primary-color;
  394. background: $primary-active-color;
  395. }
  396. &:hover {
  397. background: $primary-background-color;
  398. cursor: move;
  399. }
  400. .widget-action-delete {
  401. position: absolute;
  402. right: 10px;
  403. bottom: -12px;
  404. z-index: 1001;
  405. }
  406. .widget-action-clear {
  407. position: absolute;
  408. right: 50px;
  409. bottom: -12px;
  410. z-index: 1001;
  411. }
  412. .widget-action-clone {
  413. position: absolute;
  414. right: 90px;
  415. bottom: -12px;
  416. z-index: 1001;
  417. }
  418. }
  419. .iconfont {
  420. font-size: 13px;
  421. }
  422. .el-button--small.is-circle {
  423. padding: 7px;
  424. }
  425. }
  426. .ghost {
  427. background: white;
  428. border-top: 5px solid $primary-color;
  429. box-sizing: border-box;
  430. font-size: 0;
  431. content: "";
  432. overflow: hidden;
  433. padding: 0 !important;
  434. position: relative;
  435. outline: none 0;
  436. height: 0 !important;
  437. width: 100%;
  438. margin: 2px 0;
  439. }
  440. }
  441. .widget-config-container {
  442. height: 100%;
  443. padding-top: 5px;
  444. .el-tabs {
  445. height: 100%;
  446. }
  447. .el-tabs__header {
  448. margin: 0;
  449. height: 45px;
  450. background: white;
  451. z-index: 1000;
  452. }
  453. .el-tabs__content {
  454. height: calc(100% - 45px);
  455. overflow-y: scroll;
  456. }
  457. .widget-config {
  458. .el-tabs__header {
  459. position: relative;
  460. display: block;
  461. top: 0;
  462. margin: 0;
  463. }
  464. .el-tabs__content {
  465. margin-top: 0;
  466. }
  467. .ghost {
  468. background: #fff;
  469. border: 1px dashed $primary-color;
  470. }
  471. ul {
  472. margin: 0;
  473. padding: 0;
  474. li {
  475. display: flex;
  476. align-items: center;
  477. width: 100%;
  478. .ghost {
  479. list-style: none;
  480. font-size: 0;
  481. height: 35px;
  482. }
  483. }
  484. }
  485. }
  486. .avue-group__item {
  487. padding: 0;
  488. }
  489. }
  490. .el-container {
  491. height: 100%;
  492. .el-main {
  493. height: calc(100% - 45px);
  494. }
  495. .el-aside {
  496. background: #fff;
  497. }
  498. }
  499. .danger {
  500. color: #f56c6c;
  501. }
  502. .warning {
  503. color: #e6a23c;
  504. }
  505. .el-input-number.is-controls-right {
  506. .el-input-number__decrease {
  507. border-left: none;
  508. }
  509. .el-input-number__increase {
  510. border-left: none;
  511. border-bottom: none;
  512. }
  513. }
  514. .el-date-editor,
  515. .el-cascader,
  516. .el-select,
  517. .el-input-number {
  518. width: 100%;
  519. }
  520. }
  521. .drawer-foot {
  522. position: absolute;
  523. bottom: 0;
  524. left: 0;
  525. right: 0;
  526. padding: 20px;
  527. display: flex;
  528. button {
  529. width: 50%;
  530. }
  531. & > span {
  532. display: inline-block;
  533. width: 50%;
  534. button {
  535. width: 100%;
  536. }
  537. }
  538. }
  539. .preview-form {
  540. overflow-y: scroll;
  541. height: 83vh;
  542. }
  543. .popper-bo {
  544. .el-alert {
  545. margin-bottom: 10px;
  546. }
  547. }
  548. .el-drawer__wrapper {
  549. :focus {
  550. outline: 0;
  551. }
  552. }