Skip to content

Commit 4d07f6c

Browse files
committed
fix(docs): plugin field in component
1 parent 6995d0f commit 4d07f6c

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

  • .github/workflows
  • packages/pdfeasy-docs/.vitepress/theme/components

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [14.x, 16.x]
12+
node-version: [14.x]
1313

1414
steps:
1515
- uses: actions/checkout@v2

packages/pdfeasy-docs/.vitepress/theme/components/Demo.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,22 @@
2121
2222
__RENDERING__.value = true
2323
24-
pdfeasy.new()
24+
pdfeasy.new({
25+
plugins: [],
26+
})
2527
2628
await pdfeasy.add(parse)
2729
30+
console.log('here?')
31+
2832
pdfeasy
2933
.run({
3034
client: {
3135
emit: 'blob',
3236
},
3337
})
3438
.then((blob) => {
39+
console.log('here?')
3540
iframe.value.src = blob
3641
})
3742
.catch((res) => {

0 commit comments

Comments
 (0)