@wangxinowo/vue-datepicker-next 1.0.1 → 1.0.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.
@@ -2024,10 +2024,117 @@ html {
2024
2024
  display: inline-flex;
2025
2025
  align-items: center;
2026
2026
  width: 100%;
2027
+ min-width: 280px;
2028
+ height: 32px;
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;
2034
+ background-color: #fff;
2035
+ background-image: none;
2036
+ border: 1px solid #d9d9d9;
2037
+ border-radius: 4px;
2038
+ transition: all 0.3s;
2039
+ }
2040
+ .ant-calendar-range-picker-input-wrapper:hover {
2041
+ border-color: #40a9ff;
2042
+ }
2043
+ .ant-calendar-picker-focused .ant-calendar-range-picker-input-wrapper,
2044
+ .ant-calendar-picker:focus-within .ant-calendar-range-picker-input-wrapper {
2045
+ border-color: #1890ff;
2046
+ box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
2047
+ outline: 0;
2048
+ }
2049
+ .ant-calendar-picker-borderless .ant-calendar-range-picker-input-wrapper {
2050
+ background-color: transparent;
2051
+ border: none;
2052
+ box-shadow: none;
2053
+ padding-right: 11px;
2054
+ }
2055
+ .ant-calendar-range-picker-input-wrapper[disabled],
2056
+ .ant-calendar-picker-disabled .ant-calendar-range-picker-input-wrapper {
2057
+ color: rgba(0, 0, 0, 0.25);
2058
+ background-color: #f5f5f5;
2059
+ border-color: #d9d9d9;
2060
+ cursor: not-allowed;
2061
+ opacity: 1;
2062
+ }
2063
+ .ant-calendar-picker-status-error .ant-calendar-range-picker-input-wrapper {
2064
+ border-color: #f5222d;
2065
+ }
2066
+ .ant-calendar-picker-status-error .ant-calendar-range-picker-input-wrapper:hover {
2067
+ border-color: #f5222d;
2068
+ }
2069
+ .ant-calendar-picker-status-error.ant-calendar-picker-focused .ant-calendar-range-picker-input-wrapper,
2070
+ .ant-calendar-picker-status-error:focus-within .ant-calendar-range-picker-input-wrapper {
2071
+ border-color: #f5222d;
2072
+ box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
2073
+ }
2074
+ .ant-calendar-picker-status-warning .ant-calendar-range-picker-input-wrapper {
2075
+ border-color: #faad14;
2076
+ }
2077
+ .ant-calendar-picker-status-warning .ant-calendar-range-picker-input-wrapper:hover {
2078
+ border-color: #faad14;
2079
+ }
2080
+ .ant-calendar-picker-status-warning.ant-calendar-picker-focused .ant-calendar-range-picker-input-wrapper,
2081
+ .ant-calendar-picker-status-warning:focus-within .ant-calendar-range-picker-input-wrapper {
2082
+ border-color: #faad14;
2083
+ box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
2084
+ }
2085
+ .ant-calendar-picker-status-success .ant-calendar-range-picker-input-wrapper {
2086
+ border-color: #52c41a;
2087
+ }
2088
+ .ant-calendar-picker-status-success .ant-calendar-range-picker-input-wrapper:hover {
2089
+ border-color: #52c41a;
2090
+ }
2091
+ .ant-calendar-picker-status-success.ant-calendar-picker-focused .ant-calendar-range-picker-input-wrapper,
2092
+ .ant-calendar-picker-status-success:focus-within .ant-calendar-range-picker-input-wrapper {
2093
+ border-color: #52c41a;
2094
+ box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.2);
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;
2027
2133
  }
2028
2134
  .ant-calendar-range-picker-input {
2029
- width: 44%;
2030
- height: 99%;
2135
+ flex: 1;
2136
+ min-width: 0;
2137
+ height: 100%;
2031
2138
  text-align: center;
2032
2139
  background-color: transparent;
2033
2140
  border: 0;
@@ -2069,9 +2176,10 @@ html {
2069
2176
  opacity: 1;
2070
2177
  }
2071
2178
  .ant-calendar-range-picker-separator {
2072
- display: inline-block;
2073
- min-width: 10px;
2074
- height: 100%;
2179
+ flex: none;
2180
+ display: inline-flex;
2181
+ align-items: center;
2182
+ padding: 0 8px;
2075
2183
  color: rgba(0, 0, 0, 0.45);
2076
2184
  white-space: nowrap;
2077
2185
  text-align: center;
@@ -2273,6 +2381,39 @@ textarea.ant-calendar-range .ant-calendar-time-picker-input {
2273
2381
  border-radius: 0;
2274
2382
  content: '';
2275
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
+ }
2276
2417
  .ant-calendar-range .ant-calendar-selected-start-date .ant-calendar-date,
2277
2418
  .ant-calendar-range .ant-calendar-selected-end-date .ant-calendar-date {
2278
2419
  color: #fff;
@@ -2761,6 +2902,17 @@ li.ant-calendar-time-picker-select-option-disabled:hover {
2761
2902
  background: #e6f7ff;
2762
2903
  cursor: pointer;
2763
2904
  }
2905
+ .ant-calendar-month-panel-selected-start-cell .ant-calendar-month-panel-month,
2906
+ .ant-calendar-month-panel-selected-end-cell .ant-calendar-month-panel-month {
2907
+ color: #fff;
2908
+ background: #1890ff;
2909
+ border-radius: 2px;
2910
+ }
2911
+ .ant-calendar-month-panel-selected-start-cell .ant-calendar-month-panel-month:hover,
2912
+ .ant-calendar-month-panel-selected-end-cell .ant-calendar-month-panel-month:hover {
2913
+ color: #fff;
2914
+ background: #40a9ff;
2915
+ }
2764
2916
  .ant-calendar-year-panel {
2765
2917
  position: absolute;
2766
2918
  top: 0;
@@ -3035,6 +3187,17 @@ li.ant-calendar-time-picker-select-option-disabled:hover {
3035
3187
  color: rgba(0, 0, 0, 0.25);
3036
3188
  user-select: none;
3037
3189
  }
3190
+ .ant-calendar-year-panel-selected-start-cell .ant-calendar-year-panel-year,
3191
+ .ant-calendar-year-panel-selected-end-cell .ant-calendar-year-panel-year {
3192
+ color: #fff;
3193
+ background: #1890ff;
3194
+ border-radius: 2px;
3195
+ }
3196
+ .ant-calendar-year-panel-selected-start-cell .ant-calendar-year-panel-year:hover,
3197
+ .ant-calendar-year-panel-selected-end-cell .ant-calendar-year-panel-year:hover {
3198
+ color: #fff;
3199
+ background: #40a9ff;
3200
+ }
3038
3201
  .ant-calendar-decade-panel {
3039
3202
  position: absolute;
3040
3203
  top: 0;