vue-devui 1.0.0-rc.16 → 1.0.0-rc.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +2 -0
  2. package/auto-complete/index.es.js +3 -1
  3. package/auto-complete/index.umd.js +1 -1
  4. package/auto-complete/style.css +1 -1
  5. package/button/style.css +1 -1
  6. package/checkbox/index.es.js +3 -1
  7. package/checkbox/index.umd.js +1 -1
  8. package/date-picker-pro/index.es.js +16 -12
  9. package/date-picker-pro/index.umd.js +9 -9
  10. package/date-picker-pro/style.css +1 -1
  11. package/drawer/index.es.js +1 -1
  12. package/drawer/index.umd.js +1 -1
  13. package/dropdown/index.es.js +2 -9
  14. package/dropdown/index.umd.js +1 -1
  15. package/editable-select/style.css +1 -1
  16. package/form/index.es.js +3 -1
  17. package/form/index.umd.js +1 -1
  18. package/input/index.es.js +3 -1
  19. package/input/index.umd.js +4 -4
  20. package/loading/style.css +1 -1
  21. package/mention/index.d.ts +7 -0
  22. package/mention/index.es.js +8326 -0
  23. package/mention/index.umd.js +47 -0
  24. package/mention/package.json +7 -0
  25. package/mention/style.css +1 -0
  26. package/menu/index.d.ts +7 -0
  27. package/menu/index.es.js +927 -0
  28. package/menu/index.umd.js +1 -0
  29. package/menu/package.json +7 -0
  30. package/menu/style.css +1 -0
  31. package/message/index.es.js +0 -1
  32. package/message/index.umd.js +1 -1
  33. package/message/style.css +1 -1
  34. package/modal/index.es.js +3 -1
  35. package/modal/index.umd.js +1 -1
  36. package/nuxt/components/Mention.js +3 -0
  37. package/nuxt/components/Menu.js +3 -0
  38. package/nuxt/components/MenuItem.js +3 -0
  39. package/nuxt/components/SubMenu.js +3 -0
  40. package/nuxt/components/mentionProps.js +3 -0
  41. package/nuxt/components/treeNodeProps.js +3 -0
  42. package/package.json +2 -2
  43. package/popover/index.es.js +3 -1
  44. package/popover/index.umd.js +6 -6
  45. package/radio/index.es.js +3 -1
  46. package/radio/index.umd.js +7 -7
  47. package/search/index.es.js +3 -1
  48. package/search/index.umd.js +8 -8
  49. package/select/index.es.js +3 -1
  50. package/select/index.umd.js +1 -1
  51. package/style.css +1 -1
  52. package/switch/index.es.js +3 -1
  53. package/switch/index.umd.js +1 -1
  54. package/switch/style.css +1 -1
  55. package/table/index.es.js +9 -11
  56. package/table/index.umd.js +3 -3
  57. package/table/style.css +1 -1
  58. package/textarea/index.es.js +5 -2
  59. package/textarea/index.umd.js +16 -16
  60. package/time-picker/index.es.js +3 -1
  61. package/time-picker/index.umd.js +1 -1
  62. package/time-picker/style.css +1 -1
  63. package/time-select/index.es.js +3 -1
  64. package/time-select/index.umd.js +5 -5
  65. package/tree/index.es.js +11097 -9839
  66. package/tree/index.umd.js +27 -27
  67. package/tree/style.css +1 -1
  68. package/vue-devui.es.js +11745 -9417
  69. package/vue-devui.umd.js +29 -28
@@ -1,4 +1,4 @@
1
- import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, nextTick, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, shallowRef, resolveDynamicComponent, getCurrentInstance, onBeforeMount, isVNode, onUpdated, toRaw, watchEffect, render, resolveDirective, toRef, renderSlot, useSlots } from "vue";
1
+ import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, nextTick, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, withModifiers, createTextVNode, onBeforeUnmount, shallowRef, resolveDynamicComponent, getCurrentInstance, onBeforeMount, isVNode, onUpdated, toRaw, watchEffect, render, resolveDirective, toRef, renderSlot, useSlots } from "vue";
2
2
  import { onClickOutside } from "@vueuse/core";
3
3
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
4
4
  const datePickerProCommonProps = {
@@ -275,6 +275,17 @@ var dayjs_min = { exports: {} };
275
275
  });
276
276
  })(dayjs_min);
277
277
  var dayjs = dayjs_min.exports;
278
+ const DAY_DURATION = 24 * 60 * 60 * 1e3;
279
+ const yearItemHeight = 30;
280
+ const calendarItemHeight = 186;
281
+ const yearListHeight = 305;
282
+ const calendarListHeight = 270;
283
+ const monthPickerHeight = 300;
284
+ const monthCalendarItemHeight = 186;
285
+ const yearPickerHeight = 186;
286
+ const yearCalendarItemHeight = 48;
287
+ const DEFAULT_DATE = "YYYY/MM/DD";
288
+ const DEFAULT_TIME = `${DEFAULT_DATE} HH:mm:ss`;
278
289
  const formatDayjsToStr = (date4, format2, type4) => {
279
290
  if (!date4) {
280
291
  return null;
@@ -285,7 +296,7 @@ const formatDayjsToStr = (date4, format2, type4) => {
285
296
  const month = date4.month() + 1 < 10 ? "0" + (date4.month() + 1) : date4.month() + 1;
286
297
  return `${date4.year()}-${month}`;
287
298
  } else {
288
- return date4.format(format2);
299
+ return dayjs(date4.format(format2)).isValid() ? date4.format(format2) : date4.format(DEFAULT_DATE);
289
300
  }
290
301
  };
291
302
  const isDateEquals = (pre, cur) => {
@@ -6541,6 +6552,8 @@ var Popover = defineComponent({
6541
6552
  "style": overlayStyles.value
6542
6553
  }, attrs, {
6543
6554
  "onPositionChange": handlePositionChange,
6555
+ "onClick": withModifiers(() => ({}), ["stop"]),
6556
+ "onPointerup": withModifiers(() => ({}), ["stop"]),
6544
6557
  "onMouseenter": onMouseenter,
6545
6558
  "onMouseleave": onMouseleave
6546
6559
  }), {
@@ -8068,7 +8081,7 @@ function usePickerPro(props, ctx, t) {
8068
8081
  ctx.emit("focus", e);
8069
8082
  };
8070
8083
  const format2 = computed(() => {
8071
- return props.showTime ? props.format || "YYYY/MM/DD HH:mm:ss" : props.format || "YYYY/MM/DD";
8084
+ return props.showTime ? props.format || DEFAULT_TIME : props.format || DEFAULT_DATE;
8072
8085
  });
8073
8086
  const dateValue = computed(() => {
8074
8087
  let result;
@@ -8695,15 +8708,6 @@ var Input = defineComponent({
8695
8708
  };
8696
8709
  }
8697
8710
  });
8698
- const DAY_DURATION = 24 * 60 * 60 * 1e3;
8699
- const yearItemHeight = 30;
8700
- const calendarItemHeight = 186;
8701
- const yearListHeight = 305;
8702
- const calendarListHeight = 270;
8703
- const monthPickerHeight = 300;
8704
- const monthCalendarItemHeight = 186;
8705
- const yearPickerHeight = 186;
8706
- const yearCalendarItemHeight = 48;
8707
8711
  function useCalendarSelected(props, ctx) {
8708
8712
  const today = ref(new Date());
8709
8713
  const calendarRange = ref([]);