| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { reactive, ref } from 'vue'; |
| | | import { reactive } from 'vue'; |
| | | import { activeRoomId, activeSampleId, setRoomConfig } from '/@/stores/chatRoom'; |
| | | let state = reactive({ |
| | | exampleContent: [], |
| | | isShowExample: false, |
| | | m_groupArr: [], |
| | | }); |
| | | const exampleList = ref([]); //模版列表 |
| | | const emits = defineEmits<{ |
| | | (event: 'advanceExampleClick', data): void; |
| | | (event: 'updateChatInput', val): void; |
| | |
| | | }); |
| | | }); |
| | | state.exampleContent = result; |
| | | |
| | | initGroupedArr(); |
| | | }; |
| | | //随机生成颜色 |
| | | const randomHexColor = () => { |
| | | return `#${Math.floor(Math.random() * 16777215) |
| | | .toString(16) |
| | | .padEnd(6, '0')}`; |
| | | }; |
| | | defineExpose({ |
| | | tagListClick, |