@opentiny/tiny-robot 0.2.0-alpha.2 → 0.2.0-alpha.3
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/dist/_plugin-vue_export-helper.js +9 -0
- package/dist/action-group/index.js +142 -0
- package/dist/bubble/index.js +3211 -0
- package/dist/{node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js → close.js} +9 -9
- package/dist/container/index.js +60 -0
- package/dist/conversations/index.js +14 -0
- package/dist/feedback/index.js +192 -0
- package/dist/history/index.js +228 -0
- package/dist/icon-button/index.js +31 -0
- package/dist/index.d.ts +2190 -26
- package/dist/index.js +35 -43
- package/dist/index2.js +376 -0
- package/dist/index3.js +3895 -0
- package/dist/index4.js +637 -0
- package/dist/index5.js +3237 -0
- package/dist/index6.js +4623 -0
- package/dist/prompts/index.js +83 -0
- package/dist/question/index.js +375 -0
- package/dist/sender/index.js +683 -0
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +497 -0
- package/dist/{packages/svgs/dist/tiny-robot-svgs.js → tiny-robot-svgs.js} +100 -100
- package/dist/welcome/index.js +38 -0
- package/package.json +7 -3
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/action-group/ActionGroup.vue.d.ts +0 -26
- package/dist/action-group/ActionGroupItem.vue.d.ts +0 -18
- package/dist/action-group/index.d.ts +0 -12
- package/dist/action-group/index.type.d.ts +0 -17
- package/dist/bubble/BubbleList.vue.d.ts +0 -5
- package/dist/bubble/index.d.ts +0 -12
- package/dist/bubble/index.type.d.ts +0 -51
- package/dist/container/index.d.ts +0 -7
- package/dist/container/index.type.d.ts +0 -16
- package/dist/container/index.vue.d.ts +0 -26
- package/dist/conversations/index.d.ts +0 -7
- package/dist/conversations/index.vue.d.ts +0 -2
- package/dist/feedback/components/SourceList.vue.d.ts +0 -11
- package/dist/feedback/components/index.d.ts +0 -1
- package/dist/feedback/index.d.ts +0 -7
- package/dist/feedback/index.type.d.ts +0 -25
- package/dist/feedback/index.vue.d.ts +0 -13
- package/dist/history/components/index.d.ts +0 -2
- package/dist/history/components/item-tag.vue.d.ts +0 -5
- package/dist/history/components/search-empty.vue.d.ts +0 -7
- package/dist/history/composables/index.d.ts +0 -1
- package/dist/history/composables/useEditItemTitle.d.ts +0 -12
- package/dist/history/index.d.ts +0 -6
- package/dist/history/index.type.d.ts +0 -43
- package/dist/history/index.vue.d.ts +0 -2
- package/dist/icon-button/index.d.ts +0 -7
- package/dist/icon-button/index.type.d.ts +0 -6
- package/dist/icon-button/index.vue.d.ts +0 -6
- package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +0 -832
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +0 -2116
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js +0 -113
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/pc.js +0 -93
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +0 -727
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +0 -710
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +0 -198
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +0 -204
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +0 -10
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +0 -42
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +0 -43
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/finish.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/warn.js +0 -26
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js +0 -196
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/pc.js +0 -568
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.21.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/index.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/vue.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -12
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +0 -36
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +0 -47
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +0 -7
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +0 -45
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +0 -320
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +0 -118
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +0 -9
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +0 -73
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +0 -5
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +0 -11
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -136
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +0 -148
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/index.js +0 -228
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/vue.js +0 -263
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/index.js +0 -63
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -16
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -78
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -173
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -176
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +0 -310
- package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -110
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +0 -277
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +0 -46
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +0 -187
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +0 -19
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +0 -67
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +0 -5
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +0 -164
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -44
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +0 -21
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +0 -112
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +0 -63
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +0 -96
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +0 -78
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +0 -127
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +0 -30
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +0 -43
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +0 -110
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -25
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +0 -84
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +0 -99
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +0 -7
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +0 -9
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +0 -80
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +0 -16
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -46
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +0 -33
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +0 -48
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +0 -54
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +0 -39
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +0 -31
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +0 -10
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +0 -61
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +0 -48
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +0 -7
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +0 -74
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -139
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +0 -14
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +0 -4
- package/dist/packages/components/src/action-group/ActionGroup.vue.js +0 -7
- package/dist/packages/components/src/action-group/ActionGroup.vue2.js +0 -121
- package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +0 -14
- package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +0 -4
- package/dist/packages/components/src/action-group/index.js +0 -17
- package/dist/packages/components/src/assets/icons/accessory.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading-speech.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/send.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/voice.svg.js +0 -4
- package/dist/packages/components/src/bubble/Bubble.vue.js +0 -7
- package/dist/packages/components/src/bubble/Bubble.vue2.js +0 -76
- package/dist/packages/components/src/bubble/BubbleList.vue.js +0 -7
- package/dist/packages/components/src/bubble/BubbleList.vue2.js +0 -50
- package/dist/packages/components/src/bubble/index.js +0 -18
- package/dist/packages/components/src/container/index.js +0 -9
- package/dist/packages/components/src/container/index.vue.js +0 -7
- package/dist/packages/components/src/container/index.vue2.js +0 -55
- package/dist/packages/components/src/conversations/index.js +0 -9
- package/dist/packages/components/src/conversations/index.vue.js +0 -9
- package/dist/packages/components/src/feedback/components/SourceList.vue.js +0 -7
- package/dist/packages/components/src/feedback/components/SourceList.vue2.js +0 -52
- package/dist/packages/components/src/feedback/index.js +0 -9
- package/dist/packages/components/src/feedback/index.vue.js +0 -7
- package/dist/packages/components/src/feedback/index.vue2.js +0 -143
- package/dist/packages/components/src/history/components/item-tag.vue.js +0 -7
- package/dist/packages/components/src/history/components/item-tag.vue2.js +0 -21
- package/dist/packages/components/src/history/components/search-empty.vue.js +0 -7
- package/dist/packages/components/src/history/components/search-empty.vue2.js +0 -20
- package/dist/packages/components/src/history/composables/useEditItemTitle.js +0 -43
- package/dist/packages/components/src/history/index.js +0 -11
- package/dist/packages/components/src/history/index.vue.js +0 -7
- package/dist/packages/components/src/history/index.vue2.js +0 -130
- package/dist/packages/components/src/icon-button/index.js +0 -9
- package/dist/packages/components/src/icon-button/index.vue.js +0 -7
- package/dist/packages/components/src/icon-button/index.vue2.js +0 -22
- package/dist/packages/components/src/prompts/index.js +0 -18
- package/dist/packages/components/src/prompts/prompt.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompt.vue2.js +0 -39
- package/dist/packages/components/src/prompts/prompts.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompts.vue2.js +0 -36
- package/dist/packages/components/src/question/components/CommonQuestions.vue.js +0 -89
- package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/components/HotQuestions.vue.js +0 -140
- package/dist/packages/components/src/question/components/HotQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/composables/useQuestions.js +0 -48
- package/dist/packages/components/src/question/index.js +0 -9
- package/dist/packages/components/src/question/index.vue.js +0 -113
- package/dist/packages/components/src/question/index.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/ActionButtons.vue.js +0 -143
- package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +0 -7
- package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +0 -175
- package/dist/packages/components/src/sender/composables/useInputHandler.js +0 -38
- package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +0 -31
- package/dist/packages/components/src/sender/composables/useSpeechHandler.js +0 -67
- package/dist/packages/components/src/sender/index.js +0 -9
- package/dist/packages/components/src/sender/index.vue.js +0 -255
- package/dist/packages/components/src/sender/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +0 -38
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +0 -107
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +0 -123
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +0 -45
- package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +0 -17
- package/dist/packages/components/src/suggestion/index.js +0 -9
- package/dist/packages/components/src/suggestion/index.vue.js +0 -179
- package/dist/packages/components/src/suggestion/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/utils/dom.js +0 -18
- package/dist/packages/components/src/welcome/index.js +0 -9
- package/dist/packages/components/src/welcome/index.vue.js +0 -7
- package/dist/packages/components/src/welcome/index.vue2.js +0 -32
- package/dist/prompts/index.d.ts +0 -12
- package/dist/prompts/index.type.d.ts +0 -55
- package/dist/prompts/prompt.vue.d.ts +0 -3
- package/dist/prompts/prompts.vue.d.ts +0 -20
- package/dist/question/components/CommonQuestions.vue.d.ts +0 -32
- package/dist/question/components/HotQuestions.vue.d.ts +0 -89
- package/dist/question/composables/useQuestions.d.ts +0 -17
- package/dist/question/index.d.ts +0 -7
- package/dist/question/index.type.d.ts +0 -74
- package/dist/question/index.vue.d.ts +0 -46
- package/dist/sender/components/ActionButtons.vue.d.ts +0 -25
- package/dist/sender/components/TemplateEditor.vue.d.ts +0 -18
- package/dist/sender/composables/useInputHandler.d.ts +0 -17
- package/dist/sender/composables/useKeyboardHandler.d.ts +0 -18
- package/dist/sender/composables/useSpeechHandler.d.ts +0 -8
- package/dist/sender/index.d.ts +0 -7
- package/dist/sender/index.type.d.ts +0 -137
- package/dist/sender/index.vue.d.ts +0 -1012
- package/dist/suggestion/components/CategoryNav.vue.d.ts +0 -45
- package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +0 -32
- package/dist/suggestion/components/SuggestionPanel.vue.d.ts +0 -84
- package/dist/suggestion/composables/useKeyboardNavigation.d.ts +0 -18
- package/dist/suggestion/composables/useSuggestionFilter.d.ts +0 -10
- package/dist/suggestion/composables/useTriggerDetection.d.ts +0 -11
- package/dist/suggestion/index.d.ts +0 -7
- package/dist/suggestion/index.type.d.ts +0 -94
- package/dist/suggestion/index.vue.d.ts +0 -343
- package/dist/suggestion/utils/dom.d.ts +0 -20
- package/dist/welcome/index.d.ts +0 -7
- package/dist/welcome/index.type.d.ts +0 -10
- package/dist/welcome/index.vue.d.ts +0 -18
- package/src/action-group/ActionGroup.vue +0 -247
- package/src/action-group/ActionGroupItem.vue +0 -9
- package/src/action-group/index.ts +0 -25
- package/src/action-group/index.type.ts +0 -21
- package/src/assets/icons/accessory.svg +0 -12
- package/src/assets/icons/loading-speech.svg +0 -16
- package/src/assets/icons/loading.svg +0 -17
- package/src/assets/icons/send.svg +0 -21
- package/src/assets/icons/voice.svg +0 -22
- package/src/bubble/Bubble.vue +0 -153
- package/src/bubble/BubbleList.vue +0 -55
- package/src/bubble/index.ts +0 -23
- package/src/bubble/index.type.ts +0 -49
- package/src/container/index.ts +0 -12
- package/src/container/index.type.ts +0 -17
- package/src/container/index.vue +0 -109
- package/src/conversations/index.ts +0 -12
- package/src/conversations/index.vue +0 -3
- package/src/feedback/components/SourceList.vue +0 -112
- package/src/feedback/components/index.ts +0 -1
- package/src/feedback/index.ts +0 -12
- package/src/feedback/index.type.ts +0 -27
- package/src/feedback/index.vue +0 -166
- package/src/history/components/index.ts +0 -2
- package/src/history/components/item-tag.vue +0 -49
- package/src/history/components/search-empty.vue +0 -38
- package/src/history/composables/index.ts +0 -1
- package/src/history/composables/useEditItemTitle.ts +0 -75
- package/src/history/index.ts +0 -12
- package/src/history/index.type.ts +0 -50
- package/src/history/index.vue +0 -292
- package/src/icon-button/index.ts +0 -12
- package/src/icon-button/index.type.ts +0 -7
- package/src/icon-button/index.vue +0 -58
- package/src/index.ts +0 -76
- package/src/prompts/index.ts +0 -25
- package/src/prompts/index.type.ts +0 -59
- package/src/prompts/prompt.vue +0 -101
- package/src/prompts/prompts.vue +0 -50
- package/src/question/components/CommonQuestions.vue +0 -146
- package/src/question/components/HotQuestions.vue +0 -148
- package/src/question/composables/useQuestions.ts +0 -106
- package/src/question/index.less +0 -447
- package/src/question/index.ts +0 -12
- package/src/question/index.type.ts +0 -86
- package/src/question/index.vue +0 -140
- package/src/question/vars.less +0 -135
- package/src/sender/components/ActionButtons.vue +0 -168
- package/src/sender/components/TemplateEditor.vue +0 -465
- package/src/sender/composables/useInputHandler.ts +0 -74
- package/src/sender/composables/useKeyboardHandler.ts +0 -101
- package/src/sender/composables/useSpeechHandler.ts +0 -122
- package/src/sender/index.less +0 -352
- package/src/sender/index.ts +0 -12
- package/src/sender/index.type.ts +0 -162
- package/src/sender/index.vue +0 -338
- package/src/sender/vars.less +0 -84
- package/src/suggestion/components/CategoryNav.vue +0 -38
- package/src/suggestion/components/SuggestionCapsule.vue +0 -183
- package/src/suggestion/components/SuggestionPanel.vue +0 -147
- package/src/suggestion/composables/useKeyboardNavigation.ts +0 -101
- package/src/suggestion/composables/useSuggestionFilter.ts +0 -34
- package/src/suggestion/composables/useTriggerDetection.ts +0 -46
- package/src/suggestion/index.less +0 -497
- package/src/suggestion/index.ts +0 -12
- package/src/suggestion/index.type.ts +0 -101
- package/src/suggestion/index.vue +0 -338
- package/src/suggestion/utils/dom.ts +0 -66
- package/src/suggestion/vars.less +0 -141
- package/src/vite-env.d.ts +0 -1
- package/src/welcome/index.ts +0 -12
- package/src/welcome/index.type.ts +0 -12
- package/src/welcome/index.vue +0 -69
- package/tsconfig.json +0 -37
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -53
package/src/question/index.less
DELETED
|
@@ -1,447 +0,0 @@
|
|
|
1
|
-
@import './vars.less';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* TR Question 组件样式
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/* ================ 滚动穿透防止 ================ */
|
|
8
|
-
/**
|
|
9
|
-
* 当弹窗打开时应用于body的类
|
|
10
|
-
* 解决滚动穿透问题 - 防止弹窗打开时背景内容滚动
|
|
11
|
-
*/
|
|
12
|
-
body.tr-modal-open {
|
|
13
|
-
overflow: hidden !important;
|
|
14
|
-
position: fixed;
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* ================ 基础容器样式 ================ */
|
|
20
|
-
/**
|
|
21
|
-
* 组件根容器
|
|
22
|
-
*/
|
|
23
|
-
.tr-question-container {
|
|
24
|
-
position: relative;
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
height: var(--tr-question-container-height);
|
|
28
|
-
padding: 0;
|
|
29
|
-
font-size: var(--tr-question-font-size);
|
|
30
|
-
line-height: var(--tr-question-line-height);
|
|
31
|
-
color: var(--tr-question-text-color);
|
|
32
|
-
box-sizing: border-box;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* ================ 触发按钮样式 ================ */
|
|
36
|
-
/**
|
|
37
|
-
* 热门问题触发按钮
|
|
38
|
-
* 位于左侧,点击显示弹窗
|
|
39
|
-
*/
|
|
40
|
-
.tr-question-trigger {
|
|
41
|
-
position: absolute;
|
|
42
|
-
top: 5px;
|
|
43
|
-
left: 0;
|
|
44
|
-
display: flex;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
align-items: center;
|
|
47
|
-
margin: 2px 8px 0 0;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
|
|
50
|
-
&:hover {
|
|
51
|
-
transform: scale(1.05);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/* 按钮图标 */
|
|
55
|
-
& > svg {
|
|
56
|
-
font-size: 28px;
|
|
57
|
-
border-radius: 50%;
|
|
58
|
-
fill: #ffffff;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
& > svg:hover {
|
|
62
|
-
fill: #f5f5f5;
|
|
63
|
-
transform: scale(1.05);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* ================ 弹窗样式 ================ */
|
|
68
|
-
/**
|
|
69
|
-
* 弹窗外层遮罩
|
|
70
|
-
* 全屏遮罩层,内部包含问题弹窗
|
|
71
|
-
*/
|
|
72
|
-
.tr-question-modal-backdrop {
|
|
73
|
-
position: fixed;
|
|
74
|
-
top: 0;
|
|
75
|
-
left: 0;
|
|
76
|
-
right: 0;
|
|
77
|
-
bottom: 0;
|
|
78
|
-
background-color: var(--tr-question-modal-backdrop-color);
|
|
79
|
-
display: flex;
|
|
80
|
-
justify-content: center;
|
|
81
|
-
align-items: center;
|
|
82
|
-
z-index: 1000;
|
|
83
|
-
overflow: hidden;
|
|
84
|
-
overscroll-behavior: contain; /* 防止滚动传递 */
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* 问题弹窗面板
|
|
89
|
-
* 包含标题、分类标签和问题列表
|
|
90
|
-
*/
|
|
91
|
-
.tr-question-panel {
|
|
92
|
-
position: relative;
|
|
93
|
-
border: none;
|
|
94
|
-
border-radius: var(--tr-question-border-radius);
|
|
95
|
-
padding: var(--tr-question-modal-padding);
|
|
96
|
-
box-shadow: var(--tr-question-panel-shadow);
|
|
97
|
-
background-color: var(--tr-question-modal-background-color);
|
|
98
|
-
max-height: var(--tr-question-modal-max-height);
|
|
99
|
-
max-width: var(--tr-question-modal-max-width);
|
|
100
|
-
width: 100%;
|
|
101
|
-
display: flex;
|
|
102
|
-
flex-direction: column;
|
|
103
|
-
overflow: hidden;
|
|
104
|
-
box-sizing: border-box;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* 弹窗标题栏
|
|
109
|
-
* 包含标题文本和关闭按钮
|
|
110
|
-
*/
|
|
111
|
-
.tr-question-header {
|
|
112
|
-
display: flex;
|
|
113
|
-
justify-content: space-between;
|
|
114
|
-
align-items: center;
|
|
115
|
-
margin-bottom: var(--tr-question-spacing);
|
|
116
|
-
|
|
117
|
-
/* 标题文本 */
|
|
118
|
-
&-title {
|
|
119
|
-
font-size: var(--tr-question-title-font-size);
|
|
120
|
-
font-weight: var(--tr-question-title-font-weight);
|
|
121
|
-
color: var(--tr-question-title-color);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/* 关闭按钮 */
|
|
125
|
-
.tr-question-close-btn {
|
|
126
|
-
cursor: pointer;
|
|
127
|
-
display: flex;
|
|
128
|
-
align-items: center;
|
|
129
|
-
justify-content: center;
|
|
130
|
-
color: var(--tr-question-close-icon-color);
|
|
131
|
-
transition: var(--tr-question-hover-transition);
|
|
132
|
-
|
|
133
|
-
&:hover {
|
|
134
|
-
color: var(--tr-question-text-color);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/* ================ 分类标签样式 ================ */
|
|
140
|
-
/**
|
|
141
|
-
* 分类标签容器
|
|
142
|
-
* 水平展示问题分类,支持点击切换
|
|
143
|
-
*/
|
|
144
|
-
.tr-question-categories {
|
|
145
|
-
display: flex;
|
|
146
|
-
flex-wrap: wrap;
|
|
147
|
-
gap: 8px;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* 单个分类标签
|
|
151
|
-
* 支持悬停和激活状态样式
|
|
152
|
-
*/
|
|
153
|
-
&-item {
|
|
154
|
-
box-sizing: border-box;
|
|
155
|
-
border-radius: var(--tr-question-category-border-radius);
|
|
156
|
-
background: var(--tr-question-category-bg);
|
|
157
|
-
border: 1px solid transparent;
|
|
158
|
-
height: var(--tr-question-category-height);
|
|
159
|
-
padding: 10px 16px;
|
|
160
|
-
margin-right: 8px;
|
|
161
|
-
color: var(--tr-question-tab-text);
|
|
162
|
-
transition: var(--tr-question-hover-transition);
|
|
163
|
-
display: flex;
|
|
164
|
-
align-items: center;
|
|
165
|
-
gap: 4px;
|
|
166
|
-
|
|
167
|
-
/* 分类图标 */
|
|
168
|
-
.category-icon {
|
|
169
|
-
font-size: var(--tr-question-icon-size);
|
|
170
|
-
margin-right: 4px;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/* 悬停效果 */
|
|
174
|
-
&:hover {
|
|
175
|
-
cursor: pointer;
|
|
176
|
-
background: var(--tr-question-category-hover-bg);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/* 激活状态 */
|
|
180
|
-
&.active {
|
|
181
|
-
background: var(--tr-question-common-bg) !important;
|
|
182
|
-
border: 1px solid var(--tr-question-category-active-border) !important;
|
|
183
|
-
color: var(--tr-question-text-color);
|
|
184
|
-
font-weight: 500;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/* ================ 问题列表样式 ================ */
|
|
190
|
-
/**
|
|
191
|
-
* 问题内容区
|
|
192
|
-
* 包含问题列表,支持滚动
|
|
193
|
-
*/
|
|
194
|
-
.tr-question-content {
|
|
195
|
-
flex: 1;
|
|
196
|
-
max-height: var(--tr-question-content-max-height);
|
|
197
|
-
overflow-y: auto;
|
|
198
|
-
padding: 10px 0;
|
|
199
|
-
overscroll-behavior: contain;
|
|
200
|
-
position: relative;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* 自定义滚动条样式
|
|
204
|
-
*/
|
|
205
|
-
&::-webkit-scrollbar {
|
|
206
|
-
width: var(--tr-question-scrollbar-width);
|
|
207
|
-
height: 10px;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
&::-webkit-scrollbar-track {
|
|
211
|
-
background: var(--tr-question-scrollbar-track-bg);
|
|
212
|
-
border-radius: var(--tr-question-scrollbar-border-radius);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
&::-webkit-scrollbar-thumb {
|
|
216
|
-
background-color: var(--tr-question-scrollbar-thumb-bg);
|
|
217
|
-
border-radius: var(--tr-question-scrollbar-border-radius);
|
|
218
|
-
transition: background-color var(--tr-question-transition-duration);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
&::-webkit-scrollbar-thumb:hover {
|
|
222
|
-
background-color: var(--tr-question-scrollbar-thumb-hover-bg);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* 问题列表
|
|
227
|
-
*/
|
|
228
|
-
& > ul {
|
|
229
|
-
list-style: none;
|
|
230
|
-
padding: 0;
|
|
231
|
-
margin: 0;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* 问题项
|
|
235
|
-
* 支持悬停效果和溢出文本处理
|
|
236
|
-
*/
|
|
237
|
-
& > li {
|
|
238
|
-
color: var(--tr-question-common-text);
|
|
239
|
-
font-size: var(--tr-question-font-size);
|
|
240
|
-
font-weight: var(--tr-question-item-font-weight);
|
|
241
|
-
line-height: var(--tr-question-item-height);
|
|
242
|
-
text-align: left;
|
|
243
|
-
height: var(--tr-question-item-height);
|
|
244
|
-
border-radius: var(--tr-question-list-border-radius);
|
|
245
|
-
background: var(--tr-question-list-item-bg);
|
|
246
|
-
cursor: pointer;
|
|
247
|
-
margin: 5px 1px 2px 1px;
|
|
248
|
-
padding: 0 var(--tr-question-spacing);
|
|
249
|
-
white-space: nowrap;
|
|
250
|
-
overflow: hidden;
|
|
251
|
-
text-overflow: ellipsis;
|
|
252
|
-
border-bottom: 1px solid var(--tr-question-item-border-color);
|
|
253
|
-
transition: var(--tr-question-hover-transition);
|
|
254
|
-
|
|
255
|
-
/* 序号样式 */
|
|
256
|
-
span:first-child {
|
|
257
|
-
display: inline-block;
|
|
258
|
-
margin-right: 4px;
|
|
259
|
-
color: var(--tr-question-text-color-secondary);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/* 最后一项去除底部边框 */
|
|
263
|
-
&:last-child {
|
|
264
|
-
border-bottom: none;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/* 悬停效果 */
|
|
268
|
-
&:hover {
|
|
269
|
-
box-shadow: 0 2px 12px var(--tr-question-list-hover-shadow);
|
|
270
|
-
position: relative;
|
|
271
|
-
z-index: 10;
|
|
272
|
-
transform: translateY(-2px);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* 换行模式下的问题项样式
|
|
279
|
-
*/
|
|
280
|
-
&-wrap .tr-question-list-item {
|
|
281
|
-
white-space: normal;
|
|
282
|
-
height: auto;
|
|
283
|
-
min-height: var(--tr-question-item-height);
|
|
284
|
-
line-height: var(--tr-question-item-line-height);
|
|
285
|
-
padding-top: 8px;
|
|
286
|
-
padding-bottom: 8px;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
/* ================ 常见问题样式 ================ */
|
|
291
|
-
/**
|
|
292
|
-
* 常见问题容器
|
|
293
|
-
* 横向展示常见问题
|
|
294
|
-
*/
|
|
295
|
-
.tr-common-questions {
|
|
296
|
-
margin-left: 40px;
|
|
297
|
-
width: calc(100% - 40px);
|
|
298
|
-
display: flex;
|
|
299
|
-
align-items: center;
|
|
300
|
-
flex: 1;
|
|
301
|
-
height: 100%;
|
|
302
|
-
overflow-x: auto;
|
|
303
|
-
overflow-y: hidden;
|
|
304
|
-
white-space: nowrap;
|
|
305
|
-
flex-wrap: nowrap;
|
|
306
|
-
transition: all 0.3s ease;
|
|
307
|
-
position: relative;
|
|
308
|
-
|
|
309
|
-
&.expanded {
|
|
310
|
-
flex-wrap: wrap;
|
|
311
|
-
align-content: flex-end;
|
|
312
|
-
height: auto;
|
|
313
|
-
max-height: 200px; /* 可以根据需要调整 */
|
|
314
|
-
overflow-y: auto;
|
|
315
|
-
position: absolute;
|
|
316
|
-
bottom: 0;
|
|
317
|
-
z-index: 5;
|
|
318
|
-
padding: 8px 0;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* 常见问题项
|
|
323
|
-
* 支持悬停效果和溢出文本处理
|
|
324
|
-
*/
|
|
325
|
-
&_item {
|
|
326
|
-
max-width: 515px;
|
|
327
|
-
text-overflow: ellipsis;
|
|
328
|
-
overflow: hidden;
|
|
329
|
-
display: flex;
|
|
330
|
-
align-items: center;
|
|
331
|
-
gap: 8px;
|
|
332
|
-
white-space: nowrap;
|
|
333
|
-
color: var(--tr-question-common-text);
|
|
334
|
-
border: none;
|
|
335
|
-
background: var(--tr-question-common-bg);
|
|
336
|
-
margin: 1px 8px 4px 0;
|
|
337
|
-
cursor: pointer;
|
|
338
|
-
text-decoration: none;
|
|
339
|
-
height: var(--tr-question-common-item-height);
|
|
340
|
-
padding: 0 16px;
|
|
341
|
-
border-radius: var(--tr-question-common-border-radius);
|
|
342
|
-
box-shadow: var(--tr-question-common-item-shadow);
|
|
343
|
-
transition: var(--tr-question-hover-transition);
|
|
344
|
-
|
|
345
|
-
& svg {
|
|
346
|
-
font-size: 16px;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/* 悬停效果 */
|
|
350
|
-
&:hover {
|
|
351
|
-
background-color: var(--tr-question-common-hover-bg);
|
|
352
|
-
transform: translateY(-1px);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/* 自定义滚动条 */
|
|
357
|
-
&::-webkit-scrollbar {
|
|
358
|
-
height: var(--tr-question-scrollbar-width);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
&::-webkit-scrollbar-track {
|
|
362
|
-
background: var(--tr-question-scrollbar-track-bg);
|
|
363
|
-
border-radius: var(--tr-question-scrollbar-border-radius);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
&::-webkit-scrollbar-thumb {
|
|
367
|
-
background-color: var(--tr-question-scrollbar-thumb-bg);
|
|
368
|
-
border-radius: var(--tr-question-scrollbar-border-radius);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
&::-webkit-scrollbar-thumb:hover {
|
|
372
|
-
background-color: var(--tr-question-scrollbar-thumb-hover-bg);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
/* ================ 切换按钮样式 ================ */
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* 换行切换按钮
|
|
380
|
-
* 控制问题展示方式
|
|
381
|
-
*/
|
|
382
|
-
.tr-question-wrap-trigger {
|
|
383
|
-
position: absolute;
|
|
384
|
-
right: 0;
|
|
385
|
-
z-index: 10;
|
|
386
|
-
cursor: pointer;
|
|
387
|
-
display: flex;
|
|
388
|
-
align-items: center;
|
|
389
|
-
justify-content: center;
|
|
390
|
-
width: 26px;
|
|
391
|
-
height: 26px;
|
|
392
|
-
|
|
393
|
-
/* 按钮图标 */
|
|
394
|
-
& > svg {
|
|
395
|
-
font-size: 20px;
|
|
396
|
-
background-color: #fff;
|
|
397
|
-
color: rgb(89, 89, 89);
|
|
398
|
-
box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.15);
|
|
399
|
-
border-radius: 50%;
|
|
400
|
-
transition: background-color 0.3s ease;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
& > svg:hover {
|
|
404
|
-
background-color: #f5f5f5;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/* ================ 状态指示器样式 ================ */
|
|
409
|
-
/**
|
|
410
|
-
* 加载状态
|
|
411
|
-
*/
|
|
412
|
-
.tr-question-loading {
|
|
413
|
-
padding: var(--tr-question-spacing);
|
|
414
|
-
text-align: center;
|
|
415
|
-
|
|
416
|
-
&-spinner {
|
|
417
|
-
width: 24px;
|
|
418
|
-
height: 24px;
|
|
419
|
-
border: 2px solid var(--tr-question-border-color);
|
|
420
|
-
border-top-color: var(--tr-question-primary-color);
|
|
421
|
-
border-radius: 50%;
|
|
422
|
-
margin: 0 auto;
|
|
423
|
-
animation: tr-question-spin 1s linear infinite;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* 空状态
|
|
429
|
-
*/
|
|
430
|
-
.tr-question-empty {
|
|
431
|
-
padding: var(--tr-question-spacing);
|
|
432
|
-
text-align: center;
|
|
433
|
-
color: var(--tr-question-text-color-secondary);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
/* ================ 动画效果 ================ */
|
|
437
|
-
/**
|
|
438
|
-
* 加载动画
|
|
439
|
-
*/
|
|
440
|
-
@keyframes tr-question-spin {
|
|
441
|
-
0% {
|
|
442
|
-
transform: rotate(0deg);
|
|
443
|
-
}
|
|
444
|
-
100% {
|
|
445
|
-
transform: rotate(360deg);
|
|
446
|
-
}
|
|
447
|
-
}
|
package/src/question/index.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
import Question from './index.vue'
|
|
3
|
-
|
|
4
|
-
Question.name = 'TrQuestion'
|
|
5
|
-
|
|
6
|
-
const install = function <T>(app: App<T>) {
|
|
7
|
-
app.component(Question.name!, Question)
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
Question.install = install
|
|
11
|
-
|
|
12
|
-
export default Question as typeof Question & { install: typeof install }
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export interface Category {
|
|
2
|
-
id: string
|
|
3
|
-
label: string
|
|
4
|
-
icon?: string
|
|
5
|
-
questions: Question[]
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface Question {
|
|
9
|
-
id: string
|
|
10
|
-
text: string
|
|
11
|
-
keywords?: string[]
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface TrQuestionPanel {
|
|
15
|
-
openModal: () => void
|
|
16
|
-
closeModal: () => void
|
|
17
|
-
toggleFloating: () => void
|
|
18
|
-
setActiveCategory: (categoryId: string) => void
|
|
19
|
-
refreshData: () => Promise<void>
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type ThemeType = 'light' | 'dark'
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Question组件属性定义
|
|
26
|
-
*/
|
|
27
|
-
export interface QuestionProps {
|
|
28
|
-
/**
|
|
29
|
-
* 问题分类列表
|
|
30
|
-
* 包含多个分类,每个分类下有多个问题
|
|
31
|
-
*/
|
|
32
|
-
categories: Category[]
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* 浮动显示的问题列表
|
|
36
|
-
* 显示在组件底部的常见问题胶囊
|
|
37
|
-
*/
|
|
38
|
-
commonQuestions: Question[]
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* 是否初始展开常见问题
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
|
-
initialExpanded?: boolean
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* 弹窗宽度
|
|
48
|
-
* @default '640px'
|
|
49
|
-
*/
|
|
50
|
-
modalWidth?: string
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* 主题类型
|
|
54
|
-
* @default 'light'
|
|
55
|
-
*/
|
|
56
|
-
theme?: ThemeType
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* 是否点击外部关闭弹窗
|
|
60
|
-
* @default true
|
|
61
|
-
*/
|
|
62
|
-
closeOnClickOutside?: boolean
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* 是否显示加载中状态
|
|
66
|
-
* @default false
|
|
67
|
-
*/
|
|
68
|
-
loading?: boolean
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Question组件事件定义
|
|
73
|
-
*/
|
|
74
|
-
export type QuestionEmits = {
|
|
75
|
-
/**
|
|
76
|
-
* 问题点击事件
|
|
77
|
-
* @param question 被点击的问题对象
|
|
78
|
-
*/
|
|
79
|
-
'question-click': [question: Question]
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* 分类选择事件
|
|
83
|
-
* @param category 被选择的分类对象
|
|
84
|
-
*/
|
|
85
|
-
'select-category': [category: Category]
|
|
86
|
-
}
|
package/src/question/index.vue
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed, ref, defineProps, defineEmits, defineExpose, watch, onMounted, withDefaults } from 'vue'
|
|
3
|
-
import { useQuestions } from './composables/useQuestions'
|
|
4
|
-
import CommonQuestions from './components/CommonQuestions.vue'
|
|
5
|
-
import HotQuestions from './components/HotQuestions.vue'
|
|
6
|
-
import type { Category, Question, QuestionProps, QuestionEmits } from './index.type'
|
|
7
|
-
|
|
8
|
-
import { IconHotQuestion, IconArrowUp, IconArrowDown, IconTypeAll } from '@opentiny/tiny-robot-svgs'
|
|
9
|
-
import './index.less'
|
|
10
|
-
|
|
11
|
-
const props = withDefaults(defineProps<QuestionProps>(), {
|
|
12
|
-
categories: () => [] as Category[],
|
|
13
|
-
commonQuestions: () => [] as Question[],
|
|
14
|
-
initialExpanded: false,
|
|
15
|
-
modalWidth: '640px',
|
|
16
|
-
theme: 'light',
|
|
17
|
-
closeOnClickOutside: true,
|
|
18
|
-
loading: false,
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
// 切换问题展示
|
|
22
|
-
const toggleExpand = () => {
|
|
23
|
-
isExpanded.value = !isExpanded.value
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const emit = defineEmits<QuestionEmits>()
|
|
27
|
-
|
|
28
|
-
const categories = computed(() => props.categories)
|
|
29
|
-
const isExpanded = ref(props.initialExpanded)
|
|
30
|
-
|
|
31
|
-
const { modalVisible, currentTheme, setActiveCategory, openModal, closeModal, setTheme, refreshData } =
|
|
32
|
-
useQuestions(categories)
|
|
33
|
-
|
|
34
|
-
// 同步 props 到内部状态
|
|
35
|
-
watch(
|
|
36
|
-
() => props.theme,
|
|
37
|
-
(value) => {
|
|
38
|
-
setTheme(value)
|
|
39
|
-
},
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
// 处理问题点击
|
|
43
|
-
const handleQuestionClick = (question: Question) => {
|
|
44
|
-
closeModal()
|
|
45
|
-
emit('question-click', question)
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// 处理分类选择
|
|
49
|
-
const handleCategorySelect = (category: Category) => {
|
|
50
|
-
if (category) {
|
|
51
|
-
setActiveCategory(category.id)
|
|
52
|
-
emit('select-category', category)
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// 处理按钮隐藏
|
|
57
|
-
const showExpandButton = ref(false)
|
|
58
|
-
|
|
59
|
-
const handleShowExpandButton = (value: boolean) => {
|
|
60
|
-
showExpandButton.value = value
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// 组件挂载时初始化主题
|
|
64
|
-
onMounted(() => {
|
|
65
|
-
document.documentElement.setAttribute('data-theme', currentTheme.value)
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
// 暴露实例方法
|
|
69
|
-
defineExpose({
|
|
70
|
-
openModal,
|
|
71
|
-
closeModal,
|
|
72
|
-
toggleFloating: toggleExpand,
|
|
73
|
-
setActiveCategory,
|
|
74
|
-
refreshData,
|
|
75
|
-
})
|
|
76
|
-
</script>
|
|
77
|
-
|
|
78
|
-
<template>
|
|
79
|
-
<div class="tr-question-container" :class="[`theme-${theme}`]" :data-theme="theme">
|
|
80
|
-
<!-- 热门问题弹窗触发按钮 -->
|
|
81
|
-
<div class="tr-question-trigger" @click="openModal">
|
|
82
|
-
<IconHotQuestion />
|
|
83
|
-
</div>
|
|
84
|
-
|
|
85
|
-
<!-- 热门问题弹窗 -->
|
|
86
|
-
<HotQuestions
|
|
87
|
-
:visible="modalVisible"
|
|
88
|
-
:categories="categories"
|
|
89
|
-
:modal-width="modalWidth"
|
|
90
|
-
:loading="loading"
|
|
91
|
-
:close-on-click-outside="closeOnClickOutside"
|
|
92
|
-
@update:visible="modalVisible = $event"
|
|
93
|
-
@close="modalVisible = false"
|
|
94
|
-
@question-click="handleQuestionClick"
|
|
95
|
-
@select-category="handleCategorySelect"
|
|
96
|
-
>
|
|
97
|
-
<!-- 传递插槽内容 -->
|
|
98
|
-
<template #category-label="{ category }">
|
|
99
|
-
<slot name="category-label" :category="category">
|
|
100
|
-
<div class="category-icon">
|
|
101
|
-
<IconTypeAll />
|
|
102
|
-
</div>
|
|
103
|
-
<span>{{ category.label }}</span>
|
|
104
|
-
</slot>
|
|
105
|
-
</template>
|
|
106
|
-
|
|
107
|
-
<template #question-item="{ question, index }">
|
|
108
|
-
<slot name="question-item" :question="question" :index="index">
|
|
109
|
-
<span>{{ index + 1 }}.</span> {{ question.text }}
|
|
110
|
-
</slot>
|
|
111
|
-
</template>
|
|
112
|
-
|
|
113
|
-
<template #loading-indicator>
|
|
114
|
-
<slot name="loading-indicator">
|
|
115
|
-
<div class="tr-question-loading-spinner"></div>
|
|
116
|
-
</slot>
|
|
117
|
-
</template>
|
|
118
|
-
|
|
119
|
-
<template #empty-state>
|
|
120
|
-
<slot name="empty-state">
|
|
121
|
-
<p>暂无相关问题</p>
|
|
122
|
-
</slot>
|
|
123
|
-
</template>
|
|
124
|
-
</HotQuestions>
|
|
125
|
-
|
|
126
|
-
<!-- 常见问题胶囊 -->
|
|
127
|
-
<CommonQuestions
|
|
128
|
-
:isExpanded="isExpanded"
|
|
129
|
-
:questions="commonQuestions"
|
|
130
|
-
@show-expand-button="handleShowExpandButton"
|
|
131
|
-
@question-click="handleQuestionClick"
|
|
132
|
-
/>
|
|
133
|
-
|
|
134
|
-
<!-- 常规问题完整内容触发按钮 -->
|
|
135
|
-
<div v-if="showExpandButton" class="tr-question-wrap-trigger" @click="toggleExpand">
|
|
136
|
-
<IconArrowUp v-if="!isExpanded" />
|
|
137
|
-
<IconArrowDown v-else />
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
</template>
|