[更新] README.md
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
<template>
|
||||
<button class="layui-btn" :class="[type ? 'layui-btn-' + type : '',size ? 'layui-btn-' + size : '']">
|
||||
<slot></slot>
|
||||
</button>
|
||||
<button
|
||||
class="layui-btn"
|
||||
:class="[type ? 'layui-btn-' + type : '', size ? 'layui-btn-' + size : '']"
|
||||
>
|
||||
<slot></slot>
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script setup name="LayButton" lang="ts">
|
||||
import { defineProps } from "@vue/runtime-core";
|
||||
|
||||
const props = defineProps<{
|
||||
type?: string,
|
||||
size?: string
|
||||
}>()
|
||||
import { defineProps } from '@vue/runtime-core'
|
||||
|
||||
const props =
|
||||
defineProps<{
|
||||
type?: string
|
||||
size?: string
|
||||
}>()
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user