@94ai/nf-theme-oem 100.1.35 → 100.1.37

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,471 +1,159 @@
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;
11
- }
12
- }
13
- &.nf-picker-panel__footer-cancel-button {
14
- vertical-align: middle;
15
- color: #303133;
16
- font-size: 12px;
17
- &:hover {
18
- color: #1177ff;
19
- }
20
- }
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%);
21
24
  }
22
- }
23
- // 月份范围
24
- &.nf-month-range-picker {
25
- &.el-date-range-picker {
26
- width: 384px;
27
- &.has-sidebar {
28
- width: 494px;
25
+ .nf-rule-item {
26
+ display: flex;
27
+ margin-bottom: 18px;
28
+ &.intention {
29
+ margin-bottom: 10px;
30
+ .el-form-item__error {
31
+ margin-top: -6px;
32
+ }
29
33
  }
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);
34
+ .el-date-editor {
35
+ &.el-range-editor {
36
+ &.el-input__inner {
37
+ position: relative;
38
+ >.nf-range-separator {
39
+ padding: 0 5px;
44
40
  }
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
- }
41
+ >.el-range__close-icon {
42
+ position: absolute;
43
+ right: 0;
130
44
  }
131
45
  }
132
46
  }
133
47
  }
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);
48
+ .el-input__inner,
49
+ .el-textarea__inner {
50
+ border-radius: 2px;
51
+ padding-left: 8px;
52
+
53
+ &:focus {
54
+ border: 1px solid #1177FF;
151
55
  }
152
56
  }
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;
57
+ .el-textarea__inner {
58
+ line-height: 16px;
59
+ }
60
+ .el-checkbox-button {
61
+ border-radius: 2px;
62
+ .el-checkbox-button__inner {
63
+ border: 1px solid #DCDFE6;
64
+ width: 28px;
65
+ padding: 7px 0px;
66
+ border-radius: 2px;
67
+ box-shadow: none;
68
+ }
69
+ &:hover {
70
+ .el-checkbox-button__inner {
71
+ background-color: white;
72
+ color: #1177FF;
73
+ border: 1px solid #1177FF;
165
74
  }
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
-
75
+ }
76
+ &.is-checked {
77
+ .el-checkbox-button__inner {
78
+ border: 1px solid #1177FF;
79
+ background-color: #1177FF;
80
+ color: white;
219
81
  }
220
-
221
82
  }
222
83
  }
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
- }
249
- }
250
- td.today {
251
- span {
252
- color: #1177FF;
253
- font-weight: bold;
254
- }
84
+ .el-input-number {
85
+ .el-input__inner {
86
+ text-align: left;
87
+ }
88
+ &.append_unit {
89
+ position: relative;
90
+ .el-input__inner {
91
+ padding-right: 28px;
255
92
  }
256
- td.current, td.selected {
257
- span {
258
- color: white;
259
- background-color: #1177FF;
260
- border: none;
261
- }
93
+ &::after{
94
+ content: attr(data-unit);
95
+ position: absolute;
96
+ top: 1px;
97
+ padding: 0 6px;
98
+ color: #909399;
99
+ background-color: #f5f7fa;
100
+ border-left: 1px solid #dcdfe6;
101
+ border-radius: 0 2px 2px 0;
102
+ bottom: 1px;
103
+ right: 1px;
262
104
  }
263
- td.end-date, td.start-date {
264
- span {
265
- color: white;
266
- background-color: #1177FF ;
267
- border: none;
268
- }
105
+ }
106
+ }
107
+ .el-select {
108
+ .el-input {
109
+ >.el-input__inner {
110
+ padding-left: 8px;
111
+ padding-right: 25px;
269
112
  }
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
- }
113
+ >.el-input__suffix {
114
+ right: 0;
282
115
  }
283
-
284
116
  }
285
117
  }
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);
118
+
119
+ .el-select-dropdown {
120
+ .el-select-dropdown__item {
121
+ padding: 0 10px;
303
122
  }
304
123
  }
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
- }
124
+ .el-form-item {
125
+ margin-bottom: 0;
126
+ .el-form-item__content {
127
+ line-height: 18px;
369
128
  }
370
129
  }
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
- }
130
+ .icon-opterate {
131
+ font-size: 20px;
132
+ cursor: pointer;
133
+ &:hover {
134
+ .icon-opterate-subtraction,
135
+ .icon-opterate-plus {
136
+ color: #387bfc;
137
+ background-color: rgba(0,0,0,.05);
465
138
  }
466
139
  }
140
+ .icon-opterate-subtraction,
141
+ .icon-opterate-plus {
142
+ display: inline-block;
143
+ border-radius: 4px;
144
+ }
145
+ .icon-opterate-plus {
146
+ padding: 0 3px;
147
+ height: 18px;
148
+ line-height: 18px;
149
+ }
150
+ .icon-opterate-subtraction {
151
+ padding: 0 5px 0;
152
+ line-height: 14px;
153
+ height: 18px;
154
+ transform: translateY(-2px);
155
+ }
467
156
  }
468
157
  }
469
158
  }
470
159
  }
471
-
package/lib/nf-table.scss CHANGED
@@ -29,6 +29,7 @@
29
29
  padding: 0 4px;
30
30
  &:hover {
31
31
  background-color: #E0E1E5;
32
+ border-radius: 2px;
32
33
  }
33
34
  }
34
35
  &.nf-default-table-border {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-theme-oem",
3
- "version": "100.1.35",
3
+ "version": "100.1.37",
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": "2957186979c1694b9c450c9f20db48e2aa22bb81"
33
+ "gitHead": "cbe580b12231da3fcc974ac56570d0db1c04c351"
34
34
  }