Add feature: allow spinner to have steps
This ads the possibility to choose `steps` in the formatting of the lists. So we can have ”5 in five minutes” or ”every 15 minutes” instead of having always lists of 60 items/minutes.
This commit is contained in:
parent
f3c6cd68d1
commit
9b37683241
5 changed files with 54 additions and 38 deletions
|
@ -32,7 +32,6 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import Vue from 'vue';
|
||||
import iInput from '../../components/input/input.vue';
|
||||
import Drop from '../../components/select/dropdown.vue';
|
||||
import clickoutside from '../../directives/clickoutside';
|
||||
|
@ -397,7 +396,7 @@
|
|||
let isConfirm = this.confirm;
|
||||
const type = this.type;
|
||||
|
||||
this.picker = new Vue(this.panel).$mount(this.$refs.picker);
|
||||
this.picker = this.Panel.$mount(this.$refs.picker);
|
||||
if (type === 'datetime' || type === 'datetimerange') {
|
||||
isConfirm = true;
|
||||
this.picker.showTime = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue