assui 2.0.147 → 2.1.0
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/es/button-drawer/index.d.ts +1 -1
- package/es/button-modal/index.d.ts +1 -1
- package/es/copy-to-clipboard/style/index.css +58 -43
- package/es/highlight-textarea/extractSpansOfClasses.js +9 -7
- package/es/highlight-textarea/getRanges.js +9 -7
- package/es/highlight-textarea/index.js +3 -3
- package/es/highlight-textarea/style/index.css +169 -41
- package/es/highlight-textarea/types.js +1 -0
- package/es/img-crop/index.js +7 -7
- package/es/img-crop/style/index.css +1784 -0
- package/es/img-crop/style/index.less +1 -1
- package/es/keep-tab/style/index.css +40 -23
- package/es/label-auto-complete/style/index.css +1784 -0
- package/es/label-auto-complete/style/index.less +1 -1
- package/es/label-customize-range-picker/style/index.css +1784 -0
- package/es/label-customize-range-picker/style/index.less +1 -1
- package/es/label-date-picker/index.js +1 -1
- package/es/label-date-picker/style/index.css +1784 -0
- package/es/label-date-picker/style/index.less +1 -1
- package/es/label-number-input/index.js +1 -1
- package/es/label-range-picker/style/index.css +1784 -0
- package/es/label-range-picker/style/index.less +1 -1
- package/es/label-select/style/index.css +1784 -0
- package/es/label-select/style/index.less +1 -1
- package/es/label-tree-select/style/index.css +1784 -0
- package/es/label-tree-select/style/index.less +1 -1
- package/es/number-input/index.js +4 -4
- package/es/number-input/utils.js +1 -1
- package/es/rich-text-editor/style/index.css +6 -5
- package/es/single-img-upload/index.js +1 -1
- package/es/single-img-upload/style/index.css +1784 -0
- package/es/single-img-upload/style/index.less +1 -1
- package/es/step-number-input/index.js +8 -8
- package/es/step-number-input/style/index.css +1784 -0
- package/es/step-number-input/style/index.less +1 -1
- package/es/text-input/index.js +8 -6
- package/es/text-input/style/index.css +169 -41
- package/lib/beautiful-dnd/index.js +13 -7
- package/lib/button-drawer/index.d.ts +1 -1
- package/lib/button-drawer/index.js +18 -12
- package/lib/button-modal/index.d.ts +1 -1
- package/lib/button-modal/index.js +14 -8
- package/lib/condition-input/index.js +17 -11
- package/lib/condition-input/parse2RegexOption.js +3 -3
- package/lib/copy-to-clipboard/index.js +15 -9
- package/lib/copy-to-clipboard/style/index.css +58 -43
- package/lib/highlight-textarea/HighlighedContents.js +2 -2
- package/lib/highlight-textarea/extractSpansOfClasses.js +9 -7
- package/lib/highlight-textarea/getRanges.js +10 -8
- package/lib/highlight-textarea/index.js +19 -13
- package/lib/highlight-textarea/style/index.css +169 -41
- package/lib/img-crop/EasyCrop.js +13 -7
- package/lib/img-crop/index.js +21 -15
- package/lib/img-crop/style/index.css +1784 -0
- package/lib/img-crop/style/index.less +1 -1
- package/lib/index.js +38 -31
- package/lib/keep-tab/index.js +17 -11
- package/lib/keep-tab/style/index.css +40 -23
- package/lib/label-auto-complete/index.js +5 -5
- package/lib/label-auto-complete/style/index.css +1784 -0
- package/lib/label-auto-complete/style/index.less +1 -1
- package/lib/label-condition-input/index.js +5 -5
- package/lib/label-customize-range-picker/defaultRadioList.js +1 -1
- package/lib/label-customize-range-picker/index.js +17 -11
- package/lib/label-customize-range-picker/style/index.css +1784 -0
- package/lib/label-customize-range-picker/style/index.less +1 -1
- package/lib/label-date-picker/index.js +5 -5
- package/lib/label-date-picker/style/index.css +1784 -0
- package/lib/label-date-picker/style/index.less +1 -1
- package/lib/label-input/index.js +5 -5
- package/lib/label-number-input/index.js +6 -6
- package/lib/label-range-picker/index.js +3 -3
- package/lib/label-range-picker/style/index.css +1784 -0
- package/lib/label-range-picker/style/index.less +1 -1
- package/lib/label-select/index.js +5 -5
- package/lib/label-select/style/index.css +1784 -0
- package/lib/label-select/style/index.less +1 -1
- package/lib/label-text-area/index.js +4 -4
- package/lib/label-tree-select/index.js +4 -4
- package/lib/label-tree-select/style/index.css +1784 -0
- package/lib/label-tree-select/style/index.less +1 -1
- package/lib/number-input/index.js +21 -15
- package/lib/number-input/utils.js +8 -4
- package/lib/rc-echart/core.js +21 -15
- package/lib/rc-echart/index.js +13 -7
- package/lib/rc-qrcode/index.js +14 -8
- package/lib/rc-qrcode/useQrcode.js +4 -3
- package/lib/rc-transition-group/index.js +13 -7
- package/lib/rich-text-editor/index.js +1 -1
- package/lib/rich-text-editor/style/index.css +6 -5
- package/lib/single-img-upload/index.js +18 -12
- package/lib/single-img-upload/style/index.css +1784 -0
- package/lib/single-img-upload/style/index.less +1 -1
- package/lib/sortable-hoc/index.js +13 -7
- package/lib/split-pane/index.js +13 -7
- package/lib/step-number-input/index.js +32 -26
- package/lib/step-number-input/style/index.css +1784 -0
- package/lib/step-number-input/style/index.less +1 -1
- package/lib/text-area/index.js +14 -8
- package/lib/text-input/index.js +8 -6
- package/lib/text-input/style/index.css +169 -41
- package/package.json +4 -3
|
@@ -4,7 +4,7 @@ export declare type DrawerAction = {
|
|
|
4
4
|
close: () => void;
|
|
5
5
|
open: () => void;
|
|
6
6
|
};
|
|
7
|
-
export interface ButtonDrawerProps extends DrawerProps {
|
|
7
|
+
export interface ButtonDrawerProps extends Omit<DrawerProps, 'children'> {
|
|
8
8
|
onClose?: () => void;
|
|
9
9
|
onOpen?: () => void;
|
|
10
10
|
trigger: React.ReactElement;
|
|
@@ -4,7 +4,7 @@ export interface ModalAction {
|
|
|
4
4
|
open: () => void;
|
|
5
5
|
close: () => void;
|
|
6
6
|
}
|
|
7
|
-
export interface ButtonModalProps extends ModalProps {
|
|
7
|
+
export interface ButtonModalProps extends Omit<ModalProps, 'children'> {
|
|
8
8
|
onClose?: () => void;
|
|
9
9
|
onOpen?: () => void;
|
|
10
10
|
trigger?: React.ReactElement;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
width: -webkit-max-content;
|
|
19
19
|
width: -moz-max-content;
|
|
20
20
|
width: max-content;
|
|
21
|
+
width: intrinsic;
|
|
21
22
|
max-width: 250px;
|
|
22
23
|
visibility: visible;
|
|
23
24
|
}
|
|
@@ -27,22 +28,22 @@
|
|
|
27
28
|
.ant-tooltip-placement-top,
|
|
28
29
|
.ant-tooltip-placement-topLeft,
|
|
29
30
|
.ant-tooltip-placement-topRight {
|
|
30
|
-
padding-bottom:
|
|
31
|
+
padding-bottom: 14.3137085px;
|
|
31
32
|
}
|
|
32
33
|
.ant-tooltip-placement-right,
|
|
33
34
|
.ant-tooltip-placement-rightTop,
|
|
34
35
|
.ant-tooltip-placement-rightBottom {
|
|
35
|
-
padding-left:
|
|
36
|
+
padding-left: 14.3137085px;
|
|
36
37
|
}
|
|
37
38
|
.ant-tooltip-placement-bottom,
|
|
38
39
|
.ant-tooltip-placement-bottomLeft,
|
|
39
40
|
.ant-tooltip-placement-bottomRight {
|
|
40
|
-
padding-top:
|
|
41
|
+
padding-top: 14.3137085px;
|
|
41
42
|
}
|
|
42
43
|
.ant-tooltip-placement-left,
|
|
43
44
|
.ant-tooltip-placement-leftTop,
|
|
44
45
|
.ant-tooltip-placement-leftBottom {
|
|
45
|
-
padding-right:
|
|
46
|
+
padding-right: 14.3137085px;
|
|
46
47
|
}
|
|
47
48
|
.ant-tooltip-inner {
|
|
48
49
|
min-width: 30px;
|
|
@@ -59,36 +60,50 @@
|
|
|
59
60
|
.ant-tooltip-arrow {
|
|
60
61
|
position: absolute;
|
|
61
62
|
display: block;
|
|
62
|
-
width:
|
|
63
|
-
height:
|
|
63
|
+
width: 22px;
|
|
64
|
+
height: 22px;
|
|
64
65
|
overflow: hidden;
|
|
65
66
|
background: transparent;
|
|
66
67
|
pointer-events: none;
|
|
67
68
|
}
|
|
68
69
|
.ant-tooltip-arrow-content {
|
|
70
|
+
--antd-arrow-background-color: rgba(0, 0, 0, 0.75);
|
|
69
71
|
position: absolute;
|
|
70
72
|
top: 0;
|
|
71
73
|
right: 0;
|
|
72
74
|
bottom: 0;
|
|
73
75
|
left: 0;
|
|
74
76
|
display: block;
|
|
75
|
-
width:
|
|
76
|
-
height:
|
|
77
|
+
width: 11.3137085px;
|
|
78
|
+
height: 11.3137085px;
|
|
77
79
|
margin: auto;
|
|
78
|
-
background-color:
|
|
80
|
+
background-color: transparent;
|
|
79
81
|
content: '';
|
|
80
82
|
pointer-events: auto;
|
|
83
|
+
border-radius: 0 0 2px;
|
|
84
|
+
pointer-events: none;
|
|
85
|
+
}
|
|
86
|
+
.ant-tooltip-arrow-content::before {
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: -11.3137085px;
|
|
89
|
+
left: -11.3137085px;
|
|
90
|
+
width: 33.9411255px;
|
|
91
|
+
height: 33.9411255px;
|
|
92
|
+
background: linear-gradient(to left, var(--antd-arrow-background-color) 50%, var(--antd-arrow-background-color) 50%) no-repeat -10px -10px;
|
|
93
|
+
content: '';
|
|
94
|
+
-webkit-clip-path: path('M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 Z');
|
|
95
|
+
clip-path: path('M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 Z');
|
|
81
96
|
}
|
|
82
97
|
.ant-tooltip-placement-top .ant-tooltip-arrow,
|
|
83
98
|
.ant-tooltip-placement-topLeft .ant-tooltip-arrow,
|
|
84
99
|
.ant-tooltip-placement-topRight .ant-tooltip-arrow {
|
|
85
|
-
bottom: -
|
|
100
|
+
bottom: -7.4462915px;
|
|
86
101
|
}
|
|
87
102
|
.ant-tooltip-placement-top .ant-tooltip-arrow-content,
|
|
88
103
|
.ant-tooltip-placement-topLeft .ant-tooltip-arrow-content,
|
|
89
104
|
.ant-tooltip-placement-topRight .ant-tooltip-arrow-content {
|
|
90
105
|
box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
|
|
91
|
-
transform: translateY(-
|
|
106
|
+
transform: translateY(-11px) rotate(45deg);
|
|
92
107
|
}
|
|
93
108
|
.ant-tooltip-placement-top .ant-tooltip-arrow {
|
|
94
109
|
left: 50%;
|
|
@@ -103,13 +118,13 @@
|
|
|
103
118
|
.ant-tooltip-placement-right .ant-tooltip-arrow,
|
|
104
119
|
.ant-tooltip-placement-rightTop .ant-tooltip-arrow,
|
|
105
120
|
.ant-tooltip-placement-rightBottom .ant-tooltip-arrow {
|
|
106
|
-
left: -
|
|
121
|
+
left: -7.5862915px;
|
|
107
122
|
}
|
|
108
123
|
.ant-tooltip-placement-right .ant-tooltip-arrow-content,
|
|
109
124
|
.ant-tooltip-placement-rightTop .ant-tooltip-arrow-content,
|
|
110
125
|
.ant-tooltip-placement-rightBottom .ant-tooltip-arrow-content {
|
|
111
126
|
box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
|
|
112
|
-
transform: translateX(
|
|
127
|
+
transform: translateX(11px) rotate(135deg);
|
|
113
128
|
}
|
|
114
129
|
.ant-tooltip-placement-right .ant-tooltip-arrow {
|
|
115
130
|
top: 50%;
|
|
@@ -124,13 +139,13 @@
|
|
|
124
139
|
.ant-tooltip-placement-left .ant-tooltip-arrow,
|
|
125
140
|
.ant-tooltip-placement-leftTop .ant-tooltip-arrow,
|
|
126
141
|
.ant-tooltip-placement-leftBottom .ant-tooltip-arrow {
|
|
127
|
-
right: -
|
|
142
|
+
right: -7.6062915px;
|
|
128
143
|
}
|
|
129
144
|
.ant-tooltip-placement-left .ant-tooltip-arrow-content,
|
|
130
145
|
.ant-tooltip-placement-leftTop .ant-tooltip-arrow-content,
|
|
131
146
|
.ant-tooltip-placement-leftBottom .ant-tooltip-arrow-content {
|
|
132
147
|
box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
|
|
133
|
-
transform: translateX(-
|
|
148
|
+
transform: translateX(-11px) rotate(315deg);
|
|
134
149
|
}
|
|
135
150
|
.ant-tooltip-placement-left .ant-tooltip-arrow {
|
|
136
151
|
top: 50%;
|
|
@@ -145,13 +160,13 @@
|
|
|
145
160
|
.ant-tooltip-placement-bottom .ant-tooltip-arrow,
|
|
146
161
|
.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,
|
|
147
162
|
.ant-tooltip-placement-bottomRight .ant-tooltip-arrow {
|
|
148
|
-
top: -
|
|
163
|
+
top: -7.5862915px;
|
|
149
164
|
}
|
|
150
165
|
.ant-tooltip-placement-bottom .ant-tooltip-arrow-content,
|
|
151
166
|
.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow-content,
|
|
152
167
|
.ant-tooltip-placement-bottomRight .ant-tooltip-arrow-content {
|
|
153
168
|
box-shadow: -3px -3px 7px rgba(0, 0, 0, 0.07);
|
|
154
|
-
transform: translateY(
|
|
169
|
+
transform: translateY(11px) rotate(225deg);
|
|
155
170
|
}
|
|
156
171
|
.ant-tooltip-placement-bottom .ant-tooltip-arrow {
|
|
157
172
|
left: 50%;
|
|
@@ -166,80 +181,80 @@
|
|
|
166
181
|
.ant-tooltip-pink .ant-tooltip-inner {
|
|
167
182
|
background-color: #eb2f96;
|
|
168
183
|
}
|
|
169
|
-
.ant-tooltip-pink .ant-tooltip-arrow-content {
|
|
170
|
-
background
|
|
184
|
+
.ant-tooltip-pink .ant-tooltip-arrow-content::before {
|
|
185
|
+
background: #eb2f96;
|
|
171
186
|
}
|
|
172
187
|
.ant-tooltip-magenta .ant-tooltip-inner {
|
|
173
188
|
background-color: #eb2f96;
|
|
174
189
|
}
|
|
175
|
-
.ant-tooltip-magenta .ant-tooltip-arrow-content {
|
|
176
|
-
background
|
|
190
|
+
.ant-tooltip-magenta .ant-tooltip-arrow-content::before {
|
|
191
|
+
background: #eb2f96;
|
|
177
192
|
}
|
|
178
193
|
.ant-tooltip-red .ant-tooltip-inner {
|
|
179
194
|
background-color: #f5222d;
|
|
180
195
|
}
|
|
181
|
-
.ant-tooltip-red .ant-tooltip-arrow-content {
|
|
182
|
-
background
|
|
196
|
+
.ant-tooltip-red .ant-tooltip-arrow-content::before {
|
|
197
|
+
background: #f5222d;
|
|
183
198
|
}
|
|
184
199
|
.ant-tooltip-volcano .ant-tooltip-inner {
|
|
185
200
|
background-color: #fa541c;
|
|
186
201
|
}
|
|
187
|
-
.ant-tooltip-volcano .ant-tooltip-arrow-content {
|
|
188
|
-
background
|
|
202
|
+
.ant-tooltip-volcano .ant-tooltip-arrow-content::before {
|
|
203
|
+
background: #fa541c;
|
|
189
204
|
}
|
|
190
205
|
.ant-tooltip-orange .ant-tooltip-inner {
|
|
191
206
|
background-color: #fa8c16;
|
|
192
207
|
}
|
|
193
|
-
.ant-tooltip-orange .ant-tooltip-arrow-content {
|
|
194
|
-
background
|
|
208
|
+
.ant-tooltip-orange .ant-tooltip-arrow-content::before {
|
|
209
|
+
background: #fa8c16;
|
|
195
210
|
}
|
|
196
211
|
.ant-tooltip-yellow .ant-tooltip-inner {
|
|
197
212
|
background-color: #fadb14;
|
|
198
213
|
}
|
|
199
|
-
.ant-tooltip-yellow .ant-tooltip-arrow-content {
|
|
200
|
-
background
|
|
214
|
+
.ant-tooltip-yellow .ant-tooltip-arrow-content::before {
|
|
215
|
+
background: #fadb14;
|
|
201
216
|
}
|
|
202
217
|
.ant-tooltip-gold .ant-tooltip-inner {
|
|
203
218
|
background-color: #faad14;
|
|
204
219
|
}
|
|
205
|
-
.ant-tooltip-gold .ant-tooltip-arrow-content {
|
|
206
|
-
background
|
|
220
|
+
.ant-tooltip-gold .ant-tooltip-arrow-content::before {
|
|
221
|
+
background: #faad14;
|
|
207
222
|
}
|
|
208
223
|
.ant-tooltip-cyan .ant-tooltip-inner {
|
|
209
224
|
background-color: #13c2c2;
|
|
210
225
|
}
|
|
211
|
-
.ant-tooltip-cyan .ant-tooltip-arrow-content {
|
|
212
|
-
background
|
|
226
|
+
.ant-tooltip-cyan .ant-tooltip-arrow-content::before {
|
|
227
|
+
background: #13c2c2;
|
|
213
228
|
}
|
|
214
229
|
.ant-tooltip-lime .ant-tooltip-inner {
|
|
215
230
|
background-color: #a0d911;
|
|
216
231
|
}
|
|
217
|
-
.ant-tooltip-lime .ant-tooltip-arrow-content {
|
|
218
|
-
background
|
|
232
|
+
.ant-tooltip-lime .ant-tooltip-arrow-content::before {
|
|
233
|
+
background: #a0d911;
|
|
219
234
|
}
|
|
220
235
|
.ant-tooltip-green .ant-tooltip-inner {
|
|
221
236
|
background-color: #52c41a;
|
|
222
237
|
}
|
|
223
|
-
.ant-tooltip-green .ant-tooltip-arrow-content {
|
|
224
|
-
background
|
|
238
|
+
.ant-tooltip-green .ant-tooltip-arrow-content::before {
|
|
239
|
+
background: #52c41a;
|
|
225
240
|
}
|
|
226
241
|
.ant-tooltip-blue .ant-tooltip-inner {
|
|
227
242
|
background-color: #1890ff;
|
|
228
243
|
}
|
|
229
|
-
.ant-tooltip-blue .ant-tooltip-arrow-content {
|
|
230
|
-
background
|
|
244
|
+
.ant-tooltip-blue .ant-tooltip-arrow-content::before {
|
|
245
|
+
background: #1890ff;
|
|
231
246
|
}
|
|
232
247
|
.ant-tooltip-geekblue .ant-tooltip-inner {
|
|
233
248
|
background-color: #2f54eb;
|
|
234
249
|
}
|
|
235
|
-
.ant-tooltip-geekblue .ant-tooltip-arrow-content {
|
|
236
|
-
background
|
|
250
|
+
.ant-tooltip-geekblue .ant-tooltip-arrow-content::before {
|
|
251
|
+
background: #2f54eb;
|
|
237
252
|
}
|
|
238
253
|
.ant-tooltip-purple .ant-tooltip-inner {
|
|
239
254
|
background-color: #722ed1;
|
|
240
255
|
}
|
|
241
|
-
.ant-tooltip-purple .ant-tooltip-arrow-content {
|
|
242
|
-
background
|
|
256
|
+
.ant-tooltip-purple .ant-tooltip-arrow-content::before {
|
|
257
|
+
background: #722ed1;
|
|
243
258
|
}
|
|
244
259
|
.ant-tooltip-rtl {
|
|
245
260
|
direction: rtl;
|
|
@@ -25,12 +25,14 @@ var __read = this && this.__read || function (o, n) {
|
|
|
25
25
|
return ar;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
var
|
|
29
|
-
for (var
|
|
30
|
-
ar
|
|
28
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
29
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
30
|
+
if (ar || !(i in from)) {
|
|
31
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
32
|
+
ar[i] = from[i];
|
|
33
|
+
}
|
|
31
34
|
}
|
|
32
|
-
|
|
33
|
-
return ar;
|
|
35
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
34
36
|
};
|
|
35
37
|
/* eslint-disable no-plusplus */
|
|
36
38
|
|
|
@@ -66,14 +68,14 @@ function () {
|
|
|
66
68
|
this.endIndex = beginIndex2;
|
|
67
69
|
var right = new Span(rightText, beginIndex2);
|
|
68
70
|
right.isMark = this.isMark;
|
|
69
|
-
right.markClasses = new Set(
|
|
71
|
+
right.markClasses = new Set(__spreadArray([], __read(this.markClasses), false));
|
|
70
72
|
return right;
|
|
71
73
|
};
|
|
72
74
|
|
|
73
75
|
Object.defineProperty(Span.prototype, "className", {
|
|
74
76
|
get: function get() {
|
|
75
77
|
if (this.markClasses && this.markClasses.size > 0) {
|
|
76
|
-
return
|
|
78
|
+
return __spreadArray([], __read(this.markClasses), false).sort().join(' ');
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
return '';
|
|
@@ -25,12 +25,14 @@ var __read = this && this.__read || function (o, n) {
|
|
|
25
25
|
return ar;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
var
|
|
29
|
-
for (var
|
|
30
|
-
ar
|
|
28
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
29
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
30
|
+
if (ar || !(i in from)) {
|
|
31
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
32
|
+
ar[i] = from[i];
|
|
33
|
+
}
|
|
31
34
|
}
|
|
32
|
-
|
|
33
|
-
return ar;
|
|
35
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
34
36
|
};
|
|
35
37
|
/* eslint-disable no-param-reassign */
|
|
36
38
|
|
|
@@ -124,14 +126,14 @@ function getRangeRanges(range) {
|
|
|
124
126
|
function getCustomRanges(input, custom) {
|
|
125
127
|
var ranges = getRanges(input, custom.highlight);
|
|
126
128
|
|
|
127
|
-
var resultRangesData =
|
|
129
|
+
var resultRangesData = __spreadArray([], __read(ranges), false);
|
|
128
130
|
|
|
129
131
|
if (custom.className) {
|
|
130
132
|
resultRangesData.forEach(function (range) {
|
|
131
133
|
var rangeOption = range[2] || {};
|
|
132
134
|
|
|
133
135
|
if (rangeOption.className) {
|
|
134
|
-
rangeOption.className = custom.className
|
|
136
|
+
rangeOption.className = "".concat(custom.className, " ").concat(rangeOption.className);
|
|
135
137
|
} else {
|
|
136
138
|
rangeOption.className = custom.className;
|
|
137
139
|
}
|
|
@@ -83,8 +83,8 @@ var HighlightWithinTextarea = /*#__PURE__*/React.forwardRef(function (props, ref
|
|
|
83
83
|
|
|
84
84
|
if (backdropRef.current && textareaDom) {
|
|
85
85
|
backdropRef.current.scrollLeft = textareaDom.scrollLeft;
|
|
86
|
-
backdropRef.current.style.height = textareaDom.clientHeight + textareaDom.scrollTop
|
|
87
|
-
backdropRef.current.style.top = 0 - textareaDom.scrollTop
|
|
86
|
+
backdropRef.current.style.height = "".concat(textareaDom.clientHeight + textareaDom.scrollTop, "px");
|
|
87
|
+
backdropRef.current.style.top = "".concat(0 - textareaDom.scrollTop, "px");
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
|
|
@@ -102,7 +102,7 @@ var HighlightWithinTextarea = /*#__PURE__*/React.forwardRef(function (props, ref
|
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
var textareaCls = classNames(prefixCls
|
|
105
|
+
var textareaCls = classNames("".concat(prefixCls, "-input"), 'highlight-textarea-input', 'highlight-content', textAreaClassName);
|
|
106
106
|
return /*#__PURE__*/React.createElement("div", {
|
|
107
107
|
className: classNames('highlight-textarea', className),
|
|
108
108
|
ref: function ref(node) {
|