im-ui-mobile 0.1.31 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,31 +5,31 @@
|
|
|
5
5
|
:label="label" :badge="badge" :padding="padding" :margin="margin" :bgColor="bgColor" :textColor="textColor"
|
|
6
6
|
@click="handleCellClick" @longpress="handleLongPress">
|
|
7
7
|
<!-- 传递所有插槽 -->
|
|
8
|
-
<template v-if="
|
|
8
|
+
<template v-if="slots.icon" #icon>
|
|
9
9
|
<slot name="icon" />
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
|
-
<template v-if="
|
|
12
|
+
<template v-if="slots.avatar" #avatar>
|
|
13
13
|
<slot name="avatar" />
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
|
-
<template v-if="
|
|
16
|
+
<template v-if="slots.title" #title>
|
|
17
17
|
<slot name="title" />
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
|
-
<template v-if="
|
|
20
|
+
<template v-if="slots.description" #description>
|
|
21
21
|
<slot name="description" />
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
|
-
<template v-if="
|
|
24
|
+
<template v-if="slots.arrow" #arrow>
|
|
25
25
|
<slot name="arrow" />
|
|
26
26
|
</template>
|
|
27
27
|
|
|
28
|
-
<template v-if="
|
|
28
|
+
<template v-if="slots.label" #label>
|
|
29
29
|
<slot name="label" />
|
|
30
30
|
</template>
|
|
31
31
|
|
|
32
|
-
<template v-if="
|
|
32
|
+
<template v-if="slots.badge" #badge>
|
|
33
33
|
<slot name="badge" />
|
|
34
34
|
</template>
|
|
35
35
|
|
|
@@ -45,9 +45,11 @@
|
|
|
45
45
|
</template>
|
|
46
46
|
|
|
47
47
|
<script setup lang="ts">
|
|
48
|
-
import { ref, computed, watch } from 'vue'
|
|
48
|
+
import { ref, computed, watch, useSlots } from 'vue'
|
|
49
49
|
import ImCell from '../im-cell/im-cell.vue'
|
|
50
50
|
|
|
51
|
+
const slots = useSlots()
|
|
52
|
+
|
|
51
53
|
// 定义 Props 接口
|
|
52
54
|
interface Props {
|
|
53
55
|
// 继承自 ImCell 的 Props
|