@94ai/nf-theme-oem 100.1.8 → 100.1.15

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/lib/nf-rules.scss CHANGED
@@ -1,118 +1,471 @@
1
- .nf-rules {
2
- .nf-rules-form {
3
- border-left: 1px solid #1177FF;
4
- padding-left: 20px;
5
- min-width:500px;
6
- max-width: 100%;
7
- position: relative;
8
- margin-left: 14px;
9
- .nf-also-icon {
10
- position: absolute;
11
- top: 50%;
12
- left: -13px;
13
- width: 22px;
14
- height: 22px;
15
- border-radius: 3px;
16
- border: 1px solid #1177FF;
17
- display: flex;
18
- align-items: center;
19
- justify-content: center;
20
- font-size: 12px;
21
- color: #1177FF;
22
- background-color: white;
23
- transform: translateY(-50%);
24
- }
25
- .nf-rule-item {
26
- display: flex;
27
- margin-bottom: 18px;
28
- &.intention {
29
- margin-bottom: 10px;
30
- .icon-opterate {
31
- &.subtraction {
32
- transform: translateY(4px) scale(1.2);
33
- }
1
+ .nf-date-picker {
2
+ .el-picker-panel__footer{
3
+ .el-picker-panel__link-btn {
4
+ &.nf-picker-panel__footer-confirm-button {
5
+ vertical-align: middle;
6
+ margin-right: 12px;
7
+ font-size: 12px;
8
+
9
+ &:hover {
10
+ color: #0067ef;
34
11
  }
35
- .el-form-item__error {
36
- margin-top: -6px;
12
+ }
13
+ &.nf-picker-panel__footer-cancel-button {
14
+ vertical-align: middle;
15
+ color: #303133;
16
+ font-size: 12px;
17
+ &:hover {
18
+ color: #1177ff;
37
19
  }
38
20
  }
39
- .el-input__inner,
40
- .el-textarea__inner {
41
- border-radius: 2px;
42
- padding-left: 8px;
21
+ }
22
+ }
23
+ // 月份范围
24
+ &.nf-month-range-picker {
25
+ &.el-date-range-picker {
26
+ width: 384px;
27
+ &.has-sidebar {
28
+ width: 494px;
43
29
  }
44
- .el-checkbox-button {
45
- border-radius: 4px;
46
- .el-checkbox-button__inner {
47
- border-left: 1px solid #DCDFE6;
48
- width: 28px;
49
- padding: 7px 0px;
50
- border-radius: 4px;
51
- }
52
- &.is-checked {
53
- .el-checkbox-button__inner {
54
- border-left: 1px solid #1177FF;
30
+ .el-picker-panel__body {
31
+ min-width: fit-content;
32
+ .el-date-range-picker__content {
33
+ padding: 0;
34
+ &.is-left {
35
+ border: none;
36
+ }
37
+
38
+ .el-date-range-picker__header {
39
+ border-bottom: 1px solid #e4e4e4;
40
+ padding: 6px 12px;
41
+ div {
42
+ font-size: 14px;
43
+ color: rgba(0,0,0,0.85);
44
+ }
45
+ }
46
+ .el-month-table {
47
+ padding: 0 14px;
48
+ font-size: 12px;
49
+ margin: -1px 0 -1px 10px;
50
+ border-collapse: collapse;
51
+ width: calc(100% - 20px);
52
+
53
+ th {
54
+ border-bottom: 0;
55
+ }
56
+
57
+ td {
58
+ padding: 9px 3px;
59
+ border-bottom: 0;
60
+ > div {
61
+ height: 24px;
62
+ padding: 0;
63
+ border-radius: 0px;
64
+ }
65
+ .cell {
66
+ height: 24px;
67
+ line-height: 24px;
68
+ border-radius: 4px;
69
+ width: fit-content;
70
+ padding: 0px 9px;
71
+ color: #606266;
72
+ margin: 0 auto;
73
+
74
+ &:hover {
75
+ border: 1px solid #1177FF;
76
+ line-height: 22px;
77
+ color: #1177FF;
78
+ box-sizing: border-box;
79
+ }
80
+ }
81
+ }
82
+
83
+ td {
84
+ text-align: center;
85
+ padding: 9px 0px;
86
+ cursor: pointer;
87
+ & div {
88
+ height: 24px;
89
+ box-sizing: border-box;
90
+ }
91
+ &.today {
92
+ .cell {
93
+ color: #1177FF;
94
+ font-weight: bold;
95
+ }
96
+ &.start-date .cell,
97
+ &.end-date .cell {
98
+ color: #FFFFFF;
99
+ }
100
+ }
101
+
102
+ &.disabled {
103
+ .cell {
104
+ border: none;
105
+ background-color: #F5F7FA;
106
+ cursor: not-allowed;
107
+ line-height: 24px;
108
+ color: #C0C4CC;
109
+
110
+ &:hover {
111
+ color: #C0C4CC;
112
+ }
113
+ }
114
+ }
115
+
116
+ &.in-range div {
117
+ background-color: #F2F6FC;
118
+ &:hover {
119
+ background-color: #F2F6FC;
120
+ }
121
+ }
122
+
123
+ &.start-date .cell,
124
+ &.end-date .cell {
125
+ color: #FFFFFF;
126
+ border: none;
127
+ line-height: 22px;
128
+ background-color: #1177FF;
129
+ }
130
+ }
55
131
  }
56
132
  }
57
133
  }
58
- .el-input-number {
59
- .el-input__inner {
60
- text-align: left;
134
+ }
135
+ }
136
+ // 单月
137
+ &.nf-month-picker {
138
+ width: 178px;
139
+ &.has-sidebar {
140
+ width: 288px;
141
+ }
142
+ .el-picker-panel__body {
143
+ min-width: fit-content;
144
+ .el-date-picker__header {
145
+ border-bottom: 1px solid #e4e4e4;
146
+ padding: 6px 12px;
147
+ margin: 0;
148
+ > .el-date-picker__header-label {
149
+ font-size: 14px;
150
+ color: rgba(0,0,0,0.85);
61
151
  }
62
- &.append_unit {
63
- position: relative;
64
- .el-input__inner {
65
- padding-right: 28px;
152
+ }
153
+ .el-picker-panel__content {
154
+ width: fit-content;
155
+ margin: 0;
156
+ .el-month-table {
157
+ padding: 0 14px;
158
+ font-size: 12px;
159
+ margin: -1px 0 -1px 10px;
160
+ border-collapse: collapse;
161
+ width: calc(100% - 20px);
162
+
163
+ th {
164
+ border-bottom: 0;
66
165
  }
67
- &::after{
68
- content: attr(data-unit);
69
- position: absolute;
70
- top: 1px;
71
- padding: 0 6px;
72
- color: #909399;
73
- background-color: #f5f7fa;
74
- border-left: 1px solid #dcdfe6;
75
- border-radius: 0 2px 2px 0;
76
- bottom: 1px;
77
- right: 1px;
166
+
167
+ td {
168
+ padding: 9px 3px;
169
+ border-bottom: 0;
170
+ > div {
171
+ height: 24px;
172
+ padding: 0;
173
+ border-radius: 0;
174
+ }
175
+ .cell {
176
+ height: 24px;
177
+ line-height: 24px;
178
+ border-radius: 4px;
179
+ width: fit-content;
180
+ padding: 0px 9px;
181
+ color: #606266;
182
+ margin: 0 auto;
183
+
184
+ &:hover {
185
+ border: 1px solid #1177FF;
186
+ line-height: 22px;
187
+ color: #1177FF;
188
+ box-sizing: border-box;
189
+ }
190
+ }
191
+ &.today {
192
+ .cell {
193
+ color: #1177FF;
194
+ font-weight: bold;
195
+ }
196
+ }
197
+ &.current {
198
+ .cell {
199
+ color: white;
200
+ background-color: #1177FF;
201
+ border: none;
202
+ line-height: 22px;
203
+ }
204
+ }
205
+ &.disabled {
206
+ .cell {
207
+ line-height: 24px;
208
+ background-color: #F5F7FA;
209
+ cursor: not-allowed;
210
+ color: #C0C4CC;
211
+ border: none;
212
+
213
+ &:hover {
214
+ color: #C0C4CC;
215
+ }
216
+ }
217
+ }
218
+
78
219
  }
220
+
79
221
  }
80
222
  }
81
- .el-select {
82
- .el-input {
83
- >.el-input__inner {
84
- padding-left: 8px;
85
- padding-right: 25px;
223
+ }
224
+ }
225
+ // 单周/单日/多个独立日
226
+ &.nf-day-picker {
227
+ .el-picker-panel__body {
228
+ .el-date-picker__header {
229
+ //> .el-date-picker__header-label {
230
+ // font-size: 14px;
231
+ // color: rgba(0,0,0,0.85);
232
+ //}
233
+ }
234
+ .el-picker-panel__content {
235
+ .el-date-table {
236
+ td {
237
+ > div {
238
+ border-radius: 0px;
239
+ }
240
+ span {
241
+ border-radius: 4px;
242
+ &:hover {
243
+ color: #1177FF;
244
+ border: 1px solid #1177FF;
245
+ box-sizing: border-box;
246
+ line-height: 22px;
247
+ }
248
+ }
86
249
  }
87
- >.el-input__suffix {
88
- right: 0;
250
+ td.today {
251
+ span {
252
+ color: #1177FF;
253
+ font-weight: bold;
254
+ }
255
+ }
256
+ td.current, td.selected {
257
+ span {
258
+ color: white;
259
+ background-color: #1177FF;
260
+ border: none;
261
+ }
262
+ }
263
+ td.end-date, td.start-date {
264
+ span {
265
+ color: white;
266
+ background-color: #1177FF ;
267
+ border: none;
268
+ }
269
+ }
270
+ td.disabled {
271
+ span {
272
+ background-color: #F5F7FA;
273
+ cursor: not-allowed;
274
+ color: #C0C4CC;
275
+ border: none;
276
+ line-height: 24px;
277
+
278
+ &:hover {
279
+ color: #C0C4CC;
280
+ }
281
+ }
89
282
  }
90
- }
91
- }
92
283
 
93
- .el-select-dropdown {
94
- .el-select-dropdown__item {
95
- padding: 0 10px;
96
284
  }
97
285
  }
98
- .el-form-item {
99
- margin-bottom: 0;
100
- .el-form-item__content {
101
- line-height: 18px;
286
+ }
287
+ }
288
+ // 单年
289
+ &.nf-year-picker {
290
+ width: 192px;
291
+ &.has-sidebar {
292
+ width: 302px;
293
+ }
294
+ .el-picker-panel__body {
295
+ min-width: fit-content;
296
+ .el-date-picker__header {
297
+ border-bottom: 1px solid #e4e4e4;
298
+ padding: 6px 12px;
299
+ margin: 0;
300
+ > .el-date-picker__header-label {
301
+ font-size: 14px;
302
+ color: rgba(0,0,0,0.85);
102
303
  }
103
304
  }
104
- .icon-opterate {
105
- padding-left: 2px;
106
- font-size: 20px;
107
- cursor: pointer;
108
- &.subtraction {
109
- padding-left: 4px;
110
- transform: scale(1.2);
305
+ .el-picker-panel__content {
306
+ width: fit-content;
307
+ margin: 0;
308
+ .el-year-table {
309
+ padding: 0 14px;
310
+ font-size: 12px;
311
+ margin: -1px 0 -1px 10px;
312
+ border-collapse: collapse;
313
+ width: calc(100% - 20px);
314
+
315
+ th {
316
+ border-bottom: 0;
317
+ }
318
+
319
+ td {
320
+ padding: 9px 3px;
321
+ border-bottom: 0;
322
+ > div {
323
+ height: 24px;
324
+ padding: 0;
325
+ border-radius: 0;
326
+ }
327
+ .cell {
328
+ height: 24px;
329
+ line-height: 24px;
330
+ border-radius: 4px;
331
+ width: fit-content;
332
+ padding: 0px 9px;
333
+
334
+ &:hover {
335
+ border: 1px solid #1177FF;
336
+ line-height: 22px;
337
+ color: #1177FF;
338
+ box-sizing: border-box;
339
+ }
340
+ }
341
+ &.today {
342
+ .cell {
343
+ color: #1177FF;
344
+ font-weight: bold;
345
+ }
346
+ }
347
+ &.current {
348
+ .cell {
349
+ color: white;
350
+ background-color: #1177FF;
351
+ border: none;
352
+ line-height: 22px;
353
+ }
354
+ }
355
+ &.disabled {
356
+ .cell {
357
+ background-color: #F5F7FA;
358
+ cursor: not-allowed;
359
+ color: #C0C4CC;
360
+ border: none;
361
+ line-height: 24px;
362
+
363
+ &:hover {
364
+ color: #C0C4CC;
365
+ }
366
+ }
367
+ }
368
+ }
111
369
  }
112
- &:hover {
113
- color: #387bfc;
370
+ }
371
+ }
372
+ }
373
+ // 日范围
374
+ &.nf-date-range-picker {
375
+ &.el-date-range-picker {
376
+ .el-picker-panel__body {
377
+ .el-date-range-picker__content {
378
+ .el-date-table {
379
+ padding: 0 14px;
380
+ font-size: 12px;
381
+ margin: -1px 0 -1px 10px;
382
+ border-collapse: collapse;
383
+ width: calc(100% - 20px);
384
+
385
+ th {
386
+ border-bottom: 0;
387
+ }
388
+
389
+ td {
390
+ padding: 9px 3px;
391
+ border-bottom: 0;
392
+ > div {
393
+ height: 24px;
394
+ padding: 0;
395
+ border-radius: 0;
396
+ }
397
+ span {
398
+ height: 24px;
399
+ line-height: 24px;
400
+ border-radius: 4px;
401
+ width: 24px;
402
+ color: #606266;
403
+ margin: 0 auto;
404
+ box-sizing: border-box;
405
+
406
+ &:hover {
407
+ border: 1px solid #1177FF;
408
+ line-height: 22px;
409
+ color: #1177FF;
410
+ box-sizing: border-box;
411
+ }
412
+ }
413
+ }
414
+
415
+ td {
416
+ text-align: center;
417
+ padding: 9px 0px;
418
+ cursor: pointer;
419
+ > div {
420
+ height: 24px;
421
+ box-sizing: border-box;
422
+ border-radius: 0;
423
+ }
424
+ &.today {
425
+ span{
426
+ color: #1177FF;
427
+ font-weight: bold;
428
+ }
429
+ &.start-date span,
430
+ &.end-date span {
431
+ color: #FFFFFF;
432
+ }
433
+ }
434
+
435
+ &.disabled {
436
+ span {
437
+ border: none;
438
+ line-height: 24px;
439
+ background-color: #F5F7FA;
440
+ cursor: not-allowed;
441
+ color: #C0C4CC;
442
+
443
+
444
+ &:hover {
445
+ color: #C0C4CC;
446
+ }
447
+ }
448
+ }
449
+
450
+ &.in-range div {
451
+ background-color: #F2F6FC;
452
+ &:hover {
453
+ background-color: #F2F6FC;
454
+ }
455
+ }
456
+
457
+ &.start-date span,
458
+ &.end-date span {
459
+ color: #FFFFFF;
460
+ border: none;
461
+ line-height: 22px;
462
+ background-color: #1177FF;
463
+ }
464
+ }
465
+ }
114
466
  }
115
467
  }
116
468
  }
117
469
  }
118
470
  }
471
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-theme-oem",
3
- "version": "100.1.8",
3
+ "version": "100.1.15",
4
4
  "description": "oem主题包",
5
5
  "keywords": [
6
6
  "theme",
@@ -30,5 +30,5 @@
30
30
  "build": "gulp --require @esbuild-kit/cjs-loader"
31
31
  },
32
32
  "types": "lib/index.ts",
33
- "gitHead": "9026240baa75f1b459275f767f772997d626686f"
33
+ "gitHead": "8cbd9254da4ec43f46b29198c0839bf2ba19132d"
34
34
  }