index.scss 12 KB

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