Git Product home page Git Product logo

Comments (2)

amchconsult avatar amchconsult commented on September 4, 2024
<!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.

amchconsult avatar amchconsult commented on September 4, 2024

Sorry, I got it

v-model:value="value1"

thank you

from vue-datepicker-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.