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.
- package/README.md +2 -0
- package/auto-complete/index.es.js +3 -1
- package/auto-complete/index.umd.js +1 -1
- package/auto-complete/style.css +1 -1
- package/button/style.css +1 -1
- package/checkbox/index.es.js +3 -1
- package/checkbox/index.umd.js +1 -1
- package/date-picker-pro/index.es.js +16 -12
- package/date-picker-pro/index.umd.js +9 -9
- package/date-picker-pro/style.css +1 -1
- package/drawer/index.es.js +1 -1
- package/drawer/index.umd.js +1 -1
- package/dropdown/index.es.js +2 -9
- package/dropdown/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +3 -1
- package/form/index.umd.js +1 -1
- package/input/index.es.js +3 -1
- package/input/index.umd.js +4 -4
- package/loading/style.css +1 -1
- package/mention/index.d.ts +7 -0
- package/mention/index.es.js +8326 -0
- package/mention/index.umd.js +47 -0
- package/mention/package.json +7 -0
- package/mention/style.css +1 -0
- package/menu/index.d.ts +7 -0
- package/menu/index.es.js +927 -0
- package/menu/index.umd.js +1 -0
- package/menu/package.json +7 -0
- package/menu/style.css +1 -0
- package/message/index.es.js +0 -1
- package/message/index.umd.js +1 -1
- package/message/style.css +1 -1
- package/modal/index.es.js +3 -1
- package/modal/index.umd.js +1 -1
- package/nuxt/components/Mention.js +3 -0
- package/nuxt/components/Menu.js +3 -0
- package/nuxt/components/MenuItem.js +3 -0
- package/nuxt/components/SubMenu.js +3 -0
- package/nuxt/components/mentionProps.js +3 -0
- package/nuxt/components/treeNodeProps.js +3 -0
- package/package.json +2 -2
- package/popover/index.es.js +3 -1
- package/popover/index.umd.js +6 -6
- package/radio/index.es.js +3 -1
- package/radio/index.umd.js +7 -7
- package/search/index.es.js +3 -1
- package/search/index.umd.js +8 -8
- package/select/index.es.js +3 -1
- package/select/index.umd.js +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +3 -1
- package/switch/index.umd.js +1 -1
- package/switch/style.css +1 -1
- package/table/index.es.js +9 -11
- package/table/index.umd.js +3 -3
- package/table/style.css +1 -1
- package/textarea/index.es.js +5 -2
- package/textarea/index.umd.js +16 -16
- package/time-picker/index.es.js +3 -1
- package/time-picker/index.umd.js +1 -1
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +3 -1
- package/time-select/index.umd.js +5 -5
- package/tree/index.es.js +11097 -9839
- package/tree/index.umd.js +27 -27
- package/tree/style.css +1 -1
- package/vue-devui.es.js +11745 -9417
- 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 ||
|
|
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([]);
|