dcp-design-react 1.11.21 → 1.11.23
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.
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/style/index.css +2 -1
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/hooks/useTableMemo.d.ts +1 -0
- package/lib/table/style/body.less +104 -103
- package/package.json +1 -1
|
@@ -1,103 +1,104 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2020-02-28 22:13:54
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2024-12-01 18:48:00
|
|
6
|
-
*/
|
|
7
|
-
.body--row {
|
|
8
|
-
&-draggable {
|
|
9
|
-
position: relative;
|
|
10
|
-
.drop-indicator {
|
|
11
|
-
position: absolute;
|
|
12
|
-
right: 0;
|
|
13
|
-
bottom: 0;
|
|
14
|
-
z-index: 5;
|
|
15
|
-
height: 2px;
|
|
16
|
-
background-color: @v-primary-color;
|
|
17
|
-
border-radius: 1px;
|
|
18
|
-
pointer-events: none;
|
|
19
|
-
&::after {
|
|
20
|
-
position: absolute;
|
|
21
|
-
top: -3px;
|
|
22
|
-
left: 0;
|
|
23
|
-
width: 8px;
|
|
24
|
-
height: 8px;
|
|
25
|
-
background-color: #fff;
|
|
26
|
-
border: 2px solid @v-primary-color;
|
|
27
|
-
border-radius: 50%;
|
|
28
|
-
content: '';
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
.body--column {
|
|
34
|
-
.cell--edit {
|
|
35
|
-
margin: 0 -1 * (@v-module-distance - 1px);
|
|
36
|
-
// placeholder
|
|
37
|
-
input::placeholder {
|
|
38
|
-
text-align: left;
|
|
39
|
-
}
|
|
40
|
-
// search
|
|
41
|
-
.ant-input-search {
|
|
42
|
-
width: calc(100% + 1px);
|
|
43
|
-
& > .ant-input-group > .ant-input-group-addon {
|
|
44
|
-
line-height: 1;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
// search-helper-multiple
|
|
48
|
-
.search-helper-multiple {
|
|
49
|
-
.ant-input-group > .ant-select:first-child {
|
|
50
|
-
z-index: 1;
|
|
51
|
-
.ant-select-selector {
|
|
52
|
-
border-top-right-radius: 0;
|
|
53
|
-
border-bottom-right-radius: 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
.ant-select-multiple {
|
|
57
|
-
.ant-select-selection-overflow-item-rest {
|
|
58
|
-
pointer-events: none;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
// textArea
|
|
63
|
-
textarea[class='ant-input'] {
|
|
64
|
-
resize: none;
|
|
65
|
-
}
|
|
66
|
-
&.is-error {
|
|
67
|
-
position: relative;
|
|
68
|
-
.ant-input,
|
|
69
|
-
.ant-input-affix-wrapper
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-02-28 22:13:54
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2024-12-01 18:48:00
|
|
6
|
+
*/
|
|
7
|
+
.body--row {
|
|
8
|
+
&-draggable {
|
|
9
|
+
position: relative;
|
|
10
|
+
.drop-indicator {
|
|
11
|
+
position: absolute;
|
|
12
|
+
right: 0;
|
|
13
|
+
bottom: 0;
|
|
14
|
+
z-index: 5;
|
|
15
|
+
height: 2px;
|
|
16
|
+
background-color: @v-primary-color;
|
|
17
|
+
border-radius: 1px;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
&::after {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: -3px;
|
|
22
|
+
left: 0;
|
|
23
|
+
width: 8px;
|
|
24
|
+
height: 8px;
|
|
25
|
+
background-color: #fff;
|
|
26
|
+
border: 2px solid @v-primary-color;
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
content: '';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.body--column {
|
|
34
|
+
.cell--edit {
|
|
35
|
+
margin: 0 -1 * (@v-module-distance - 1px);
|
|
36
|
+
// placeholder
|
|
37
|
+
input::placeholder {
|
|
38
|
+
text-align: left;
|
|
39
|
+
}
|
|
40
|
+
// search
|
|
41
|
+
.ant-input-search {
|
|
42
|
+
width: calc(100% + 1px);
|
|
43
|
+
& > .ant-input-group > .ant-input-group-addon {
|
|
44
|
+
line-height: 1;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// search-helper-multiple
|
|
48
|
+
.search-helper-multiple {
|
|
49
|
+
.ant-input-group > .ant-select:first-child {
|
|
50
|
+
z-index: 1;
|
|
51
|
+
.ant-select-selector {
|
|
52
|
+
border-top-right-radius: 0;
|
|
53
|
+
border-bottom-right-radius: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.ant-select-multiple {
|
|
57
|
+
.ant-select-selection-overflow-item-rest {
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// textArea
|
|
63
|
+
textarea[class='ant-input'] {
|
|
64
|
+
resize: none;
|
|
65
|
+
}
|
|
66
|
+
&.is-error {
|
|
67
|
+
position: relative;
|
|
68
|
+
.ant-input,
|
|
69
|
+
.ant-input-affix-wrapper,
|
|
70
|
+
.ant-select > .ant-select-selector {
|
|
71
|
+
border-color: @v-danger-color;
|
|
72
|
+
box-shadow: none;
|
|
73
|
+
z-index: 1;
|
|
74
|
+
}
|
|
75
|
+
.ant-input-search {
|
|
76
|
+
& + .cell-error {
|
|
77
|
+
right: 38px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.cell-error {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: calc(50% - 9px);
|
|
83
|
+
font-size: @v-font-size-small;
|
|
84
|
+
color: @v-danger-color;
|
|
85
|
+
right: 8px;
|
|
86
|
+
pointer-events: none;
|
|
87
|
+
z-index: 1;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
&.col--center {
|
|
92
|
+
.cell--edit .ant-input {
|
|
93
|
+
text-align: center;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
&.col--right {
|
|
97
|
+
.cell--edit .ant-input {
|
|
98
|
+
text-align: right;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
&.selected {
|
|
102
|
+
background-color: @v-table-row-selected-background-color !important;
|
|
103
|
+
}
|
|
104
|
+
}
|