@hlw-uni/mp-vue 1.2.23 → 1.2.25

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hlw-uni/mp-vue",
3
- "version": "1.2.23",
3
+ "version": "1.2.25",
4
4
  "description": "hlw-uni Vue 组件库 — 供小程序业务方使用的 UI 组件集合",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14,6 +14,10 @@
14
14
  :style="buttonStyle"
15
15
  :disabled="props.disabled || props.loading"
16
16
  :open-type="props.openType"
17
+ :send-message-title="props.sendMessageTitle || undefined"
18
+ :send-message-path="props.sendMessagePath || undefined"
19
+ :send-message-img="props.sendMessageImg || undefined"
20
+ :show-message-card="props.showMessageCard"
17
21
  @tap="handleTap"
18
22
  >
19
23
  <view v-if="props.loading" class="hlw-btn-spinner" />
@@ -61,6 +65,14 @@ interface Props {
61
65
  url?: string;
62
66
  navigateType?: NavigateType;
63
67
  delta?: number;
68
+ /** open-type="contact" 时:用户进入会话时展示的自定义消息卡片标题 */
69
+ sendMessageTitle?: string;
70
+ /** open-type="contact" 时:消息卡片跳转的页面路径(/ 开头) */
71
+ sendMessagePath?: string;
72
+ /** open-type="contact" 时:消息卡片缩略图 URL */
73
+ sendMessageImg?: string;
74
+ /** open-type="contact" 时:是否显示会话内的消息卡片(默认 false) */
75
+ showMessageCard?: boolean;
64
76
  }
65
77
 
66
78
  const props = withDefaults(defineProps<Props>(), {
@@ -78,6 +90,10 @@ const props = withDefaults(defineProps<Props>(), {
78
90
  url: "",
79
91
  navigateType: "navigateTo",
80
92
  delta: 1,
93
+ sendMessageTitle: "",
94
+ sendMessagePath: "",
95
+ sendMessageImg: "",
96
+ showMessageCard: false,
81
97
  });
82
98
 
83
99
  const emit = defineEmits<{ click: [] }>();