@wangxinowo/vue-datepicker-next 1.0.2 → 1.0.5

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.
@@ -2026,8 +2026,13 @@ html {
2026
2026
  width: 100%;
2027
2027
  min-width: 280px;
2028
2028
  height: 32px;
2029
- padding: 0 12px;
2029
+ padding: 4px 11px;
2030
+ padding-right: 41px;
2031
+ color: rgba(0, 0, 0, 0.65);
2032
+ font-size: 14px;
2033
+ line-height: 1.5;
2030
2034
  background-color: #fff;
2035
+ background-image: none;
2031
2036
  border: 1px solid #d9d9d9;
2032
2037
  border-radius: 4px;
2033
2038
  transition: all 0.3s;
@@ -2045,9 +2050,11 @@ html {
2045
2050
  background-color: transparent;
2046
2051
  border: none;
2047
2052
  box-shadow: none;
2053
+ padding-right: 11px;
2048
2054
  }
2049
2055
  .ant-calendar-range-picker-input-wrapper[disabled],
2050
2056
  .ant-calendar-picker-disabled .ant-calendar-range-picker-input-wrapper {
2057
+ color: rgba(0, 0, 0, 0.25);
2051
2058
  background-color: #f5f5f5;
2052
2059
  border-color: #d9d9d9;
2053
2060
  cursor: not-allowed;
@@ -2086,9 +2093,48 @@ html {
2086
2093
  border-color: #52c41a;
2087
2094
  box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.2);
2088
2095
  }
2096
+ .ant-calendar-range-picker-input-wrapper .ant-calendar-picker-icon {
2097
+ position: absolute;
2098
+ top: 50%;
2099
+ right: 11px;
2100
+ z-index: 1;
2101
+ display: inline-block;
2102
+ width: 14px;
2103
+ height: 14px;
2104
+ margin-top: -7px;
2105
+ color: rgba(0, 0, 0, 0.25);
2106
+ font-size: 14px;
2107
+ line-height: 1;
2108
+ transition: all 0.3s;
2109
+ user-select: none;
2110
+ }
2111
+ .ant-calendar-range-picker-input-wrapper .ant-calendar-picker-clear {
2112
+ position: absolute;
2113
+ top: 50%;
2114
+ right: 11px;
2115
+ z-index: 2;
2116
+ width: 14px;
2117
+ height: 14px;
2118
+ margin-top: -7px;
2119
+ color: rgba(0, 0, 0, 0.25);
2120
+ font-size: 14px;
2121
+ background: #fff;
2122
+ cursor: pointer;
2123
+ opacity: 0;
2124
+ pointer-events: none;
2125
+ transition: all 0.3s;
2126
+ }
2127
+ .ant-calendar-range-picker-input-wrapper .ant-calendar-picker-clear:hover {
2128
+ color: rgba(0, 0, 0, 0.45);
2129
+ }
2130
+ .ant-calendar-range-picker-input-wrapper:hover .ant-calendar-picker-clear {
2131
+ opacity: 1;
2132
+ pointer-events: auto;
2133
+ }
2089
2134
  .ant-calendar-range-picker-input {
2090
- width: 44%;
2091
- height: 99%;
2135
+ flex: 1;
2136
+ min-width: 0;
2137
+ height: 100%;
2092
2138
  text-align: center;
2093
2139
  background-color: transparent;
2094
2140
  border: 0;
@@ -2130,9 +2176,10 @@ html {
2130
2176
  opacity: 1;
2131
2177
  }
2132
2178
  .ant-calendar-range-picker-separator {
2133
- display: inline-block;
2134
- min-width: 10px;
2135
- height: 100%;
2179
+ flex: none;
2180
+ display: inline-flex;
2181
+ align-items: center;
2182
+ padding: 0 8px;
2136
2183
  color: rgba(0, 0, 0, 0.45);
2137
2184
  white-space: nowrap;
2138
2185
  text-align: center;
@@ -2312,7 +2359,7 @@ textarea.ant-calendar-range .ant-calendar-time-picker-input {
2312
2359
  .ant-calendar-range .ant-calendar-decade-panel-table,
2313
2360
  .ant-calendar-range .ant-calendar-year-panel-table,
2314
2361
  .ant-calendar-range .ant-calendar-month-panel-table {
2315
- height: 208px;
2362
+ height: auto;
2316
2363
  }
2317
2364
  .ant-calendar-range .ant-calendar-in-range-cell {
2318
2365
  position: relative;
@@ -2334,6 +2381,43 @@ textarea.ant-calendar-range .ant-calendar-time-picker-input {
2334
2381
  border-radius: 0;
2335
2382
  content: '';
2336
2383
  }
2384
+ .ant-calendar-range .ant-calendar-year-panel-cell.ant-calendar-in-range-cell,
2385
+ .ant-calendar-range .ant-calendar-month-panel-cell.ant-calendar-in-range-cell {
2386
+ position: relative;
2387
+ border-radius: 0;
2388
+ }
2389
+ .ant-calendar-range .ant-calendar-year-panel-cell.ant-calendar-in-range-cell > a,
2390
+ .ant-calendar-range .ant-calendar-month-panel-cell.ant-calendar-in-range-cell > a {
2391
+ position: relative;
2392
+ z-index: 1;
2393
+ }
2394
+ .ant-calendar-range .ant-calendar-year-panel-cell.ant-calendar-in-range-cell::before,
2395
+ .ant-calendar-range .ant-calendar-month-panel-cell.ant-calendar-in-range-cell::before {
2396
+ position: absolute;
2397
+ top: 4px;
2398
+ right: 0;
2399
+ bottom: 4px;
2400
+ left: 0;
2401
+ display: block;
2402
+ background: #e6f7ff;
2403
+ border: 0;
2404
+ border-radius: 0;
2405
+ content: '';
2406
+ }
2407
+ .ant-calendar-range .ant-calendar-year-panel-selected-start-cell.ant-calendar-in-range-cell::before,
2408
+ .ant-calendar-range .ant-calendar-month-panel-selected-start-cell.ant-calendar-in-range-cell::before {
2409
+ border-top-left-radius: 2px;
2410
+ border-bottom-left-radius: 2px;
2411
+ }
2412
+ .ant-calendar-range .ant-calendar-year-panel-selected-end-cell.ant-calendar-in-range-cell::before,
2413
+ .ant-calendar-range .ant-calendar-month-panel-selected-end-cell.ant-calendar-in-range-cell::before {
2414
+ border-top-right-radius: 2px;
2415
+ border-bottom-right-radius: 2px;
2416
+ }
2417
+ .ant-calendar-range .ant-calendar-year-panel-cell.ant-calendar-in-hover-range-cell::before,
2418
+ .ant-calendar-range .ant-calendar-month-panel-cell.ant-calendar-in-hover-range-cell::before {
2419
+ background: #bae7ff;
2420
+ }
2337
2421
  .ant-calendar-range .ant-calendar-selected-start-date .ant-calendar-date,
2338
2422
  .ant-calendar-range .ant-calendar-selected-end-date .ant-calendar-date {
2339
2423
  color: #fff;
@@ -2822,6 +2906,17 @@ li.ant-calendar-time-picker-select-option-disabled:hover {
2822
2906
  background: #e6f7ff;
2823
2907
  cursor: pointer;
2824
2908
  }
2909
+ .ant-calendar-month-panel-selected-start-cell .ant-calendar-month-panel-month,
2910
+ .ant-calendar-month-panel-selected-end-cell .ant-calendar-month-panel-month {
2911
+ color: #fff;
2912
+ background: #1890ff;
2913
+ border-radius: 2px;
2914
+ }
2915
+ .ant-calendar-month-panel-selected-start-cell .ant-calendar-month-panel-month:hover,
2916
+ .ant-calendar-month-panel-selected-end-cell .ant-calendar-month-panel-month:hover {
2917
+ color: #fff;
2918
+ background: #40a9ff;
2919
+ }
2825
2920
  .ant-calendar-year-panel {
2826
2921
  position: absolute;
2827
2922
  top: 0;
@@ -3096,6 +3191,17 @@ li.ant-calendar-time-picker-select-option-disabled:hover {
3096
3191
  color: rgba(0, 0, 0, 0.25);
3097
3192
  user-select: none;
3098
3193
  }
3194
+ .ant-calendar-year-panel-selected-start-cell .ant-calendar-year-panel-year,
3195
+ .ant-calendar-year-panel-selected-end-cell .ant-calendar-year-panel-year {
3196
+ color: #fff;
3197
+ background: #1890ff;
3198
+ border-radius: 2px;
3199
+ }
3200
+ .ant-calendar-year-panel-selected-start-cell .ant-calendar-year-panel-year:hover,
3201
+ .ant-calendar-year-panel-selected-end-cell .ant-calendar-year-panel-year:hover {
3202
+ color: #fff;
3203
+ background: #40a9ff;
3204
+ }
3099
3205
  .ant-calendar-decade-panel {
3100
3206
  position: absolute;
3101
3207
  top: 0;
@@ -3420,6 +3526,49 @@ li.ant-calendar-time-picker-select-option-disabled:hover {
3420
3526
  font-weight: 500;
3421
3527
  background: #e6f7ff;
3422
3528
  }
3529
+ .ant-calendar-presets-footer {
3530
+ display: flex;
3531
+ flex-wrap: wrap;
3532
+ align-items: center;
3533
+ gap: 8px;
3534
+ padding: 12px 16px;
3535
+ border-top: 1px solid #e8e8e8;
3536
+ background: #fff;
3537
+ }
3538
+ .ant-calendar-presets-footer-btn {
3539
+ display: inline-flex;
3540
+ align-items: center;
3541
+ justify-content: center;
3542
+ height: 24px;
3543
+ padding: 0 12px;
3544
+ font-size: 12px;
3545
+ color: rgba(0, 0, 0, 0.65);
3546
+ background: #fafafa;
3547
+ border: 1px solid #d9d9d9;
3548
+ border-radius: 2px;
3549
+ cursor: pointer;
3550
+ transition: all 0.2s ease-in-out;
3551
+ user-select: none;
3552
+ }
3553
+ .ant-calendar-presets-footer-btn:hover {
3554
+ color: #1890ff;
3555
+ border-color: #1890ff;
3556
+ background: #e6f7ff;
3557
+ }
3558
+ .ant-calendar-presets-footer-btn:active {
3559
+ color: #096dd9;
3560
+ border-color: #096dd9;
3561
+ }
3562
+ .ant-calendar-presets-footer-btn-selected {
3563
+ color: #fff;
3564
+ background: #1890ff;
3565
+ border-color: #1890ff;
3566
+ }
3567
+ .ant-calendar-presets-footer-btn-selected:hover {
3568
+ color: #fff;
3569
+ background: #40a9ff;
3570
+ border-color: #40a9ff;
3571
+ }
3423
3572
  .ant-calendar-range-with-presets .ant-calendar-range-part {
3424
3573
  display: flex;
3425
3574
  }