Skip to content

Commit

Permalink
fix(skeleton): chromatic demo build
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Nov 20, 2023
1 parent d2e23da commit a9abb2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions packages/ui/src/components/va-skeleton/VaSkeleton.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,22 @@ export const Group = () => ({
components: { VaSkeleton, VaSkeletonGroup },
template: `
<VaSkeletonGroup class="flex gap-5">
<VaSkeleton />
<VaSkeleton />
<VaSkeleton />
<VaSkeleton />
</ VaSkeletonGroup>
<VaSkeleton />
<VaSkeleton />
<VaSkeleton />
<VaSkeleton />
</VaSkeletonGroup>
`,
})

export const GroupWave = () => ({
components: { VaSkeleton, VaSkeletonGroup },
template: `
<VaSkeletonGroup animation="wave" class="flex gap-5">
<VaSkeleton />
<VaSkeleton />
<VaSkeleton />
<VaSkeleton />
</ VaSkeletonGroup>
<VaSkeleton />
<VaSkeleton />
<VaSkeleton />
<VaSkeleton />
</VaSkeletonGroup>
`,
})
4 changes: 2 additions & 2 deletions packages/ui/src/components/va-skeleton/VaSkeleton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default defineComponent({
animation: { type: String as PropType<'pulse' | 'wave' | 'none'>, default: 'pulse' },
lines: { type: Number, default: 1 },
lines: { type: [String, Number], default: 1 },
height: { type: [String], default: '5em' },
width: { type: [String], default: '100%' },
lineGap: { type: String, default: '8px' },
Expand Down Expand Up @@ -73,7 +73,7 @@ export default defineComponent({
const negativeLineGap = computed(() => `-${props.lineGap}`)
const bem = useBem('va-skeleton', () => ({
lines: props.lines > 1,
lines: Number(props.lines) > 1,
text: props.variant === 'text',
circle: props.variant === 'circle',
hidden: !doShow.value,
Expand Down

0 comments on commit a9abb2d

Please sign in to comment.