Comments (2)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>VUE 3 TEST 7</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- <link href="public/assets/vue-datepicker-next-1.0.2/index.css" rel="stylesheet"> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/index.css">
</head>
<body>
<style>
</style>
<div id="app">
<div class="container mt-4">
<section>
<p>format</p>
<date-picker v-model="value1" value-type="DD/MM/YYYY" format="YYYY-MM-DD"></date-picker>
<p>
<code>v-model = {{ value1 }}</code>
</p>
</section>
<section>
<p>format</p>
<date-picker v-model="value2" value-type="YYYY-MM-DD" format="DD/MM/YYYY"></date-picker>
<p>
<code>v-model = {{ value2 }}</code>
</p>
</section>
</div>
</div>
<!-- <script src="public/assets/vue3/dist/vue.global.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.global.js"></script>
<!-- <script src="public/assets/vue-datepicker-next-1.0.2/index.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script>
var vm = Vue.createApp({
components: {
'date-picker':DatePicker,
},
data(){
return {
value1:'2019-10-09',
value2:'2022-01-03',
}
},
})
.mount('#app')
</script>
</body>
</html>
from vue-datepicker-next.
Sorry, I got it
v-model:value="value1"
thank you
from vue-datepicker-next.
Related Issues (20)
- [Bug] :clearable="true" does not work
- [Question]
- [Question] Can I change my week selection from monday to saturday HOT 2
- 我可以单独使用这个面板吗,我需要自定义 HOT 1
- [1.0.3] TypeError: r.default.locale is not a function HOT 2
- [Feature request] Option to Display Single Calendar when using "range" for Intra-month Date Selection HOT 4
- [Bug] Values not displayed after next/prev page navigation in Safari 16.6
- [Bug] Console warnings after upgrading from Vue 3.3.8 to 3.3.9
- [Bug] CalendarRange 选中的时间少了1天
- Error in Nuxt 3 in rollbar
- [Bug] Vue less than 3.4.16 compilation failed
- [Feature request] Inline prop for vue3 version. HOT 1
- [Question] How do I set the name of the input field?
- Is it possible to translate or change the AM & PM text on the picker please?
- [Bug] Bootstrap Modal going to close on date select
- [Feature request] Add prop hide-today
- [Bug] Error happened with electron-builder
- [Question] Range datepicker current month shows on the right panel
- [Bug] cannot run vue-datepicker-next in vue/compat - mode HOT 1
- [Feature request] Accept Single Date in Date Range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-datepicker-next.