Skip to content

Commit

Permalink
fix(slider): fix step is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Nov 7, 2023
1 parent fbe2f88 commit 7cf4411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/slider/_example/input-number.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<t-space direction="vertical" size="60px">
<t-slider v-model="value1" :show-tooltip="true" :inputNumberProps="inputNumberProps" />
<t-slider v-model="value1" :show-tooltip="true" :inputNumberProps="inputNumberProps" :step="0.1" />
<t-slider v-model="value2" range :show-tooltip="true" :inputNumberProps="inputNumberProps" />
</t-space>
</template>
Expand All @@ -10,7 +10,7 @@ export default {
return {
value1: 12,
value2: [30, 70],
inputNumberProps: { theme: 'column', autoWidth: true },
inputNumberProps: { theme: 'column', autoWidth: true, max: 15 },
};
},
};
Expand Down
1 change: 0 additions & 1 deletion src/slider/slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ export default mixins(classPrefixMixins).extend({
},
calcInputNumberProps(): object {
const defaultInputNumberProps = {
decimalPlaces: 0,
placeholder: '',
theme: 'column',
};
Expand Down

0 comments on commit 7cf4411

Please sign in to comment.