@jiaozhiye/qm-design-react 2.0.1 → 2.0.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.
@@ -1,77 +1,77 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2020-02-28 22:13:54
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-06-23 23:49:41
6
- */
7
- .body--column {
8
- .cell--edit {
9
- margin: 0 -1 * (@v-module-distance - 1px);
10
- // placeholder
11
- input::placeholder {
12
- text-align: left;
13
- }
14
- // search
15
- .ant-input-search {
16
- width: calc(100% + 1px);
17
- & > .ant-input-group > .ant-input-group-addon {
18
- line-height: 1;
19
- }
20
- }
21
- // search-helper-multiple
22
- .search-helper-multiple {
23
- .ant-input-group > .ant-select:first-child {
24
- z-index: 1;
25
- .ant-select-selector {
26
- border-top-right-radius: 0;
27
- border-bottom-right-radius: 0;
28
- }
29
- }
30
- .ant-select-multiple {
31
- .ant-select-selection-overflow-item-rest {
32
- pointer-events: none;
33
- }
34
- }
35
- }
36
- // textArea
37
- textarea[class='ant-input'] {
38
- resize: none;
39
- }
40
- &.is-error {
41
- position: relative;
42
- .ant-input-search {
43
- .ant-input,
44
- .ant-input-affix-wrapper {
45
- border-color: @v-danger-color;
46
- box-shadow: none;
47
- z-index: 1;
48
- }
49
- & + .cell-error {
50
- right: 38px;
51
- }
52
- }
53
- .cell-error {
54
- position: absolute;
55
- top: calc(50% - 9px);
56
- font-size: @v-font-size-small;
57
- color: @v-danger-color;
58
- right: 8px;
59
- pointer-events: none;
60
- z-index: 1;
61
- }
62
- }
63
- }
64
- &.col--center {
65
- .cell--edit .ant-input {
66
- text-align: center;
67
- }
68
- }
69
- &.col--right {
70
- .cell--edit .ant-input {
71
- text-align: right;
72
- }
73
- }
74
- &.selected {
75
- background-color: @v-table-row-selected-background-color !important;
76
- }
77
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-02-28 22:13:54
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2023-10-15 12:47:18
6
+ */
7
+ .body--column {
8
+ .cell--edit {
9
+ margin: 0 -1 * (@v-module-distance - 1px);
10
+ // placeholder
11
+ input::placeholder {
12
+ text-align: left;
13
+ }
14
+ // search
15
+ .ant-input-search {
16
+ width: calc(100% + 1px);
17
+ & > .ant-input-group > .ant-input-group-addon {
18
+ line-height: 1;
19
+ }
20
+ }
21
+ // search-helper-multiple
22
+ .search-helper-multiple {
23
+ .ant-input-group > .ant-select:first-child {
24
+ z-index: 1;
25
+ .ant-select-selector {
26
+ border-top-right-radius: 0;
27
+ border-bottom-right-radius: 0;
28
+ }
29
+ }
30
+ .ant-select-multiple {
31
+ .ant-select-selection-overflow-item-rest {
32
+ pointer-events: none;
33
+ }
34
+ }
35
+ }
36
+ // textArea
37
+ textarea[class='ant-input'] {
38
+ resize: none;
39
+ }
40
+ &.is-error {
41
+ position: relative;
42
+ .ant-input,
43
+ .ant-input-affix-wrapper {
44
+ border-color: @v-danger-color;
45
+ box-shadow: none;
46
+ z-index: 1;
47
+ }
48
+ .ant-input-search {
49
+ & + .cell-error {
50
+ right: 38px;
51
+ }
52
+ }
53
+ .cell-error {
54
+ position: absolute;
55
+ top: calc(50% - 9px);
56
+ font-size: @v-font-size-small;
57
+ color: @v-danger-color;
58
+ right: 8px;
59
+ pointer-events: none;
60
+ z-index: 1;
61
+ }
62
+ }
63
+ }
64
+ &.col--center {
65
+ .cell--edit .ant-input {
66
+ text-align: center;
67
+ }
68
+ }
69
+ &.col--right {
70
+ .cell--edit .ant-input {
71
+ text-align: right;
72
+ }
73
+ }
74
+ &.selected {
75
+ background-color: @v-table-row-selected-background-color !important;
76
+ }
77
+ }
@@ -3,6 +3,7 @@ import type { UploadProps, ButtonProps } from '../../antd';
3
3
  type IProps = UploadProps & {
4
4
  fileTypes?: string[];
5
5
  fileSize?: number;
6
+ allowDownloadOnDisable?: boolean;
6
7
  button?: {
7
8
  text?: string;
8
9
  } & ButtonProps;
@@ -2,11 +2,17 @@
2
2
  * @Author: 焦质晔
3
3
  * @Date: 2021-07-23 19:05:57
4
4
  * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-07-31 22:38:07
5
+ * @Last Modified time: 2023-10-18 09:35:59
6
6
  */
7
7
  @import '../../style/common';
8
8
 
9
9
  @prefix-upload-file: ~'@{qm-prefix}-upload-file';
10
10
 
11
11
  .@{prefix-upload-file} {
12
+ &.disabled {
13
+ .ant-upload-list-item-name {
14
+ color: @--disabled-color;
15
+ cursor: not-allowed;
16
+ }
17
+ }
12
18
  }
@@ -2,7 +2,7 @@
2
2
  * @Author: 焦质晔
3
3
  * @Date: 2021-07-23 19:05:57
4
4
  * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-08-28 08:54:46
5
+ * @Last Modified time: 2023-10-15 12:14:45
6
6
  */
7
7
  @import '../../style/common';
8
8
 
@@ -10,6 +10,11 @@
10
10
  @prefix-cropper-preview: ~'@{qm-prefix}-cropper-preview';
11
11
 
12
12
  .@{prefix-upload-img} {
13
+ .ant-upload-list-item-actions {
14
+ .ant-btn {
15
+ margin-left: 15px;
16
+ }
17
+ }
13
18
  }
14
19
 
15
20
  .@{prefix-cropper-preview} {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiaozhiye/qm-design-react",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",