Clean up slider component and interface

This commit is contained in:
Ben Haynes
2020-11-06 10:06:10 -05:00
parent 2cc6114411
commit cc86ae7605
4 changed files with 75 additions and 35 deletions

View File

@@ -36,5 +36,14 @@ export default defineInterface(({ i18n }) => ({
interface: 'numeric',
},
},
{
field: 'alwaysShowValue',
name: i18n.t('interfaces.slider.always_show_value'),
type: 'boolean',
meta: {
width: 'half',
interface: 'toggle',
},
},
],
}));

View File

@@ -5,6 +5,7 @@
:min="minValue"
:max="maxValue"
:step="stepInterval"
:alwaysShowValue="alwaysShowValue"
show-thumb-label
show-ticks
@input="$listeners.input"
@@ -36,6 +37,10 @@ export default defineComponent({
type: Number,
default: 1,
},
alwaysShowValue: {
type: Boolean,
default: false,
},
},
});
</script>