diff --git a/components/Stepper/images/2025-07-15_100917.png b/components/Stepper/images/2025-07-15_100917.png new file mode 100644 index 0000000..881189f Binary files /dev/null and b/components/Stepper/images/2025-07-15_100917.png differ diff --git a/components/Stepper/images/icon_minus.webp b/components/Stepper/images/icon_minus.webp new file mode 100644 index 0000000..f4036f9 Binary files /dev/null and b/components/Stepper/images/icon_minus.webp differ diff --git a/components/Stepper/images/icon_plus.webp b/components/Stepper/images/icon_plus.webp new file mode 100644 index 0000000..dc3ee46 Binary files /dev/null and b/components/Stepper/images/icon_plus.webp differ diff --git a/components/Stepper/index.vue b/components/Stepper/index.vue new file mode 100644 index 0000000..24989b9 --- /dev/null +++ b/components/Stepper/index.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/components/Stepper/propmt.md b/components/Stepper/propmt.md new file mode 100644 index 0000000..e557aeb --- /dev/null +++ b/components/Stepper/propmt.md @@ -0,0 +1,12 @@ +## 步进器组件 + +## 提示词: + +使用 uniapp + vue3 组合式 api 开发微信小程序,要求如下: +1、参考图片,高度还原交互设计,完成组件封装 +2、要求布局样式结构简洁明了,class 命名请按照模块名称来命名,例如:.stepper-wrapper +3、可以使用 uniapp 内置的组件 + +## 备注 + +仅供学习、交流使用,请勿用于商业用途。 diff --git a/components/Stepper/styles/index.scss b/components/Stepper/styles/index.scss new file mode 100644 index 0000000..22ceb7f --- /dev/null +++ b/components/Stepper/styles/index.scss @@ -0,0 +1,23 @@ +.stepper-wrapper { + display: flex; + align-items: center; +} + +.stepper-btn { + width: 24px; + height: 24px; + cursor: pointer; +} + +.stepper-btn-minus { + margin-right: 10px; +} + +.stepper-btn-plus { + margin-left: 10px; +} + +.stepper-text { + font-size: 16px; + color: #333; +} diff --git a/unpackage/dist/dev/.sourcemap/mp-weixin/common/assets.js.map b/unpackage/dist/dev/.sourcemap/mp-weixin/common/assets.js.map index f3d9492..2a0663f 100644 --- a/unpackage/dist/dev/.sourcemap/mp-weixin/common/assets.js.map +++ b/unpackage/dist/dev/.sourcemap/mp-weixin/common/assets.js.map @@ -1 +1 @@ -{"version":3,"file":"assets.js","sources":["static/quick/quick_icon_bg.png","pages/order/images/back.png","static/logo.png","static/input_voice_icon.png","static/input_send_icon.png","E:/static/icons/clock.png","pages/order/components/GoodsInfo/images/icon_house.png","pages/order/components/NoticeInfo/images/icon_clock.png","pages/order/components/NoticeInfo/images/icon_card.png","pages/order/components/NoticeInfo/images/icon_arrow.png","static/hello_xiaomu_icon@2x.png","static/hello_logo_icon@2x.png","static/top_bg_icon.png","static/drawer_icon.png","static/wave_icon.png","static/test/mk_img_1.png"],"sourcesContent":["export default \"__VITE_ASSET__ff753b35__\"","export default \"__VITE_ASSET__6961004c__\"","export default \"__VITE_ASSET__46719607__\"","export default \"__VITE_ASSET__76f969d6__\"","export default \"__VITE_ASSET__e6bd7a29__\"","export default \"/static/icons/clock.png\"","export default \"__VITE_ASSET__8779a05f__\"","export default \"__VITE_ASSET__50bb3f13__\"","export default \"__VITE_ASSET__c038c52d__\"","export default \"__VITE_ASSET__228274ee__\"","export default \"__VITE_ASSET__2eba501c__\"","export default \"__VITE_ASSET__51733f19__\"","export default \"__VITE_ASSET__ead16fdc__\"","export default \"__VITE_ASSET__a9576f2b__\"","export default \"__VITE_ASSET__d889f8a8__\"","export default \"__VITE_ASSET__c4efe7df__\""],"names":[],"mappings":";AAAA,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,aAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,aAAA;ACAf,MAAe,aAAA;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"assets.js","sources":["static/quick/quick_icon_bg.png","pages/order/images/back.png","static/logo.png","static/input_voice_icon.png","static/input_send_icon.png","E:/static/icons/clock.png","pages/order/components/GoodsInfo/images/icon_house.png","pages/order/components/NoticeInfo/images/icon_clock.png","pages/order/components/NoticeInfo/images/icon_card.png","pages/order/components/NoticeInfo/images/icon_arrow.png","static/hello_xiaomu_icon@2x.png","static/hello_logo_icon@2x.png","static/top_bg_icon.png","static/drawer_icon.png","static/wave_icon.png","static/test/mk_img_1.png","components/Stepper/images/icon_minus.webp","components/Stepper/images/icon_plus.webp"],"sourcesContent":["export default \"__VITE_ASSET__ff753b35__\"","export default \"__VITE_ASSET__6961004c__\"","export default \"__VITE_ASSET__46719607__\"","export default \"__VITE_ASSET__76f969d6__\"","export default \"__VITE_ASSET__e6bd7a29__\"","export default \"/static/icons/clock.png\"","export default \"__VITE_ASSET__8779a05f__\"","export default \"__VITE_ASSET__50bb3f13__\"","export default \"__VITE_ASSET__c038c52d__\"","export default \"__VITE_ASSET__228274ee__\"","export default \"__VITE_ASSET__2eba501c__\"","export default \"__VITE_ASSET__51733f19__\"","export default \"__VITE_ASSET__ead16fdc__\"","export default \"__VITE_ASSET__a9576f2b__\"","export default \"__VITE_ASSET__d889f8a8__\"","export default \"__VITE_ASSET__c4efe7df__\"","export default \"__VITE_ASSET__39163fc0__\"","export default \"__VITE_ASSET__1502ee7d__\""],"names":[],"mappings":";AAAA,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,aAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,aAAA;ACAf,MAAe,aAAA;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/unpackage/dist/dev/.sourcemap/mp-weixin/components/Stepper/index.js.map b/unpackage/dist/dev/.sourcemap/mp-weixin/components/Stepper/index.js.map new file mode 100644 index 0000000..cdf5349 --- /dev/null +++ b/unpackage/dist/dev/.sourcemap/mp-weixin/components/Stepper/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["components/Stepper/index.vue","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvY29tcG9uZW50cy9TdGVwcGVyL2luZGV4LnZ1ZQ"],"sourcesContent":["\r\n\r\n\r\n\r\n\r\n","import Component from 'D:/YGChatCS/components/Stepper/index.vue'\nwx.createComponent(Component)"],"names":["ref"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsBA,UAAM,QAAQ;AAgBd,UAAM,OAAO;AAGb,UAAM,QAAQA,cAAG,IAAC,MAAM,UAAU;AAGlC,UAAM,WAAW,MAAM;AACrB,UAAI,MAAM,UAAU;AAAG;AAEvB,UAAI,MAAM,QAAQ,MAAM,KAAK;AAC3B,cAAM;AACN,aAAK,qBAAqB,MAAM,KAAK;AAAA,MACtC;AAAA,IACH;AAEA,UAAM,WAAW,MAAM;AACrB,UAAI,MAAM,QAAQ,MAAM,KAAK;AAC3B,cAAM;AACN,aAAK,qBAAqB,MAAM,KAAK;AAAA,MACtC;AAAA,IACH;;;;;;;;;;;;;ACzDA,GAAG,gBAAgB,SAAS;"} \ No newline at end of file diff --git a/unpackage/dist/dev/.sourcemap/mp-weixin/pages/chat/ChatMainList.js.map b/unpackage/dist/dev/.sourcemap/mp-weixin/pages/chat/ChatMainList.js.map index 8f94cea..5f75bd2 100644 --- a/unpackage/dist/dev/.sourcemap/mp-weixin/pages/chat/ChatMainList.js.map +++ b/unpackage/dist/dev/.sourcemap/mp-weixin/pages/chat/ChatMainList.js.map @@ -1 +1 @@ -{"version":3,"file":"ChatMainList.js","sources":["pages/chat/ChatMainList.vue","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvcGFnZXMvY2hhdC9DaGF0TWFpbkxpc3QudnVl"],"sourcesContent":["\n\n\n\n\n","import Component from 'D:/YGChatCS/pages/chat/ChatMainList.vue'\nwx.createComponent(Component)"],"names":["ref","uni","onLoad","onMounted","MessageRole","MessageType","nextTick"],"mappings":";;;;;;;AAoHA,MAAA,gBAA0B,MAAA;AAC1B,MAAA,eAAyB,MAAA;AACzB,MAAA,gBAA0B,MAAA;AAC1B,MAAA,aAAuB,MAAA;AACvB,MAAA,eAAyB,MAAA;AACzB,MAAA,kBAA4B,MAAA;AAC5B,MAAA,eAAyB,MAAA;AAIzB,MAAA,eAAyB,MAAA;AACzB,MAAA,gBAA0B,MAAA;AAC1B,MAAA,kBAA4B,MAAA;AAC5B,MAAA,cAAwB,MAAA;;;;;AAKlB,UAAA,kBAAkBA,kBAAI,EAAE;AACxB,UAAA,aAAaA,kBAAI,uBAAuB;AAC3BA,kBAAAA,IAAI,CAAC;AAElB,UAAA,QAAQA,kBAAI,IAAI;AAChB,UAAA,eAAeA,kBAAI,KAAK;AACxB,UAAA,mBAAmBA,kBAAI,IAAI;AAE3B,UAAA,cAAcA,kBAAiB,CAAA,CAAE;AACjC,UAAA,eAAeA,kBAAI,EAAE;AAGrB,UAAA,YAAYA,kBAAI,eAAe;AAIrC,iBAAa,QAAQ;AAkBrB,UAAM,QAAQ;AACd,UAAM,aAAa,MAAM;AACvB,YAAM,YAAY;AACdC,oBAAAA,MAAA,MAAM,OAAM,sCAAqC,mBAAmB;AAAA,IAAA;AAGpE,UAAA,cAAc,CAAC,SAAiB;AACpC,kBAAY,IAAI;AACD;IAAA;AAGjBC,kBAAAA,OAAO,MAAM;AACXD,oBAAAA,MAAI,cAAc;AAAA,QAChB,SAAS,CAAC,QAAQ;AACA,0BAAA,QAAQ,IAAI,mBAAmB;AAAA,QACjD;AAAA,MAAA,CACD;AAAA,IAAA,CACF;AAEDE,kBAAAA,UAAU,MAAM;AACL;IAAA,CACV;AAED,UAAM,WAAW,MAAM;AACrB,YAAM,MAAiB;AAAA,QACrB,OAAO,OAA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AAM,SAAS,CAAC,EAAE,KAAK;AAE1EK,oBAAAA,WAAS,MAAM;AACb,kBAAU,QAAQ;AAAA,MAAA,CACnB;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvQH,GAAG,gBAAgB,SAAS;"} \ No newline at end of file +{"version":3,"file":"ChatMainList.js","sources":["pages/chat/ChatMainList.vue","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvcGFnZXMvY2hhdC9DaGF0TWFpbkxpc3QudnVl"],"sourcesContent":["\n\n\n\n\n","import Component from 'D:/YGChatCS/pages/chat/ChatMainList.vue'\nwx.createComponent(Component)"],"names":["ref","uni","onLoad","onMounted","MessageRole","MessageType","nextTick"],"mappings":";;;;;;;AAqHA,MAAA,gBAA0B,MAAA;AAC1B,MAAA,eAAyB,MAAA;AACzB,MAAA,gBAA0B,MAAA;AAC1B,MAAA,aAAuB,MAAA;AACvB,MAAA,eAAyB,MAAA;AACzB,MAAA,kBAA4B,MAAA;AAC5B,MAAA,eAAyB,MAAA;AAIzB,MAAA,eAAyB,MAAA;AACzB,MAAA,gBAA0B,MAAA;AAC1B,MAAA,kBAA4B,MAAA;AAC5B,MAAA,cAAwB,MAAA;AACxB,MAAA,UAAoB,MAAA;;;;;AAKd,UAAA,kBAAkBA,kBAAI,EAAE;AACxB,UAAA,aAAaA,kBAAI,uBAAuB;AAC3BA,kBAAAA,IAAI,CAAC;AAElB,UAAA,QAAQA,kBAAI,IAAI;AAChB,UAAA,eAAeA,kBAAI,KAAK;AACxB,UAAA,mBAAmBA,kBAAI,IAAI;AAE3B,UAAA,cAAcA,kBAAiB,CAAA,CAAE;AACjC,UAAA,eAAeA,kBAAI,EAAE;AAGrB,UAAA,YAAYA,kBAAI,eAAe;AAIrC,iBAAa,QAAQ;AAkBrB,UAAM,QAAQ;AACd,UAAM,aAAa,MAAM;AACvB,YAAM,YAAY;AACdC,oBAAAA,MA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AAM,MAAM;AAAA,QACtC,SAASD,gBAAY,YAAA;AAAA,QACrB,KAAK,gBAAgB,IAAI;AAAA,QACzB,YAAY;AAAA,UACV,MAAM,OAAOC,gBAAAA,YAAY,QAAQA,gBAAY,YAAA;AAAA,UAC7C,KAAK;AAAA,QACP;AAAA,MAAA;AAEU,kBAAA,MAAM,KAAK,QAAQ;AAE/BJ,0BAAI,MAAM,OAAM,sCAAqC,WAAW,KAAK,UAAU,MAAM,CAAC;AAAA,IAAA;AAGxF,UAAM,iBAAiB,MAAM;AAEjB,gBAAA,QAAQ,GAAG,YAAY,MAAM,YAAY,MAAM,SAAS,CAAC,EAAE,KAAK;AAE1EK,oBAAAA,WAAS,MAAM;AACb,kBAAU,QAAQ;AAAA,MAAA,CACnB;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzQH,GAAG,gBAAgB,SAAS;"} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/assets/icon_minus.39163fc0.webp b/unpackage/dist/dev/mp-weixin/assets/icon_minus.39163fc0.webp new file mode 100644 index 0000000..f4036f9 Binary files /dev/null and b/unpackage/dist/dev/mp-weixin/assets/icon_minus.39163fc0.webp differ diff --git a/unpackage/dist/dev/mp-weixin/assets/icon_plus.1502ee7d.webp b/unpackage/dist/dev/mp-weixin/assets/icon_plus.1502ee7d.webp new file mode 100644 index 0000000..dc3ee46 Binary files /dev/null and b/unpackage/dist/dev/mp-weixin/assets/icon_plus.1502ee7d.webp differ diff --git a/unpackage/dist/dev/mp-weixin/common/assets.js b/unpackage/dist/dev/mp-weixin/common/assets.js index f09e7c5..f8767d1 100644 --- a/unpackage/dist/dev/mp-weixin/common/assets.js +++ b/unpackage/dist/dev/mp-weixin/common/assets.js @@ -1,34 +1,38 @@ "use strict"; -const _imports_0$9 = "/static/quick/quick_icon_bg.png"; -const _imports_0$8 = "/assets/back.6961004c.png"; -const _imports_0$7 = "/static/logo.png"; -const _imports_1$3 = "/static/input_voice_icon.png"; +const _imports_0$a = "/static/quick/quick_icon_bg.png"; +const _imports_0$9 = "/assets/back.6961004c.png"; +const _imports_0$8 = "/static/logo.png"; +const _imports_1$4 = "/static/input_voice_icon.png"; const _imports_2$1 = "/static/input_send_icon.png"; -const _imports_0$6 = "/static/icons/clock.png"; -const _imports_0$5 = "/assets/icon_house.8779a05f.png"; -const _imports_0$4 = "/assets/icon_clock.50bb3f13.png"; -const _imports_1$2 = "/assets/icon_card.c038c52d.png"; +const _imports_0$7 = "/static/icons/clock.png"; +const _imports_0$6 = "/assets/icon_house.8779a05f.png"; +const _imports_0$5 = "/assets/icon_clock.50bb3f13.png"; +const _imports_1$3 = "/assets/icon_card.c038c52d.png"; const _imports_2 = "/assets/icon_arrow.228274ee.png"; -const _imports_0$3 = "/static/hello_xiaomu_icon@2x.png"; -const _imports_1$1 = "/static/hello_logo_icon@2x.png"; -const _imports_0$2 = "/static/top_bg_icon.png"; -const _imports_0$1 = "/static/drawer_icon.png"; -const _imports_0 = "/static/wave_icon.png"; -const _imports_1 = "/static/test/mk_img_1.png"; -exports._imports_0 = _imports_0$8; -exports._imports_0$1 = _imports_0$7; -exports._imports_0$2 = _imports_0$6; -exports._imports_0$3 = _imports_0$5; -exports._imports_0$4 = _imports_0$4; -exports._imports_0$5 = _imports_0$3; -exports._imports_0$6 = _imports_0$2; -exports._imports_0$7 = _imports_0$1; -exports._imports_0$8 = _imports_0$9; -exports._imports_0$9 = _imports_0; -exports._imports_1 = _imports_1$3; -exports._imports_1$1 = _imports_1$2; -exports._imports_1$2 = _imports_1$1; -exports._imports_1$3 = _imports_1; +const _imports_0$4 = "/static/hello_xiaomu_icon@2x.png"; +const _imports_1$2 = "/static/hello_logo_icon@2x.png"; +const _imports_0$3 = "/static/top_bg_icon.png"; +const _imports_0$2 = "/static/drawer_icon.png"; +const _imports_0$1 = "/static/wave_icon.png"; +const _imports_1$1 = "/static/test/mk_img_1.png"; +const _imports_0 = "/assets/icon_minus.39163fc0.webp"; +const _imports_1 = "/assets/icon_plus.1502ee7d.webp"; +exports._imports_0 = _imports_0$9; +exports._imports_0$1 = _imports_0$8; +exports._imports_0$10 = _imports_0; +exports._imports_0$2 = _imports_0$7; +exports._imports_0$3 = _imports_0$6; +exports._imports_0$4 = _imports_0$5; +exports._imports_0$5 = _imports_0$4; +exports._imports_0$6 = _imports_0$3; +exports._imports_0$7 = _imports_0$2; +exports._imports_0$8 = _imports_0$a; +exports._imports_0$9 = _imports_0$1; +exports._imports_1 = _imports_1$4; +exports._imports_1$1 = _imports_1$3; +exports._imports_1$2 = _imports_1$2; +exports._imports_1$3 = _imports_1$1; +exports._imports_1$4 = _imports_1; exports._imports_2 = _imports_2$1; exports._imports_2$1 = _imports_2; //# sourceMappingURL=../../.sourcemap/mp-weixin/common/assets.js.map diff --git a/unpackage/dist/dev/mp-weixin/components/Stepper/index.js b/unpackage/dist/dev/mp-weixin/components/Stepper/index.js new file mode 100644 index 0000000..fa86d82 --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/components/Stepper/index.js @@ -0,0 +1,52 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_assets = require("../../common/assets.js"); +const _sfc_main = { + __name: "index", + props: { + modelValue: { + type: Number, + default: 1 + }, + min: { + type: Number, + default: 1 + }, + max: { + type: Number, + default: 100 + } + }, + emits: ["update:modelValue"], + setup(__props, { emit: __emit }) { + const props = __props; + const emit = __emit; + const value = common_vendor.ref(props.modelValue); + const decrease = () => { + if (value.value === 1) + return; + if (value.value > props.min) { + value.value--; + emit("update:modelValue", value.value); + } + }; + const increase = () => { + if (value.value < props.max) { + value.value++; + emit("update:modelValue", value.value); + } + }; + return (_ctx, _cache) => { + return { + a: common_assets._imports_0$10, + b: common_vendor.o(decrease), + c: common_vendor.t(value.value), + d: common_assets._imports_1$4, + e: common_vendor.o(increase) + }; + }; + } +}; +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-52e20cb2"]]); +wx.createComponent(Component); +//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/Stepper/index.js.map diff --git a/unpackage/dist/dev/mp-weixin/components/Stepper/index.json b/unpackage/dist/dev/mp-weixin/components/Stepper/index.json new file mode 100644 index 0000000..e8cfaaf --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/components/Stepper/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/components/Stepper/index.wxml b/unpackage/dist/dev/mp-weixin/components/Stepper/index.wxml new file mode 100644 index 0000000..f9b9dc3 --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/components/Stepper/index.wxml @@ -0,0 +1 @@ +{{c}} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/components/Stepper/index.wxss b/unpackage/dist/dev/mp-weixin/components/Stepper/index.wxss new file mode 100644 index 0000000..2f58f00 --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/components/Stepper/index.wxss @@ -0,0 +1,44 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.stepper-wrapper.data-v-52e20cb2 { + display: flex; + align-items: center; +} +.stepper-btn.data-v-52e20cb2 { + width: 24px; + height: 24px; + cursor: pointer; +} +.stepper-btn-minus.data-v-52e20cb2 { + margin-right: 10px; +} +.stepper-btn-plus.data-v-52e20cb2 { + margin-left: 10px; +} +.stepper-text.data-v-52e20cb2 { + font-size: 16px; + color: #333; +} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.js b/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.js index b1d7adf..29d4cd2 100644 --- a/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.js +++ b/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.js @@ -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 }) diff --git a/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.json b/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.json index 5fd694e..705005d 100644 --- a/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.json +++ b/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.json @@ -11,6 +11,7 @@ "one-feel-m-k001": "../module/OneFeelMK001", "response-intro": "../../components/ResponseIntro/index", "response-wrapper": "../../components/ResponseWrapper/index", - "image-swiper": "../../components/ImageSwiper/index" + "image-swiper": "../../components/ImageSwiper/index", + "stepper": "../../components/Stepper/index" } } \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.wxml b/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.wxml index 5cdaa18..56c73ab 100644 --- a/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.wxml +++ b/unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.wxml @@ -1 +1 @@ -{{item.j}}