feat: 步进器组件封装

This commit is contained in:
duanshuwen
2025-07-15 11:05:25 +08:00
parent 7f270dafe8
commit b31b04f2e2
19 changed files with 245 additions and 38 deletions

View File

@@ -3,7 +3,7 @@ const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const model_ChatModel = require("../../model/ChatModel.js");
if (!Math) {
(ChatTopBgImg + ChatTopNavBar + ChatTopBanner + OneFeelMK001 + ResponseIntro + ImageSwiper + ResponseWrapper + ChatCardAI + ChatCardMine + ChatMoreTips + ChatQuickAccess)();
(ChatTopBgImg + ChatTopNavBar + ChatTopBanner + OneFeelMK001 + ResponseIntro + ImageSwiper + Stepper + ResponseWrapper + ChatCardAI + ChatCardMine + ChatMoreTips + ChatQuickAccess)();
}
const ChatTopBanner = () => "./ChatTopBanner.js";
const ChatTopBgImg = () => "./ChatTopBgImg.js";
@@ -16,6 +16,7 @@ const OneFeelMK001 = () => "../module/OneFeelMK001.js";
const ResponseIntro = () => "../../components/ResponseIntro/index.js";
const ResponseWrapper = () => "../../components/ResponseWrapper/index.js";
const ImageSwiper = () => "../../components/ImageSwiper/index.js";
const Stepper = () => "../../components/Stepper/index.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "ChatMainList",
emits: ["openDrawer"],
@@ -33,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
const emits = __emit;
const openDrawer = () => {
emits("openDrawer");
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:172", "=============打开抽屉");
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:174", "=============打开抽屉");
};
const handleReply = (text) => {
loadMessage(text);
@@ -99,7 +100,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
}
};
chatMsgList.value.push(newMsgAI);
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:256", "发送的新消息:", JSON.stringify(newMsg));
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:258", "发送的新消息:", JSON.stringify(newMsg));
};
const scrollToBottom = () => {
lastMsgId.value = `${chatMsgList.value[chatMsgList.value.length - 1].msgId}`;
@@ -120,13 +121,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
}, item.msgContent && item.msgContent.type === common_vendor.unref(model_ChatModel.MessageType).IMAGE ? {
c: common_assets._imports_0$1
} : {}, {
d: "d7316ec5-10-" + i0 + "," + ("d7316ec5-9-" + i0),
e: "d7316ec5-9-" + i0,
d: "d7316ec5-11-" + i0 + "," + ("d7316ec5-10-" + i0),
e: "d7316ec5-10-" + i0,
f: common_vendor.p({
text: item.msg
})
}) : item.msgType === common_vendor.unref(model_ChatModel.MessageRole).ME ? {
h: "d7316ec5-11-" + i0,
h: "d7316ec5-12-" + i0,
i: common_vendor.p({
text: item.msg
})