Skip to content

Commit

Permalink
fix(VSparkline): accept numeric value for smooth
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Sek committed Dec 19, 2024
1 parent 1d34a83 commit 3e601ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VSparkline/VTrendline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const VTrendline = genericComponent<VTrendlineSlots>()({
function genPath (fill: boolean) {
return _genPath(
genPoints(items.value, boundary.value),
props.smooth ? 8 : Number(props.smooth),
typeof props.smooth === 'number' ? props.smooth : props.smooth ? 8 : 0,
fill,
parseInt(props.height, 10)
)
Expand Down
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VSparkline/util/line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const makeLineProps = propsFactory({
default: 8,
},
showLabels: Boolean,
smooth: Boolean,
smooth: [Boolean, Number],
width: {
type: [Number, String],
default: 300,
Expand Down

0 comments on commit 3e601ee

Please sign in to comment.