layui/src/module/button/index.vue

21 lines
445 B
Vue
Raw Normal View History

2021-09-26 22:09:33 +00:00
<template>
2021-09-27 03:27:36 +00:00
<button
class="layui-btn"
2021-09-27 05:35:53 +00:00
:class="[type ? 'layui-btn-' + type : '', size ? 'layui-btn-' + size : '',fluid ? 'layui-btn-fluid':'',radius ? 'layui-btn-radius':'']"
2021-09-27 03:27:36 +00:00
>
<slot></slot>
</button>
2021-09-26 22:09:33 +00:00
</template>
<script setup name="LayButton" lang="ts">
2021-09-27 03:27:36 +00:00
import { defineProps } from '@vue/runtime-core'
2021-09-26 22:09:33 +00:00
2021-09-27 03:27:36 +00:00
const props =
defineProps<{
type?: string
size?: string
2021-09-27 05:35:53 +00:00
fluid?: boolean
radius?: boolean
2021-09-27 03:27:36 +00:00
}>()
2021-09-26 22:09:33 +00:00
</script>