zydx-plus 1.0.6 → 1.0.8
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/package.json +1 -1
- package/src/components/calendar/index.js +6 -0
- package/src/components/calendar/src/Calendar.css +262 -0
- package/src/components/calendar/src/Calendar.vue +699 -0
- package/src/components/calendar/src/sloarToLunar.js +195 -0
- package/src/components/switch/index.js +6 -0
- package/src/components/switch/src/switch.vue +77 -0
- package/src/components/tipBox/index.js +33 -5
- package/src/components/tipBox/src/main.vue +24 -12
- package/src/components/tipBox/src/zydxStyle.css +40 -1
- package/src/index.js +13 -10
package/package.json
CHANGED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
.cale{
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 22px;
|
|
4
|
+
right: 0;
|
|
5
|
+
width: 300px;
|
|
6
|
+
height: 330px;
|
|
7
|
+
z-index: 100;
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
box-shadow: 0 0 4px 1px #ccc;
|
|
10
|
+
border-radius: 5px;
|
|
11
|
+
padding: 0 10px;
|
|
12
|
+
display: grid;
|
|
13
|
+
user-select: none;
|
|
14
|
+
}
|
|
15
|
+
.cale-cont{
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 300px;
|
|
18
|
+
background-color: #fff;
|
|
19
|
+
border-radius: 10px;
|
|
20
|
+
}
|
|
21
|
+
.calendar-Time-header{
|
|
22
|
+
text-align: center;
|
|
23
|
+
vertical-align: middle;
|
|
24
|
+
padding: 10px 0;
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
}
|
|
27
|
+
.month-txt{
|
|
28
|
+
padding: 26px 0 55px 0;
|
|
29
|
+
display: flex;
|
|
30
|
+
}
|
|
31
|
+
.calendar-lastY{
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
margin-right: 10px;
|
|
35
|
+
}
|
|
36
|
+
.calendar-nextY{
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
margin-left: 10px;
|
|
40
|
+
}
|
|
41
|
+
.month-txt-left{
|
|
42
|
+
flex: 1;
|
|
43
|
+
color: #4581FB;
|
|
44
|
+
font-size: 50px;
|
|
45
|
+
font-weight: bold;
|
|
46
|
+
}
|
|
47
|
+
.month-txt-right{
|
|
48
|
+
flex: 1;
|
|
49
|
+
text-align: right;
|
|
50
|
+
font-size: 55px;
|
|
51
|
+
color: #F4C256;
|
|
52
|
+
font-weight: bold;
|
|
53
|
+
}
|
|
54
|
+
.month-txt-right>text{
|
|
55
|
+
color: #4581FB;
|
|
56
|
+
}
|
|
57
|
+
.calendar-lastMonth{
|
|
58
|
+
width: 30px;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
margin-right: 20%;
|
|
61
|
+
padding: 0 5px;
|
|
62
|
+
text-align: center;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
}
|
|
65
|
+
.calendar-nextMonth{
|
|
66
|
+
width: 30px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
margin-left: 20%;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
padding: 0 5px;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
.calendar-backToToday{
|
|
74
|
+
text-align: center;
|
|
75
|
+
font-size: 24px;
|
|
76
|
+
position: absolute;
|
|
77
|
+
right: 5px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.calendar-row:before,
|
|
81
|
+
.calendar-row:after {
|
|
82
|
+
display: table;
|
|
83
|
+
content: ' ';
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.calendar-row:after {
|
|
87
|
+
clear: both;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.calendar-col {
|
|
91
|
+
position: relative;
|
|
92
|
+
float: left;
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
text-overflow: ellipsis;
|
|
95
|
+
-o-text-overflow: ellipsis;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
font-size: 12px;
|
|
98
|
+
}
|
|
99
|
+
.cal-k{
|
|
100
|
+
width: 14.2%;
|
|
101
|
+
height: 37px;
|
|
102
|
+
padding: 2px 0;
|
|
103
|
+
transform:scale(.8);
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
.aligncanter {
|
|
107
|
+
text-align: center;
|
|
108
|
+
}
|
|
109
|
+
.coll{
|
|
110
|
+
background-color: #4581FB;
|
|
111
|
+
height: 22px !important;
|
|
112
|
+
border-radius: 30px;
|
|
113
|
+
width: 14.2%;
|
|
114
|
+
line-height: 22px;
|
|
115
|
+
color: #fff;
|
|
116
|
+
transform:scale(.8);
|
|
117
|
+
}
|
|
118
|
+
.colh{
|
|
119
|
+
background-color: #F4C256;
|
|
120
|
+
height: 22px;
|
|
121
|
+
border-radius: 30px;
|
|
122
|
+
width: 14.2%;
|
|
123
|
+
line-height: 22px;
|
|
124
|
+
color: #fff;
|
|
125
|
+
transform:scale(.8);
|
|
126
|
+
}
|
|
127
|
+
.ma{
|
|
128
|
+
margin-right: 0 !important;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.calendar-header {
|
|
132
|
+
color: gray;
|
|
133
|
+
vertical-align: middle;
|
|
134
|
+
font-size: 12px;
|
|
135
|
+
padding: 5px 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.calendar-day {
|
|
139
|
+
height: 80px;
|
|
140
|
+
transform: translate3d(0px, 0px, 0px) translateZ(0px); transition-duration: 0ms; transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
.calendar-content {
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.calendar-date{
|
|
148
|
+
}
|
|
149
|
+
.calendar-today {
|
|
150
|
+
border-radius: 6px;
|
|
151
|
+
background-color: #43CD80;
|
|
152
|
+
color:white;
|
|
153
|
+
-moz-box-shadow: 0px 2px 10px #ABABAB;
|
|
154
|
+
-webkit-box-shadow: 0px 2px 10px #ABABAB;
|
|
155
|
+
box-shadow: 0px 2px 10px #ABABAB;
|
|
156
|
+
}
|
|
157
|
+
.calendar-today .calendar-point{
|
|
158
|
+
color: white !important;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.calendar-today .calendar-text{
|
|
162
|
+
color: white !important;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.calendar-col-lastMonth .calendar-text{
|
|
166
|
+
color: gray;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.calendar-col-nextMonth .calendar-text{
|
|
170
|
+
color: gray;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.calendar-today .calendar-date{
|
|
174
|
+
color: white !important;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.calendar-active {
|
|
178
|
+
color:#01AAED;
|
|
179
|
+
background-color: #D9D9D9;
|
|
180
|
+
-moz-box-shadow: 0px 2px 10px #ABABAB;
|
|
181
|
+
-webkit-box-shadow: 0px 2px 10px #ABABAB;
|
|
182
|
+
box-shadow: 0px 2px 10px #ABABAB;
|
|
183
|
+
}
|
|
184
|
+
/* 范围标记 */
|
|
185
|
+
.calendar-range {
|
|
186
|
+
/* color:#01AAED; */
|
|
187
|
+
border-radius: 0px;
|
|
188
|
+
background-color: #D9D9D9;
|
|
189
|
+
-moz-box-shadow: none;
|
|
190
|
+
-webkit-box-shadow: none;
|
|
191
|
+
box-shadow: none;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
.ClearBoth {
|
|
197
|
+
clear: both;
|
|
198
|
+
}
|
|
199
|
+
.calendar-col-nextMonth{
|
|
200
|
+
color:gray;
|
|
201
|
+
}
|
|
202
|
+
.calendar-col-lastMonth{
|
|
203
|
+
color:gray;
|
|
204
|
+
}
|
|
205
|
+
.calendar-btn-disabled{
|
|
206
|
+
color:gainsboro;
|
|
207
|
+
}
|
|
208
|
+
.calendar-point{
|
|
209
|
+
font-size: 16px;color: #01AAED;top:2px;right: 2px;position: absolute;
|
|
210
|
+
}
|
|
211
|
+
.calendar-text{
|
|
212
|
+
padding: 4px 0;
|
|
213
|
+
width:100%;font-size: 20px;color: #01AAED;top:40px;left: 0px;position: absolute;overflow:hidden;
|
|
214
|
+
}
|
|
215
|
+
.dayValue{
|
|
216
|
+
text-align: center;
|
|
217
|
+
height: 34px;
|
|
218
|
+
box-sizing: border-box;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.calendar-day-6-7{
|
|
222
|
+
color: #4581FB;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* 超出日期范围 */
|
|
226
|
+
.calendar-out-of-Date{
|
|
227
|
+
background-color: #EAEAEA;
|
|
228
|
+
}
|
|
229
|
+
.calendar-out-of-Date .calendar-date{
|
|
230
|
+
color: gray;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
/* 以下为实现0.5px底部边界 */
|
|
238
|
+
.under_line{position: relative;}
|
|
239
|
+
.under_line:before,
|
|
240
|
+
.under_line:after{position: absolute;content: " ";height: 1px;width: 100%;left: 0;transform-origin: 0 0;-webkit-transform-origin: 0 0;}
|
|
241
|
+
/* .fineLine:before{顶部top: 0;background: #000;} */
|
|
242
|
+
.under_line:after{bottom: 0;border-bottom: 1px solid #ccc;}
|
|
243
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 1.5){.under_line:after,.under_line:before{-webkit-transform: scaleY(.667);}}
|
|
244
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 2){.under_line:after,.under_line:before{-webkit-transform: scaleY(.5);}}
|
|
245
|
+
/* 以上为实现0.5px底部边界 */
|
|
246
|
+
.cle-but-cont{
|
|
247
|
+
margin-top: 5px;
|
|
248
|
+
padding: 5px 0 0 0;
|
|
249
|
+
text-align: right;
|
|
250
|
+
border-top: 1px solid #ccc;
|
|
251
|
+
}
|
|
252
|
+
.cle-but{
|
|
253
|
+
margin-left: 5px;
|
|
254
|
+
font-size: 12px;
|
|
255
|
+
background-color: #fff;
|
|
256
|
+
border: 1px solid #000;
|
|
257
|
+
border-radius: 3px;
|
|
258
|
+
padding: 2px 5px;
|
|
259
|
+
cursor: pointer;
|
|
260
|
+
width: 50px;
|
|
261
|
+
text-align: center;
|
|
262
|
+
}
|