@jiaozhiye/qm-design-react 1.11.1 → 1.11.3

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 (53) hide show
  1. package/lib/_utils/util.d.ts +2 -2
  2. package/lib/form/style/index.less +3 -1
  3. package/lib/index.d.ts +4 -0
  4. package/lib/index.esm.js +1 -1
  5. package/lib/index.full.js +1 -1
  6. package/lib/index.js +1 -1
  7. package/lib/locale/lang/en.d.ts +4 -4
  8. package/lib/locale/lang/en.js +4 -4
  9. package/lib/locale/lang/zh-cn.d.ts +4 -4
  10. package/lib/locale/lang/zh-cn.js +4 -4
  11. package/lib/pivot-grid/src/config/index.d.ts +2 -5
  12. package/lib/pivot-grid/src/grid-layout/Context.d.ts +5 -2
  13. package/lib/pivot-grid/src/grid-layout/CountPanel.d.ts +2 -0
  14. package/lib/pivot-grid/src/grid-layout/GroupCard.d.ts +2 -1
  15. package/lib/pivot-grid/src/main/Context.d.ts +6 -2
  16. package/lib/pivot-grid/src/utils/index.d.ts +30 -1
  17. package/lib/pivot-grid/style/grid-layout.less +36 -31
  18. package/lib/pivot-grid/style/top-bar.less +34 -3
  19. package/lib/pivot-grid/style/variable.less +0 -2
  20. package/lib/scrollbar/src/scrollbar.d.ts +1 -0
  21. package/lib/scrollbar/style/index.less +1 -0
  22. package/lib/style/index.css +113 -34
  23. package/lib/style/index.less +2 -1
  24. package/lib/style/index.min.css +1 -1
  25. package/lib/table/src/body/DraggableTr.d.ts +2 -1
  26. package/lib/table/src/body/index.d.ts +2 -6
  27. package/lib/table/src/config/index.d.ts +1 -0
  28. package/lib/table/src/context/index.d.ts +3 -8
  29. package/lib/table/src/export/useExport.d.ts +1 -1
  30. package/lib/table/src/footer/index.d.ts +1 -4
  31. package/lib/table/src/header/index.d.ts +1 -3
  32. package/lib/table/src/hooks/useImperativeMethod.d.ts +0 -1
  33. package/lib/table/src/hooks/useTableCore.d.ts +3 -17
  34. package/lib/table/src/hooks/useTableEffect.d.ts +0 -2
  35. package/lib/table/src/hooks/useTableLayout.d.ts +3 -15
  36. package/lib/table/src/hooks/useTableMemo.d.ts +1 -3
  37. package/lib/table/src/hooks/useTableRef.d.ts +4 -33
  38. package/lib/table/src/hooks/useTableState.d.ts +5 -14
  39. package/lib/table/src/hooks/useTableVirtual.d.ts +17 -0
  40. package/lib/table/src/table/props.d.ts +0 -1
  41. package/lib/table/src/table/types.d.ts +3 -2
  42. package/lib/table/style/body.less +103 -103
  43. package/lib/table/style/column-filter.less +5 -5
  44. package/lib/table/style/index.less +31 -31
  45. package/lib/table/style/pivot-grid.less +19 -19
  46. package/lib/virtual-list/index.d.ts +3 -0
  47. package/lib/virtual-list/src/core.d.ts +133 -0
  48. package/lib/virtual-list/src/list-item.d.ts +9 -0
  49. package/lib/virtual-list/src/useVirtual.d.ts +5 -0
  50. package/lib/virtual-list/src/utils.d.ts +12 -0
  51. package/lib/virtual-list/src/virtual-list.d.ts +20 -0
  52. package/lib/virtual-list/style/index.less +21 -0
  53. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  * @Author: 焦质晔
3
3
  * @Date: 2021-07-23 18:23:59
4
4
  * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-11-28 20:01:15
5
+ * @Last Modified time: 2024-12-02 09:06:40
6
6
  */
