add alpha branch

This commit is contained in:
就眠儀式
2022-01-27 16:18:16 +08:00
parent 5c79b2b9ba
commit 5ea8b7bf7c
103 changed files with 577 additions and 474 deletions

View File

@@ -1,6 +1,6 @@
import type { App } from "vue";
import Component from "./index.vue";
import type { IDefineComponent } from "../type/index";
import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
app.component(Component.name || "LayTabItem", Component);

View File

@@ -1,16 +1,10 @@
<template>
<div class="layui-tab-item" :class="[active === id ? 'layui-show' : '']">
<slot></slot>
</div>
</template>
<script lang="ts">
export default {
name: "LayTabItem",
};
</script>
<script setup name="LayTabItem" lang="ts">
<script setup lang="ts">
import { withDefaults, defineProps, inject, Ref } from "vue";
const props = withDefaults(
@@ -28,3 +22,9 @@ const active = inject("active");
const slotsChange: Ref<boolean> = inject("slotsChange") as Ref<boolean>;
slotsChange.value = !slotsChange.value;
</script>
<template>
<div class="layui-tab-item" :class="[active === id ? 'layui-show' : '']">
<slot></slot>
</div>
</template>