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.
Files changed (208) hide show
  1. package/dist/index.umd.js +1 -1
  2. package/dist/lang-es/zh-cn.js +26 -26
  3. package/dist/style.css +1 -1
  4. package/es/Anchor/hooks/useContext.d.ts +1 -1
  5. package/es/Anchor/hooks/useContext.js +5 -9
  6. package/es/Carousel/hooks/useContext.d.ts +11 -2
  7. package/es/Carousel/hooks/useContext.js +4 -4
  8. package/es/Cascader/hooks/useContext.d.ts +69 -8
  9. package/es/Cascader/hooks/useContext.js +5 -13
  10. package/es/Cascader/index.css +1 -1
  11. package/es/ColorPicker/hooks/useContext.d.ts +12 -1
  12. package/es/ColorPicker/hooks/useContext.js +5 -5
  13. package/es/DatePicker/PickerRange.vue.d.ts +2 -0
  14. package/es/DatePicker/PickerRange.vue.js +15 -0
  15. package/es/DatePicker/PickerRange.vue2.js +4 -0
  16. package/es/DatePicker/YcDatePicker.vue.d.ts +2 -0
  17. package/es/DatePicker/YcDatePicker.vue.js +15 -0
  18. package/es/DatePicker/YcDatePicker.vue2.js +4 -0
  19. package/es/DatePicker/YcMonthPicker.vue.d.ts +64 -0
  20. package/es/DatePicker/YcMonthPicker.vue.js +234 -0
  21. package/es/DatePicker/YcMonthPicker.vue3.js +5 -0
  22. package/es/DatePicker/YcWeekPicker.vue.d.ts +65 -0
  23. package/es/DatePicker/YcWeekPicker.vue.js +7 -0
  24. package/es/DatePicker/YcWeekPicker.vue2.js +319 -0
  25. package/es/DatePicker/YcYearPicker.vue.d.ts +63 -0
  26. package/es/DatePicker/YcYearPicker.vue.js +200 -0
  27. package/es/DatePicker/YcYearPicker.vue3.js +5 -0
  28. package/es/DatePicker/component/PickerCell.vue.d.ts +36 -0
  29. package/es/DatePicker/component/PickerCell.vue.js +7 -0
  30. package/es/DatePicker/component/PickerCell.vue2.js +41 -0
  31. package/es/DatePicker/component/PickerInput.vue.d.ts +297 -0
  32. package/es/DatePicker/component/PickerInput.vue.js +7 -0
  33. package/es/DatePicker/component/PickerInput.vue2.js +125 -0
  34. package/es/DatePicker/component/PickerPanel.vue.d.ts +33 -0
  35. package/es/DatePicker/component/PickerPanel.vue.js +108 -0
  36. package/es/DatePicker/component/PickerPanel.vue3.js +5 -0
  37. package/es/DatePicker/hooks/useContext.d.ts +19 -0
  38. package/es/DatePicker/hooks/useContext.js +37 -0
  39. package/es/DatePicker/hooks/userPicker.d.ts +44 -0
  40. package/es/DatePicker/hooks/userPicker.js +221 -0
  41. package/es/DatePicker/index.css +3 -0
  42. package/es/DatePicker/index.d.ts +38 -0
  43. package/es/DatePicker/index.js +23 -0
  44. package/es/DatePicker/type.d.ts +104 -0
  45. package/es/Drawer/DrawerService.vue.js +1 -1
  46. package/es/Grid/hooks/useContext.d.ts +6 -2
  47. package/es/Grid/hooks/useContext.js +5 -7
  48. package/es/Menu/hooks/useContext.d.ts +17 -2
  49. package/es/Menu/hooks/useContext.js +5 -7
  50. package/es/Message/Message.vue.js +1 -1
  51. package/es/Modal/ModalService.vue.js +2 -2
  52. package/es/Notification/Notification.vue.js +2 -2
  53. package/es/Select/hooks/useContext.d.ts +2 -2
  54. package/es/Select/hooks/useSelectOptions.d.ts +2 -2
  55. package/es/Slider/hooks/useContext.d.ts +12 -6
  56. package/es/Slider/hooks/useContext.js +5 -12
  57. package/es/Statistic/Statistic.vue.js +3 -3
  58. package/es/Steps/hooks/useContext.d.ts +9 -1
  59. package/es/Steps/hooks/useContext.js +3 -6
  60. package/es/Tabs/hooks/useContext.d.ts +9 -2
  61. package/es/Tabs/hooks/useContext.js +5 -9
  62. package/es/TimePicker/TimePicker.vue.js +1 -1
  63. package/es/TimePicker/hooks/useContext.d.ts +17 -7
  64. package/es/TimePicker/hooks/useContext.js +4 -9
  65. package/es/Timeline/hooks/useContext.d.ts +4 -2
  66. package/es/Timeline/hooks/useContext.js +3 -6
  67. package/es/Transfer/TransferPanel.vue.js +1 -1
  68. package/es/Transfer/hooks/useContext.d.ts +1 -6
  69. package/es/Transfer/hooks/useContext.js +3 -7
  70. package/es/Typography/TypographyBase.vue.js +2 -2
  71. package/es/Upload/Upload.vue.js +6 -4
  72. package/es/Upload/UploadFileList.vue.js +129 -5
  73. package/es/Upload/UploadFileList.vue3.js +5 -0
  74. package/es/Upload/UploadPictureCard.vue.js +135 -5
  75. package/es/Upload/UploadPictureCard.vue3.js +5 -0
  76. package/es/_shared/icons/IconCalendar.vue.d.ts +2 -0
  77. package/es/_shared/icons/IconCalendar.vue.js +4 -0
  78. package/es/_shared/icons/IconCalendar.vue2.js +31 -0
  79. package/es/_shared/icons/IconCopy.vue.js +1 -28
  80. package/es/_shared/icons/IconCopy.vue2.js +28 -1
  81. package/es/_shared/icons/IconDelete.vue.js +1 -28
  82. package/es/_shared/icons/IconDelete.vue2.js +28 -1
  83. package/es/_shared/icons/IconDoubleLeft.vue.d.ts +2 -0
  84. package/es/_shared/icons/IconDoubleLeft.vue.js +31 -0
  85. package/es/_shared/icons/IconDoubleLeft.vue2.js +4 -0
  86. package/es/_shared/icons/IconDoubleRight.vue.d.ts +2 -0
  87. package/es/_shared/icons/IconDoubleRight.vue.js +31 -0
  88. package/es/_shared/icons/IconDoubleRight.vue2.js +4 -0
  89. package/es/_shared/icons/IconEdit.vue.js +1 -28
  90. package/es/_shared/icons/IconEdit.vue2.js +28 -1
  91. package/es/_shared/icons/index.d.ts +3 -0
  92. package/es/_shared/type/index.d.ts +1 -1
  93. package/es/_shared/utils/hooks.js +1 -1
  94. package/es/_shared/utils/time.d.ts +0 -1
  95. package/es/_shared/utils/time.js +0 -4
  96. package/es/_shared/utils/vue-utils.d.ts +1 -1
  97. package/es/_virtual/isoWeek.js +4 -0
  98. package/es/index.d.ts +295 -1
  99. package/es/index.js +42 -33
  100. package/es/lang-es/zh-cn.js +26 -26
  101. package/es/node_modules/dayjs/plugin/isoWeek.js +33 -0
  102. package/es/src/lang/lang-es/zh-cn.js +26 -26
  103. package/es/style.css +1 -1
  104. package/lib/Anchor/hooks/useContext.d.ts +1 -1
  105. package/lib/Anchor/hooks/useContext.js +1 -1
  106. package/lib/Carousel/hooks/useContext.d.ts +11 -2
  107. package/lib/Carousel/hooks/useContext.js +1 -1
  108. package/lib/Cascader/hooks/useContext.d.ts +69 -8
  109. package/lib/Cascader/hooks/useContext.js +1 -1
  110. package/lib/Cascader/index.css +1 -1
  111. package/lib/ColorPicker/hooks/useContext.d.ts +12 -1
  112. package/lib/ColorPicker/hooks/useContext.js +1 -1
  113. package/lib/DatePicker/PickerRange.vue.d.ts +2 -0
  114. package/lib/DatePicker/PickerRange.vue.js +1 -0
  115. package/lib/DatePicker/PickerRange.vue2.js +1 -0
  116. package/lib/DatePicker/YcDatePicker.vue.d.ts +2 -0
  117. package/lib/DatePicker/YcDatePicker.vue.js +1 -0
  118. package/lib/DatePicker/YcDatePicker.vue2.js +1 -0
  119. package/lib/DatePicker/YcMonthPicker.vue.d.ts +64 -0
  120. package/lib/DatePicker/YcMonthPicker.vue.js +1 -0
  121. package/lib/DatePicker/YcMonthPicker.vue3.js +1 -0
  122. package/lib/DatePicker/YcWeekPicker.vue.d.ts +65 -0
  123. package/lib/DatePicker/YcWeekPicker.vue.js +1 -0
  124. package/lib/DatePicker/YcWeekPicker.vue2.js +1 -0
  125. package/lib/DatePicker/YcYearPicker.vue.d.ts +63 -0
  126. package/lib/DatePicker/YcYearPicker.vue.js +1 -0
  127. package/lib/DatePicker/YcYearPicker.vue3.js +1 -0
  128. package/lib/DatePicker/component/PickerCell.vue.d.ts +36 -0
  129. package/lib/DatePicker/component/PickerCell.vue.js +1 -0
  130. package/lib/DatePicker/component/PickerCell.vue2.js +1 -0
  131. package/lib/DatePicker/component/PickerInput.vue.d.ts +297 -0
  132. package/lib/DatePicker/component/PickerInput.vue.js +1 -0
  133. package/lib/DatePicker/component/PickerInput.vue2.js +1 -0
  134. package/lib/DatePicker/component/PickerPanel.vue.d.ts +33 -0
  135. package/lib/DatePicker/component/PickerPanel.vue.js +1 -0
  136. package/lib/DatePicker/component/PickerPanel.vue3.js +1 -0
  137. package/lib/DatePicker/hooks/useContext.d.ts +19 -0
  138. package/lib/DatePicker/hooks/useContext.js +1 -0
  139. package/lib/DatePicker/hooks/userPicker.d.ts +44 -0
  140. package/lib/DatePicker/hooks/userPicker.js +1 -0
  141. package/lib/DatePicker/index.css +3 -0
  142. package/lib/DatePicker/index.d.ts +38 -0
  143. package/lib/DatePicker/index.js +1 -0
  144. package/lib/DatePicker/type.d.ts +104 -0
  145. package/lib/Drawer/DrawerService.vue.js +1 -1
  146. package/lib/Grid/hooks/useContext.d.ts +6 -2
  147. package/lib/Grid/hooks/useContext.js +1 -1
  148. package/lib/Menu/hooks/useContext.d.ts +17 -2
  149. package/lib/Menu/hooks/useContext.js +1 -1
  150. package/lib/Message/Message.vue.js +1 -1
  151. package/lib/Modal/ModalService.vue.js +1 -1
  152. package/lib/Notification/Notification.vue.js +1 -1
  153. package/lib/Select/hooks/useContext.d.ts +2 -2
  154. package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
  155. package/lib/Slider/hooks/useContext.d.ts +12 -6
  156. package/lib/Slider/hooks/useContext.js +1 -1
  157. package/lib/Statistic/Statistic.vue.js +1 -1
  158. package/lib/Steps/hooks/useContext.d.ts +9 -1
  159. package/lib/Steps/hooks/useContext.js +1 -1
  160. package/lib/Tabs/hooks/useContext.d.ts +9 -2
  161. package/lib/Tabs/hooks/useContext.js +1 -1
  162. package/lib/TimePicker/TimePicker.vue.js +1 -1
  163. package/lib/TimePicker/hooks/useContext.d.ts +17 -7
  164. package/lib/TimePicker/hooks/useContext.js +1 -1
  165. package/lib/Timeline/hooks/useContext.d.ts +4 -2
  166. package/lib/Timeline/hooks/useContext.js +1 -1
  167. package/lib/Transfer/TransferPanel.vue.js +1 -1
  168. package/lib/Transfer/hooks/useContext.d.ts +1 -6
  169. package/lib/Transfer/hooks/useContext.js +1 -1
  170. package/lib/Typography/TypographyBase.vue.js +1 -1
  171. package/lib/Upload/Upload.vue.js +1 -1
  172. package/lib/Upload/UploadFileList.vue.js +1 -1
  173. package/lib/Upload/UploadFileList.vue3.js +1 -0
  174. package/lib/Upload/UploadPictureCard.vue.js +1 -1
  175. package/lib/Upload/UploadPictureCard.vue3.js +1 -0
  176. package/lib/_shared/icons/IconCalendar.vue.d.ts +2 -0
  177. package/lib/_shared/icons/IconCalendar.vue.js +1 -0
  178. package/lib/_shared/icons/IconCalendar.vue2.js +1 -0
  179. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  180. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  181. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  182. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  183. package/lib/_shared/icons/IconDoubleLeft.vue.d.ts +2 -0
  184. package/lib/_shared/icons/IconDoubleLeft.vue.js +1 -0
  185. package/lib/_shared/icons/IconDoubleLeft.vue2.js +1 -0
  186. package/lib/_shared/icons/IconDoubleRight.vue.d.ts +2 -0
  187. package/lib/_shared/icons/IconDoubleRight.vue.js +1 -0
  188. package/lib/_shared/icons/IconDoubleRight.vue2.js +1 -0
  189. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  190. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  191. package/lib/_shared/icons/index.d.ts +3 -0
  192. package/lib/_shared/type/index.d.ts +1 -1
  193. package/lib/_shared/utils/hooks.js +1 -1
  194. package/lib/_shared/utils/time.d.ts +0 -1
  195. package/lib/_shared/utils/time.js +1 -1
  196. package/lib/_shared/utils/vue-utils.d.ts +1 -1
  197. package/lib/_virtual/isoWeek.js +1 -0
  198. package/lib/index.d.ts +295 -1
  199. package/lib/index.js +1 -1
  200. package/lib/lang-es/zh-cn.js +26 -26
  201. package/lib/node_modules/dayjs/plugin/isoWeek.js +1 -0
  202. package/lib/src/lang/lang-es/zh-cn.js +1 -1
  203. package/lib/style.css +1 -1
  204. package/package.json +1 -1
  205. package/es/Upload/UploadFileList.vue2.js +0 -131
  206. package/es/Upload/UploadPictureCard.vue2.js +0 -137
  207. package/lib/Upload/UploadFileList.vue2.js +0 -1
  208. package/lib/Upload/UploadPictureCard.vue2.js +0 -1
@@ -1,7 +1,137 @@
1
- import _sfc_main from "./UploadPictureCard.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const UploadPictureCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2914d73a"]]);
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
- UploadPictureCard as default
136
+ _sfc_main as default
7
137
  };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./UploadPictureCard.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -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,4 @@
1
+ import _sfc_main from "./IconCalendar.vue2.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -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 { 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
- });
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 _sfc_main from "./IconCopy.vue.js";
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 { 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
- });
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 _sfc_main from "./IconDelete.vue.js";
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,4 @@
1
+ import _sfc_main from "./IconDoubleLeft.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./IconDoubleRight.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -1,31 +1,4 @@
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
- });
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 _sfc_main from "./IconEdit.vue.js";
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,7 +9,7 @@ const useControlValue = (modelValue, defaultValue, onSet = (data) => data, onGet
9
9
  },
10
10
  set(value) {
11
11
  controlValue.value = value;
12
- onSet(value);
12
+ onSet(value, controlValue);
13
13
  }
14
14
  });
15
15
  };
@@ -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;
@@ -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[];
@@ -0,0 +1,4 @@
1
+ var isoWeek = { exports: {} };
2
+ export {
3
+ isoWeek as __module
4
+ };