index.vue 954 B

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