@wangxinowo/vue-datepicker-next 1.0.1 → 1.0.2
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,6 +2024,67 @@ html {
|
|
|
2024
2024
|
display: inline-flex;
|
|
2025
2025
|
align-items: center;
|
|
2026
2026
|
width: 100%;
|
|
2027
|
+
min-width: 280px;
|
|
2028
|
+
height: 32px;
|
|
2029
|
+
padding: 0 12px;
|
|
2030
|
+
background-color: #fff;
|
|
2031
|
+
border: 1px solid #d9d9d9;
|
|
2032
|
+
border-radius: 4px;
|
|
2033
|
+
transition: all 0.3s;
|
|
2034
|
+
}
|
|
2035
|
+
.ant-calendar-range-picker-input-wrapper:hover {
|
|
2036
|
+
border-color: #40a9ff;
|
|
2037
|
+
}
|
|
2038
|
+
.ant-calendar-picker-focused .ant-calendar-range-picker-input-wrapper,
|
|
2039
|
+
.ant-calendar-picker:focus-within .ant-calendar-range-picker-input-wrapper {
|
|
2040
|
+
border-color: #1890ff;
|
|
2041
|
+
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
|
2042
|
+
outline: 0;
|
|
2043
|
+
}
|
|
2044
|
+
.ant-calendar-picker-borderless .ant-calendar-range-picker-input-wrapper {
|
|
2045
|
+
background-color: transparent;
|
|
2046
|
+
border: none;
|
|
2047
|
+
box-shadow: none;
|
|
2048
|
+
}
|
|
2049
|
+
.ant-calendar-range-picker-input-wrapper[disabled],
|
|
2050
|
+
.ant-calendar-picker-disabled .ant-calendar-range-picker-input-wrapper {
|
|
2051
|
+
background-color: #f5f5f5;
|
|
2052
|
+
border-color: #d9d9d9;
|
|
2053
|
+
cursor: not-allowed;
|
|
2054
|
+
opacity: 1;
|
|
2055
|
+
}
|
|
2056
|
+
.ant-calendar-picker-status-error .ant-calendar-range-picker-input-wrapper {
|
|
2057
|
+
border-color: #f5222d;
|
|
2058
|
+
}
|
|
2059
|
+
.ant-calendar-picker-status-error .ant-calendar-range-picker-input-wrapper:hover {
|
|
2060
|
+
border-color: #f5222d;
|
|
2061
|
+
}
|
|
2062
|
+
.ant-calendar-picker-status-error.ant-calendar-picker-focused .ant-calendar-range-picker-input-wrapper,
|
|
2063
|
+
.ant-calendar-picker-status-error:focus-within .ant-calendar-range-picker-input-wrapper {
|
|
2064
|
+
border-color: #f5222d;
|
|
2065
|
+
box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
|
|
2066
|
+
}
|
|
2067
|
+
.ant-calendar-picker-status-warning .ant-calendar-range-picker-input-wrapper {
|
|
2068
|
+
border-color: #faad14;
|
|
2069
|
+
}
|
|
2070
|
+
.ant-calendar-picker-status-warning .ant-calendar-range-picker-input-wrapper:hover {
|
|
2071
|
+
border-color: #faad14;
|
|
2072
|
+
}
|
|
2073
|
+
.ant-calendar-picker-status-warning.ant-calendar-picker-focused .ant-calendar-range-picker-input-wrapper,
|
|
2074
|
+
.ant-calendar-picker-status-warning:focus-within .ant-calendar-range-picker-input-wrapper {
|
|
2075
|
+
border-color: #faad14;
|
|
2076
|
+
box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
|
2077
|
+
}
|
|
2078
|
+
.ant-calendar-picker-status-success .ant-calendar-range-picker-input-wrapper {
|
|
2079
|
+
border-color: #52c41a;
|
|
2080
|
+
}
|
|
2081
|
+
.ant-calendar-picker-status-success .ant-calendar-range-picker-input-wrapper:hover {
|
|
2082
|
+
border-color: #52c41a;
|
|
2083
|
+
}
|
|
2084
|
+
.ant-calendar-picker-status-success.ant-calendar-picker-focused .ant-calendar-range-picker-input-wrapper,
|
|
2085
|
+
.ant-calendar-picker-status-success:focus-within .ant-calendar-range-picker-input-wrapper {
|
|
2086
|
+
border-color: #52c41a;
|
|
2087
|
+
box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.2);
|
|
2027
2088
|
}
|
|
2028
2089
|
.ant-calendar-range-picker-input {
|
|
2029
2090
|
width: 44%;
|
package/package.json
CHANGED
|
@@ -6,6 +6,86 @@
|
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
width: 100%;
|
|
9
|
+
min-width: 280px;
|
|
10
|
+
height: @input-height-base;
|
|
11
|
+
padding: 0 @control-padding-horizontal;
|
|
12
|
+
background-color: @input-bg;
|
|
13
|
+
border: @border-width-base @border-style-base @input-border-color;
|
|
14
|
+
border-radius: @border-radius-base;
|
|
15
|
+
transition: all 0.3s;
|
|
16
|
+
|
|
17
|
+
&:hover {
|
|
18
|
+
border-color: @input-hover-border-color;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// 聚焦状态
|
|
22
|
+
.@{calendar-prefix-cls}-picker-focused &,
|
|
23
|
+
.@{calendar-prefix-cls}-picker:focus-within & {
|
|
24
|
+
border-color: @primary-color;
|
|
25
|
+
box-shadow: @input-outline-offset @outline-blur-size @outline-width fade(@primary-color, 20%);
|
|
26
|
+
outline: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// 无边框模式
|
|
30
|
+
.@{calendar-prefix-cls}-picker-borderless & {
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
border: none;
|
|
33
|
+
box-shadow: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// 禁用状态
|
|
37
|
+
&[disabled],
|
|
38
|
+
.@{calendar-prefix-cls}-picker-disabled & {
|
|
39
|
+
background-color: @input-disabled-bg;
|
|
40
|
+
border-color: @input-border-color;
|
|
41
|
+
cursor: not-allowed;
|
|
42
|
+
opacity: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Error 状态
|
|
46
|
+
.@{calendar-prefix-cls}-picker-status-error & {
|
|
47
|
+
border-color: @error-color;
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
border-color: @error-color;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.@{calendar-prefix-cls}-picker-status-error.@{calendar-prefix-cls}-picker-focused &,
|
|
55
|
+
.@{calendar-prefix-cls}-picker-status-error:focus-within & {
|
|
56
|
+
border-color: @error-color;
|
|
57
|
+
box-shadow: @input-outline-offset @outline-blur-size @outline-width fade(@error-color, 20%);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Warning 状态
|
|
61
|
+
.@{calendar-prefix-cls}-picker-status-warning & {
|
|
62
|
+
border-color: @warning-color;
|
|
63
|
+
|
|
64
|
+
&:hover {
|
|
65
|
+
border-color: @warning-color;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.@{calendar-prefix-cls}-picker-status-warning.@{calendar-prefix-cls}-picker-focused &,
|
|
70
|
+
.@{calendar-prefix-cls}-picker-status-warning:focus-within & {
|
|
71
|
+
border-color: @warning-color;
|
|
72
|
+
box-shadow: @input-outline-offset @outline-blur-size @outline-width fade(@warning-color, 20%);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Success 状态
|
|
76
|
+
.@{calendar-prefix-cls}-picker-status-success & {
|
|
77
|
+
border-color: @success-color;
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
border-color: @success-color;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.@{calendar-prefix-cls}-picker-status-success.@{calendar-prefix-cls}-picker-focused &,
|
|
85
|
+
.@{calendar-prefix-cls}-picker-status-success:focus-within & {
|
|
86
|
+
border-color: @success-color;
|
|
87
|
+
box-shadow: @input-outline-offset @outline-blur-size @outline-width fade(@success-color, 20%);
|
|
88
|
+
}
|
|
9
89
|
}
|
|
10
90
|
|
|
11
91
|
.@{calendar-prefix-cls}-range-picker-input {
|