ectd-ui/index.vue
2026-09-15 10:54:51 +08:00

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;
},
}
};