fill.vue 638 B

123456789101112131415161718192021222324
  1. <template>
  2. <div>
  3. <div style="margin-bottom: 15px">fill: <el-switch v-model="fill" /></div>
  4. <el-space :fill="fill" wrap>
  5. <el-card v-for="i in 3" :key="i" class="box-card">
  6. <template #header>
  7. <div class="card-header">
  8. <span>Card name</span>
  9. <el-button class="button" text>Operation button</el-button>
  10. </div>
  11. </template>
  12. <div v-for="o in 4" :key="o" class="text item">
  13. {{ 'List item ' + o }}
  14. </div>
  15. </el-card>
  16. </el-space>
  17. </div>
  18. </template>
  19. <script lang="ts" setup>
  20. import { ref } from 'vue'
  21. const fill = ref(true)
  22. </script>