index.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <el-row class="vab-query-form" :gutter="0">
  3. <slot />
  4. </el-row>
  5. </template>
  6. <style lang="scss" scoped>
  7. @use 'sass:math';
  8. @mixin panel {
  9. display: flex;
  10. flex-wrap: wrap;
  11. align-content: center;
  12. align-items: center;
  13. justify-content: flex-start;
  14. min-height: $base-input-height;
  15. margin: 0 0 #{math.div($base-margin, 2)} 0;
  16. .el-form-item__content {
  17. display: flex;
  18. align-items: center;
  19. }
  20. > .el-button {
  21. margin: 0 10px #{math.div($base-margin, 2)} 0 !important;
  22. }
  23. }
  24. .vab-query-form {
  25. :deep() {
  26. .el-form-item:first-child {
  27. margin: 0 0 #{math.div($base-margin, 2)} 0 !important;
  28. }
  29. .el-form-item + .el-form-item {
  30. margin: 0 0 #{math.div($base-margin, 2)} 0 !important;
  31. .el-button {
  32. margin: 0 0 0 10px !important;
  33. }
  34. }
  35. .top-panel {
  36. @include panel;
  37. }
  38. .bottom-panel {
  39. @include panel;
  40. border-top: 1px solid #dcdfe6;
  41. }
  42. .left-panel {
  43. @include panel;
  44. }
  45. .right-panel {
  46. @include panel;
  47. justify-content: flex-end;
  48. }
  49. }
  50. }
  51. </style>