@aplus-frontend/ui 0.4.34 → 0.4.35

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 (31) hide show
  1. package/es/src/ap-form/search-form/index.vue.mjs +14 -15
  2. package/es/src/ap-modal/enums/modalMessage.d.ts +6 -0
  3. package/es/src/ap-modal/enums/modalMessage.mjs +4 -0
  4. package/es/src/ap-modal/index.d.ts +2 -1
  5. package/es/src/ap-modal/index.mjs +2 -0
  6. package/es/src/ap-modal/interface.d.ts +126 -1
  7. package/es/src/ap-modal/utils/createModalStream.d.ts +2 -0
  8. package/es/src/ap-modal/utils/createModalStream.mjs +99 -0
  9. package/es/src/ap-modal/utils/index.d.ts +1 -0
  10. package/es/src/ap-modal/utils/index.mjs +4 -2
  11. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +4 -7
  12. package/es/src/ap-table/utils.d.ts +1 -4
  13. package/es/src/ap-table/utils.mjs +43 -41
  14. package/es/src/business/ap-attachment/ApAttachment.mjs +13 -13
  15. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  16. package/lib/src/ap-modal/enums/modalMessage.d.ts +6 -0
  17. package/lib/src/ap-modal/enums/modalMessage.js +1 -0
  18. package/lib/src/ap-modal/index.d.ts +2 -1
  19. package/lib/src/ap-modal/index.js +1 -1
  20. package/lib/src/ap-modal/interface.d.ts +126 -1
  21. package/lib/src/ap-modal/utils/createModalStream.d.ts +2 -0
  22. package/lib/src/ap-modal/utils/createModalStream.js +1 -0
  23. package/lib/src/ap-modal/utils/index.d.ts +1 -0
  24. package/lib/src/ap-modal/utils/index.js +1 -1
  25. package/lib/src/ap-table/components/dynamic-component/index.vue2.js +1 -1
  26. package/lib/src/ap-table/utils.d.ts +1 -4
  27. package/lib/src/ap-table/utils.js +1 -1
  28. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  29. package/package.json +4 -4
  30. package/theme/ap-grid/index.css +302 -0
  31. package/theme/ap-grid/index.less +65 -0
