2021-10-15 14:44:10 +00:00
|
|
|
<template>
|
|
|
|
<div
|
|
|
|
class="layui-carousel"
|
2021-10-15 15:52:01 +00:00
|
|
|
lay-anim
|
2021-10-15 14:44:10 +00:00
|
|
|
lay-indicator="inside"
|
|
|
|
lay-arrow="always"
|
2021-10-15 15:52:01 +00:00
|
|
|
:style="{width:width,height:height}"
|
2021-10-15 14:44:10 +00:00
|
|
|
>
|
2021-10-15 15:52:01 +00:00
|
|
|
<div carousel-item>
|
2021-10-15 14:44:10 +00:00
|
|
|
<div> </div>
|
|
|
|
<div> </div>
|
|
|
|
<div> </div>
|
|
|
|
<div> </div>
|
|
|
|
<div class="layui-this"></div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-carousel-ind">
|
|
|
|
<ul>
|
|
|
|
<li class=""></li>
|
|
|
|
<li class=""></li>
|
|
|
|
<li class=""></li>
|
|
|
|
<li class=""></li>
|
|
|
|
<li class="layui-this"></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<button class="layui-icon layui-carousel-arrow" lay-type="sub"></button
|
|
|
|
><button class="layui-icon layui-carousel-arrow" lay-type="add"></button>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script setup name="LayCarousel" lang="ts">
|
2021-10-15 15:52:01 +00:00
|
|
|
import { withDefaults, defineProps } from 'vue'
|
|
|
|
|
|
|
|
const props = withDefaults(
|
|
|
|
defineProps<{
|
|
|
|
width: string,
|
|
|
|
height: string
|
|
|
|
}>(),
|
|
|
|
{
|
|
|
|
width: '100%',
|
|
|
|
height: '280px'
|
|
|
|
}
|
|
|
|
)
|
2021-10-15 14:44:10 +00:00
|
|
|
</script>
|