index.vue 1.2 KB

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