Skip to content

Commit

Permalink
fix: docs type error
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Feb 15, 2022
1 parent e9c8c82 commit e7f3294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/slider/demos/enUS/format.demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<n-slider
:default-value="50"
:step="10"
:format-tooltip="(value) => `${value}%`"
:format-tooltip="(value: number) => `${value}%`"
/>
</template>
2 changes: 1 addition & 1 deletion src/slider/demos/zhCN/format.demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<n-slider
:default-value="50"
:step="10"
:format-tooltip="(value) => `${value}%`"
:format-tooltip="(value: number) => `${value}%`"
/>
</template>

0 comments on commit e7f3294

Please sign in to comment.