@@ -0,0 +1,302 @@
1
+ .aplus-ap-form-item-group .ant-form-item-control .ant-picker {
2
+ display: flex;
3
+ }
4
+ .aplus-ap-form-item-group .ant-form-item-control .ant-input-number {
5
+ width: 100%;
6
+ }
7
+ .aplus-ap-form-item-group-col-hidden {
8
+ display: none !important;
9
+ }
10
+ .aplus-ap-form-item--bordered {
11
+ box-sizing: border-box;
12
+ border: 1px solid var(--ap-form-bordered-border-color-base, #DEE4ED);
13
+ border-radius: 4px;
14
+ padding-inline: 12px;
15
+ }
16
+ .aplus-ap-form-item--bordered .ant-input-affix-wrapper {
17
+ padding: 0;
18
+ }
19
+ .aplus-ap-form-item--bordered .ant-input {
20
+ padding: 0;
21
+ }
22
+ .aplus-ap-form-item--bordered .ant-input-number-input {
23
+ padding: 0;
24
+ }
25
+ .aplus-ap-form-item--bordered .ant-picker {
26
+ padding: 0;
27
+ }
28
+ .aplus-ap-form-item--bordered .ant-form-item-control-input-content > .ant-input-group > .ant-picker-range:nth-child(1) .ant-picker-clear {
29
+ inset-inline-end: 0;
30
+ }
31
+ .aplus-ap-form-item--bordered .ant-space-compact-block .ant-input {
32
+ padding-left: 11px;
33
+ }
34
+ .aplus-ap-form-item--bordered .ant-select-selector {
35
+ border-width: 0 !important;
36
+ box-shadow: none !important;
37
+ }
38
+ .aplus-ap-form-item--bordered .ant-select-single .ant-select-selector {
39
+ height: 30px !important;
40
+ }
41
+ .aplus-ap-form-item--bordered:has(.ant-select) {
42
+ padding-right: 0px;
43
+ }
44
+ .aplus-ap-form-item--bordered .ant-form-item-label > label {
45
+ padding-right: 16px;
46
+ height: 30px;
47
+ }
48
+ .aplus-ap-form-item--bordered .ant-form-item-label > label::after {
49
+ margin: 0;
50
+ }
51
+ .aplus-ap-form-item--bordered .ant-form-item-control-input {
52
+ min-height: 30px;
53
+ }
54
+ .aplus-ap-form-item--bordered:hover {
55
+ border-color: var(--ap-form-bordered-border-color-hover, #66a9ff);
56
+ }
57
+ .aplus-ap-form-item--bordered:focus {
58
+ border-color: var(--ap-form-bordered-border-color-active, #66a9ff);
59
+ box-shadow: 0 0 0 2px var(--ap-form-bordered-shadow-color, rgba(5, 155, 255, 0.1));
60
+ }
61
+ .aplus-ap-form-item--bordered .aplus-batch-input-group-popover-input__popover {
62
+ width: calc(100% + 12px);
63
+ }
64
+ .aplus-ap-form-item--focused {
65
+ border-color: var(--ap-form-bordered-border-color-active, #66a9ff);
66
+ box-shadow: 0 0 0 2px var(--ap-form-bordered-shadow-color, rgba(5, 155, 255, 0.1));
67
+ }
68
+ .aplus-ap-form-item .ant-form-show-help .ant-form-item-explain-error {
69
+ font-size: 12px;
70
+ line-height: 18px;
71
+ margin-top: 2px;
72
+ }
73
+ .aplus-ap-form-item .ant-col .ant-form-item-extra {
74
+ line-height: 22px;
75
+ min-height: unset;
76
+ margin-top: 4px;
77
+ margin-bottom: 12px;
78
+ }
79
+ .aplus-ap-form-item .ant-input-group .ant-picker:only-child {
80
+ width: 100%;
81
+ }
82
+ .aplus-ap-form-item .ant-input-group .ant-select + .ant-picker {
83
+ padding-inline: 11px;
84
+ flex: 1;
85
+ }
86
+ .aplus-ap-form-drawer-form__resize-bar {
87
+ width: 4px;
88
+ cursor: ew-resize;
89
+ position: absolute;
90
+ top: 0;
91
+ left: 0;
92
+ bottom: 0;
93
+ z-index: 100;
94
+ background-color: transparent;
95
+ }
96
+ .aplus-ap-form-drawer-form__resize-bar--min-disabled {
97
+ cursor: w-resize;
98
+ }
99
+ .aplus-ap-form-drawer-form__resize-bar--max-disabled {
100
+ cursor: e-resize;
101
+ }
102
+ .aplus-ap-form-modal-form .ant-modal-content {
103
+ padding: 0;
104
+ }
105
+ .aplus-ap-form-modal-form .ant-modal-header {
106
+ padding: 15px 20px;
107
+ border-bottom: 1px solid #E9EDF3;
108
+ margin-bottom: 0;
109
+ }
110
+ .aplus-ap-form-modal-form__content {
111
+ padding: 20px 20px 0px;
112
+ }
113
+ .aplus-ap-form-modal-form__footer {
114
+ padding: 12px 20px;
115
+ }
116
+ .aplus-ap-form-modal-form__footer-admin {
117
+ border-top: 1px solid #E9EDF3;
118
+ }
119
+ .aplus-ap-form-modal-form .ant-modal-close {
120
+ top: 16px;
121
+ }
122
+ .aplus-ap-form-search-form .ant-form-item {
123
+ margin-bottom: 16px;
124
+ }
125
+ .aplus-ap-form-search-form .ant-form-item-control .ant-picker {
126
+ display: flex;
127
+ }
128
+ .aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
129
+ width: 100%;
130
+ }
131
+ .aplus-ap-form-item-text-group-compact .ant-select-focused {
132
+ z-index: 1;
133
+ }
134
+ .aplus-ap-form-item-text-group-compact .ant-select:hover {
135
+ z-index: 1;
136
+ }
137
+ .aplus-ap-form-item-text-group-compact .ant-picker-focused {
138
+ z-index: 1;
139
+ }
140
+ .aplus-ap-form-item-text-group-compact .ant-picker:hover {
141
+ z-index: 1;
142
+ }
143
+ .aplus-ap-form-item-text-group-compact .ant-input-number-focused {
144
+ z-index: 1;
145
+ }
146
+ .aplus-ap-form-item-text-group-compact .ant-input-number:hover {
147
+ z-index: 1;
148
+ }
149
+ .aplus-ap-form-item-text-group-compact .ant-form-item:first-child .ant-form-item-control-input-content > :first-child,
150
+ .aplus-ap-form-item-text-group-compact .ant-form-item:first-child .ant-select-selector {
151
+ border-start-end-radius: 0;
152
+ border-end-end-radius: 0;
153
+ }
154
+ .aplus-ap-form-item-text-group-compact .ant-form-item:first-child .ant-form-item-control-input-content > .ant-input-group > :last-child,
155
+ .aplus-ap-form-item-text-group-compact .ant-form-item:first-child .ant-select-selector {
156
+ border-start-end-radius: 0;
157
+ border-end-end-radius: 0;
158
+ }
159
+ .aplus-ap-form-item-text-group-compact .ant-form-item:last-child .ant-form-item-control-input-content > :first-child,
160
+ .aplus-ap-form-item-text-group-compact .ant-form-item:last-child .ant-select-selector {
161
+ border-start-start-radius: 0;
162
+ border-end-start-radius: 0;
163
+ }
164
+ .aplus-ap-form-item-text-group-compact .ant-form-item:last-child .ant-form-item-control-input-content > .ant-input-group > :first-child,
165
+ .aplus-ap-form-item-text-group-compact .ant-form-item:last-child .ant-select-selector {
166
+ border-start-start-radius: 0;
167
+ border-end-start-radius: 0;
168
+ }
169
+ .aplus-ap-form-item-text-group-compact .ant-form-item:not(:first-child):not(:last-child) .ant-form-item-control-input-content > :first-child,
170
+ .aplus-ap-form-item-text-group-compact .ant-form-item:not(:first-child):not(:last-child) .ant-select-selector {
171
+ border-radius: 0;
172
+ }
173
+ .aplus-ap-form-item-text-group-compact .ant-form-item:not(:first-child):not(:last-child) .ant-form-item-control-input-content > .ant-input-group > *,
174
+ .aplus-ap-form-item-text-group-compact .ant-form-item:not(:first-child):not(:last-child) .ant-select-selector {
175
+ border-radius: 0;
176
+ }
177
+ .aplus-ap-form-item-text-group-compact .ant-input-group-addon:first-child {
178
+ border-radius: 0;
179
+ }
180
+ .ant-form-vertical .ant-input-group.ant-input-group-compact > * {
181
+ vertical-align: bottom;
182
+ }
183
+ .aplus-field-checkbox--vertical {
184
+ display: inline-block;
185
+ }
186
+ .aplus-field-checkbox--vertical label.ant-checkbox-wrapper:not(:last-child) {
187
+ display: flex;
188
+ margin-block-end: 16px;
189
+ }
190
+ .aplus-field-number-label-left {
191
+ padding-right: 4px;
192
+ }
193
+ .aplus-field-number-label-right {
194
+ padding-left: 4px;
195
+ }
196
+ .aplus-field-radio--vertical label.ant-radio-wrapper:not(:last-child) {
197
+ display: flex;
198
+ margin-block-end: 16px;
199
+ }
200
+ .aplus-field-text-area {
201
+ white-space: pre-wrap;
202
+ word-wrap: break-word;
203
+ word-break: break-all;
204
+ }
205
+ .aplus-action-item {
206
+ display: inline-block;
207
+ font-size: 14px;
208
+ line-height: 22px;
209
+ cursor: pointer;
210
+ }
211
+ .aplus-action-item--primary {
212
+ color: var(--ap-action-color-primary-base, #0070FF);
213
+ }
214
+ .aplus-action-item--primary:not(.aplus-action-item--disabled):hover {
215
+ color: var(--ap-action-color-primary-hover, #66A9FF);
216
+ }
217
+ .aplus-action-item--success {
218
+ color: var(--ap-action-color-success, #2ED1A3);
219
+ }
220
+ .aplus-action-item--error {
221
+ color: var(--ap-action-color-error, #FF4D4F);
222
+ }
223
+ .aplus-action-item--warn {
224
+ color: var(--ap-action-color-warn, #FFA940);
225
+ }
226
+ .aplus-action-item--loading {
227
+ opacity: 0.35;
228
+ transition: opacity 0.2s;
229
+ cursor: default;
230
+ }
231
+ .aplus-action-item--loading .btn-loading-icon {
232
+ margin-right: 4px;
233
+ }
234
+ .aplus-action-item--disabled {
235
+ color: #CCE2FF;
236
+ cursor: not-allowed;
237
+ }
238
+ .aplus-action-item-dropdown__item .aplus-action-item {
239
+ width: 100%;
240
+ }
241
+ .aplus-action-item-dropdown__wrapper {
242
+ display: inline-flex;
243
+ flex-direction: row;
244
+ align-items: center;
245
+ }
246
+ .aplus-action-item-dropdown__icon {
247
+ color: #0070ff;
248
+ margin-left: 4px;
249
+ font-size: 14px;
250
+ display: inline-flex;
251
+ }
252
+ .aplus-ap-grid-wrapper {
253
+ padding: 16px;
254
+ background-color: #fff;
255
+ }
256
+ .aplus-ap-grid__search-wrapper {
257
+ padding: 16px;
258
+ padding-bottom: 0;
259
+ background-color: #fff;
260
+ margin-bottom: 10px;
261
+ }
262
+ .aplus-ap-grid__table-wrapper {
263
+ flex: 1;
264
+ max-height: 100%;
265
+ display: flex;
266
+ flex-direction: column;
267
+ }
268
+ .aplus-ap-grid__table-wrapper-card {
269
+ padding: 12px 16px 16px;
270
+ background-color: #fff;
271
+ overflow: hidden;
272
+ }
273
+ .aplus-ap-grid-pagination {
274
+ margin-top: 16px;
275
+ display: flex;
276
+ flex-wrap: wrap;
277
+ row-gap: 8px;
278
+ }
279
+ .aplus-ap-grid-pagination .ant-pagination-total-text {
280
+ flex: 1;
281
+ }
282
+ .aplus-ap-grid-pagination-count-text {
283
+ color: var(--ap-table-pagination-total-count-color, #182948);
284
+ }
285
+ .aplus-ap-grid-pagination--total-right {
286
+ padding-left: 12px;
287
+ }
288
+ .aplus-ap-grid-pagination-total-wrapper {
289
+ color: var(--ap-table-pagination-total-color, #526A90);
290
+ }
291
+ .aplus-ap-grid-table-header__title {
292
+ display: -webkit-inline-box;
293
+ -webkit-line-clamp: 2;
294
+ -webkit-box-orient: vertical;
295
+ overflow: hidden;
296
+ text-overflow: ellipsis;
297
+ white-space: normal;
298
+ max-width: 100%;
299
+ vertical-align: middle;
300
+ word-break: break-all;
301
+ flex: 1;
302
+ }
@@ -0,0 +1,65 @@
1
+ @import '../mixins/mixins.less';
2
+ // 因为在ApTable里面可能会查询表单因此表单和控件的样式最好直接导入
3
+ @import '../ap-form/index.less';
4
+ @import '../ap-field/index.less';
5
+ @import '../ap-action/item.less';
6
+ @import '../ap-action/item-dropdown.less';
7
+
8
+ .b(ap-grid, {
9
+ &-wrapper {
10
+ padding: 16px;
11
+ background-color: #fff;
12
+ }
13
+ &__search-wrapper {
14
+ padding:16px;
15
+ padding-bottom: 0;
16
+ background-color: #fff;
17
+ margin-bottom: 10px;
18
+ }
19
+ &__table-wrapper {
20
+ flex: 1;
21
+ max-height: 100%;
22
+ display: flex;
23
+ flex-direction: column;
24
+ }
25
+ &__table-wrapper-card {
26
+ padding: 12px 16px 16px;
27
+ background-color: #fff;
28
+ overflow: hidden;
29
+ }
30
+ &-pagination {
31
+ margin-top: 16px;
32
+ display: flex;
33
+ flex-wrap: wrap;
34
+ row-gap: 8px;
35
+ .ant-pagination-total-text {
36
+ flex: 1;
37
+ }
38
+ }
39
+ &-pagination-count-text {
40
+ color: var(--ap-table-pagination-total-count-color, #182948);
41
+ }
42
+ &-pagination--total-right {
43
+ padding-left: 12px;
44
+ }
45
+ &-pagination-total-wrapper {
46
+ color: var(--ap-table-pagination-total-color, #526A90);
47
+ }
48
+ &-header-wrapper {
49
+ }
50
+ // ApTable中Table的Header区域
51
+ &-table-header {
52
+ &__title {
53
+ display: -webkit-inline-box;
54
+ -webkit-line-clamp: 2;
55
+ -webkit-box-orient: vertical;
56
+ overflow: hidden;
57
+ text-overflow: ellipsis;
58
+ white-space: normal;
59
+ max-width: 100%;
60
+ vertical-align: middle;
61
+ word-break: break-all;
62
+ flex: 1;
63
+ }
64
+ }
65
+ });