perf(button): 新增 loading 属性, 支持加载状态
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
<template>
|
||||
<li class="layui-this">
|
||||
<slot></slot>
|
||||
</li>
|
||||
<li :class="[active === id ? 'layui-this' : '']">
|
||||
<slot></slot>
|
||||
</li>
|
||||
</template>
|
||||
<script setup name="LayCarousel" lang="ts">
|
||||
import { withDefaults, defineProps } from 'vue'
|
||||
<script setup name="LayCarouselItem" lang="ts">
|
||||
import { defineProps, inject } from 'vue'
|
||||
|
||||
const props =
|
||||
defineProps<{
|
||||
id: string
|
||||
}>()
|
||||
|
||||
const active = inject('active')
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user