2022-05-14 12:20:02 +08:00
|
|
|
<template>
|
|
|
|
<p>Basic link button</p>
|
2022-05-14 12:58:09 +08:00
|
|
|
<div class="flex justify-space-between mb-4 flex-wrap gap-4">
|
2022-05-14 12:20:02 +08:00
|
|
|
<el-button
|
|
|
|
v-for="button in buttons"
|
|
|
|
:key="button.text"
|
|
|
|
:type="button.type"
|
|
|
|
link
|
|
|
|
>{{ button.text }}</el-button
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p>Disabled link button</p>
|
2022-05-14 12:58:09 +08:00
|
|
|
<div class="flex justify-space-between flex-wrap gap-4">
|
2022-05-14 12:20:02 +08:00
|
|
|
<el-button
|
|
|
|
v-for="button in buttons"
|
|
|
|
:key="button.text"
|
|
|
|
:type="button.type"
|
|
|
|
link
|
|
|
|
disabled
|
|
|
|
>{{ button.text }}</el-button
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
const buttons = [
|
|
|
|
{ type: '', text: 'plain' },
|
|
|
|
{ type: 'primary', text: 'primary' },
|
|
|
|
{ type: 'success', text: 'success' },
|
|
|
|
{ type: 'info', text: 'info' },
|
|
|
|
{ type: 'warning', text: 'warning' },
|
|
|
|
{ type: 'danger', text: 'danger' },
|
|
|
|
] as const
|
|
|
|
</script>
|