Skip to content

Commit

Permalink
fix: spinviewer prop is ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
WoodNeck authored Dec 16, 2022
1 parent 7a76e03 commit d912393
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/vue3-view360/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"sideEffects": false,
"scripts": {
"start": "vue-cli-service serve ./demo/main.ts",
"build:vue": "vue-cli-service build ./demo/main.ts",
"build": "rm -rf dist && rollup -c && npm run declaration",
"declaration": "rm -rf declaration && tsc -p tsconfig.declaration.json"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/vue3-view360/src/SpinViewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ export default defineComponent({
};
},
mounted() {
const props = getValidProps(this);

const props = getValidProps(this.$props);
this.vanillaSpinViewer = new VanillaSpinViewer(
this.$refs.container as HTMLElement,
props
Expand Down

0 comments on commit d912393

Please sign in to comment.