This commit is contained in:
pengxiaolong
2025-07-25 18:39:42 +08:00
parent 8580cd18fa
commit 36005c9604
8 changed files with 65 additions and 35 deletions

View File

@@ -13,12 +13,27 @@ const _sfc_main = {
}
},
methods: {
// 方法定义
handleCopy() {
common_vendor.index.setClipboardData({
data: this.messagetext,
success: () => {
common_vendor.index.showToast({
title: "复制成功",
icon: "success",
duration: 1500
});
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/index/chat/messageComponent/textmessage.vue:33", "复制失败:", err);
}
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.t($props.messagetext)
a: common_vendor.t($props.messagetext),
b: common_vendor.o((...args) => $options.handleCopy && $options.handleCopy(...args))
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b62657a0"]]);