@94ai/nf-theme-oem 3.1.28 → 3.1.31

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.
Files changed (40) hide show
  1. package/lib/base.scss +8 -0
  2. package/lib/css/base.css +1 -1
  3. package/lib/css/index.css +1 -1
  4. package/lib/css/nf-action.css +1 -1
  5. package/lib/css/nf-confirm.css +1 -0
  6. package/lib/css/nf-date-picker.css +1 -1
  7. package/lib/css/nf-double-half-year.css +1 -1
  8. package/lib/css/nf-double-quarter.css +1 -1
  9. package/lib/css/nf-double-week.css +1 -1
  10. package/lib/css/nf-drawer.css +1 -1
  11. package/lib/css/nf-empty.css +1 -1
  12. package/lib/css/nf-form-item.css +1 -1
  13. package/lib/css/nf-half-year-picker.css +1 -1
  14. package/lib/css/nf-import-template.css +1 -1
  15. package/lib/css/nf-indicator-plane.css +1 -1
  16. package/lib/css/nf-message.css +1 -0
  17. package/lib/css/nf-notification.css +1 -0
  18. package/lib/css/nf-quarter-picker.css +1 -1
  19. package/lib/css/nf-radio-group.css +1 -1
  20. package/lib/css/nf-search-form.css +1 -1
  21. package/lib/css/nf-table.css +1 -1
  22. package/lib/css/nf-text-overflow.css +1 -0
  23. package/lib/css/nf-year-picker.css +0 -1
  24. package/lib/index.scss +7 -1
  25. package/lib/nf-confirm.scss +64 -0
  26. package/lib/nf-date-picker.scss +30 -32
  27. package/lib/nf-double-half-year.scss +1 -1
  28. package/lib/nf-double-quarter.scss +12 -11
  29. package/lib/nf-double-week.scss +7 -1
  30. package/lib/nf-drawer.scss +54 -4
  31. package/lib/nf-half-year-picker.scss +6 -0
  32. package/lib/nf-indicator-plane.scss +26 -27
  33. package/lib/nf-message.scss +73 -0
  34. package/lib/nf-notification.scss +85 -0
  35. package/lib/nf-quarter-picker.scss +6 -0
  36. package/lib/nf-search-form.scss +266 -2
  37. package/lib/nf-table.scss +141 -2
  38. package/lib/nf-text-overflow.scss +29 -0
  39. package/lib/nf-year-picker.scss +0 -82
  40. package/package.json +2 -2
@@ -0,0 +1,85 @@
1
+ .nf-notification {
2
+ display: flex;
3
+ width: 400px;
4
+ padding: 16px 24px;
5
+ box-sizing: border-box;
6
+ position: fixed;
7
+ background: #FFFFFF;
8
+ box-shadow: 0px 4px 18px 0px rgba(0,0,0,0.1);
9
+ border-radius: 4px;
10
+ transition: opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;
11
+ overflow: hidden;
12
+
13
+ &.right {
14
+ right: 16px
15
+ }
16
+
17
+ &.left {
18
+ left: 16px
19
+ }
20
+
21
+ .nf-notification__group {
22
+ flex: 1;
23
+ }
24
+
25
+ .nf-notification__title {
26
+ font-size: 16px;
27
+ font-weight: 400;
28
+ color: rgba(0,0,0,0.85);
29
+ line-height: 24px;
30
+ margin: 0 0 12px
31
+ }
32
+
33
+ .nf-notification__content {
34
+ font-size: 14px;
35
+ font-weight: 400;
36
+ color: rgba(0,0,0,0.65);
37
+ line-height: 22px;
38
+ text-align: justify
39
+ }
40
+
41
+ .nf-notification__content p {
42
+ margin: 0
43
+ }
44
+
45
+ .nf-notification__icon {
46
+ height: 24px;
47
+ width: 24px;
48
+ font-size: 24px;
49
+ margin-right: 16px;
50
+ }
51
+
52
+ .nf-notification__btns {
53
+ margin-top: 16px;
54
+ text-align: right;
55
+ }
56
+
57
+ .nf-notification__closeBtn {
58
+ position: absolute;
59
+ top: 18px;
60
+ right: 15px;
61
+ cursor: pointer;
62
+ color: #909399;
63
+ font-size: 16px;
64
+
65
+ &:hover {
66
+ color: #606266
67
+ }
68
+ }
69
+
70
+ .el-icon-success {
71
+ color: #67C23A
72
+ }
73
+
74
+ .el-icon-error {
75
+ color: #F56C6C
76
+ }
77
+
78
+ .el-icon-info {
79
+ color: #909399
80
+ }
81
+
82
+ .el-icon-warning {
83
+ color: #E6A23C
84
+ }
85
+ }
@@ -38,6 +38,12 @@
38
38
  color: #1177FF;
