feat(tab): 新增 allowClose 属性, change close 事件
This commit is contained in:
9
src/module/carouselItem/index.ts
Normal file
9
src/module/carouselItem/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 || 'LayCarouselItem', Component)
|
||||
}
|
||||
|
||||
export default Component as IDefineComponent
|
||||
9
src/module/carouselItem/index.vue
Normal file
9
src/module/carouselItem/index.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<li class="layui-this">
|
||||
<slot></slot>
|
||||
</li>
|
||||
</template>
|
||||
<script setup name="LayCarousel" lang="ts">
|
||||
import { withDefaults, defineProps } from 'vue'
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user