@wangxinowo/vue-datepicker-next 1.0.5 → 1.0.6
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/README.md +510 -510
- package/dist/vue-datepicker-next.min.css +153 -461
- package/dist/vue-datepicker-next.min.js +1 -1
- package/package.json +88 -88
- package/src/components/date-picker/PresetPanel.jsx +148 -148
- package/src/components/date-picker/style/RangePicker.less +515 -515
- package/src/components/date-picker/style/presets.less +120 -120
- package/src/components/date-picker/wrapPicker.js +2 -2
- package/src/components/style/core/base.less +4 -505
- package/src/components/style/core/motion/fade.less +4 -3
- package/src/components/style/core/motion/move.less +4 -3
- package/src/components/style/core/motion/other.less +3 -1
- package/src/components/style/core/motion/slide.less +4 -3
- package/src/components/style/core/motion/swing.less +5 -4
- package/src/components/style/core/motion/zoom.less +4 -3
- package/src/components/style/mixins/motion.less +7 -6
- package/src/components/time-picker/index.jsx +1 -1
- package/src/components/tooltip/abstractTooltipProps.js +1 -1
- package/src/components/vc-calendar/src/RangeCalendar.jsx +1105 -1105
- package/src/components/vc-calendar/src/calendar/CalendarHeader.jsx +277 -277
- package/src/components/vc-calendar/src/month/MonthPanel.jsx +130 -130
- package/src/components/vc-calendar/src/month/MonthTable.jsx +252 -252
- package/src/components/vc-calendar/src/range-calendar/CalendarPart.jsx +180 -180
- package/src/components/vc-calendar/src/year/YearPanel.jsx +242 -242
- package/src/index.js +48 -48
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
// Presets Panel Styles for RangePicker
|
|
2
|
-
// 预设日期范围面板样式
|
|
3
|
-
|
|
4
|
-
// 左侧面板模式样式
|
|
5
|
-
.@{calendar-prefix-cls}-presets {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
min-width: 120px;
|
|
9
|
-
max-height: 240px;
|
|
10
|
-
overflow-y: auto;
|
|
11
|
-
padding: @padding-xs 0;
|
|
12
|
-
border-right: @border-width-base @border-style-base @border-color-split;
|
|
13
|
-
background: @component-background;
|
|
14
|
-
|
|
15
|
-
&-list {
|
|
16
|
-
margin: 0;
|
|
17
|
-
padding: 0;
|
|
18
|
-
list-style: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-item {
|
|
22
|
-
padding: @padding-xs @padding-sm;
|
|
23
|
-
color: @text-color;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
transition: all 0.3s;
|
|
26
|
-
|
|
27
|
-
&:hover {
|
|
28
|
-
color: @primary-color;
|
|
29
|
-
background: @item-hover-bg;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-selected {
|
|
33
|
-
color: @primary-color;
|
|
34
|
-
font-weight: 500;
|
|
35
|
-
background: @primary-1;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// 底部按钮模式样式
|
|
40
|
-
&-footer {
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-wrap: wrap;
|
|
43
|
-
align-items: center;
|
|
44
|
-
gap: @padding-xs;
|
|
45
|
-
padding: @padding-sm @padding-md;
|
|
46
|
-
border-top: @border-width-base @border-style-base @border-color-split;
|
|
47
|
-
background: @component-background;
|
|
48
|
-
|
|
49
|
-
&-btn {
|
|
50
|
-
display: inline-flex;
|
|
51
|
-
align-items: center;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
height: 24px;
|
|
54
|
-
padding: 0 @padding-sm;
|
|
55
|
-
font-size: @font-size-sm;
|
|
56
|
-
color: @text-color;
|
|
57
|
-
background: @background-color-light;
|
|
58
|
-
border: @border-width-base @border-style-base @border-color-base;
|
|
59
|
-
border-radius: @border-radius-sm;
|
|
60
|
-
cursor: pointer;
|
|
61
|
-
transition: all 0.2s ease-in-out;
|
|
62
|
-
user-select: none;
|
|
63
|
-
|
|
64
|
-
&:hover {
|
|
65
|
-
color: @primary-color;
|
|
66
|
-
border-color: @primary-color;
|
|
67
|
-
background: @primary-1;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&:active {
|
|
71
|
-
color: @primary-7;
|
|
72
|
-
border-color: @primary-7;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&-selected {
|
|
76
|
-
color: #fff;
|
|
77
|
-
background: @primary-color;
|
|
78
|
-
border-color: @primary-color;
|
|
79
|
-
|
|
80
|
-
&:hover {
|
|
81
|
-
color: #fff;
|
|
82
|
-
background: @primary-5;
|
|
83
|
-
border-color: @primary-5;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// Range picker with presets layout
|
|
91
|
-
// 带预设的日期范围选择器布局
|
|
92
|
-
.@{calendar-prefix-cls}-range-with-presets {
|
|
93
|
-
.@{calendar-prefix-cls}-range-part {
|
|
94
|
-
display: flex;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Range picker popup with presets
|
|
99
|
-
// 带预设的弹出层布局
|
|
100
|
-
.@{calendar-prefix-cls}-picker-container {
|
|
101
|
-
.@{calendar-prefix-cls}-range-with-presets {
|
|
102
|
-
display: flex;
|
|
103
|
-
align-items: stretch;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Footer quick selector (legacy support for ranges prop)
|
|
108
|
-
// 底部快捷选择器(兼容旧的 ranges 属性)
|
|
109
|
-
.@{calendar-prefix-cls}-range-quick-selector {
|
|
110
|
-
display: flex;
|
|
111
|
-
flex-wrap: wrap;
|
|
112
|
-
gap: @padding-xs;
|
|
113
|
-
padding: @padding-xs @padding-sm;
|
|
114
|
-
border-top: @border-width-base @border-style-base @border-color-split;
|
|
115
|
-
|
|
116
|
-
a,
|
|
117
|
-
.@{ant-prefix}-tag {
|
|
118
|
-
cursor: pointer;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
// Presets Panel Styles for RangePicker
|
|
2
|
+
// 预设日期范围面板样式
|
|
3
|
+
|
|
4
|
+
// 左侧面板模式样式
|
|
5
|
+
.@{calendar-prefix-cls}-presets {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
min-width: 120px;
|
|
9
|
+
max-height: 240px;
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
padding: @padding-xs 0;
|
|
12
|
+
border-right: @border-width-base @border-style-base @border-color-split;
|
|
13
|
+
background: @component-background;
|
|
14
|
+
|
|
15
|
+
&-list {
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
list-style: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-item {
|
|
22
|
+
padding: @padding-xs @padding-sm;
|
|
23
|
+
color: @text-color;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
transition: all 0.3s;
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
color: @primary-color;
|
|
29
|
+
background: @item-hover-bg;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-selected {
|
|
33
|
+
color: @primary-color;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
background: @primary-1;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// 底部按钮模式样式
|
|
40
|
+
&-footer {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-wrap: wrap;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: @padding-xs;
|
|
45
|
+
padding: @padding-sm @padding-md;
|
|
46
|
+
border-top: @border-width-base @border-style-base @border-color-split;
|
|
47
|
+
background: @component-background;
|
|
48
|
+
|
|
49
|
+
&-btn {
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
height: 24px;
|
|
54
|
+
padding: 0 @padding-sm;
|
|
55
|
+
font-size: @font-size-sm;
|
|
56
|
+
color: @text-color;
|
|
57
|
+
background: @background-color-light;
|
|
58
|
+
border: @border-width-base @border-style-base @border-color-base;
|
|
59
|
+
border-radius: @border-radius-sm;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition: all 0.2s ease-in-out;
|
|
62
|
+
user-select: none;
|
|
63
|
+
|
|
64
|
+
&:hover {
|
|
65
|
+
color: @primary-color;
|
|
66
|
+
border-color: @primary-color;
|
|
67
|
+
background: @primary-1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:active {
|
|
71
|
+
color: @primary-7;
|
|
72
|
+
border-color: @primary-7;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&-selected {
|
|
76
|
+
color: #fff;
|
|
77
|
+
background: @primary-color;
|
|
78
|
+
border-color: @primary-color;
|
|
79
|
+
|
|
80
|
+
&:hover {
|
|
81
|
+
color: #fff;
|
|
82
|
+
background: @primary-5;
|
|
83
|
+
border-color: @primary-5;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Range picker with presets layout
|
|
91
|
+
// 带预设的日期范围选择器布局
|
|
92
|
+
.@{calendar-prefix-cls}-range-with-presets {
|
|
93
|
+
.@{calendar-prefix-cls}-range-part {
|
|
94
|
+
display: flex;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Range picker popup with presets
|
|
99
|
+
// 带预设的弹出层布局
|
|
100
|
+
.@{calendar-prefix-cls}-picker-container {
|
|
101
|
+
.@{calendar-prefix-cls}-range-with-presets {
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: stretch;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Footer quick selector (legacy support for ranges prop)
|
|
108
|
+
// 底部快捷选择器(兼容旧的 ranges 属性)
|
|
109
|
+
.@{calendar-prefix-cls}-range-quick-selector {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
gap: @padding-xs;
|
|
113
|
+
padding: @padding-xs @padding-sm;
|
|
114
|
+
border-top: @border-width-base @border-style-base @border-color-split;
|
|
115
|
+
|
|
116
|
+
a,
|
|
117
|
+
.@{ant-prefix}-tag {
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -43,7 +43,7 @@ export default function wrapPicker(Picker, props, pickerType) {
|
|
|
43
43
|
return {
|
|
44
44
|
name: Picker.name,
|
|
45
45
|
props: initDefaultProps(props, {
|
|
46
|
-
transitionName: 'slide-up',
|
|
46
|
+
transitionName: 'ant-slide-up',
|
|
47
47
|
popupStyle: {},
|
|
48
48
|
locale: {},
|
|
49
49
|
}),
|
|
@@ -199,7 +199,7 @@ export default function wrapPicker(Picker, props, pickerType) {
|
|
|
199
199
|
...showTime,
|
|
200
200
|
prefixCls: `${prefixCls}-time-picker`,
|
|
201
201
|
placeholder: locale.timePickerLocale.placeholder,
|
|
202
|
-
transitionName: 'slide-up',
|
|
202
|
+
transitionName: 'ant-slide-up',
|
|
203
203
|
},
|
|
204
204
|
class: timePickerCls,
|
|
205
205
|
on: {
|