im-ui-mobile 0.1.28 → 0.1.29

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.
@@ -115,7 +115,7 @@ const textColor = computed(() => {
115
115
  bottom: 0;
116
116
  width: 24rpx;
117
117
  height: 24rpx;
118
- background: limegreen;
118
+ background: rgb(108, 198, 108);
119
119
  border-radius: 50%;
120
120
  border: 6rpx solid white;
121
121
  }
@@ -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="$slots.icon" #icon>
8
+ <template v-if="slots.icon" #icon>
9
9
  <slot name="icon" />
10
10
  </template>
11
11
 
12
- <template v-if="$slots.avatar" #avatar>
12
+ <template v-if="slots.avatar" #avatar>
13
13
  <slot name="avatar" />
14
14
  </template>
15
15
 
16
- <template v-if="$slots.title" #title>
16
+ <template v-if="slots.title" #title>
17
17
  <slot name="title" />
18
18
  </template>
19
19
 
20
- <template v-if="$slots.description" #description>
20
+ <template v-if="slots.description" #description>
21
21
  <slot name="description" />
22
22
  </template>
23
23
 
24
- <template v-if="$slots.arrow" #arrow>
24
+ <template v-if="slots.arrow" #arrow>
25
25
  <slot name="arrow" />
26
26
  </template>
27
27
 
28
- <template v-if="$slots.label" #label>
28
+ <template v-if="slots.label" #label>
29
29
  <slot name="label" />
30
30
  </template>
31
31
 
32
- <template v-if="$slots.badge" #badge>
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "im-ui-mobile",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "A Vue3.0 + Typescript instant messaging component library for Uniapp",
5
5
  "type": "module",
6
6
  "main": "index.js",