yc-design-vue 2.2.2 → 2.2.3
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/dist/index.umd.js +1 -1
- package/dist/lang-es/zh-cn.js +26 -26
- package/dist/style.css +1 -1
- package/es/Anchor/hooks/useContext.d.ts +1 -1
- package/es/Anchor/hooks/useContext.js +5 -9
- package/es/Carousel/hooks/useContext.d.ts +11 -2
- package/es/Carousel/hooks/useContext.js +4 -4
- package/es/Cascader/hooks/useContext.d.ts +69 -8
- package/es/Cascader/hooks/useContext.js +5 -13
- package/es/Cascader/index.css +1 -1
- package/es/ColorPicker/hooks/useContext.d.ts +12 -1
- package/es/ColorPicker/hooks/useContext.js +5 -5
- package/es/DatePicker/PickerRange.vue.d.ts +2 -0
- package/es/DatePicker/PickerRange.vue.js +15 -0
- package/es/DatePicker/PickerRange.vue2.js +4 -0
- package/es/DatePicker/YcDatePicker.vue.d.ts +2 -0
- package/es/DatePicker/YcDatePicker.vue.js +15 -0
- package/es/DatePicker/YcDatePicker.vue2.js +4 -0
- package/es/DatePicker/YcMonthPicker.vue.d.ts +64 -0
- package/es/DatePicker/YcMonthPicker.vue.js +234 -0
- package/es/DatePicker/YcMonthPicker.vue3.js +5 -0
- package/es/DatePicker/YcWeekPicker.vue.d.ts +65 -0
- package/es/DatePicker/YcWeekPicker.vue.js +7 -0
- package/es/DatePicker/YcWeekPicker.vue2.js +319 -0
- package/es/DatePicker/YcYearPicker.vue.d.ts +63 -0
- package/es/DatePicker/YcYearPicker.vue.js +200 -0
- package/es/DatePicker/YcYearPicker.vue3.js +5 -0
- package/es/DatePicker/component/PickerCell.vue.d.ts +36 -0
- package/es/DatePicker/component/PickerCell.vue.js +7 -0
- package/es/DatePicker/component/PickerCell.vue2.js +41 -0
- package/es/DatePicker/component/PickerInput.vue.d.ts +297 -0
- package/es/DatePicker/component/PickerInput.vue.js +7 -0
- package/es/DatePicker/component/PickerInput.vue2.js +125 -0
- package/es/DatePicker/component/PickerPanel.vue.d.ts +33 -0
- package/es/DatePicker/component/PickerPanel.vue.js +108 -0
- package/es/DatePicker/component/PickerPanel.vue3.js +5 -0
- package/es/DatePicker/hooks/useContext.d.ts +19 -0
- package/es/DatePicker/hooks/useContext.js +37 -0
- package/es/DatePicker/hooks/userPicker.d.ts +44 -0
- package/es/DatePicker/hooks/userPicker.js +221 -0
- package/es/DatePicker/index.css +3 -0
- package/es/DatePicker/index.d.ts +38 -0
- package/es/DatePicker/index.js +23 -0
- package/es/DatePicker/type.d.ts +104 -0
- package/es/Drawer/DrawerService.vue.js +1 -1
- package/es/Grid/hooks/useContext.d.ts +6 -2
- package/es/Grid/hooks/useContext.js +5 -7
- package/es/Menu/hooks/useContext.d.ts +17 -2
- package/es/Menu/hooks/useContext.js +5 -7
- package/es/Message/Message.vue.js +1 -1
- package/es/Modal/ModalService.vue.js +2 -2
- package/es/Notification/Notification.vue.js +2 -2
- package/es/Select/hooks/useContext.d.ts +2 -2
- package/es/Select/hooks/useSelectOptions.d.ts +2 -2
- package/es/Slider/hooks/useContext.d.ts +12 -6
- package/es/Slider/hooks/useContext.js +5 -12
- package/es/Statistic/Statistic.vue.js +3 -3
- package/es/Steps/hooks/useContext.d.ts +9 -1
- package/es/Steps/hooks/useContext.js +3 -6
- package/es/Tabs/hooks/useContext.d.ts +9 -2
- package/es/Tabs/hooks/useContext.js +5 -9
- package/es/TimePicker/TimePicker.vue.js +1 -1
- package/es/TimePicker/hooks/useContext.d.ts +17 -7
- package/es/TimePicker/hooks/useContext.js +4 -9
- package/es/Timeline/hooks/useContext.d.ts +4 -2
- package/es/Timeline/hooks/useContext.js +3 -6
- package/es/Transfer/TransferPanel.vue.js +1 -1
- package/es/Transfer/hooks/useContext.d.ts +1 -6
- package/es/Transfer/hooks/useContext.js +3 -7
- package/es/Typography/TypographyBase.vue.js +2 -2
- package/es/Upload/Upload.vue.js +6 -4
- package/es/Upload/UploadFileList.vue.js +129 -5
- package/es/Upload/UploadFileList.vue3.js +5 -0
- package/es/Upload/UploadPictureCard.vue.js +135 -5
- package/es/Upload/UploadPictureCard.vue3.js +5 -0
- package/es/_shared/icons/IconCalendar.vue.d.ts +2 -0
- package/es/_shared/icons/IconCalendar.vue.js +4 -0
- package/es/_shared/icons/IconCalendar.vue2.js +31 -0
- package/es/_shared/icons/IconCopy.vue.js +1 -28
- package/es/_shared/icons/IconCopy.vue2.js +28 -1
- package/es/_shared/icons/IconDelete.vue.js +1 -28
- package/es/_shared/icons/IconDelete.vue2.js +28 -1
- package/es/_shared/icons/IconDoubleLeft.vue.d.ts +2 -0
- package/es/_shared/icons/IconDoubleLeft.vue.js +31 -0
- package/es/_shared/icons/IconDoubleLeft.vue2.js +4 -0
- package/es/_shared/icons/IconDoubleRight.vue.d.ts +2 -0
- package/es/_shared/icons/IconDoubleRight.vue.js +31 -0
- package/es/_shared/icons/IconDoubleRight.vue2.js +4 -0
- package/es/_shared/icons/IconEdit.vue.js +1 -28
- package/es/_shared/icons/IconEdit.vue2.js +28 -1
- package/es/_shared/icons/index.d.ts +3 -0
- package/es/_shared/type/index.d.ts +1 -1
- package/es/_shared/utils/hooks.js +1 -1
- package/es/_shared/utils/time.d.ts +0 -1
- package/es/_shared/utils/time.js +0 -4
- package/es/_shared/utils/vue-utils.d.ts +1 -1
- package/es/_virtual/isoWeek.js +4 -0
- package/es/index.d.ts +295 -1
- package/es/index.js +42 -33
- package/es/lang-es/zh-cn.js +26 -26
- package/es/node_modules/dayjs/plugin/isoWeek.js +33 -0
- package/es/src/lang/lang-es/zh-cn.js +26 -26
- package/es/style.css +1 -1
- package/lib/Anchor/hooks/useContext.d.ts +1 -1
- package/lib/Anchor/hooks/useContext.js +1 -1
- package/lib/Carousel/hooks/useContext.d.ts +11 -2
- package/lib/Carousel/hooks/useContext.js +1 -1
- package/lib/Cascader/hooks/useContext.d.ts +69 -8
- package/lib/Cascader/hooks/useContext.js +1 -1
- package/lib/Cascader/index.css +1 -1
- package/lib/ColorPicker/hooks/useContext.d.ts +12 -1
- package/lib/ColorPicker/hooks/useContext.js +1 -1
- package/lib/DatePicker/PickerRange.vue.d.ts +2 -0
- package/lib/DatePicker/PickerRange.vue.js +1 -0
- package/lib/DatePicker/PickerRange.vue2.js +1 -0
- package/lib/DatePicker/YcDatePicker.vue.d.ts +2 -0
- package/lib/DatePicker/YcDatePicker.vue.js +1 -0
- package/lib/DatePicker/YcDatePicker.vue2.js +1 -0
- package/lib/DatePicker/YcMonthPicker.vue.d.ts +64 -0
- package/lib/DatePicker/YcMonthPicker.vue.js +1 -0
- package/lib/DatePicker/YcMonthPicker.vue3.js +1 -0
- package/lib/DatePicker/YcWeekPicker.vue.d.ts +65 -0
- package/lib/DatePicker/YcWeekPicker.vue.js +1 -0
- package/lib/DatePicker/YcWeekPicker.vue2.js +1 -0
- package/lib/DatePicker/YcYearPicker.vue.d.ts +63 -0
- package/lib/DatePicker/YcYearPicker.vue.js +1 -0
- package/lib/DatePicker/YcYearPicker.vue3.js +1 -0
- package/lib/DatePicker/component/PickerCell.vue.d.ts +36 -0
- package/lib/DatePicker/component/PickerCell.vue.js +1 -0
- package/lib/DatePicker/component/PickerCell.vue2.js +1 -0
- package/lib/DatePicker/component/PickerInput.vue.d.ts +297 -0
- package/lib/DatePicker/component/PickerInput.vue.js +1 -0
- package/lib/DatePicker/component/PickerInput.vue2.js +1 -0
- package/lib/DatePicker/component/PickerPanel.vue.d.ts +33 -0
- package/lib/DatePicker/component/PickerPanel.vue.js +1 -0
- package/lib/DatePicker/component/PickerPanel.vue3.js +1 -0
- package/lib/DatePicker/hooks/useContext.d.ts +19 -0
- package/lib/DatePicker/hooks/useContext.js +1 -0
- package/lib/DatePicker/hooks/userPicker.d.ts +44 -0
- package/lib/DatePicker/hooks/userPicker.js +1 -0
- package/lib/DatePicker/index.css +3 -0
- package/lib/DatePicker/index.d.ts +38 -0
- package/lib/DatePicker/index.js +1 -0
- package/lib/DatePicker/type.d.ts +104 -0
- package/lib/Drawer/DrawerService.vue.js +1 -1
- package/lib/Grid/hooks/useContext.d.ts +6 -2
- package/lib/Grid/hooks/useContext.js +1 -1
- package/lib/Menu/hooks/useContext.d.ts +17 -2
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Message/Message.vue.js +1 -1
- package/lib/Modal/ModalService.vue.js +1 -1
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/Select/hooks/useContext.d.ts +2 -2
- package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
- package/lib/Slider/hooks/useContext.d.ts +12 -6
- package/lib/Slider/hooks/useContext.js +1 -1
- package/lib/Statistic/Statistic.vue.js +1 -1
- package/lib/Steps/hooks/useContext.d.ts +9 -1
- package/lib/Steps/hooks/useContext.js +1 -1
- package/lib/Tabs/hooks/useContext.d.ts +9 -2
- package/lib/Tabs/hooks/useContext.js +1 -1
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/hooks/useContext.d.ts +17 -7
- package/lib/TimePicker/hooks/useContext.js +1 -1
- package/lib/Timeline/hooks/useContext.d.ts +4 -2
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Transfer/hooks/useContext.d.ts +1 -6
- package/lib/Transfer/hooks/useContext.js +1 -1
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Upload/Upload.vue.js +1 -1
- package/lib/Upload/UploadFileList.vue.js +1 -1
- package/lib/Upload/UploadFileList.vue3.js +1 -0
- package/lib/Upload/UploadPictureCard.vue.js +1 -1
- package/lib/Upload/UploadPictureCard.vue3.js +1 -0
- package/lib/_shared/icons/IconCalendar.vue.d.ts +2 -0
- package/lib/_shared/icons/IconCalendar.vue.js +1 -0
- package/lib/_shared/icons/IconCalendar.vue2.js +1 -0
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconDoubleLeft.vue.d.ts +2 -0
- package/lib/_shared/icons/IconDoubleLeft.vue.js +1 -0
- package/lib/_shared/icons/IconDoubleLeft.vue2.js +1 -0
- package/lib/_shared/icons/IconDoubleRight.vue.d.ts +2 -0
- package/lib/_shared/icons/IconDoubleRight.vue.js +1 -0
- package/lib/_shared/icons/IconDoubleRight.vue2.js +1 -0
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/index.d.ts +3 -0
- package/lib/_shared/type/index.d.ts +1 -1
- package/lib/_shared/utils/hooks.js +1 -1
- package/lib/_shared/utils/time.d.ts +0 -1
- package/lib/_shared/utils/time.js +1 -1
- package/lib/_shared/utils/vue-utils.d.ts +1 -1
- package/lib/_virtual/isoWeek.js +1 -0
- package/lib/index.d.ts +295 -1
- package/lib/index.js +1 -1
- package/lib/lang-es/zh-cn.js +26 -26
- package/lib/node_modules/dayjs/plugin/isoWeek.js +1 -0
- package/lib/src/lang/lang-es/zh-cn.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/Upload/UploadFileList.vue2.js +0 -131
- package/es/Upload/UploadPictureCard.vue2.js +0 -137
- package/lib/Upload/UploadFileList.vue2.js +0 -1
- package/lib/Upload/UploadPictureCard.vue2.js +0 -1
@@ -1,7 +1,137 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import
|
4
|
-
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, normalizeClass, unref, createVNode, createCommentVNode, Fragment, renderList, createElementVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
|
2
|
+
import useUpload from "./hooks/useUpload.js";
|
3
|
+
import "../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
+
import "../node_modules/dayjs/dayjs.min.js";
|
5
|
+
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
+
import "../node_modules/dayjs/plugin/duration.js";
|
7
|
+
import "../node_modules/dayjs/plugin/toObject.js";
|
8
|
+
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
+
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
|
+
import "../_shared/utils/dom.js";
|
11
|
+
import "../_shared/utils/locale.js";
|
12
|
+
import "../_shared/utils/time.js";
|
13
|
+
/* empty css */
|
14
|
+
/* empty css */
|
15
|
+
/* empty css */
|
16
|
+
import _sfc_main$3 from "../_shared/icons/IconDelete.vue2.js";
|
17
|
+
import _sfc_main$4 from "../_shared/icons/IconEyeClose.vue.js";
|
18
|
+
import _sfc_main$2 from "../_shared/icons/IconPlus.vue.js";
|
19
|
+
import "../Image/index.js";
|
20
|
+
import _sfc_main$1 from "../Image/ImagePreview.vue.js";
|
21
|
+
/* empty css */
|
22
|
+
const _hoisted_1 = ["src", "alt"];
|
23
|
+
const _hoisted_2 = { class: "yc-upload-list-picture-mask" };
|
24
|
+
const _hoisted_3 = { class: "yc-upload-list-picture-operation" };
|
25
|
+
const _hoisted_4 = ["onClick"];
|
26
|
+
const _hoisted_5 = ["onClick"];
|
27
|
+
const _hoisted_6 = { class: "yc-upload-picture-card-text" };
|
28
|
+
const _hoisted_7 = {
|
29
|
+
key: 0,
|
30
|
+
class: "yc-upload-tip"
|
31
|
+
};
|
32
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
33
|
+
__name: "UploadPictureCard",
|
34
|
+
setup(__props) {
|
35
|
+
const uploadRef = ref();
|
36
|
+
const visible = ref(false);
|
37
|
+
const url = ref("");
|
38
|
+
const {
|
39
|
+
computedFileList,
|
40
|
+
limit,
|
41
|
+
tip,
|
42
|
+
slots,
|
43
|
+
customIcon,
|
44
|
+
disabled,
|
45
|
+
imagePreview,
|
46
|
+
showPreviewButton,
|
47
|
+
showRemoveButton,
|
48
|
+
listType,
|
49
|
+
handleUpload,
|
50
|
+
handleDelFile,
|
51
|
+
emits
|
52
|
+
} = useUpload(uploadRef);
|
53
|
+
const renderDelIcon = () => {
|
54
|
+
return slots["remove-icon"] ?? (customIcon.value.removeIcon || _sfc_main$3);
|
55
|
+
};
|
56
|
+
const renderPreviewIcon = () => {
|
57
|
+
return slots["preview-icon"] ?? (customIcon.value.previewIcon || _sfc_main$4);
|
58
|
+
};
|
59
|
+
const handlePreview = (fileItem) => {
|
60
|
+
url.value = fileItem.url;
|
61
|
+
emits("preview", fileItem);
|
62
|
+
if (!imagePreview.value) return;
|
63
|
+
visible.value = true;
|
64
|
+
};
|
65
|
+
return (_ctx, _cache) => {
|
66
|
+
return openBlock(), createElementBlock("div", {
|
67
|
+
class: normalizeClass([
|
68
|
+
"yc-upload-list",
|
69
|
+
`yc-upload-list-type-${unref(listType)}`,
|
70
|
+
{
|
71
|
+
"yc-upload-list-disabled": unref(disabled)
|
72
|
+
}
|
73
|
+
])
|
74
|
+
}, [
|
75
|
+
createVNode(unref(_sfc_main$1), {
|
76
|
+
visible: visible.value,
|
77
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
78
|
+
src: url.value
|
79
|
+
}, null, 8, ["visible", "src"]),
|
80
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(computedFileList), (item) => {
|
81
|
+
return openBlock(), createElementBlock("div", {
|
82
|
+
key: item.uid,
|
83
|
+
class: "yc-upload-list-picture"
|
84
|
+
}, [
|
85
|
+
createElementVNode("img", {
|
86
|
+
src: item.url,
|
87
|
+
alt: item.name
|
88
|
+
}, null, 8, _hoisted_1),
|
89
|
+
createElementVNode("div", _hoisted_2, [
|
90
|
+
createElementVNode("div", _hoisted_3, [
|
91
|
+
unref(showPreviewButton) ? (openBlock(), createElementBlock("span", {
|
92
|
+
key: 0,
|
93
|
+
class: normalizeClass(["yc-upload-icon", "yc-upload-icon-preview"]),
|
94
|
+
onClick: ($event) => handlePreview(item)
|
95
|
+
}, [
|
96
|
+
(openBlock(), createBlock(resolveDynamicComponent(renderPreviewIcon())))
|
97
|
+
], 8, _hoisted_4)) : createCommentVNode("", true),
|
98
|
+
unref(showRemoveButton) ? (openBlock(), createElementBlock("span", {
|
99
|
+
key: 1,
|
100
|
+
class: normalizeClass(["yc-upload-icon", "yc-upload-icon-remove"]),
|
101
|
+
onClick: ($event) => unref(handleDelFile)(item)
|
102
|
+
}, [
|
103
|
+
(openBlock(), createBlock(resolveDynamicComponent(renderDelIcon())))
|
104
|
+
], 8, _hoisted_5)) : createCommentVNode("", true)
|
105
|
+
])
|
106
|
+
])
|
107
|
+
]);
|
108
|
+
}), 128)),
|
109
|
+
unref(limit) <= 0 || unref(computedFileList).length < unref(limit) ? (openBlock(), createElementBlock("span", {
|
110
|
+
key: 0,
|
111
|
+
class: "yc-upload",
|
112
|
+
ref_key: "uploadRef",
|
113
|
+
ref: uploadRef,
|
114
|
+
onClick: _cache[1] || (_cache[1] = //@ts-ignore
|
115
|
+
(...args) => unref(handleUpload) && unref(handleUpload)(...args))
|
116
|
+
}, [
|
117
|
+
createElementVNode("div", {
|
118
|
+
class: normalizeClass([
|
119
|
+
"yc-upload-picture-card",
|
120
|
+
{
|
121
|
+
"yc-upload-picture-card-disabled": unref(disabled)
|
122
|
+
}
|
123
|
+
])
|
124
|
+
}, [
|
125
|
+
createElementVNode("div", _hoisted_6, [
|
126
|
+
createVNode(unref(_sfc_main$2))
|
127
|
+
]),
|
128
|
+
unref(tip) ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(unref(tip)), 1)) : createCommentVNode("", true)
|
129
|
+
], 2)
|
130
|
+
], 512)) : createCommentVNode("", true)
|
131
|
+
], 2);
|
132
|
+
};
|
133
|
+
}
|
134
|
+
});
|
5
135
|
export {
|
6
|
-
|
136
|
+
_sfc_main as default
|
7
137
|
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
4
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
+
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
+
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
+
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
+
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
|
+
import "../utils/dom.js";
|
10
|
+
import "../utils/locale.js";
|
11
|
+
import "../utils/time.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
+
/* empty css */
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "IconCalendar",
|
18
|
+
setup(__props) {
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("path", { d: "M7 22h34M14 5v8m20-8v8M8 41h32a1 1 0 0 0 1-1V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1Z" }, null, -1)
|
23
|
+
])]),
|
24
|
+
_: 1
|
25
|
+
}, 16);
|
26
|
+
};
|
27
|
+
}
|
28
|
+
});
|
29
|
+
export {
|
30
|
+
_sfc_main as default
|
31
|
+
};
|
@@ -1,31 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
|
-
import "../../node_modules/dayjs/dayjs.min.js";
|
4
|
-
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
|
-
import "../utils/dom.js";
|
10
|
-
import "../utils/locale.js";
|
11
|
-
import "../utils/time.js";
|
12
|
-
/* empty css */
|
13
|
-
/* empty css */
|
14
|
-
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
-
/* empty css */
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
-
__name: "IconCopy",
|
18
|
-
setup(__props) {
|
19
|
-
return (_ctx, _cache) => {
|
20
|
-
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
-
createElementVNode("path", { d: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
|
23
|
-
])]),
|
24
|
-
_: 1
|
25
|
-
}, 16);
|
26
|
-
};
|
27
|
-
}
|
28
|
-
});
|
1
|
+
import _sfc_main from "./IconCopy.vue2.js";
|
29
2
|
export {
|
30
3
|
_sfc_main as default
|
31
4
|
};
|
@@ -1,4 +1,31 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
4
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
+
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
+
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
+
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
+
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
|
+
import "../utils/dom.js";
|
10
|
+
import "../utils/locale.js";
|
11
|
+
import "../utils/time.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
+
/* empty css */
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "IconCopy",
|
18
|
+
setup(__props) {
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("path", { d: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
|
23
|
+
])]),
|
24
|
+
_: 1
|
25
|
+
}, 16);
|
26
|
+
};
|
27
|
+
}
|
28
|
+
});
|
2
29
|
export {
|
3
30
|
_sfc_main as default
|
4
31
|
};
|
@@ -1,31 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
|
-
import "../../node_modules/dayjs/dayjs.min.js";
|
4
|
-
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
|
-
import "../utils/dom.js";
|
10
|
-
import "../utils/locale.js";
|
11
|
-
import "../utils/time.js";
|
12
|
-
/* empty css */
|
13
|
-
/* empty css */
|
14
|
-
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
-
/* empty css */
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
-
__name: "IconDelete",
|
18
|
-
setup(__props) {
|
19
|
-
return (_ctx, _cache) => {
|
20
|
-
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
-
createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
|
23
|
-
])]),
|
24
|
-
_: 1
|
25
|
-
}, 16);
|
26
|
-
};
|
27
|
-
}
|
28
|
-
});
|
1
|
+
import _sfc_main from "./IconDelete.vue2.js";
|
29
2
|
export {
|
30
3
|
_sfc_main as default
|
31
4
|
};
|
@@ -1,4 +1,31 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
4
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
+
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
+
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
+
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
+
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
|
+
import "../utils/dom.js";
|
10
|
+
import "../utils/locale.js";
|
11
|
+
import "../utils/time.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
+
/* empty css */
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "IconDelete",
|
18
|
+
setup(__props) {
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
|
23
|
+
])]),
|
24
|
+
_: 1
|
25
|
+
}, 16);
|
26
|
+
};
|
27
|
+
}
|
28
|
+
});
|
2
29
|
export {
|
3
30
|
_sfc_main as default
|
4
31
|
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
4
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
+
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
+
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
+
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
+
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
|
+
import "../utils/dom.js";
|
10
|
+
import "../utils/locale.js";
|
11
|
+
import "../utils/time.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
+
/* empty css */
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "IconDoubleLeft",
|
18
|
+
setup(__props) {
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("path", { d: "M36.857 9.9 22.715 24.042l14.142 14.142M25.544 9.9 11.402 24.042l14.142 14.142" }, null, -1)
|
23
|
+
])]),
|
24
|
+
_: 1
|
25
|
+
}, 16);
|
26
|
+
};
|
27
|
+
}
|
28
|
+
});
|
29
|
+
export {
|
30
|
+
_sfc_main as default
|
31
|
+
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
4
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
+
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
+
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
+
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
+
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
|
+
import "../utils/dom.js";
|
10
|
+
import "../utils/locale.js";
|
11
|
+
import "../utils/time.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
+
/* empty css */
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "IconDoubleRight",
|
18
|
+
setup(__props) {
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("path", { d: "m11.143 38.1 14.142-14.142L11.143 9.816M22.456 38.1l14.142-14.142L22.456 9.816" }, null, -1)
|
23
|
+
])]),
|
24
|
+
_: 1
|
25
|
+
}, 16);
|
26
|
+
};
|
27
|
+
}
|
28
|
+
});
|
29
|
+
export {
|
30
|
+
_sfc_main as default
|
31
|
+
};
|
@@ -1,31 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
|
-
import "../../node_modules/dayjs/dayjs.min.js";
|
4
|
-
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
|
-
import "../utils/dom.js";
|
10
|
-
import "../utils/locale.js";
|
11
|
-
import "../utils/time.js";
|
12
|
-
/* empty css */
|
13
|
-
/* empty css */
|
14
|
-
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
-
/* empty css */
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
-
__name: "IconEdit",
|
18
|
-
setup(__props) {
|
19
|
-
return (_ctx, _cache) => {
|
20
|
-
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
-
createElementVNode("path", { d: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
|
23
|
-
])]),
|
24
|
-
_: 1
|
25
|
-
}, 16);
|
26
|
-
};
|
27
|
-
}
|
28
|
-
});
|
1
|
+
import _sfc_main from "./IconEdit.vue2.js";
|
29
2
|
export {
|
30
3
|
_sfc_main as default
|
31
4
|
};
|
@@ -1,4 +1,31 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
4
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
+
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
+
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
+
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
+
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
|
+
import "../utils/dom.js";
|
10
|
+
import "../utils/locale.js";
|
11
|
+
import "../utils/time.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
+
/* empty css */
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "IconEdit",
|
18
|
+
setup(__props) {
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("path", { d: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
|
23
|
+
])]),
|
24
|
+
_: 1
|
25
|
+
}, 16);
|
26
|
+
};
|
27
|
+
}
|
28
|
+
});
|
2
29
|
export {
|
3
30
|
_sfc_main as default
|
4
31
|
};
|
@@ -39,3 +39,6 @@ export { default as IconZoomIn } from './IconZoomIn.vue';
|
|
39
39
|
export { default as IconZoomOut } from './IconZoomOut.vue';
|
40
40
|
export { default as IconUpload } from './IconUpload.vue';
|
41
41
|
export { default as IconFile } from './IconFile.vue';
|
42
|
+
export { default as IconDoubleLeft } from './IconDoubleLeft.vue';
|
43
|
+
export { default as IconDoubleRight } from './IconDoubleRight.vue';
|
44
|
+
export { default as IconCalendar } from './IconCalendar.vue';
|
@@ -22,7 +22,7 @@ export type Position = 'left' | 'right' | 'top' | 'bottom';
|
|
22
22
|
export type Type<T = never> = 'success' | 'warning' | 'error' | 'info' | T;
|
23
23
|
export type Status<T = never> = 'success' | 'warning' | 'danger' | 'normal' | T;
|
24
24
|
export type ClassName = string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
25
|
-
export type RenderContent = string | RecordType[] | RenderFunction;
|
25
|
+
export type RenderContent = string | number | RecordType[] | RenderFunction;
|
26
26
|
export type RecordType<T = any> = Record<string, T>;
|
27
27
|
export type Required<T> = {
|
28
28
|
[P in keyof T]-?: T[P] extends object ? Required<T[P]> : T[P];
|
@@ -9,4 +9,3 @@ export interface CalendarCellData {
|
|
9
9
|
}
|
10
10
|
export declare const generateMonthCalendar: (year: number, month: number) => CalendarCellData[][];
|
11
11
|
export declare const formatSeconds: (time: number, format: string, type?: dayjs.UnitType) => string;
|
12
|
-
export declare const formatDate: (value: string | number | Date, format: string) => string;
|
package/es/_shared/utils/time.js
CHANGED
@@ -43,11 +43,7 @@ const generateMonthCalendar = (year, month) => {
|
|
43
43
|
const formatSeconds = (time, format, type = "milliseconds") => {
|
44
44
|
return dayjs.duration(time, type).format(format);
|
45
45
|
};
|
46
|
-
const formatDate = (value, format) => {
|
47
|
-
return dayjs(value).format(format);
|
48
|
-
};
|
49
46
|
export {
|
50
|
-
formatDate,
|
51
47
|
formatSeconds,
|
52
48
|
generateMonthCalendar,
|
53
49
|
isValidTimeRange
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
2
|
import { RecordType, RenderContent } from '../type';
|
3
|
-
export declare const getSlotFunction: (param: RenderContent | undefined) => import('vue').RenderFunction | (() => string | RecordType<any>[]) | undefined;
|
3
|
+
export declare const getSlotFunction: (param: RenderContent | undefined) => import('vue').RenderFunction | (() => string | number | RecordType<any>[]) | undefined;
|
4
4
|
export declare const isVifNode: (vnode: VNode | undefined | null) => boolean;
|
5
5
|
export declare const findFirstLegitChild: (node: VNode[] | undefined) => VNode | null;
|
6
6
|
export declare const findComponentsFromVnodes: (vnodes: VNode[], name?: string) => RecordType[];
|