[依赖] 整体架构依赖升级
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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<{
|
||||
|
||||
Reference in New Issue
Block a user