add alpha branch
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user