<template>
  <m-date-picker v-model="value1" placeholder="请选择日期" confirm @on-confirm="onConfirm"></m-date-picker>
  <m-date-picker class="date" v-model="value2" type="daterange" placeholder="请选择日期" confirm></m-date-picker>
</template>

<script setup>
import { ref } from 'vue-demi';
const value1 = ref()
const value2 = ref([])

const onConfirm = (val) => {
  console.log(val);
}
</script>

<style>
.date{
  margin-left: 50px;
}
</style>