Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/wangz-code/naive-admin into…
Browse files Browse the repository at this point in the history
… dist

is fast now
  • Loading branch information
wangz-code committed Dec 6, 2024
2 parents cf677dd + e321da9 commit 5be8831
Show file tree
Hide file tree
Showing 4 changed files with 822 additions and 338 deletions.
13 changes: 4 additions & 9 deletions apps/celeris/src/views/components/pdf/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
<n-card>
<n-flex :size="[0, 0]">
<n-card class="w-6.5/10">
<n-tabs type="line" animated>
<n-tab-pane display-directive="show" name="edit" tab="编辑器"> <Edit @preview="onPreview" /> </n-tab-pane>
</n-tabs>
<Edit @preview="onPreview" />
</n-card>
<div class="w-3.5/10">
<Preview class="m-l-sm" ref="preview" :doc-definition="docDefinition" />
<Preview class="m-l-sm" ref="previewPdf" />
</div>
</n-flex>
</n-card>
Expand All @@ -16,13 +14,10 @@
import Edit from './src/edit.vue';
import Preview from './src/preview.vue';
const preview = ref({ preview: () => {} });
const docDefinition = ref({});
const previewPdf = ref({ preview: () => {} });
const onPreview = (value: any) => {
docDefinition.value = value;
console.log('value log==>',value);
preview.value.preview();
previewPdf.value.preview(value);
};
</script>
Loading

0 comments on commit 5be8831

Please sign in to comment.