element-plus/docs/examples/space/fill.vue
JeremyWuuuuu e97fe719c4
chore(docs): update text button type (#7533)
- Update button's type in examples per changes for button
2022-05-06 17:33:52 +08:00

25 lines
638 B
Vue

<template>
<div>
<div style="margin-bottom: 15px">fill: <el-switch v-model="fill" /></div>
<el-space :fill="fill" wrap>
<el-card v-for="i in 3" :key="i" class="box-card">
<template #header>
<div class="card-header">
<span>Card name</span>
<el-button class="button" text>Operation button</el-button>
</div>
</template>
<div v-for="o in 4" :key="o" class="text item">
{{ 'List item ' + o }}
</div>
</el-card>
</el-space>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
const fill = ref(true)
</script>