ConfigItemBox.vue 603 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div class="go-config-item-box go-flex-items-center">
  3. <n-text class="item-left">{{ name }}</n-text>
  4. <n-space class="item-right" justify="space-between">
  5. <slot />
  6. </n-space>
  7. </div>
  8. </template>
  9. <script setup lang="ts">
  10. defineProps({
  11. name: {
  12. type: String,
  13. required: true
  14. }
  15. })
  16. </script>
  17. <style lang="scss" scoped>
  18. $leftWidth: 100px;
  19. @include go('config-item-box') {
  20. position: relative;
  21. justify-content: flex-start;
  22. .item-left {
  23. width: $leftWidth;
  24. text-align: left;
  25. margin-left: 10px;
  26. }
  27. .item-right {
  28. margin-left: 10px;
  29. }
  30. }
  31. </style>