7
7
  /*
8
8
  * @Author: 焦质晔
@@ -27492,6 +27492,7 @@ body {
27492
27492
  .qm-scrollbar__wrap {
27493
27493
  display: grid;
27494
27494
  height: 100%;
27495
+ max-height: inherit;
27495
27496
  overflow: auto;
27496
27497
  }
27497
27498
  .qm-scrollbar__wrap--hidden {
@@ -28143,6 +28144,10 @@ body {
28143
28144
  .qm-form-region-select--sm {
28144
28145
  padding: 15px 10px 5px !important;
28145
28146
  }
28147
+ .qm-form-fields-filter {
28148
+ min-width: 160px;
28149
+ max-width: 220px;
28150
+ }
28146
28151
  .qm-form-fields-filter .reset {
28147
28152
  padding-bottom: 2px;
28148
28153
  margin-bottom: 4px;
@@ -28159,7 +28164,7 @@ body {
28159
28164
  margin: 0;
28160
28165
  }
28161
28166
  .qm-form-fields-filter .fields-list ul li.item {
28162
- line-height: 1.75;
28167
+ line-height: 1.85;
28163
28168
  overflow: hidden;
28164
28169
  text-overflow: ellipsis;
28165
28170
  white-space: nowrap;
@@ -29193,13 +29198,13 @@ body {
29193
29198
  }
29194
29199
  .column-filter__popper {
29195
29200
  padding: 0 !important;
29196
- min-width: 150px;
29197
- max-width: 200px;
29201
+ min-width: 160px;
29202
+ max-width: 220px;
29198
29203
  }
29199
29204
  .column-item__popper {
29200
29205
  padding-right: 10px !important;
29201
- min-width: 150px;
29202
- max-width: 200px;
29206
+ min-width: 160px;
29207
+ max-width: 220px;
29203
29208
  }
29204
29209
  .column-item__popper .ant-popover-arrow {
29205
29210
  display: none;
@@ -29216,7 +29221,7 @@ body {
29216
29221
  .column-filter__popper .column-filter--wrap li.item,
29217
29222
  .column-item__popper .column-filter--wrap li.item {
29218
29223
  position: relative;
29219
- line-height: 1.75;
29224
+ line-height: 1.85;
29220
29225
  overflow: hidden;
29221
29226
  text-overflow: ellipsis;
29222
29227
  white-space: nowrap;
@@ -31009,17 +31014,17 @@ body {
31009
31014
  * @Author: 焦质晔
31010
31015
  * @Date: 2022-03-16 19:05:30
31011
31016
  * @Last Modified by: 焦质晔
31012
- * @Last Modified time: 2024-11-29 10:34:35
31017
+ * @Last Modified time: 2024-12-04 09:17:17
31013
31018
  */
