dcp-design-react 1.12.13 → 1.12.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.
@@ -1,4 +1,3 @@
1
- import 'dayjs/locale/zh-cn';
2
1
  export type TranslatePair = {
3
2
  [key: string]: string | string[] | TranslatePair;
4
3
  };
@@ -6,7 +6,6 @@
6
6
  */
7
7
  import dayjs from 'dayjs';
8
8
  import defaultLang from './lang/zh-cn';
9
- import 'dayjs/locale/zh-cn';
10
9
  let lang = defaultLang;
11
10
  let i18nHandler = null;
12
11
  export const i18n = fn => {
@@ -398,6 +398,11 @@ declare const _default: {
398
398
  card: string;
399
399
  };
400
400
  };
401
+ translate: {
402
+ sourceText: string;
403
+ targetText: string;
404
+ translating: string;
405
+ };
401
406
  };
402
407
  };
403
408
  export default _default;
@@ -403,6 +403,11 @@ export default {
403
403
  gantt: 'Gantt view',
404
404
  card: 'Card view'
405
405
  }
406
+ },
407
+ translate: {
408
+ sourceText: 'Source Text',
409
+ targetText: 'Target Text',
410
+ translating: 'Translating'
406
411
  }
407
412
  }
408
413
  };
@@ -398,6 +398,11 @@ declare const _default: {
398
398
  card: string;
399
399
  };
400
400
  };
401
+ translate: {
402
+ sourceText: string;
403
+ targetText: string;
404
+ translating: string;
405
+ };
401
406
  };
402
407
  };
403
408
  export default _default;
@@ -403,6 +403,11 @@ export default {
403
403
  gantt: '甘特视图',
404
404
  card: '看板视图'
405
405
  }
406
+ },
407
+ translate: {
408
+ sourceText: '原文',
409
+ targetText: '翻译',
410
+ translating: '翻译中'
406
411
  }
407
412
  }
408
413
  };
@@ -114,6 +114,7 @@
114
114
  &.selection-column {
115
115
  justify-content: center;
116
116
  border-right-color: transparent;
117
+ cursor: default;
117
118
  }
118
119
  .action {
119
120
  display: inline-flex;
@@ -127,6 +128,7 @@
127
128
  width: 20px;
128
129
  height: 20px;
129
130
  color: @--text-color-placeholder;
131
+ cursor: pointer;
130
132
  visibility: hidden;
131
133
  }
132
134
  .drag-icon {
@@ -402,11 +404,15 @@
402
404
  z-index: 1;
403
405
  }
