mirror of
https://github.com/directus/directus.git
synced 2026-02-11 07:55:00 -05:00
Clean up slider component and interface
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
],
|
||||
}));
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user