39
39
  }
40
40
  }
41
+ &.today {
42
+ .cell {
43
+ color: #1177FF;
44
+ font-weight: bold;
45
+ }
46
+ }
41
47
  &.current {
42
48
  .cell {
43
49
  color: white;
@@ -1,4 +1,268 @@
1
+ @use './nf-font.scss';
2
+ @use "./base.scss";
1
3
  .nf-search-form {
2
- background-color: red;
3
- height: 300px;
4
+
5
+ .nf-form-item {
6
+ margin-bottom: 2px;
7
+ .el-form-item__label {
8
+ padding: 0;
9
+ }
10
+ &.nf-search-form-nf-form-item-btn-box-label {
11
+ .el-form-item__content {
12
+ //height: 40px;
13
+ > div {
14
+ //height: 40px;
15
+ }
16
+ .nf-flex-align-items-start {
17
+ .nf-btn-search {
18
+ margin-top: 8px;
19
+ }
20
+ .nf-btn-export {
21
+ margin-top: 8px;
22
+ }
23
+ .nf-btn-reset {
24
+ margin-top: 8px;
25
+ }
26
+ .nf-btn-check {
27
+ margin-top: 8px;
28
+ }
29
+ }
30
+ }
31
+ .el-form-item__label {
32
+ opacity: 0;
33
+ }
34
+ }
35
+ }
36
+ .nf-search-form-nf-form-item {
37
+ position: relative;
38
+
39
+ .nf-search-form-nf-form-item-close-icon{
40
+ position: absolute;
41
+ top: -8px;
42
+ right: -8px;
43
+ line-height: 1;
44
+ font-size: 16px;
45
+ cursor: pointer;
46
+ display: none;
47
+ }
48
+ &:hover{
49
+ .nf-search-form-nf-form-item-close-icon{
50
+ display: block;
51
+ }
52
+ }
53
+ }
54
+ .nf-search-form-item {
55
+
56
+ .nf-time-range {
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ .nf-time-range-el-time-select {
61
+ width: calc(50% - 7px);
62
+ .el-input__inner{
63
+ padding-right: 5px;
64
+ }
65
+ }
66
+ .symbol{
67
+ width: 15px;
68
+ text-align: center;
69
+ }
70
+ }
71
+ .nf-number-range {
72
+ display: flex;
73
+ align-items: center;
74
+ justify-content: center;
75
+
76
+ &.is-error {
77
+ .nf-number-range-el-input-number {
78
+ input {
79
+ border-color: #f56c6c;
80
+ }
81
+ }
82
+ }
83
+
84
+ .nf-number-range-el-input-number {
85
+ width: 80px;
86
+ }
87
+
88
+ .symbol {
89
+ width: 30px;
90
+ text-align: center;
91
+ }
92
+ }
93
+ .form-item{
94
+ display: flex;
95
+ align-items: center;
96
+ .el-input-number.is-controls-right {
97
+ .el-input-number__decrease {
98
+ display: none;
99
+ }
100
+
101
+ .el-input-number__increase {
102
+ display: none;
103
+ top: 2px;
104
+ }
105
+
106
+ &:hover {
107
+ .el-input-number__decrease {
108
+ display: inline-block;
109
+ }
110
+
111
+ .el-input-number__increase {
112
+ display: inline-block;
113
+ }
114
+ }
115
+
116
+ .el-input__inner {
117
+ text-align: left;
118
+ padding-left: 5px;
119
+ padding-right: 40px;
120
+ }
121
+ }
122
+
123
+ // el-date-picker datetimerange
124
+ .el-date-editor.el-date-editor--datetimerange {
125
+ .el-range-separator {
126
+ width: 24px;
127
+ color: #999;
128
+ padding: 0;
129
+ }
130
+
131
+ .el-range__icon {
132
+ margin-left: 0;
133
+ }
134
+
135
+ &.el-input__inner {
136
+ vertical-align: middle;
137
+ padding: 3px 5px;
138
+ width: 100%;
139
+ }
140
+
141
+ &.el-range-editor--medium {
142
+ width: 380px;
143
+
144
+ .el-range-separator {
145
+ line-height: 30px;
146
+ }
147
+ }
148
+ }
149
+
150
+ // el-date-picker not datetimerange
151
+ .el-date-editor {
152
+ .el-input__prefix {
153
+ left: 0;
154
+ top: 1px;
155
+ }
156
+
157
+ .el-input__suffix {
158
+ right: 0;
159
+ top: 1px;
160
+ }
161
+
162
+ .el-input__inner {
163
+ padding: 0 25px;
164
+ }
165
+
166
+ &.el-input--medium {
167
+ width: 195px;
168
+ }
169
+ }
170
+
171
+ // input padding
172
+ .el-input__inner {
173
+ padding: 0 5px;
174
+ }
175
+
176
+ .form-item-select {
177
+ .el-select__tags>span {
178
+ display: flex;
179
+
180
+ .el-tag--light {
181
+ .el-select__tags-text {
182
+ display: inline-block;
183
+ max-width: 125px;
184
+ text-overflow: ellipsis;
185
+ white-space: nowrap;
186
+ overflow: hidden;
187
+ }
188
+
189
+ .el-tag__close.el-icon-close {
190
+ top: -6px;
191
+ }
192
+ }
193
+ }
194
+ }
195
+ }
196
+ }
197
+ .el-form {
198
+ .el-form-item__label {
199
+ padding-right: 0;
200
+ }
201
+ .el-form-item {
202
+ &.is-error {
203
+ margin-bottom: 22px;
204
+ }
205
+ &.vertical-bottom{
206
+ vertical-align: bottom;
207
+ }
208
+ }
209
+
210
+ .form-item {
211
+ >.el-input:not(.el-date-editor) {
212
+ }
213
+ }
214
+ .el-select {
215
+ width: 100%;
216
+ }
217
+ .el-cascader {
218
+ width: 100%;
219
+ }
220
+ }
4
221
  }
222
+
223
+ .nf-search-form-nf-column-check-dialog {
224
+ .el-dialog__body {
225
+ padding: 16px;
226
+ }
227
+ .el-dialog__footer {
228
+ padding: 0 0 0 0;
229
+ .nf-search-form-nf-column-check-dialog-button-confirm {
230
+ margin-right: 16px;
231
+ }
232
+ .nf-search-form-nf-column-check-dialog-button-cancel {
233
+
234
+ }
235
+ }
236
+ .el-dialog__header {
237
+ border-bottom: 1px solid #EBEEF5;
238
+ }
239
+ .nf-search-form-nf-column-check-dialog-button-container {
240
+ border-top: 1px solid #EBEEF5;
241
+ height: 64px;
242
+ line-height: 64px;
243
+ }
244
+ .nf-search-form-nf-column-check-dialog-check-content {
245
+ padding: 0 12px;
246
+ .nf-check-item {
247
+ margin-bottom: 12px;
248
+ .nf-check-title {
249
+ font-size: 16px;
250
+ font-weight: bold;
251
+ padding: 10px 0;
252
+ }
253
+ .nf-check-box {
254
+ padding: 5px;
255
+ width: 33.3%;
256
+ margin-right: 0;
257
+ box-sizing: border-box;
258
+ .el-checkbox__label {
259
+ overflow: hidden;
260
+ text-overflow: ellipsis;
261
+ width: calc(100% - 22px);
262
+ vertical-align: middle;
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+
package/lib/nf-table.scss CHANGED
@@ -1,4 +1,143 @@
1
+ @use './base.scss';
2
+
1
3
  .nf-table {
2
- background-color: red;
3
- height: 300px;
4
+ position: relative;
5
+ display: flex;
6
+ flex-direction: column;
7
+
8
+ >.nf-table-content {
9
+ flex: 1;
10
+ min-height: 0;
11
+ display: flex;
12
+ flex-direction: column;
13
+ >.nf-column-display {
14
+ position: absolute;
15
+ top: 0;
16
+ right: 0;
17
+ }
18
+ >.nf-table-container {
19
+ flex: 1;
20
+ min-height: 0;
21
+ &.nf-default-table-border {
22
+ &.el-table--border {
23
+ border: none;
24
+ td {
25
+ border: none;
26
+ }
27
+ .el-table__header {
28
+ background: #F5F7FA;
29
+ th {
30
+ background: #F5F7FA;
31
+ border-right-color: transparent;
32
+ &:last-child{
33
+ .cell {
34
+ &::after {
35
+ display: none;
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ .el-table__header {
43
+ background: #F5F7FA;
44
+ th {
45
+ user-select: auto;
46
+ padding: 0;
47
+ &:not(th:nth-last-child(1)) {
48
+ border: none;
49
+ }
50
+ .cell {
51
+ position: relative;
52
+ font-size: 14px;
53
+ color: #303133;
54
+ font-weight: 600;
55
+ padding: 0;
56
+
57
+ &::after {
58
+ position: absolute;
59
+ content: "";
60
+ display: block;
61
+ right: 0;
62
+ top: 50%;
63
+ transform: translateY(-50%);
64
+ width: 2px;
65
+ height: 16px;
66
+ background-color: #E9EBF0;
67
+ }
68
+ }
69
+ &:nth-last-child(2),&:nth-last-child(1) {
70
+ .cell {
71
+ &::after {
72
+ display: none;
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+
79
+ }
80
+
81
+ }
82
+ }
83
+ >.nf-action-box {
84
+ padding: 16px 0 0 16px;
85
+ border-top: none;
86
+ >.nf-pagination-box {
87
+ text-align: center;
88
+ }
89
+ }
90
+ }
4
91
  }
92
+
93
+
94
+ .nf-table-nf-column-check-dialog {
95
+ .el-dialog__body {
96
+ padding: 16px;
97
+ }
98
+ .el-dialog__footer {
99
+ padding: 0 0 0 0;
100
+ .nf-table-nf-column-check-dialog-button-confirm {
101
+ margin-right: 16px;
102
+ }
103
+ .nf-table-nf-column-check-dialog-button-cancel {
104
+
105
+ }
106
+ }
107
+ .el-dialog__header {
108
+ border-bottom: 1px solid #EBEEF5;
109
+ }
110
+ .nf-table-nf-column-check-dialog-button-container {
111
+ border-top: 1px solid #EBEEF5;
112
+ height: 64px;
113
+ line-height: 64px;
114
+ }
115
+ .nf-table-nf-column-check-dialog-check-content {
116
+ padding: 0 12px;
117
+ .nf-check-item {
118
+ margin-bottom: 12px;
119
+ .nf-check-title {
120
+ font-size: 16px;
121
+ font-weight: bold;
122
+ padding: 10px 0;
123
+ }
124
+ .nf-check-box {
125
+ padding: 5px;
126
+ width: 33.3%;
127
+ margin-right: 0;
128
+ box-sizing: border-box;
129
+ .el-checkbox__label {
130
+ overflow: hidden;
131
+ text-overflow: ellipsis;
132
+ width: calc(100% - 22px);
133
+ vertical-align: middle;
134
+ }
135
+ }
136
+ }
137
+ }
138
+
139
+ }
140
+
141
+
142
+
143
+
@@ -0,0 +1,29 @@
1
+ .nf-text-overflow {
2
+ font-size: 12px;
3
+ font-weight: 400;
4
+ line-height: 20px;
5
+
6
+ .nf-text-overflow__content {
7
+ margin-bottom: 6px;
8
+ color: rgba(0,0,0,0.85);
9
+ }
10
+
11
+ .nf-text-overflow__action {
12
+ color: rgba(0,0,0,0.45);
13
+ line-height: 18px;
14
+ padding: 3px 4px;
15
+ display: inline-flex;
16
+ align-items: center;
17
+ cursor: pointer;
18
+
19
+ &:hover {
20
+ color: #1177FF;
21
+ background-color: #EBEEF5;
22
+ }
23
+
24
+ .nf-text-overflow__icon {
25
+ margin-left: 4px;
26
+ font-size: 16px;
27
+ }
28
+ }
29
+ }
@@ -1,82 +0,0 @@
1
- .nf-year-date-range-picker {
2
- .nf-year-table {
3
- font-size: 12px;
4
- margin: -1px;
5
- border-collapse: collapse;
6
-
7
- td.in-range {
8
- text-align: center;
9
- padding: 8px 0px;
10
- cursor: pointer;
11
- & div {
12
- height: 48px;
13
- padding: 6px 0;
14
- box-sizing: border-box;
15
- }
16
- &.today {
17
- .cell {
18
- color: #409EFF;
19
- font-weight: bold;
20
- }
21
- &.start-date .cell,
22
- &.end-date .cell {
23
- color: #FFFFFF;
24
- }
25
- }
26
-
27
- &.disabled .cell {
28
- background-color: #F5F7FA;
29
- cursor: not-allowed;
30
- color: #C0C4CC;
31
-
32
- &:hover {
33
- color: #C0C4CC;
34
- }
35
- }
36
-
37
- .cell {
38
- width: 60px;
39
- height: 36px;
40
- display: block;
41
- line-height: 36px;
42
- color: #606266;
43
- margin: 0 auto;
44
- border-radius: 18px;
45
- &:hover {
46
- color: #409EFF;
47
- }
48
- }
49
-
50
- &.in-range div {
51
- background-color: #F2F6FC;
52
- &:hover {
53
- background-color: #F2F6FC;
54
- }
55
- }
56
- &.start-date div,
57
- &.end-date div {
58
- color: #FFFFFF;
59
- }
60
-
61
- &.start-date .cell,
62
- &.end-date .cell {
63
- color: #FFFFFF;
64
- background-color: #409EFF;
65
- }
66
-
67
- &.start-date div {
68
- border-top-left-radius: 24px;
69
- border-bottom-left-radius: 24px;
70
- }
71
-
72
- &.end-date div {
73
- border-top-right-radius: 24px;
74
- border-bottom-right-radius: 24px;
75
- }
76
-
77
- &.current:not(.disabled) .cell {
78
- color: #409EFF;
79
- }
80
- }
81
- }
82
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-theme-oem",
3
- "version": "3.1.28",
3
+ "version": "3.1.31",
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": "66c26cc06909da195767fc8a4cc59800eb5ba789"
33
+ "gitHead": "02e1666730c7a3450ce803ef411297377b288321"
34
34
  }