FormDesign.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <script setup name="FormDesign">
  2. defineProps({
  3. label: {
  4. type: String
  5. },
  6. name: {
  7. type: String
  8. }
  9. })
  10. import draggable from 'vuedraggable'
  11. </script>
  12. <template>
  13. <h1>123</h1>
  14. </template>
  15. <style scoped lang="scss">
  16. .form-design-wrap {
  17. }
  18. .leftItem {
  19. padding-left: 50px;
  20. }
  21. .zj {
  22. display: inline-block;
  23. width: 140px;
  24. margin: 5px;
  25. }
  26. $f22_width: 400px;
  27. $center_width: 360px;
  28. .drag-content {
  29. min-height: 640px;
  30. //border: 1px solid;
  31. width: $center_width;
  32. border-radius: 20px;
  33. padding: 30px 10px;
  34. background-color: white;
  35. margin-left: calc(50% - ($center_width) / 2);
  36. box-shadow: 0 0 10px grey;
  37. }
  38. .drag-content-inner {
  39. background-color: var(--el-bg-color-page);
  40. border-radius: 5px;
  41. padding: 5px;
  42. }
  43. .f11 {
  44. width: calc(100% - $f22_width);
  45. }
  46. .f22 {
  47. width: $f22_width;
  48. }
  49. .okcomponent {
  50. padding: 5px;
  51. border-radius: 0px;
  52. margin-bottom: 10px;
  53. background-color: white;
  54. border: 1px solid white;
  55. }
  56. .active-component {
  57. border: 1px solid var(--el-color-primary);
  58. }
  59. .deleteIcon {
  60. position: absolute;
  61. margin-left: calc($center_width - 60px);
  62. z-index: 20;
  63. }
  64. .deleteIcon:hover {
  65. cursor: pointer;
  66. color: palevioletred;
  67. }
  68. </style>