yangyin
2024-11-03 e8926403c7f190aee079ded3cc11213312087368
修改常用语样式
已修改2个文件
20 ■■■■■ 文件已修改
src/components/chat/components/playBar/PlayBar.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/components/playBar/phrase/CommonPhrases.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/components/playBar/PlayBar.vue
@@ -443,6 +443,7 @@
};
const updateCommonChatInput = (val) => {
    inputValue.value = val;
    isShowPhrase.value = false;
};
//#endregion
</script>
src/components/chat/components/playBar/phrase/CommonPhrases.vue
@@ -9,9 +9,9 @@
                <div class="w-full h-full absolute top-0">
                    <div class="py-0 mt-0 box-border h-full">
                        <div style="overflow-anchor: none" v-for="(item, index) in commonPhrases" :key="index">
                            <div class="phase_item">
                            <div class="phase_item" @click="titleClick(item)">
                                <div class="flex flex-col">
                                    <div class="title" @click="titleClick(item)">
                                    <div class="title">
                                        {{ item.title }}
                                    </div>
                                    <!-- <div class="content">
@@ -21,11 +21,11 @@
                                <div class="py-2">
                                    <span
                                        class="ywifont ywicon-bianji cursor-pointer text-[#767a97] pt-[4px] pr-[6px] pb-[2px] pl-0 rounded-lg !text-[13px]"
                                        @click="editCommonPhrases(item)"
                                        @click.stop="editCommonPhrases(item)"
                                    ></span>
                                    <span
                                        class="ywifont ywicon-shanchu3 cursor-pointer text-[red] pt-[4px] pr-[6px] pb-[2px] pl-0 rounded-lg"
                                        @click="deleteCommonPhrases(item)"
                                        @click.stop="deleteCommonPhrases(item)"
                                    ></span>
                                </div>
                            </div>
@@ -99,8 +99,8 @@
};
const editCommonPhrases = (item) => {
    state.useCommonPhrasesDialog = true;
    state.inputCommonPhrases = item.content;
    state.show_sample_title = true;
    state.inputCommonPhrases = item.title;
};
const deleteCommonPhrases = (item) => {
    ElMessageBox.confirm(`你确定要删除常用语吗?<div style="white-space: pre-line;">[${item.title}]</div>`, '提示', {
@@ -196,14 +196,17 @@
                }
                .title {
                    font-size: 14px;
                    color: #060607;
                    font-family: PingFang HK;
                    font-weight: 600;
                    color: #8d8e99;
                    font-weight: 400;
                    font-style: normal;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    &:hover {
                        color: #060607;
                    }
                }
                .content {
                    font-size: 12px;
                    color: #5e6772;