@yimou6/common-ui 1.6.5 → 1.7.0

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 (82) hide show
  1. package/cdn/index.cdn.js +12 -12
  2. package/cdn/index.cdn.js.map +1 -1
  3. package/cdn/index.cdn.mjs +11 -11
  4. package/cdn/index.cdn.mjs.map +1 -1
  5. package/cdn/index.css +1 -1
  6. package/es/_virtual/_commonjsHelpers.mjs +41 -0
  7. package/es/_virtual/_commonjsHelpers.mjs.map +1 -0
  8. package/es/_virtual/dayjs.min.mjs +8 -0
  9. package/es/_virtual/dayjs.min.mjs.map +1 -0
  10. package/es/_virtual/dayjs.min2.mjs +4 -0
  11. package/es/_virtual/dayjs.min2.mjs.map +1 -0
  12. package/es/components/date-picker/index.d.ts +206 -0
  13. package/es/components/date-picker/index.mjs +8 -0
  14. package/es/components/date-picker/index.mjs.map +1 -0
  15. package/es/components/date-picker/src/date-picker.d.ts +8 -0
  16. package/es/components/date-picker/src/date-picker.mjs +4 -0
  17. package/es/components/date-picker/src/date-picker.mjs.map +1 -0
  18. package/es/components/date-picker/src/date-picker.vue.d.ts +208 -0
  19. package/es/components/date-picker/src/date-picker.vue.mjs +6 -0
  20. package/es/components/date-picker/src/date-picker.vue.mjs.map +1 -0
  21. package/es/components/date-picker/src/date-picker.vue2.mjs +400 -0
  22. package/es/components/date-picker/src/date-picker.vue2.mjs.map +1 -0
  23. package/es/components/drawer/src/drawer.vue2.mjs +7 -7
  24. package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
  25. package/es/components/index.d.ts +1 -0
  26. package/es/components/index.mjs +1 -0
  27. package/es/components/index.mjs.map +1 -1
  28. package/es/components/search/index.d.ts +1 -0
  29. package/es/components/search/src/search.vue.d.ts +1 -0
  30. package/es/components/search/src/search.vue2.mjs +5 -0
  31. package/es/components/search/src/search.vue2.mjs.map +1 -1
  32. package/es/components/select/index.d.ts +2 -2
  33. package/es/components/select/src/select.vue.d.ts +2 -2
  34. package/es/index.mjs +1 -0
  35. package/es/index.mjs.map +1 -1
  36. package/es/installer.mjs +3 -1
  37. package/es/installer.mjs.map +1 -1
  38. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.mjs +18 -0
  39. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.mjs.map +1 -0
  40. package/es/utils/util.mjs +2 -1
  41. package/es/utils/util.mjs.map +1 -1
  42. package/global.d.ts +1 -0
  43. package/lib/_virtual/_commonjsHelpers.js +47 -0
  44. package/lib/_virtual/_commonjsHelpers.js.map +1 -0
  45. package/lib/_virtual/dayjs.min.js +12 -0
  46. package/lib/_virtual/dayjs.min.js.map +1 -0
  47. package/lib/_virtual/dayjs.min2.js +6 -0
  48. package/lib/_virtual/dayjs.min2.js.map +1 -0
  49. package/lib/components/date-picker/index.d.ts +206 -0
  50. package/lib/components/date-picker/index.js +13 -0
  51. package/lib/components/date-picker/index.js.map +1 -0
  52. package/lib/components/date-picker/src/date-picker.d.ts +8 -0
  53. package/lib/components/date-picker/src/date-picker.js +6 -0
  54. package/lib/components/date-picker/src/date-picker.js.map +1 -0
  55. package/lib/components/date-picker/src/date-picker.vue.d.ts +208 -0
  56. package/lib/components/date-picker/src/date-picker.vue.js +10 -0
  57. package/lib/components/date-picker/src/date-picker.vue.js.map +1 -0
  58. package/lib/components/date-picker/src/date-picker.vue2.js +404 -0
  59. package/lib/components/date-picker/src/date-picker.vue2.js.map +1 -0
  60. package/lib/components/drawer/src/drawer.vue2.js +7 -7
  61. package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
  62. package/lib/components/index.d.ts +1 -0
  63. package/lib/components/index.js +38 -36
  64. package/lib/components/index.js.map +1 -1
  65. package/lib/components/search/index.d.ts +1 -0
  66. package/lib/components/search/src/search.vue.d.ts +1 -0
  67. package/lib/components/search/src/search.vue2.js +5 -0
  68. package/lib/components/search/src/search.vue2.js.map +1 -1
  69. package/lib/components/select/index.d.ts +2 -2
  70. package/lib/components/select/src/select.vue.d.ts +2 -2
  71. package/lib/index.js +42 -40
  72. package/lib/index.js.map +1 -1
  73. package/lib/installer.js +3 -1
  74. package/lib/installer.js.map +1 -1
  75. package/lib/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +20 -0
  76. package/lib/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js.map +1 -0
  77. package/lib/utils/util.js +2 -1
  78. package/lib/utils/util.js.map +1 -1
  79. package/package.json +1 -1
  80. package/theme-default/i-date-picker.css +1 -0
  81. package/theme-default/i-drawer.css +1 -1
  82. package/theme-default/index.css +1 -1
