panhui 5 anni fa
parent
commit
72eb88f125
1 ha cambiato i file con 27 aggiunte e 0 eliminazioni
  1. 27 0
      src/main/h5/src/components/picker.vue

+ 27 - 0
src/main/h5/src/components/picker.vue

@@ -0,0 +1,27 @@
+<template>
+  <van-popup v-model="show" round position="bottom">
+    <van-datetime-picker
+      v-model="currentDate"
+      type="datetime"
+      title="选择完整时间"
+      :min-date="minDate"
+      :max-date="maxDate"
+    />
+  </van-popup>
+</template>
+
+<script>
+export default {
+  name: "time",
+  data() {
+    return {
+      minDate: new Date(),
+      maxDate: new Date(2025, 10, 1),
+      currentDate: new Date(),
+      show:true
+    };
+  }
+};
+</script>
+
+<style></style>