[依赖] 整体架构依赖升级

This commit is contained in:
就眠仪式
2021-09-29 17:22:33 +08:00
parent 4bf593831c
commit 0917b9dd3c
24 changed files with 6420 additions and 80 deletions

View File

@@ -3,7 +3,7 @@ import Component from './index.vue'
import type { IDefineComponent } from '../type/index'
Component.install = (app: App) => {
app.component(Component.name || 'LayButton ', Component)
app.component(Component.name || 'LayButton', Component)
}
export default Component as IDefineComponent

View File

@@ -1,14 +1,19 @@
<template>
<button
class="layui-btn"
:class="[type ? 'layui-btn-' + type : '', size ? 'layui-btn-' + size : '',fluid ? 'layui-btn-fluid':'',radius ? 'layui-btn-radius':'']"
:class="[
type ? 'layui-btn-' + type : '',
size ? 'layui-btn-' + size : '',
fluid ? 'layui-btn-fluid' : '',
radius ? 'layui-btn-radius' : '',
]"
>
<slot></slot>
</button>
</template>
<script setup name="LayButton" lang="ts">
import { defineProps } from '@vue/runtime-core'
import { defineProps } from 'vue'
const props =
defineProps<{