95 lines
3.0 KiB
HTML
95 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>Test Vue</title>
|
|
<link rel="stylesheet" href="../libs/vendor/css/vuetify.min.css">
|
|
|
|
<link rel="stylesheet" href="../libs/vendor/css/google-fonts.css">
|
|
<style>
|
|
[v-cloak] {
|
|
display: none
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div v-cloak id="app">
|
|
<v-app id="inspire">
|
|
<v-layout row wrap>
|
|
<v-flex xs12 sm6 md4>
|
|
<v-menu ref="menu" :close-on-content-click="false" v-model="menu" :nudge-right="40" :return-value.sync="date" lazy transition="scale-transition"
|
|
offset-y full-width min-width="290px">
|
|
<v-text-field slot="activator" v-model="date" label="Picker in menu" prepend-icon="event" readonly></v-text-field>
|
|
<v-date-picker v-model="date" no-title scrollable>
|
|
<v-spacer></v-spacer>
|
|
<v-btn flat color="primary" @click="menu = false">Cancel</v-btn>
|
|
<v-btn flat color="primary" @click="$refs.menu.save(date)">OK</v-btn>
|
|
</v-date-picker>
|
|
</v-menu>
|
|
</v-flex>
|
|
<v-spacer></v-spacer>
|
|
<v-flex xs12 sm6 md4>
|
|
<v-dialog ref="dialog" v-model="modal" :return-value.sync="date" persistent lazy full-width width="290px">
|
|
<v-text-field slot="activator" v-model="date" label="Picker in dialog" prepend-icon="event" readonly></v-text-field>
|
|
<v-date-picker v-model="date" scrollable>
|
|
<v-spacer></v-spacer>
|
|
<v-btn flat color="primary" @click="modal = false">Cancel</v-btn>
|
|
<v-btn flat color="primary" @click="$refs.dialog.save(date)">OK</v-btn>
|
|
</v-date-picker>
|
|
</v-dialog>
|
|
</v-flex>
|
|
<v-flex xs12 sm6 md4>
|
|
<v-menu ref="menu2" :close-on-content-click="false" v-model="menu2" :nudge-right="40" :return-value.sync="date" lazy transition="scale-transition"
|
|
offset-y full-width min-width="290px">
|
|
<v-text-field slot="activator" v-model="date" label="Picker without buttons" prepend-icon="event" readonly></v-text-field>
|
|
<v-date-picker v-model="date" @input="$refs.menu2.save(date)"></v-date-picker>
|
|
|
|
</v-menu>
|
|
</v-flex>
|
|
<v-spacer></v-spacer>
|
|
</v-layout>
|
|
</v-app>
|
|
|
|
</div>
|
|
|
|
<!-- Vendor -->
|
|
<script src="../libs/vendor/vue.min.js"></script>
|
|
<script src="../libs/vendor/vuetify.js"></script>
|
|
<!-- App Script -->
|
|
<script>
|
|
|
|
new Vue({
|
|
el: '#app',
|
|
data: {
|
|
date: null,
|
|
menu: false,
|
|
modal: false,
|
|
menu2: false
|
|
},
|
|
props: {
|
|
source: String
|
|
},
|
|
created() {
|
|
this.$vuetify.theme = {
|
|
primary: "#f44336",
|
|
secondary: "#e57373",
|
|
accent: "#9c27b0",
|
|
error: "#f44336",
|
|
warning: "#ffeb3b",
|
|
info: "#2196f3",
|
|
success: "#4caf50"
|
|
|
|
}
|
|
}
|
|
})
|
|
|
|
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html> |