@@ -0,0 +1,208 @@
1
+ import { PropType } from 'vue';
2
+ import type { Shortcuts } from './date-picker';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ modelValue: {
5
+ type: PropType<string | string[]>;
6
+ default: null;
7
+ };
8
+ placeholder: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ startPlaceholder: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ endPlaceholder: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ disabled: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ clearable: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ size: {
29
+ type: StringConstructor;
30
+ };
31
+ type: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ format: {
36
+ type: StringConstructor;
37
+ default: null;
38
+ };
39
+ valueFormat: {
40
+ type: StringConstructor;
41
+ default: null;
42
+ };
43
+ shortcuts: {
44
+ type: PropType<Shortcuts[]>;
45
+ default: () => never[];
46
+ };
47
+ disabledDate: {
48
+ type: FunctionConstructor;
49
+ default: () => boolean;
50
+ };
51
+ rangeSeparator: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ }>, {
56
+ MonthPicker: any;
57
+ QuarterPicker: any;
58
+ RangePicker: any;
59
+ WeekPicker: any;
60
+ YearPicker: any;
61
+ props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
62
+ modelValue: {
63
+ type: PropType<string | string[]>;
64
+ default: null;
65
+ };
66
+ placeholder: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ };
70
+ startPlaceholder: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ endPlaceholder: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ disabled: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ clearable: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ size: {
87
+ type: StringConstructor;
88
+ };
89
+ type: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ format: {
94
+ type: StringConstructor;
95
+ default: null;
96
+ };
97
+ valueFormat: {
98
+ type: StringConstructor;
99
+ default: null;
100
+ };
101
+ shortcuts: {
102
+ type: PropType<Shortcuts[]>;
103
+ default: () => never[];
104
+ };
105
+ disabledDate: {
106
+ type: FunctionConstructor;
107
+ default: () => boolean;
108
+ };
109
+ rangeSeparator: {
110
+ type: StringConstructor;
111
+ default: string;
112
+ };
113
+ }>> & Readonly<{
114
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
115
+ onChange?: ((...args: any[]) => any) | undefined;
116
+ onClear?: ((...args: any[]) => any) | undefined;
117
+ onSelect?: ((...args: any[]) => any) | undefined;
118
+ }> & {}>;
119
+ inputValue: import("vue").Ref<string | string[], string | string[]>;
120
+ emit: (event: "clear" | "update:modelValue" | "change" | "select", ...args: any[]) => void;
121
+ onChange: (value: any) => void;
122
+ onSelect: (value: any) => void;
123
+ realShortcuts: import("vue").ComputedRef<{
124
+ label: string | undefined;
125
+ value: any;
126
+ }[]>;
127
+ defaultProps: import("vue").ComputedRef<{
128
+ format: string;
129
+ valueFormat: string;
130
+ shortcuts: {
131
+ label: string | undefined;
132
+ value: any;
133
+ }[];
134
+ }>;
135
+ realPlaceholder: import("vue").ComputedRef<string | string[]>;
136
+ readonly DatePicker: any;
137
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:modelValue" | "change" | "select")[], "clear" | "update:modelValue" | "change" | "select", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
138
+ modelValue: {
139
+ type: PropType<string | string[]>;
140
+ default: null;
141
+ };
142
+ placeholder: {
143
+ type: StringConstructor;
144
+ default: string;
145
+ };
146
+ startPlaceholder: {
147
+ type: StringConstructor;
148
+ default: string;
149
+ };
150
+ endPlaceholder: {
151
+ type: StringConstructor;
152
+ default: string;
153
+ };
154
+ disabled: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
158
+ clearable: {
159
+ type: BooleanConstructor;
160
+ default: boolean;
161
+ };
162
+ size: {
163
+ type: StringConstructor;
164
+ };
165
+ type: {
166
+ type: StringConstructor;
167
+ default: string;
168
+ };
169
+ format: {
170
+ type: StringConstructor;
171
+ default: null;
172
+ };
173
+ valueFormat: {
174
+ type: StringConstructor;
175
+ default: null;
176
+ };
177
+ shortcuts: {
178
+ type: PropType<Shortcuts[]>;
179
+ default: () => never[];
180
+ };
181
+ disabledDate: {
182
+ type: FunctionConstructor;
183
+ default: () => boolean;
184
+ };
185
+ rangeSeparator: {
186
+ type: StringConstructor;
187
+ default: string;
188
+ };
189
+ }>> & Readonly<{
190
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
191
+ onChange?: ((...args: any[]) => any) | undefined;
192
+ onClear?: ((...args: any[]) => any) | undefined;
193
+ onSelect?: ((...args: any[]) => any) | undefined;
194
+ }>, {
195
+ modelValue: string | string[];
196
+ format: string;
197
+ type: string;
198
+ disabled: boolean;
199
+ placeholder: string;
200
+ startPlaceholder: string;
201
+ endPlaceholder: string;
202
+ clearable: boolean;
203
+ valueFormat: string;
204
+ shortcuts: Shortcuts[];
205
+ disabledDate: Function;
206
+ rangeSeparator: string;
207
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
208
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './date-picker.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
6
+ //# sourceMappingURL=date-picker.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,400 @@
1
+ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createBlock, unref, createCommentVNode } from 'vue';
2
+ import { DatePicker } from '@arco-design/web-vue';
3
+ import dayjs from '../../../_virtual/dayjs.min.mjs';
4
+
5
+ var __defProp = Object.defineProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ const _hoisted_1 = { class: "i-date-picker" };
8
+ var _sfc_main = /* @__PURE__ */ defineComponent({
9
+ ...{
10
+ name: "IDatePicker"
11
+ },
12
+ __name: "date-picker",
13
+ props: {
14
+ modelValue: {
15
+ type: [String, Array],
16
+ default: null
17
+ },
18
+ placeholder: {
19
+ type: String,
20
+ default: ""
21
+ },
22
+ startPlaceholder: {
23
+ type: String,
24
+ default: ""
25
+ },
26
+ endPlaceholder: {
27
+ type: String,
28
+ default: ""
29
+ },
30
+ disabled: {
31
+ type: Boolean,
32
+ default: false
33
+ },
34
+ clearable: {
35
+ type: Boolean,
36
+ default: true
37
+ },
38
+ size: {
39
+ type: String
40
+ },
41
+ type: {
42
+ type: String,
43
+ default: "date"
44
+ //'year' | 'yearrange' |'month' | 'monthrange' | 'date' | 'daterange' | 'datetime' | 'datetimerange' | 'week' | 'weekrange' | 'quarter' | 'quarterrange'
45
+ },
46
+ format: {
47
+ type: String,
48
+ default: null
49
+ },
50
+ valueFormat: {
51
+ type: String,
52
+ default: null
53
+ },
54
+ shortcuts: {
55
+ type: Array,
56
+ default: /* @__PURE__ */ __name(() => [], "default")
57
+ },
58
+ disabledDate: {
59
+ type: Function,
60
+ default: /* @__PURE__ */ __name(() => false, "default")
61
+ },
62
+ rangeSeparator: {
63
+ type: String,
64
+ default: "-"
65
+ }
66
+ },
67
+ emits: ["change", "clear", "select", "update:modelValue"],
68
+ setup(__props, { emit: __emit }) {
69
+ const { MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker } = DatePicker;
70
+ const props = __props;
71
+ const inputValue = ref(props.modelValue);
72
+ const emit = __emit;
73
+ function onChange(value) {
74
+ emit("change", value);
75
+ }
76
+ __name(onChange, "onChange");
77
+ function onSelect(value) {
78
+ emit("select", value);
79
+ }
80
+ __name(onSelect, "onSelect");
81
+ const realShortcuts = computed(() => {
82
+ return props.shortcuts.map((item) => {
83
+ return {
84
+ label: item.text,
85
+ value: item.value
86
+ };
87
+ });
88
+ });
89
+ const defaultProps = computed(() => {
90
+ const now = dayjs().endOf("day");
91
+ const date1 = dayjs().subtract(7, "day").startOf("day");
92
+ const date2 = dayjs().subtract(1, "month").startOf("day");
93
+ const date3 = dayjs().subtract(1, "year").startOf("day");
94
+ switch (props.type) {
95
+ case "year":
96
+ return {
97
+ format: props.format || "YYYY",
98
+ valueFormat: props.valueFormat || "YYYY",
99
+ shortcuts: realShortcuts.value || []
100
+ };
101
+ case "yearrange":
102
+ return {
103
+ format: props.format || "YYYY",
104
+ valueFormat: props.valueFormat || "YYYY",
105
+ shortcuts: realShortcuts.value || []
106
+ };
107
+ case "month":
108
+ return {
109
+ format: props.format || "YYYY-MM",
110
+ valueFormat: props.valueFormat || "YYYY-MM",
111
+ shortcuts: realShortcuts.value || []
112
+ };
113
+ case "monthrange":
114
+ return {
115
+ format: props.format || "YYYY-MM",
116
+ valueFormat: props.valueFormat || "YYYY-MM",
117
+ shortcuts: realShortcuts.value || []
118
+ };
119
+ case "week":
120
+ return {
121
+ format: props.format || "gggg-wo",
122
+ valueFormat: props.valueFormat || "gggg-wo",
123
+ shortcuts: realShortcuts.value || []
124
+ };
125
+ case "weekrange":
126
+ return {
127
+ format: props.format || "gggg-wo",
128
+ valueFormat: props.valueFormat || "gggg-wo",
129
+ shortcuts: realShortcuts.value || []
130
+ };
131
+ case "quarter":
132
+ return {
133
+ format: props.format || "YYYY-[Q]Q",
134
+ valueFormat: props.valueFormat || "YYYY-[Q]Q",
135
+ shortcuts: realShortcuts.value || []
136
+ };
137
+ case "quarterrange":
138
+ return {
139
+ format: props.format || "YYYY-[Q]Q",
140
+ valueFormat: props.valueFormat || "YYYY-[Q]Q",
141
+ shortcuts: realShortcuts.value || []
142
+ };
143
+ case "date":
144
+ return {
145
+ format: props.format || "YYYY-MM-DD",
146
+ valueFormat: props.valueFormat || "YYYY-MM-DD",
147
+ shortcuts: realShortcuts.value.length === 0 ? [
148
+ {
149
+ label: "7\u5929\u524D",
150
+ value: date1
151
+ },
152
+ {
153
+ label: "1\u6708\u524D",
154
+ value: date2
155
+ },
156
+ {
157
+ label: "1\u5E74\u524D",
158
+ value: date3
159
+ }
160
+ ] : realShortcuts.value
161
+ };
162
+ case "daterange":
163
+ return {
164
+ format: props.format || "YYYY-MM-DD",
165
+ valueFormat: props.valueFormat || "YYYY-MM-DD",
166
+ shortcuts: realShortcuts.value.length === 0 ? [
167
+ {
168
+ label: "\u6700\u8FD17\u5929",
169
+ value: [date1, now]
170
+ },
171
+ {
172
+ label: "\u6700\u8FD11\u6708",
173
+ value: [date2, now]
174
+ },
175
+ {
176
+ label: "\u6700\u8FD11\u5E74",
177
+ value: [date3, now]
178
+ }
179
+ ] : realShortcuts.value
180
+ };
181
+ case "datetime":
182
+ return {
183
+ format: props.format || "YYYY-MM-DD HH:mm:ss",
184
+ valueFormat: props.valueFormat || "YYYY-MM-DD HH:mm:ss",
185
+ shortcuts: realShortcuts.value.length === 0 ? [
186
+ {
187
+ label: "7\u5929\u524D",
188
+ value: date1
189
+ },
190
+ {
191
+ label: "1\u6708\u524D",
192
+ value: date2
193
+ },
194
+ {
195
+ label: "1\u5E74\u524D",
196
+ value: date3
197
+ }
198
+ ] : realShortcuts.value
199
+ };
200
+ case "datetimerange":
201
+ return {
202
+ format: props.format || "YYYY-MM-DD HH:mm:ss",
203
+ valueFormat: props.valueFormat || "YYYY-MM-DD HH:mm:ss",
204
+ shortcuts: realShortcuts.value.length === 0 ? [
205
+ {
206
+ label: "\u6700\u8FD17\u5929",
207
+ value: [date1, now]
208
+ },
209
+ {
210
+ label: "\u6700\u8FD11\u6708",
211
+ value: [date2, now]
212
+ },
213
+ {
214
+ label: "\u6700\u8FD11\u5E74",
215
+ value: [date3, now]
216
+ }
217
+ ] : realShortcuts.value
218
+ };
219
+ default:
220
+ return {
221
+ format: props.format || "YYYY-MM-DD",
222
+ valueFormat: props.valueFormat || "YYYY-MM-DD",
223
+ shortcuts: []
224
+ };
225
+ }
226
+ });
227
+ const realPlaceholder = computed(() => {
228
+ if (props.startPlaceholder && props.endPlaceholder) {
229
+ return [props.startPlaceholder, props.endPlaceholder];
230
+ } else {
231
+ return props.placeholder;
232
+ }
233
+ });
234
+ watch(() => props.modelValue, (val) => {
235
+ inputValue.value = val;
236
+ });
237
+ watch(inputValue, (val) => {
238
+ emit("update:modelValue", val);
239
+ });
240
+ return (_ctx, _cache) => {
241
+ return openBlock(), createElementBlock("div", _hoisted_1, [
242
+ __props.type === "year" ? (openBlock(), createBlock(unref(YearPicker), {
243
+ key: 0,
244
+ disabled: __props.disabled,
245
+ modelValue: inputValue.value,
246
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
247
+ "allow-clear": __props.clearable,
248
+ format: defaultProps.value.format,
249
+ placeholder: realPlaceholder.value,
250
+ "value-format": defaultProps.value.valueFormat,
251
+ shortcuts: defaultProps.value.shortcuts,
252
+ onSelect,
253
+ onChange
254
+ }, null, 8, ["disabled", "modelValue", "allow-clear", "format", "placeholder", "value-format", "shortcuts"])) : __props.type === "yearrange" ? (openBlock(), createBlock(unref(RangePicker), {
255
+ key: 1,
256
+ mode: "year",
257
+ modelValue: inputValue.value,
258
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => inputValue.value = $event),
259
+ separator: __props.rangeSeparator,
260
+ "allow-clear": __props.clearable,
261
+ disabled: __props.disabled,
262
+ format: defaultProps.value.format,
263
+ placeholder: realPlaceholder.value,
264
+ "value-format": defaultProps.value.valueFormat,
265
+ shortcuts: defaultProps.value.shortcuts,
266
+ onSelect,
267
+ onChange
268
+ }, null, 8, ["modelValue", "separator", "allow-clear", "disabled", "format", "placeholder", "value-format", "shortcuts"])) : __props.type === "month" ? (openBlock(), createBlock(unref(MonthPicker), {
269
+ key: 2,
270
+ modelValue: inputValue.value,
271
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => inputValue.value = $event),
272
+ "allow-clear": __props.clearable,
273
+ disabled: __props.disabled,
274
+ format: defaultProps.value.format,
275
+ placeholder: realPlaceholder.value,
276
+ "value-format": defaultProps.value.valueFormat,
277
+ shortcuts: defaultProps.value.shortcuts,
278
+ onSelect,
279
+ onChange
280
+ }, null, 8, ["modelValue", "allow-clear", "disabled", "format", "placeholder", "value-format", "shortcuts"])) : __props.type === "monthrange" ? (openBlock(), createBlock(unref(RangePicker), {
281
+ key: 3,
282
+ mode: "month",
283
+ modelValue: inputValue.value,
284
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => inputValue.value = $event),
285
+ separator: __props.rangeSeparator,
286
+ "allow-clear": __props.clearable,
287
+ disabled: __props.disabled,
288
+ format: defaultProps.value.format,
289
+ placeholder: realPlaceholder.value,
290
+ "value-format": defaultProps.value.valueFormat,
291
+ shortcuts: defaultProps.value.shortcuts,
292
+ onSelect,
293
+ onChange
294
+ }, null, 8, ["modelValue", "separator", "allow-clear", "disabled", "format", "placeholder", "value-format", "shortcuts"])) : __props.type === "date" ? (openBlock(), createBlock(unref(DatePicker), {
295
+ key: 4,
296
+ modelValue: inputValue.value,
297
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => inputValue.value = $event),
298
+ "disabled-date": __props.disabledDate,
299
+ "allow-clear": __props.clearable,
300
+ disabled: __props.disabled,
301
+ format: defaultProps.value.format,
302
+ placeholder: realPlaceholder.value,
303
+ "value-format": defaultProps.value.valueFormat,
304
+ shortcuts: defaultProps.value.shortcuts,
305
+ onSelect,
306
+ onChange
307
+ }, null, 8, ["modelValue", "disabled-date", "allow-clear", "disabled", "format", "placeholder", "value-format", "shortcuts"])) : __props.type === "daterange" ? (openBlock(), createBlock(unref(RangePicker), {
308
+ key: 5,
309
+ mode: "date",
310
+ modelValue: inputValue.value,
311
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => inputValue.value = $event),
312
+ separator: __props.rangeSeparator,
313
+ "disabled-date": __props.disabledDate,
314
+ "allow-clear": __props.clearable,
315
+ disabled: __props.disabled,
316
+ format: defaultProps.value.format,
317
+ placeholder: realPlaceholder.value,
318
+ "value-format": defaultProps.value.valueFormat,
319
+ shortcuts: defaultProps.value.shortcuts,
320
+ onSelect,
321
+ onChange
322
+ }, null, 8, ["modelValue", "separator", "disabled-date", "allow-clear", "disabled", "format", "placeholder", "value-format", "shortcuts"])) : __props.type === "week" ? (openBlock(), createBlock(unref(WeekPicker), {
323
+ key: 6,
324
+ modelValue: inputValue.value,
325
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => inputValue.value = $event),
326
+ "allow-clear": __props.clearable,
327
+ disabled: __props.disabled,
328
+ placeholder: realPlaceholder.value,
329
+ shortcuts: defaultProps.value.shortcuts,
330
+ onSelect,
331
+ onChange
332
+ }, null, 8, ["modelValue", "allow-clear", "disabled", "placeholder", "shortcuts"])) : __props.type === "weekrange" ? (openBlock(), createBlock(unref(RangePicker), {
333
+ key: 7,
334
+ mode: "week",
335
+ modelValue: inputValue.value,
336
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => inputValue.value = $event),
337
+ separator: __props.rangeSeparator,
338
+ "allow-clear": __props.clearable,
339
+ disabled: __props.disabled,
340
+ placeholder: realPlaceholder.value,
341
+ onSelect,
342
+ onChange
343
+ }, null, 8, ["modelValue", "separator", "allow-clear", "disabled", "placeholder"])) : __props.type === "quarter" ? (openBlock(), createBlock(unref(QuarterPicker), {
344
+ key: 8,
345
+ modelValue: inputValue.value,
346
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => inputValue.value = $event),
347
+ "allow-clear": __props.clearable,
348
+ disabled: __props.disabled,
349
+ placeholder: realPlaceholder.value,
350
+ shortcuts: defaultProps.value.shortcuts,
351
+ onSelect,
352
+ onChange
353
+ }, null, 8, ["modelValue", "allow-clear", "disabled", "placeholder", "shortcuts"])) : __props.type === "quarterrange" ? (openBlock(), createBlock(unref(RangePicker), {
354
+ key: 9,
355
+ mode: "quarter",
356
+ modelValue: inputValue.value,
357
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => inputValue.value = $event),
358
+ separator: __props.rangeSeparator,
359
+ "allow-clear": __props.clearable,
360
+ disabled: __props.disabled,
361
+ placeholder: realPlaceholder.value,
362
+ onSelect,
363
+ onChange
364
+ }, null, 8, ["modelValue", "separator", "allow-clear", "disabled", "placeholder"])) : __props.type === "datetime" ? (openBlock(), createBlock(unref(DatePicker), {
365
+ key: 10,
366
+ showTime: "",
367
+ modelValue: inputValue.value,
368
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => inputValue.value = $event),
369
+ "disabled-date": __props.disabledDate,
370
+ "allow-clear": __props.clearable,
371
+ disabled: __props.disabled,
372
+ format: defaultProps.value.format,
373
+ placeholder: realPlaceholder.value,
374
+ "value-format": defaultProps.value.valueFormat,
375
+ shortcuts: defaultProps.value.shortcuts,
376
+ onSelect,
377
+ onChange
378
+ }, null, 8, ["modelValue", "disabled-date", "allow-clear", "disabled", "format", "placeholder", "value-format", "shortcuts"])) : __props.type === "datetimerange" ? (openBlock(), createBlock(unref(RangePicker), {
379
+ key: 11,
380
+ showTime: "",
381
+ modelValue: inputValue.value,
382
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => inputValue.value = $event),
383
+ separator: __props.rangeSeparator,
384
+ "disabled-date": __props.disabledDate,
385
+ "allow-clear": __props.clearable,
386
+ disabled: __props.disabled,
387
+ format: defaultProps.value.format,
388
+ placeholder: realPlaceholder.value,
389
+ "value-format": defaultProps.value.valueFormat,
390
+ shortcuts: defaultProps.value.shortcuts,
391
+ onSelect,
392
+ onChange
393
+ }, null, 8, ["modelValue", "separator", "disabled-date", "allow-clear", "disabled", "format", "placeholder", "value-format", "shortcuts"])) : createCommentVNode("v-if", true)
394
+ ]);
395
+ };
396
+ }
397
+ });
398
+
399
+ export { _sfc_main as default };
400
+ //# sourceMappingURL=date-picker.vue2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.vue2.mjs","sources":["../../../../../../../packages/components/date-picker/src/date-picker.vue"],"sourcesContent":["<script lang=\"ts\" setup>\n import { DatePicker } from '@arco-design/web-vue';\n const { MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker } = DatePicker;\n // import '@arco-design/web-vue/dist/arco.css';\n import { PropType, computed, ref, watch } from 'vue';\n import type { Shortcuts } from './date-picker';\n import dayjs from 'dayjs';\n defineOptions({\n name: 'IDatePicker',\n });\n\n // 文档 https://arco.design/vue/component/date-picker\n const props = defineProps({\n modelValue: {\n type: [String, Array] as PropType<string | string[]>,\n default: null,\n },\n placeholder: {\n type: String,\n default: '',\n },\n startPlaceholder: {\n type: String,\n default: '',\n },\n endPlaceholder: {\n type: String,\n default: '',\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n clearable: {\n type: Boolean,\n default: true,\n },\n size: {\n type: String,\n },\n type: {\n type: String,\n default: 'date', //'year' | 'yearrange' |'month' | 'monthrange' | 'date' | 'daterange' | 'datetime' | 'datetimerange' | 'week' | 'weekrange' | 'quarter' | 'quarterrange'\n },\n format: {\n type: String,\n default: null,\n },\n valueFormat: {\n type: String,\n default: null,\n },\n shortcuts: {\n type: Array as PropType<Shortcuts[]>,\n default: () => [],\n },\n disabledDate: {\n type: Function,\n default: () => false,\n },\n rangeSeparator: {\n type: String,\n default: '-',\n },\n });\nconst inputValue = ref(props.modelValue);\n const emit = defineEmits(['change', 'clear', 'select','update:modelValue']);\n function onChange(value: any) {\n emit('change', value);\n }\n function onSelect(value: any) {\n emit('select', value);\n }\n const realShortcuts = computed(() => {\n return props.shortcuts.map(item => {\n return {\n label: item.text,\n value: item.value,\n };\n });\n });\n\n const defaultProps = computed(() => {\n const now = dayjs().endOf('day');\n const date1 = dayjs().subtract(7, 'day').startOf('day');\n const date2 = dayjs().subtract(1, 'month').startOf('day');\n const date3 = dayjs().subtract(1, 'year').startOf('day');\n switch (props.type) {\n case 'year':\n return {\n format: props.format || 'YYYY',\n valueFormat: props.valueFormat || 'YYYY',\n shortcuts: realShortcuts.value || [],\n };\n case 'yearrange':\n return {\n format: props.format || 'YYYY',\n valueFormat: props.valueFormat || 'YYYY',\n shortcuts: realShortcuts.value || [],\n };\n case 'month':\n return {\n format: props.format || 'YYYY-MM',\n valueFormat: props.valueFormat || 'YYYY-MM',\n shortcuts: realShortcuts.value || [],\n };\n case 'monthrange':\n return {\n format: props.format || 'YYYY-MM',\n valueFormat: props.valueFormat || 'YYYY-MM',\n shortcuts: realShortcuts.value || [],\n };\n case 'week':\n return {\n format: props.format || 'gggg-wo',\n valueFormat: props.valueFormat || 'gggg-wo',\n shortcuts: realShortcuts.value || [],\n };\n case 'weekrange':\n return {\n format: props.format || 'gggg-wo',\n valueFormat: props.valueFormat || 'gggg-wo',\n shortcuts: realShortcuts.value || [],\n };\n case 'quarter':\n return {\n format: props.format || 'YYYY-[Q]Q',\n valueFormat: props.valueFormat || 'YYYY-[Q]Q',\n shortcuts: realShortcuts.value || [],\n };\n case 'quarterrange':\n return {\n format: props.format || 'YYYY-[Q]Q',\n valueFormat: props.valueFormat || 'YYYY-[Q]Q',\n shortcuts: realShortcuts.value || [],\n };\n case 'date':\n return {\n format: props.format || 'YYYY-MM-DD',\n valueFormat: props.valueFormat || 'YYYY-MM-DD',\n shortcuts:\n realShortcuts.value.length === 0\n ? [\n {\n label: '7天前',\n value: date1,\n },\n {\n label: '1月前',\n value: date2,\n },\n {\n label: '1年前',\n value: date3,\n },\n ]\n : realShortcuts.value,\n };\n case 'daterange':\n return {\n format: props.format || 'YYYY-MM-DD',\n valueFormat: props.valueFormat || 'YYYY-MM-DD',\n shortcuts:\n realShortcuts.value.length === 0\n ? [\n {\n label: '最近7天',\n value: [date1, now],\n },\n {\n label: '最近1月',\n value: [date2, now],\n },\n {\n label: '最近1年',\n value: [date3, now],\n },\n ]\n : realShortcuts.value,\n };\n case 'datetime':\n return {\n format: props.format || 'YYYY-MM-DD HH:mm:ss',\n valueFormat: props.valueFormat || 'YYYY-MM-DD HH:mm:ss',\n shortcuts:\n realShortcuts.value.length === 0\n ? [\n {\n label: '7天前',\n value: date1,\n },\n {\n label: '1月前',\n value: date2,\n },\n {\n label: '1年前',\n value: date3,\n },\n ]\n : realShortcuts.value,\n };\n case 'datetimerange':\n return {\n format: props.format || 'YYYY-MM-DD HH:mm:ss',\n valueFormat: props.valueFormat || 'YYYY-MM-DD HH:mm:ss',\n shortcuts:\n realShortcuts.value.length === 0\n ? [\n {\n label: '最近7天',\n value: [date1, now],\n },\n {\n label: '最近1月',\n value: [date2, now],\n },\n {\n label: '最近1年',\n value: [date3, now],\n },\n ]\n : realShortcuts.value,\n };\n default:\n return {\n format: props.format || 'YYYY-MM-DD',\n valueFormat: props.valueFormat || 'YYYY-MM-DD',\n shortcuts: [],\n };\n }\n });\n\n const realPlaceholder = computed(() => {\n if (props.startPlaceholder && props.endPlaceholder) {\n return [props.startPlaceholder, props.endPlaceholder];\n } else {\n return props.placeholder;\n }\n });\n watch(() => props.modelValue, (val) => {\n inputValue.value = val;\n});\n watch(inputValue,val=>{\n emit('update:modelValue', val);\n })\n</script>\n\n<template>\n <div class=\"i-date-picker\">\n <YearPicker\n v-if=\"type === 'year'\"\n :disabled=\"disabled\"\n v-model=\"inputValue\"\n :allow-clear=\"clearable\"\n :format=\"defaultProps.format\"\n :placeholder=\"realPlaceholder\"\n :value-format=\"defaultProps.valueFormat\"\n :shortcuts=\"defaultProps.shortcuts\"\n @select=\"onSelect\"\n @change=\"onChange\"\n />\n <range-picker\n v-else-if=\"type === 'yearrange'\"\n mode=\"year\"\n v-model=\"inputValue\"\n :separator=\"rangeSeparator\"\n :allow-clear=\"clearable\"\n :disabled=\"disabled\"\n :format=\"defaultProps.format\"\n :placeholder=\"realPlaceholder\"\n :value-format=\"defaultProps.valueFormat\"\n :shortcuts=\"defaultProps.shortcuts\"\n @select=\"onSelect\"\n @change=\"onChange\"\n />\n <MonthPicker\n v-else-if=\"type === 'month'\"\n v-model=\"inputValue\"\n :allow-clear=\"clearable\"\n :disabled=\"disabled\"\n :format=\"defaultProps.format\"\n :placeholder=\"realPlaceholder\"\n :value-format=\"defaultProps.valueFormat\"\n :shortcuts=\"defaultProps.shortcuts\"\n @select=\"onSelect\"\n @change=\"onChange\"\n />\n <range-picker\n v-else-if=\"type === 'monthrange'\"\n mode=\"month\"\n v-model=\"inputValue\"\n :separator=\"rangeSeparator\"\n :allow-clear=\"clearable\"\n :disabled=\"disabled\"\n :format=\"defaultProps.format\"\n :placeholder=\"realPlaceholder\"\n :value-format=\"defaultProps.valueFormat\"\n :shortcuts=\"defaultProps.shortcuts\"\n @select=\"onSelect\"\n @change=\"onChange\"\n />\n <DatePicker\n v-else-if=\"type === 'date'\"\n v-model=\"inputValue\"\n :disabled-date=\"disabledDate\"\n :allow-clear=\"clearable\"\n :disabled=\"disabled\"\n :format=\"defaultProps.format\"\n :placeholder=\"realPlaceholder\"\n :value-format=\"defaultProps.valueFormat\"\n :shortcuts=\"defaultProps.shortcuts\"\n @select=\"onSelect\"\n @change=\"onChange\"\n />\n <range-picker\n v-else-if=\"type === 'daterange'\"\n mode=\"date\"\n v-model=\"inputValue\"\n :separator=\"rangeSeparator\"\n :disabled-date=\"disabledDate\"\n :allow-clear=\"clearable\"\n :disabled=\"disabled\"\n :format=\"defaultProps.format\"\n :placeholder=\"realPlaceholder\"\n :value-format=\"defaultProps.valueFormat\"\n :shortcuts=\"defaultProps.shortcuts\"\n @select=\"onSelect\"\n @change=\"onChange\"\n />\n <WeekPicker\n v-else-if=\"type === 'week'\"\n v-model=\"inputValue\"\n :allow-clear=\"clearable\"\n :disabled=\"disabled\"\n :placeholder=\"realPlaceholder\"\n :shortcuts=\"defaultProps.shortcuts\"\n @select=\"onSelect\"\n @change=\"onChange\"\n />\n <range-picker\n v-else-if=\"type === 'weekrange'\"\n mode=\"week\"\n v-model=\"inputValue\"\n :separator=\"rangeSeparator\"\n :allow-clear=\"clearable\"\n :disabled=\"disabled\"\n :placeholder=\"realPlaceholder\"\n @select=\"onSelect\"\n @change=\"onChange\"\n />\n <QuarterPicker\n v-else-if=\"type === 'quarter'\"\n v-model=\"inputValue\"\n :allow-clear=\"clearable\"\n :disabled=\"disabled\"\n :placeholder=\"realPlaceholder\"\n :shortcuts=\"defaultProps.shortcuts\"\n @select=\"onSelect\"\n @change=\"onChange\"\n />\n <range-picker\n v-else-if=\"type === 'quarterrange'\"\n mode=\"quarter\"\n v-model=\"inputValue\"\n :separator=\"rangeSeparator\"\n :allow-clear=\"clearable\"\n :disabled=\"disabled\"\n :placeholder=\"realPlaceholder\"\n @select=\"onSelect\"\n @change=\"onChange\"\n />\n <DatePicker\n v-else-if=\"type === 'datetime'\"\n showTime\n v-model=\"inputValue\"\n :disabled-date=\"disabledDate\"\n :allow-clear=\"clearable\"\n :disabled=\"disabled\"\n :format=\"defaultProps.format\"\n :placeholder=\"realPlaceholder\"\n :value-format=\"defaultProps.valueFormat\"\n :shortcuts=\"defaultProps.shortcuts\"\n @select=\"onSelect\"\n @change=\"onChange\"\n />\n <range-picker\n v-else-if=\"type === 'datetimerange'\"\n showTime\n v-model=\"inputValue\"\n :separator=\"rangeSeparator\"\n :disabled-date=\"disabledDate\"\n :allow-clear=\"clearable\"\n :disabled=\"disabled\"\n :format=\"defaultProps.format\"\n :placeholder=\"realPlaceholder\"\n :value-format=\"defaultProps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