diff --git a/index.html b/index.html index c102a42..c22fdc3 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - +
diff --git a/package.json b/package.json index cc96c50..4dd44da 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,12 @@ "markdown-it": "^13.0.1", "markdown-it-link-attributes": "^4.0.1", "md5": "^2.3.0", + "mitt": "^3.0.1", "pinia": "^2.1.3", "qrcode.vue": "^3.4.1", "resize-observer-polyfill": "^1.5.1", "swiper": "^10.1.0", + "uuid": "^9.0.0", "vant": "^4.6.4", "vue": "^3.3.4", "vue-router": "^4.2.2" diff --git a/src/assets/images/copy-icon.png b/src/assets/images/copy-icon.png new file mode 100644 index 0000000..2a3cff6 Binary files /dev/null and b/src/assets/images/copy-icon.png differ diff --git a/src/components/ScrollContainer/index.vue b/src/components/ScrollContainer/index.vue index 1a6d178..83fe828 100644 --- a/src/components/ScrollContainer/index.vue +++ b/src/components/ScrollContainer/index.vue @@ -67,7 +67,26 @@ export default defineComponent({ }) } + function scrollToBottomIfAtBottom(){ + const scrollbar = unref(scrollbarRef) + if (!scrollbar) { + return + } + nextTick(() => { + const wrap = unref(scrollbar.wrap) + if (!wrap) { + return + } + const threshold = 100 + const distanceToBottom = wrap.scrollHeight - wrap.scrollTop - wrap.clientHeight + if (distanceToBottom <= threshold){ + scrollBottom() + } + }) + } + return { + scrollToBottomIfAtBottom, scrollbarRef, scrollTo, scrollBottom, diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue index 61cb0ab..c7871f1 100644 --- a/src/components/SvgIcon/index.vue +++ b/src/components/SvgIcon/index.vue @@ -36,7 +36,7 @@ export default defineComponent({ .svg-icon { width: 1em; height: 1em; - display: inline-block; + // display: inline-block; overflow: hidden; fill: currentcolor; vertical-align: -0.15em; diff --git a/src/icons/svg/dh.svg b/src/icons/svg/dh.svg new file mode 100644 index 0000000..2c19e13 --- /dev/null +++ b/src/icons/svg/dh.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/dp.svg b/src/icons/svg/dp.svg new file mode 100644 index 0000000..57c0c8c --- /dev/null +++ b/src/icons/svg/dp.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/qx.svg b/src/icons/svg/qx.svg new file mode 100644 index 0000000..b0f842c --- /dev/null +++ b/src/icons/svg/qx.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/xx.svg b/src/icons/svg/xx.svg new file mode 100644 index 0000000..f4af24a --- /dev/null +++ b/src/icons/svg/xx.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/人工客服.svg b/src/icons/svg/人工客服.svg new file mode 100644 index 0000000..b500d29 --- /dev/null +++ b/src/icons/svg/人工客服.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/加号.svg b/src/icons/svg/加号.svg new file mode 100644 index 0000000..b33850a --- /dev/null +++ b/src/icons/svg/加号.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/对勾.svg b/src/icons/svg/对勾.svg new file mode 100644 index 0000000..20115e3 --- /dev/null +++ b/src/icons/svg/对勾.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/疑问.svg b/src/icons/svg/疑问.svg new file mode 100644 index 0000000..d9b7f11 --- /dev/null +++ b/src/icons/svg/疑问.svg @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/src/icons/svg/编辑.svg b/src/icons/svg/编辑.svg new file mode 100644 index 0000000..9b81ce9 --- /dev/null +++ b/src/icons/svg/编辑.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/layouts/index.vue b/src/layouts/index.vue index f8d55e1..92cc625 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -3,7 +3,7 @@