feat(tab): 新增 allowClose 属性, change close 事件

This commit is contained in:
就眠仪式
2021-10-15 23:52:01 +08:00
parent b083b50111
commit 6c0cb3041a
8 changed files with 104 additions and 16 deletions

View File

@@ -1,13 +1,12 @@
<template>
<div
class="layui-carousel"
id="test1"
lay-anim=""
lay-anim
lay-indicator="inside"
lay-arrow="always"
style="width: 100%; height: 280px"
:style="{width:width,height:height}"
>
<div carousel-item="">
<div carousel-item>
<div> </div>
<div> </div>
<div> </div>
@@ -28,4 +27,16 @@
</div>
</template>
<script setup name="LayCarousel" lang="ts">
import { withDefaults, defineProps } from 'vue'
const props = withDefaults(
defineProps<{
width: string,
height: string
}>(),
{
width: '100%',
height: '280px'
}
)
</script>