kui-vue 3.4.2 → 3.4.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.
|
@@ -189,9 +189,9 @@ export default {
|
|
|
189
189
|
this.v1 = _v1
|
|
190
190
|
if (v2) {
|
|
191
191
|
const oneMonth = dayjs.duration(1, 'month').asDays();
|
|
192
|
-
const diff =
|
|
193
|
-
// console.log(
|
|
194
|
-
if (diff
|
|
192
|
+
const diff = _v1.diff(v2, 'day');
|
|
193
|
+
// console.log(oneMonth, diff)
|
|
194
|
+
if (diff > oneMonth) {
|
|
195
195
|
v2 = dayjs(_v1).add(1, 'month')
|
|
196
196
|
}
|
|
197
197
|
this.v2 = v2
|
|
@@ -230,8 +230,9 @@ export default {
|
|
|
230
230
|
this.v2 = _v2
|
|
231
231
|
if (v1) {
|
|
232
232
|
const oneMonth = dayjs.duration(1, 'month').asDays();
|
|
233
|
-
const diff =
|
|
234
|
-
|
|
233
|
+
const diff = _v2.diff(v1, 'day');
|
|
234
|
+
// console.log(oneMonth, diff)
|
|
235
|
+
if (diff < 0) {
|
|
235
236
|
v1 = dayjs(_v2).subtract(1, 'month')
|
|
236
237
|
}
|
|
237
238
|
this.v1 = v1
|
package/dist/k-ui.css
CHANGED