31014
31019
  .button-icon {
31015
- display: inline-block;
31020
+ display: inline-flex;
31016
31021
  text-align: center;
31017
31022
  text-transform: none;
31018
31023
  text-decoration: none;
31019
31024
  background: transparent;
31020
31025
  border: 0;
31021
31026
  outline: 0;
31022
- line-height: 0;
31027
+ line-height: 1;
31023
31028
  padding: 5px;
31024
31029
  color: rgba(0, 0, 0, 0.45);
31025
31030
  border-radius: 4px;
@@ -31032,6 +31037,10 @@ body {
31032
31037
  .qm-pivot-grid__popper .container {
31033
31038
  padding: 6px 15px;
31034
31039
  }
31040
+ .qm-pivot-grid__popper .container.scroll-y {
31041
+ overflow-y: auto;
31042
+ max-height: calc(100vh - 10px);
31043
+ }
31035
31044
  .qm-pivot-grid__popper .container > .label {
31036
31045
  display: flex;
31037
31046
  justify-content: space-between;
@@ -31071,6 +31080,33 @@ body {
31071
31080
  color: #1890ff;
31072
31081
  display: none;
31073
31082
  }
31083
+ .qm-pivot-grid__popper .container > .list li.sort-item {
31084
+ display: flex;
31085
+ align-items: center;
31086
+ border-radius: 4px;
31087
+ transition: none;
31088
+ }
31089
+ .qm-pivot-grid__popper .container > .list li.sort-item .handle {
31090
+ padding: 5px 6px 5px 2px;
31091
+ color: rgba(0, 0, 0, 0.45);
31092
+ cursor: s-resize;
31093
+ }
31094
+ .qm-pivot-grid__popper .container > .list li.sort-item .label {
31095
+ flex: 1 0;
31096
+ display: inline-flex;
31097
+ align-items: center;
31098
+ }
31099
+ .qm-pivot-grid__popper .container > .list li.sort-item .label .title {
31100
+ flex: 1 0;
31101
+ }
31102
+ .qm-pivot-grid__popper .container > .list li.divider {
31103
+ padding: 6px;
31104
+ }
31105
+ .qm-pivot-grid__popper .container > .list li.divider::after {
31106
+ content: '';
31107
+ display: block;
31108
+ border-top: 1px solid #e8e8e8;
31109
+ }
31074
31110
  .qm-pivot-grid__popper .container > .add-record {
31075
31111
  display: flex;
31076
31112
  justify-content: space-between;
@@ -31101,7 +31137,7 @@ body {
31101
31137
  * @Author: 焦质晔
31102
31138
  * @Date: 2022-03-16 19:05:30
31103
31139
  * @Last Modified by: 焦质晔
31104
- * @Last Modified time: 2024-11-29 13:20:19
31140
+ * @Last Modified time: 2024-12-02 20:51:13
31105
31141
  */
31106
31142
  .qm-pivot-grid__layout {
31107
31143
  box-sizing: border-box;
@@ -31116,10 +31152,7 @@ body {
31116
31152
  }
31117
31153
  .qm-pivot-grid__layout .header,
31118
31154
  .qm-pivot-grid__layout .footer {
31119
- overflow: hidden;
31120
- background-color: #fff;
31121
31155
  border: 1px solid #e8e8e8;
31122
- border-radius: 6px;
31123
31156
  }
31124
31157
  .qm-pivot-grid__layout .header .table,
31125
31158
  .qm-pivot-grid__layout .footer .table {
@@ -31146,7 +31179,7 @@ body {
31146
31179
  .qm-pivot-grid__layout .header {
31147
31180
  position: sticky;
31148
31181
  top: 0;
31149
- z-index: 1;
31182
+ z-index: 2;
31150
31183
  }
31151
31184
  .qm-pivot-grid__layout .header .resize-bar {
31152
31185
  position: absolute;
@@ -31163,9 +31196,8 @@ body {
31163
31196
  }
31164
31197
  .qm-pivot-grid__layout .body .group-card {
31165
31198
  margin: 15px 0;
31166
- border: 1px solid #e8e8e8;
31167
- border-radius: 6px;
31168
31199
  background-color: #fff;
31200
+ border: 1px solid #e8e8e8;
31169
31201
  }
31170
31202
  .qm-pivot-grid__layout .body .group-card.inner {
31171
31203
  margin: 0 12px 12px;
@@ -31181,6 +31213,7 @@ body {
31181
31213
  align-self: stretch;
31182
31214
  display: inline-flex;
31183
31215
  align-items: center;
31216
+ background-color: #fff;
31184
31217
  border-bottom: 1px solid #e8e8e8;
31185
31218
  }
31186
31219
  .qm-pivot-grid__layout .body .group-card .label-row .label-cell.expandable-column {
@@ -31192,23 +31225,28 @@ body {
31192
31225
  .qm-pivot-grid__layout .body .group-card .label-row .label-cell.expandable-column .button-icon.expand > .anticon {
31193
31226
  transform: rotate(90deg);
31194
31227
  }
31228
+ .qm-pivot-grid__layout .body .group-card .label-row .label-cell.col--fix-left {
31229
+ position: sticky;
31230
+ z-index: 1;
31231
+ }
31232
+ .qm-pivot-grid__layout .body .group-card .label-row .label-cell .title {
31233
+ flex-shrink: 0;
31234
+ margin-right: 20px;
31235
+ }
31195
31236
  .qm-pivot-grid__layout .body .group-card .grid-list {
31196
31237
  margin: 0;
31197
31238
  border: 0;
31198
- border-radius: 0;
31199
31239
  background: transparent;
31200
31240
  }
31201
31241
  .qm-pivot-grid__layout .body .grid-list {
31202
31242
  margin: 15px 0;
31203
31243
  border: 1px solid #e8e8e8;
31204
- border-radius: 6px;
31205
- background-color: #fff;
31206
31244
  }
31207
31245
  .qm-pivot-grid__layout .body .grid-list .table-row {
31208
31246
  display: flex;
31209
31247
  align-items: center;
31210
31248
  }
31211
- .qm-pivot-grid__layout .body .grid-list .table-row:hover {
31249
+ .qm-pivot-grid__layout .body .grid-list .table-row:hover .table-cell {
31212
31250
  background-color: #f5f5f5;
31213
31251
  }
31214
31252
  .qm-pivot-grid__layout .body .grid-list .table-row:hover .table-cell .order {
@@ -31230,30 +31268,40 @@ body {
31230
31268
  align-self: stretch;
31231
31269
  display: inline-flex;
31232
31270
  align-items: center;
31233
- border-right: 1px solid #e8e8e8;
31234
31271
  border-bottom: 1px solid #e8e8e8;
31235
31272
  }
31236
- .qm-pivot-grid__layout .body .grid-list .table-row .table-cell:last-child {
31273
+ .qm-pivot-grid__layout .footer {
31274
+ position: sticky;
31275
+ bottom: 0;
31276
+ z-index: 2;
31277
+ }
31278
+ .qm-pivot-grid__layout .header .table-cell,
31279
+ .qm-pivot-grid__layout .body .table-cell,
31280
+ .qm-pivot-grid__layout .footer .table-cell {
31281
+ background-color: #fff;
31282
+ border-right: 1px solid #e8e8e8;
31283
+ }
31284
+ .qm-pivot-grid__layout .header .table-cell:last-child,
31285
+ .qm-pivot-grid__layout .body .table-cell:last-child,
31286
+ .qm-pivot-grid__layout .footer .table-cell:last-child {
31237
31287
  border-right: 0;
31238
31288
  }
31239
- .qm-pivot-grid__layout .body .grid-list .table-row .table-cell.selection-column {
31289
+ .qm-pivot-grid__layout .header .table-cell.selection-column,
31290
+ .qm-pivot-grid__layout .body .table-cell.selection-column,
31291
+ .qm-pivot-grid__layout .footer .table-cell.selection-column {
31240
31292
  justify-content: center;
31241
31293
  border-right-color: transparent;
31242
31294
  }
31243
- .qm-pivot-grid__layout .body .grid-list .table-row .table-cell .order {
31295
+ .qm-pivot-grid__layout .header .table-cell .order,
31296
+ .qm-pivot-grid__layout .body .table-cell .order,
31297
+ .qm-pivot-grid__layout .footer .table-cell .order {
31244
31298
  display: inline-block;
31245
31299
  }
31246
- .qm-pivot-grid__layout .body .grid-list .table-row .table-cell .checkbox {
31300
+ .qm-pivot-grid__layout .header .table-cell .checkbox,
31301
+ .qm-pivot-grid__layout .body .table-cell .checkbox,
31302
+ .qm-pivot-grid__layout .footer .table-cell .checkbox {
31247
31303
  display: none;
31248
31304
  }
31249
- .qm-pivot-grid__layout .body .grid-list .table-row:last-child .table-cell {
31250
- border-bottom: 0;
31251
- }
31252
- .qm-pivot-grid__layout .footer {
31253
- position: sticky;
31254
- bottom: 0;
31255
- z-index: 1;
31256
- }
31257
31305
  .qm-pivot-grid__layout .header .table-cell.col--center,
31258
31306
  .qm-pivot-grid__layout .body .table-cell.col--center,
31259
31307
  .qm-pivot-grid__layout .footer .table-cell.col--center {
@@ -31266,6 +31314,12 @@ body {
31266
31314
  text-align: right !important;
31267
31315
  justify-content: flex-end;
31268
31316
  }
31317
+ .qm-pivot-grid__layout .header .table-cell.col--fix-left,
31318
+ .qm-pivot-grid__layout .body .table-cell.col--fix-left,
31319
+ .qm-pivot-grid__layout .footer .table-cell.col--fix-left {
31320
+ position: sticky;
31321
+ z-index: 1;
31322
+ }
31269
31323
  .qm-pivot-grid__layout .header .table-cell .cell,
31270
31324
  .qm-pivot-grid__layout .body .table-cell .cell,
31271
31325
  .qm-pivot-grid__layout .footer .table-cell .cell {
@@ -31274,6 +31328,9 @@ body {
31274
31328
  white-space: nowrap;
31275
31329
  padding: 0 8px;
31276
31330
  }
31331
+ .qm-pivot-grid__layout .header .label-cell:hover .count-select,
31332
+ .qm-pivot-grid__layout .body .label-cell:hover .count-select,
31333
+ .qm-pivot-grid__layout .footer .label-cell:hover .count-select,
31277
31334
  .qm-pivot-grid__layout .header .table-cell:hover .count-select,
31278
31335
  .qm-pivot-grid__layout .body .table-cell:hover .count-select,
31279
31336
  .qm-pivot-grid__layout .footer .table-cell:hover .count-select {
@@ -31342,3 +31399,25 @@ body {
31342
31399
  .qm-pivot-grid__layout.large .body .group-card > li {
31343
31400
  height: 42px;
31344
31401
  }
31402
+ /*
31403
+ * @Author: 焦质晔
31404
+ * @Date: 2024-12-02 09:06:20
31405
+ * @Last Modified by: 焦质晔
31406
+ * @Last Modified time: 2024-12-02 13:16:55
31407
+ */
31408
+ .qm-virtual-list {
31409
+ box-sizing: border-box;
31410
+ margin: 0;
31411
+ padding: 0;
31412
+ color: rgba(0, 0, 0, 0.85);
31413
+ font-variant: tabular-nums;
31414
+ line-height: 1.5715;
31415
+ list-style: none;
31416
+ font-feature-settings: 'tnum';
31417
+ }
31418
+ .qm-virtual-list .container {
31419
+ display: block;
31420
+ }
31421
+ .qm-virtual-list .container ul li.list-item {
31422
+ list-style: none;
31423
+ }
@@ -2,7 +2,7 @@
2
2
  * @Author: 焦质晔
3
3
  * @Date: 2021-07-23 18:23:59
4
4
  * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-11-28 20:01:15
5
+ * @Last Modified time: 2024-12-02 09:06:40
6
6
  */
7
7
  @import '../antd/index.less';
8
8
  @import './var.less';
@@ -40,3 +40,4 @@
40
40
  @import '../lazy-load/style/index.less';
41
41
  @import '../signature/style/index.less';
42
42
  @import '../pivot-grid/style/index.less';
43
+ @import '../virtual-list/style/index.less';