修复 src 结构
This commit is contained in:
16
src/component/buttonContainer/index.less
Normal file
16
src/component/buttonContainer/index.less
Normal file
@@ -0,0 +1,16 @@
|
||||
.layui-btn-container {
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.layui-btn-container .layui-btn {
|
||||
margin-right: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.layui-btn-container .layui-btn + .layui-btn {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.layui-table .layui-btn-container .layui-btn {
|
||||
margin-bottom: 9px;
|
||||
}
|
||||
9
src/component/buttonContainer/index.ts
Normal file
9
src/component/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;
|
||||
15
src/component/buttonContainer/index.vue
Normal file
15
src/component/buttonContainer/index.vue
Normal file
@@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div class="layui-btn-container">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: "LayButtonContainer",
|
||||
};
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import "./index.less";
|
||||
</script>
|
||||
Reference in New Issue
Block a user