fix: 导入问题

This commit is contained in:
2023-07-13 10:22:36 +08:00
parent d60f583aef
commit 58e14e57dd

View File

@ -1,8 +1,8 @@
<!--
* @Author: peerless_hero peerless_hero@outlook.com
* @Date: 2023-07-08 01:36:19
* @LastEditors: peerless_hero peerless_hero@outlook.com
* @LastEditTime: 2023-07-11 04:06:41
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-07-13 10:22:18
* @FilePath: \uni\packages\card\index.vue
* @Description:
*
@ -15,6 +15,8 @@
</template>
<script lang="ts" setup name="Card">
import { useSlots } from 'vue'
/** 不存在操作栏组件时,自动增加底部的内边距 */
const noCardActions = useSlots().default().every(({ type }) =>
typeof type !== 'object' || !('name' in type) || type.name !== 'CardActions',