|
@@ -30,7 +30,7 @@
|
|
|
</div>
|
|
|
<div class="flex-1 p-base overflow-hidden">
|
|
|
<div class="full-h radius-base scroll-y-auto message-info-content">
|
|
|
- <content-edit-able v-model="messageContent" class="full-h"></content-edit-able>
|
|
|
+ <content-edit-able v-model="messageContent" class="full-h" @click="onContentClick"></content-edit-able>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="p-base flex items-center justify-end">
|
|
@@ -145,9 +145,15 @@ const onCheckChange = () => {
|
|
|
checkedUsers.value = (treeRef?.value?.getCheckedNodes(true) as MarkerItem[]) || []
|
|
|
}
|
|
|
|
|
|
-const onPreviewImage = (path: string) => {
|
|
|
- previewPath.value = path
|
|
|
- previewModalVisible.value = true
|
|
|
+const onContentClick = (e: Event) => {
|
|
|
+ const target = e.target as HTMLButtonElement
|
|
|
+ console.log([target])
|
|
|
+ const data = target.getAttribute('data')
|
|
|
+ console.log(data)
|
|
|
+ const path = target.getAttribute('data-path')
|
|
|
+ if (path) {
|
|
|
+ console.log(path)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/** 发送当前试卷 */
|
|
@@ -155,11 +161,16 @@ const sendCurrentPaper = () => {
|
|
|
const ImgLink = defineComponent({
|
|
|
render() {
|
|
|
return (
|
|
|
- <div class="inline" contenteditable={false}>
|
|
|
- <span class="pointer" type="primary" link onClick={() => onPreviewImage('xxxxx')}>
|
|
|
- 当前试卷
|
|
|
- </span>
|
|
|
- </div>
|
|
|
+ <ElButton
|
|
|
+ style={{ textAlign: 'left' }}
|
|
|
+ class="pointer inline-block full-w"
|
|
|
+ contenteditable={false}
|
|
|
+ type="primary"
|
|
|
+ data={'xxxxx'}
|
|
|
+ link
|
|
|
+ >
|
|
|
+ 当前试卷
|
|
|
+ </ElButton>
|
|
|
)
|
|
|
},
|
|
|
})
|