This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<v-menu
|
<!-- <v-menu
|
||||||
ref="menu"
|
ref="menu"
|
||||||
v-model="menu2"
|
v-model="show"
|
||||||
:close-on-content-click="false"
|
:close-on-content-click="false"
|
||||||
:nudge-right="40"
|
:nudge-right="40"
|
||||||
:return-value.sync="time"
|
:return-value.sync="time"
|
||||||
@@ -13,28 +13,43 @@
|
|||||||
max-width="290px"
|
max-width="290px"
|
||||||
min-width="290px"
|
min-width="290px"
|
||||||
>
|
>
|
||||||
<template v-slot:activator="{ on }">
|
<template v-slot:activator="{ on }">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="time"
|
v-model="value"
|
||||||
prepend-inner-icon="fa-calendar-alt"
|
prepend-inner-icon="fa-calendar-alt"
|
||||||
@click:prepend-inner="sproing('CLICK DATE')"
|
@click:prepend-inner="sproing('DATE')"
|
||||||
append-icon="fa-clock"
|
append-icon="fa-clock"
|
||||||
@click:append="sproing('CLICK TIME')"
|
@click:append="sproing('TIME')"
|
||||||
readonly
|
readonly
|
||||||
v-on="on"
|
v-on="on"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</template>
|
|
||||||
<v-time-picker
|
-->
|
||||||
v-if="menu2"
|
|
||||||
|
<v-text-field
|
||||||
|
v-model="value"
|
||||||
|
prepend-inner-icon="fa-calendar-alt"
|
||||||
|
@click:prepend-inner="sproing('DATE')"
|
||||||
|
append-icon="fa-clock"
|
||||||
|
@click:append="sproing('TIME')"
|
||||||
|
readonly
|
||||||
|
></v-text-field>
|
||||||
|
<gz-date-picker v-if="show.datePicker" v-bind:value="value"></gz-date-picker>
|
||||||
|
<gz-time-picker v-if="show.timePicker" v-bind:value="value"></gz-time-picker>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <v-time-picker
|
||||||
|
v-if="show.timePicker"
|
||||||
v-bind:value="value"
|
v-bind:value="value"
|
||||||
v-on:input="$emit('input', $event.target.value)"
|
v-on:input="$emit('input', $event.target.value)"
|
||||||
></v-time-picker>
|
></v-time-picker>
|
||||||
</v-menu>
|
</v-menu>-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
/* eslint-disable */
|
||||||
/*
|
/*
|
||||||
TODO:
|
TODO:
|
||||||
Add the date picker
|
Add the date picker
|
||||||
@@ -50,6 +65,10 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
show: {
|
||||||
|
timePicker: false,
|
||||||
|
datePicker: false
|
||||||
|
},
|
||||||
time: null,
|
time: null,
|
||||||
menu2: false,
|
menu2: false,
|
||||||
modal2: false
|
modal2: false
|
||||||
@@ -57,8 +76,16 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
sproing: function(msg) {
|
sproing: function(sproingUp) {
|
||||||
alert(msg);
|
if (sproingUp == "DATE") {
|
||||||
|
this.show.datePicker = true;
|
||||||
|
this.show.timePicker = false;
|
||||||
|
} else {
|
||||||
|
this.show.datePicker = false;
|
||||||
|
this.show.timePicker = true;
|
||||||
|
}
|
||||||
|
//debugger;
|
||||||
|
//console.log(this.show);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user