This commit is contained in:
2019-03-01 21:25:58 +00:00
parent 0b173ae3ad
commit 0c9d9026d9
2 changed files with 25 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
<script>
/* eslint-disable */
export default {
props: {
value: {
@@ -7,6 +8,7 @@ export default {
}
},
render() {
var that=this;
return this.$createElement("v-date-picker", {
props: {
...this.$attrs,
@@ -14,21 +16,30 @@ export default {
},
on: {
...this.$listeners,
input: date => this.$emit("input", new Date(date).toISOString())
input: function(date) {
debugger;
that.$emit("input", new Date(date).toISOString());
}
//input: date => this.$emit("input", new Date(date).toISOString())
}
});
},
data: function() {
return {
ogdate: ""
};
}
// ,
// computed: {
// listeners() {
// return {
// // Pass all component listeners directly to input
// ...this.$listeners,
// // Override input listener to work with v-model
// input: event => this.$emit("input", event.target.value)
// };
// }
// }
// ,
// computed: {
// listeners() {
// return {
// // Pass all component listeners directly to input
// ...this.$listeners,
// // Override input listener to work with v-model
// input: event => this.$emit("input", event.target.value)
// };
// }
// }
};
</script>

View File

@@ -50,6 +50,7 @@
</v-flex>
<v-flex xs12 sm6 lg4 xl3 px-2>
<div>{{obj.startDate}}</div>
<gz-date-picker label="TESTStartDate" v-model="obj.startDate"></gz-date-picker>
</v-flex>
@@ -112,7 +113,7 @@
<v-btn @click="submit">submit</v-btn>
</v-flex>
</v-layout>
</form> <div>{{obj.startDate}}</div>
</form>
</v-flex>
</v-layout>