Skip to content

Commit

Permalink
fix(vue): fix vue typings for Swiper and Skeleton Elements
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Aug 23, 2021
1 parent 4075c20 commit 6c37be6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build-vue-typings.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ function generateComponentProps(fileContent) {
}

function generateComponentTypings(componentName, fileContent) {
if (componentName.includes('Swiper') || componentName.includes('Skeleton')) return fileContent;
if (componentName.includes('Swiper') || componentName.includes('Skeleton')) {
return fileContent.replace('<script>', '').replace('</script>', '');
}

return `
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
// IMPORTS
Expand Down

0 comments on commit 6c37be6

Please sign in to comment.