28 lines
546 B
Vue
28 lines
546 B
Vue
<el-dialog
|
|
title="PDF 链接编辑器"
|
|
v-model="pdfEditorVisible"
|
|
width="80%"
|
|
:close-on-click-modal="false"
|
|
:close-on-press-escape="false"
|
|
>
|
|
<pdf-link-editor
|
|
ref="pdfEditorRef"
|
|
:initial-pdf-url="currentPdfUrl"
|
|
/>
|
|
</el-dialog>
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
pdfEditorVisible: false,
|
|
pdfEditorRef: null,
|
|
currentPdfUrl: '',
|
|
};
|
|
},
|
|
methods: {
|
|
openPdfEditor(row) {
|
|
this.currentPdfUrl = row.pdfUrl; // 假设 row 中有 pdfUrl 字段
|
|
this.pdfEditorVisible = true;
|
|
},
|
|
}
|
|
}; |