[新增] buttonContainer 按钮容器
This commit is contained in:
@@ -4,6 +4,7 @@ import type { IDefineComponent, InstallOptions } from './module/type/index'
|
||||
import "./css/layui.css";
|
||||
import LayRadio from './module/radio/index'
|
||||
import LayButton from './module/button/index'
|
||||
import LayButtonContainer from './module/buttonContainer/index'
|
||||
import LayButtonGroup from './module/buttonGroup/index'
|
||||
import LayIcon from './module/icon/index'
|
||||
import LayCard from './module/card/index'
|
||||
@@ -29,7 +30,8 @@ const components: Record<string, IDefineComponent> = {
|
||||
LayPanel,
|
||||
LayCard,
|
||||
LayProgress,
|
||||
LayButtonGroup
|
||||
LayButtonGroup,
|
||||
LayButtonContainer
|
||||
}
|
||||
|
||||
const install = (app: App, options?: InstallOptions): void => {
|
||||
@@ -56,6 +58,7 @@ export {
|
||||
LayCard,
|
||||
LayProgress,
|
||||
LayButtonGroup,
|
||||
LayButtonContainer,
|
||||
install,
|
||||
}
|
||||
|
||||
|
||||
9
src/module/buttonContainer/index.ts
Normal file
9
src/module/buttonContainer/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { App } from 'vue'
|
||||
import Component from './index.vue'
|
||||
import type { IDefineComponent } from '../type/index'
|
||||
|
||||
Component.install = (app: App) => {
|
||||
app.component(Component.name || 'LayButtonContainer', Component)
|
||||
}
|
||||
|
||||
export default Component as IDefineComponent
|
||||
9
src/module/buttonContainer/index.vue
Normal file
9
src/module/buttonContainer/index.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<div class="layui-btn-container">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="LayButtonContainer" lang="ts">
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user