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