敢为人鲜小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
504 B

11 months ago
  1. <template>
  2. <view class="calendars">
  3. <uv-calendars ref="calendars" @confirm="confirm" />
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. name: "Calendars",
  9. data() {
  10. return {
  11. }
  12. },
  13. methods: {
  14. //打开日历
  15. open() {
  16. this.$refs.calendars.open();
  17. },
  18. //用户选择了日期信息
  19. confirm(e) {
  20. this.$emit("select", e)
  21. }
  22. }
  23. }
  24. </script>
  25. <style lang="scss" scoped>
  26. .calendars {
  27. &::v-deep .uv-calendar__header {
  28. border-bottom: none !important;
  29. }
  30. }
  31. </style>