@idds/vue 1.0.65 → 1.0.66
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/components/DatePicker.vue.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +26 -21
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6333,14 +6333,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
6333
6333
|
if (tempStartDate.value && date.toDateString() === tempStartDate.value.toDateString()) {
|
|
6334
6334
|
return true;
|
|
6335
6335
|
}
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
return true;
|
|
6341
|
-
}
|
|
6342
|
-
if (range[1]) {
|
|
6336
|
+
if (!tempStartDate.value) {
|
|
6337
|
+
const range = props.modelValue;
|
|
6338
|
+
if (range && range[0] && range[1]) {
|
|
6339
|
+
const start = parseDate(range[0]);
|
|
6343
6340
|
const end = parseDate(range[1]);
|
|
6341
|
+
if (start && date.toDateString() === start.toDateString()) {
|
|
6342
|
+
return true;
|
|
6343
|
+
}
|
|
6344
6344
|
if (end && date.toDateString() === end.toDateString()) {
|
|
6345
6345
|
return true;
|
|
6346
6346
|
}
|
|
@@ -6359,6 +6359,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
6359
6359
|
};
|
|
6360
6360
|
const isDayInRange = (date) => {
|
|
6361
6361
|
if (props.mode === "range") {
|
|
6362
|
+
if (tempStartDate.value) {
|
|
6363
|
+
return false;
|
|
6364
|
+
}
|
|
6362
6365
|
const range = props.modelValue;
|
|
6363
6366
|
if (range && range[0] && range[1]) {
|
|
6364
6367
|
const start = parseDate(range[0]);
|
|
@@ -6373,22 +6376,22 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
6373
6376
|
const getRangePosition = (date) => {
|
|
6374
6377
|
if (!date) return "none";
|
|
6375
6378
|
if (props.mode === "range") {
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6379
|
+
if (tempStartDate.value && date.toDateString() === tempStartDate.value.toDateString()) {
|
|
6380
|
+
return "start";
|
|
6381
|
+
}
|
|
6382
|
+
if (!tempStartDate.value) {
|
|
6383
|
+
const range = props.modelValue;
|
|
6384
|
+
if (range && range[0] && range[1]) {
|
|
6385
|
+
const start = parseDate(range[0]);
|
|
6386
|
+
const end = parseDate(range[1]);
|
|
6387
|
+
if (start && end) {
|
|
6388
|
+
if (date.toDateString() === start.toDateString()) {
|
|
6389
|
+
if (date.toDateString() === end.toDateString()) {
|
|
6384
6390
|
return "single";
|
|
6385
6391
|
}
|
|
6392
|
+
return "start";
|
|
6386
6393
|
}
|
|
6387
|
-
|
|
6388
|
-
}
|
|
6389
|
-
if (range[1]) {
|
|
6390
|
-
const end = parseDate(range[1]);
|
|
6391
|
-
if (end && date.toDateString() === end.toDateString()) {
|
|
6394
|
+
if (date.toDateString() === end.toDateString()) {
|
|
6392
6395
|
return "end";
|
|
6393
6396
|
}
|
|
6394
6397
|
if (date > start && date < end) {
|
|
@@ -6421,6 +6424,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
6421
6424
|
tempStartDate.value = null;
|
|
6422
6425
|
}
|
|
6423
6426
|
} else if (range[0] && range[1]) {
|
|
6427
|
+
emit("update:modelValue", ["", ""]);
|
|
6428
|
+
emit("change", ["", ""]);
|
|
6424
6429
|
tempStartDate.value = day.date;
|
|
6425
6430
|
}
|
|
6426
6431
|
} else if (props.mode === "multiple") {
|
|
@@ -7033,7 +7038,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7033
7038
|
};
|
|
7034
7039
|
}
|
|
7035
7040
|
});
|
|
7036
|
-
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
7041
|
+
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-84273bb4"]]);
|
|
7037
7042
|
const _hoisted_1$e = ["disabled"];
|
|
7038
7043
|
const _hoisted_2$e = {
|
|
7039
7044
|
key: 0,
|