404
406
  .title {
405
- flex-shrink: 0;
407
+ flex: 1 0;
406
408
  margin-left: 8px;
407
- margin-right: 20px;
408
409
  font-weight: 600;
409
- .empty {
410
+ .text-overflow-cut();
411
+ & + .count-select {
412
+ width: fit-content;
413
+ padding-left: @--padding-md;
414
+ }
415
+ &.empty {
410
416
  color: @--text-color-placeholder;
411
417
  font-weight: 400;
412
418
  }
@@ -27867,21 +27867,14 @@ body {
27867
27867
  .qm-form .ant-form-item {
27868
27868
  margin-bottom: 12px;
27869
27869
  }
27870
- .qm-form .ant-form-item .ant-form-item-label > label[title=''] {
27870
+ .qm-form .ant-form-item .ant-form-item-label > label:has(.ant-select) {
27871
27871
  width: 100%;
27872
- display: inline-flex;
27873
- justify-content: right;
27874
27872
  }
27875
- .qm-form .ant-form-item .ant-form-item-label > label[title=''] .ant-select {
27876
- flex: auto;
27877
- width: 0;
27873
+ .qm-form .ant-form-item .ant-form-item-label > label:has(.ant-select) .ant-select {
27878
27874
  text-align: left;
27879
27875
  }
27880
- .qm-form .ant-form-item .ant-form-item-label-wrap {
27881
- line-height: 1.075;
27882
- }
27883
- .qm-form .ant-form-item .ant-form-item-label-left > label[title=''] {
27884
- justify-content: left;
27876
+ .qm-form .ant-form-item .ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
27877
+ margin: 0 2px;
27885
27878
  }
27886
27879
  .qm-form .ant-form-item input::-moz-placeholder {
27887
27880
  text-align: left;
@@ -27947,8 +27940,6 @@ body {
27947
27940
  height: 100%;
27948
27941
  display: flex;
27949
27942
  align-items: center;
27950
- }
27951
- .qm-form .ant-form-item .extra-overflow-cut {
27952
27943
  overflow: hidden;
27953
27944
  text-overflow: ellipsis;
27954
27945
  white-space: nowrap;
@@ -28004,8 +27995,27 @@ body {
28004
27995
  .qm-form .ant-form-vertical .ant-form-item .ant-form-item-label {
28005
27996
  padding-bottom: 4px;
28006
27997
  }
28007
- .qm-form .ant-form-vertical .ant-form-item .ant-form-item-label label[title=''] {
28008
- justify-content: left;
27998
+ .qm-form .ant-form-vertical .ant-form-item .ant-form-item-label > label:has(.ant-select) {
27999
+ width: 50%;
28000
+ }
28001
+ .qm-form__label-wrap .ant-form-item .ant-form-item-label > label .text {
28002
+ line-height: 1.075;
28003
+ display: -webkit-box;
28004
+ -webkit-box-orient: vertical;
28005
+ -webkit-line-clamp: 2;
28006
+ line-clamp: 2;
28007
+ overflow: hidden;
28008
+ text-overflow: ellipsis;
28009
+ }
28010
+ .qm-form__label-wrap .ant-form-item .extra-text {
28011
+ line-height: 1.075;
28012
+ white-space: normal;
28013
+ display: -webkit-box;
28014
+ -webkit-box-orient: vertical;
28015
+ -webkit-line-clamp: 2;
28016
+ line-clamp: 2;
28017
+ overflow: hidden;
28018
+ text-overflow: ellipsis;
28009
28019
  }
28010
28020
  .qm-form--sm .ant-form-item {
28011
28021
  margin-bottom: 10px;
@@ -29719,7 +29729,12 @@ body {
29719
29729
  }
29720
29730
  .header--column .cell--wrapper .cell--text .cell {
29721
29731
  padding-right: 2px;
29722
- line-height: 24px;
29732
+ display: -webkit-box;
29733
+ -webkit-box-orient: vertical;
29734
+ -webkit-line-clamp: 2;
29735
+ line-clamp: 2;
29736
+ overflow: hidden;
29737
+ text-overflow: ellipsis;
29723
29738
  }
29724
29739
  .header--column .cell--wrapper .cell--text .tip {
29725
29740
  padding: 2px;
@@ -31425,6 +31440,7 @@ body {
31425
31440
  .qm-pivot-grid__layout .footer .table-cell.selection-column {
31426
31441
  justify-content: center;
31427
31442
  border-right-color: transparent;
31443
+ cursor: default;
31428
31444
  }
31429
31445
  .qm-pivot-grid__layout .header .table-cell .action,
31430
31446
  .qm-pivot-grid__layout .body .table-cell .action,
@@ -31445,6 +31461,7 @@ body {
31445
31461
  width: 20px;
31446
31462
  height: 20px;
31447
31463
  color: rgba(0, 0, 0, 0.45);
31464
+ cursor: pointer;
31448
31465
  visibility: hidden;
31449
31466
  }
31450
31467
  .qm-pivot-grid__layout .header .table-cell .action .drag-icon,
@@ -31743,12 +31760,19 @@ body {
31743
31760
  z-index: 1;
31744
31761
  }
31745
31762
  .qm-pivot-grid__layout .container .group-label .label-cell .title {
31746
- flex-shrink: 0;
31763
+ flex: 1 0;
31747
31764
  margin-left: 8px;
31748
- margin-right: 20px;
31749
31765
  font-weight: 600;
31766
+ overflow: hidden;
31767
+ text-overflow: ellipsis;
31768
+ white-space: nowrap;
31769
+ }
31770
+ .qm-pivot-grid__layout .container .group-label .label-cell .title + .count-select {
31771
+ width: -moz-fit-content;
31772
+ width: fit-content;
31773
+ padding-left: 10px;
31750
31774
  }
31751
- .qm-pivot-grid__layout .container .group-label .label-cell .title .empty {
31775
+ .qm-pivot-grid__layout .container .group-label .label-cell .title.empty {
31752
31776
  color: rgba(0, 0, 0, 0.45);
31753
31777
  font-weight: 400;
31754
31778
  }
@@ -31988,3 +32012,29 @@ body {
31988
32012
  .qm-color-picker-slider-container .qm-color-picker-slider-group-disabled-alpha .qm-color-picker-slider {
31989
32013
  margin-bottom: 0;
31990
32014
  }
32015
+ /*
32016
+ * @Author: 焦质晔
32017
+ * @Date: 2025-11-10 13:37:08
32018
+ * @Last Modified by: 焦质晔
32019
+ * @Last Modified time: 2025-11-10 17:18:14
32020
+ */
32021
+ .qm-translate.help-cursor {
32022
+ cursor: help;
32023
+ }
32024
+ .qm-translate__tooltip {
32025
+ min-width: 150px;
32026
+ max-width: 300px;
32027
+ border-radius: 6px !important;
32028
+ padding-left: 12px !important;
32029
+ padding-right: 12px !important;
32030
+ }
32031
+ .qm-translate__tooltip .label,
32032
+ .qm-translate__tooltip .text {
32033
+ margin: 4px 0;
32034
+ }
32035
+ .qm-translate__tooltip .label {
32036
+ color: rgba(0, 0, 0, 0.45);
32037
+ }
32038
+ .qm-translate__tooltip .primary {
32039
+ color: #1890ff;
32040
+ }
@@ -42,3 +42,4 @@
42
42
  @import '../pivot-grid/style/index.less';
43
43
  @import '../virtual-list/style/index.less';
44
44
  @import '../color-picker/style/index.less';
45
+ @import '../translate/style/index.less';