@para-ui/core 3.0.84 → 3.0.86
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/ComboSelect/index.js +2 -75
- package/DynamicMultiBox/index.js +2 -1
- package/Form/index.js +3 -2
- package/FormItem/index.js +3 -2
- package/README.md +12 -0
- package/TextField/index.js +8 -9
- package/Transfer/box.d.ts +6 -6
- package/Transfer/index.d.ts +3 -3
- package/Transfer/index.js +70 -61
- package/Tree/index.js +2 -2
- package/_verture/{index-11e04b7f.js → index-9738004e.js} +1 -1
- package/_verture/utils-c9b9a157.js +77 -0
- package/index.js +3 -2
- package/package.json +1 -1
- package/umd/ComboSelect.js +2 -2
- package/umd/Desktop.js +2 -2
- package/umd/DynamicMultiBox.js +2 -2
- package/umd/Form.js +2 -2
- package/umd/FormItem.js +2 -2
- package/umd/InputLang.js +2 -2
- package/umd/MultiBox.js +2 -2
- package/umd/Pagination.js +2 -2
- package/umd/Search.js +2 -2
- package/umd/Selector.js +2 -2
- package/umd/SelectorPicker.js +2 -2
- package/umd/SingleBox.js +2 -2
- package/umd/Table.js +2 -2
- package/umd/TextField.js +2 -2
- package/umd/Transfer.js +3 -3
- package/umd/Tree.js +1 -1
- /package/_verture/{index-ebbda859.js → index-fa8a0124.js} +0 -0
package/Transfer/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import SearchIcon from '@para-ui/icons/Search';
|
|
|
15
15
|
import AutoTips from '../AutoTips/index.js';
|
|
16
16
|
import Drag from '@para-ui/icons/Drag';
|
|
17
17
|
import { S as Sortable } from '../_verture/sortable.esm-49896035.js';
|
|
18
|
+
import { d as debounce } from '../_verture/utils-c9b9a157.js';
|
|
18
19
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
19
20
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
20
21
|
import '../_verture/typeof-498dd2b1.js';
|
|
@@ -40,6 +41,7 @@ import '@para-ui/icons/CloseCircle';
|
|
|
40
41
|
import '../Loading/index.js';
|
|
41
42
|
import '../HelperText/index.js';
|
|
42
43
|
import '../_verture/useGlobalProps-1b846a65.js';
|
|
44
|
+
import '../_verture/defineProperty-62acccfc.js';
|
|
43
45
|
|
|
44
46
|
var en = {
|
|
45
47
|
left: 'Left',
|
|
@@ -107,7 +109,7 @@ var Box = function Box(props) {
|
|
|
107
109
|
rightIcon = props.rightIcon,
|
|
108
110
|
style = props.style,
|
|
109
111
|
customKey = props.customKey;
|
|
110
|
-
var intl = useFormatMessage(
|
|
112
|
+
var intl = useFormatMessage("Transfer", localeJson);
|
|
111
113
|
var _useState = useState([]),
|
|
112
114
|
_useState2 = _slicedToArray(_useState, 2),
|
|
113
115
|
checkCount = _useState2[0],
|
|
@@ -132,11 +134,11 @@ var Box = function Box(props) {
|
|
|
132
134
|
setCheckCount(arr);
|
|
133
135
|
}, [data]);
|
|
134
136
|
useEffect(function () {
|
|
135
|
-
if (direction ==
|
|
137
|
+
if (direction == "right") {
|
|
136
138
|
new Sortable(ref.current, {
|
|
137
139
|
animation: 180,
|
|
138
|
-
ghostClass:
|
|
139
|
-
handle:
|
|
140
|
+
ghostClass: "blue-background-class",
|
|
141
|
+
handle: ".handle",
|
|
140
142
|
onEnd: function onEnd(evt) {
|
|
141
143
|
onEndSort === null || onEndSort === void 0 ? void 0 : onEndSort(evt.oldIndex, evt.newIndex);
|
|
142
144
|
}
|
|
@@ -149,8 +151,18 @@ var Box = function Box(props) {
|
|
|
149
151
|
}, function (e, index, item) {
|
|
150
152
|
if (item === null || item === void 0 ? void 0 : item.disabled) return;
|
|
151
153
|
onchange(e, true, index, direction, false);
|
|
152
|
-
onMove(direction === "right" ?
|
|
154
|
+
onMove(direction === "right" ? "left" : "right");
|
|
153
155
|
});
|
|
156
|
+
var itemStyle = function itemStyle(data) {
|
|
157
|
+
var stlye = {};
|
|
158
|
+
if (data === null || data === void 0 ? void 0 : data.tagColor) {
|
|
159
|
+
stlye.borderLeft = "4px solid ".concat(data.tagColor);
|
|
160
|
+
}
|
|
161
|
+
if (data === null || data === void 0 ? void 0 : data.hide) {
|
|
162
|
+
stlye.display = "none";
|
|
163
|
+
}
|
|
164
|
+
return stlye;
|
|
165
|
+
};
|
|
154
166
|
return jsxs("div", Object.assign({
|
|
155
167
|
className: "box",
|
|
156
168
|
style: style
|
|
@@ -162,7 +174,7 @@ var Box = function Box(props) {
|
|
|
162
174
|
})), jsx(Search, {
|
|
163
175
|
btnType: "inside",
|
|
164
176
|
placeholder: intl({
|
|
165
|
-
id:
|
|
177
|
+
id: "searchPlaceholder"
|
|
166
178
|
}),
|
|
167
179
|
showBtn: false,
|
|
168
180
|
rightIcon: jsx(SearchIcon, {}),
|
|
@@ -175,7 +187,7 @@ var Box = function Box(props) {
|
|
|
175
187
|
},
|
|
176
188
|
onEnter: function onEnter(event) {
|
|
177
189
|
var _a;
|
|
178
|
-
var val = ((_a = event.target) === null || _a === void 0 ? void 0 : _a.value) ||
|
|
190
|
+
var val = ((_a = event.target) === null || _a === void 0 ? void 0 : _a.value) || "";
|
|
179
191
|
onSearch(val, direction);
|
|
180
192
|
},
|
|
181
193
|
allowClear: false
|
|
@@ -184,56 +196,53 @@ var Box = function Box(props) {
|
|
|
184
196
|
ref: ref
|
|
185
197
|
}, {
|
|
186
198
|
children: data.map(function (item, index) {
|
|
187
|
-
if (item === null || item === void 0 ? void 0 : item.hide) return null;
|
|
188
199
|
return jsxs("div", Object.assign({
|
|
189
|
-
className: clsx(
|
|
190
|
-
style: (item
|
|
191
|
-
borderLeft: "4px solid ".concat(item.tagColor)
|
|
192
|
-
} : undefined,
|
|
200
|
+
className: clsx("item", (item === null || item === void 0 ? void 0 : item.disabled) && "item-disabled", (item === null || item === void 0 ? void 0 : item.checked) && "item-checked", fluctuationPosition === index && "item-fluctuation", fluctuationOrther === index && "item-fluctuationOrther"),
|
|
201
|
+
style: itemStyle(item),
|
|
193
202
|
onClick: function onClick(e) {
|
|
194
203
|
handler(e, index, item);
|
|
195
204
|
}
|
|
196
205
|
}, {
|
|
197
206
|
children: [jsx("div", Object.assign({
|
|
198
|
-
className:
|
|
207
|
+
className: "item-label"
|
|
199
208
|
}, {
|
|
200
209
|
children: jsx(AutoTips, {
|
|
201
210
|
children: (item === null || item === void 0 ? void 0 : item.name) || item[item[customKey]]
|
|
202
211
|
})
|
|
203
212
|
})), rightIcon ? jsx("div", Object.assign({
|
|
204
|
-
className:
|
|
213
|
+
className: "right-icon"
|
|
205
214
|
}, {
|
|
206
215
|
children: rightIcon(item)
|
|
207
|
-
})) : null, direction ===
|
|
208
|
-
className:
|
|
216
|
+
})) : null, direction === "right" ? jsx("div", Object.assign({
|
|
217
|
+
className: "handle"
|
|
209
218
|
}, {
|
|
210
219
|
children: jsx(Drag, {})
|
|
211
220
|
})) : null]
|
|
212
221
|
}), item[item[customKey]] || item.name);
|
|
213
222
|
})
|
|
214
223
|
})), jsxs("div", Object.assign({
|
|
215
|
-
className:
|
|
224
|
+
className: "footer"
|
|
216
225
|
}, {
|
|
217
226
|
children: [jsx(Button, Object.assign({
|
|
218
227
|
variant: "text",
|
|
219
|
-
className: "".concat(checkCount.length === data.length - disabledCount && data.length > 0 ?
|
|
228
|
+
className: "".concat(checkCount.length === data.length - disabledCount && data.length > 0 ? "btn-on" : ""),
|
|
220
229
|
onClick: function onClick() {
|
|
221
230
|
queryAll(checkCount.length !== data.length - disabledCount, direction);
|
|
222
231
|
}
|
|
223
232
|
}, {
|
|
224
233
|
children: intl({
|
|
225
|
-
id:
|
|
234
|
+
id: "allCheck"
|
|
226
235
|
})
|
|
227
236
|
})), jsx(Button, Object.assign({
|
|
228
237
|
variant: "text",
|
|
229
|
-
className: "".concat(checkCount.length === 0 || checkCount.length === data.length - disabledCount ?
|
|
238
|
+
className: "".concat(checkCount.length === 0 || checkCount.length === data.length - disabledCount ? "btn-off" : ""),
|
|
230
239
|
disabled: checkCount.length === 0 || checkCount.length === data.length - disabledCount,
|
|
231
240
|
onClick: function onClick() {
|
|
232
241
|
inverse(direction);
|
|
233
242
|
}
|
|
234
243
|
}, {
|
|
235
244
|
children: intl({
|
|
236
|
-
id:
|
|
245
|
+
id: "inVertCheck"
|
|
237
246
|
})
|
|
238
247
|
})), jsxs("div", Object.assign({
|
|
239
248
|
className: "count"
|
|
@@ -250,23 +259,23 @@ styleInject(css_248z);
|
|
|
250
259
|
|
|
251
260
|
var Transfer = function Transfer(props) {
|
|
252
261
|
var _a, _b, _c, _d;
|
|
253
|
-
var intl = useFormatMessage(
|
|
262
|
+
var intl = useFormatMessage("Transfer", localeJson);
|
|
254
263
|
var _props$data = props.data,
|
|
255
264
|
data = _props$data === void 0 ? [] : _props$data,
|
|
256
265
|
value = props.value,
|
|
257
266
|
_props$customKey = props.customKey,
|
|
258
|
-
customKey = _props$customKey === void 0 ?
|
|
267
|
+
customKey = _props$customKey === void 0 ? "key" : _props$customKey,
|
|
259
268
|
onChange = props.onChange,
|
|
260
269
|
_props$titles = props.titles,
|
|
261
270
|
titles = _props$titles === void 0 ? [intl({
|
|
262
|
-
id:
|
|
271
|
+
id: "left"
|
|
263
272
|
}), intl({
|
|
264
|
-
id:
|
|
273
|
+
id: "right"
|
|
265
274
|
})] : _props$titles,
|
|
266
275
|
className = props.className,
|
|
267
276
|
_props$style = props.style,
|
|
268
277
|
style = _props$style === void 0 ? {
|
|
269
|
-
width:
|
|
278
|
+
width: "298px"
|
|
270
279
|
} : _props$style,
|
|
271
280
|
onSort = props.onSort,
|
|
272
281
|
_props$trim = props.trim,
|
|
@@ -309,7 +318,7 @@ var Transfer = function Transfer(props) {
|
|
|
309
318
|
animationsLock = _useState16[0],
|
|
310
319
|
setAnimationLock = _useState16[1];
|
|
311
320
|
var onchange = useCallback(function (e, bol, index, direction, multiple) {
|
|
312
|
-
if (direction ===
|
|
321
|
+
if (direction === "left") {
|
|
313
322
|
!multiple && leftData.forEach(function (item) {
|
|
314
323
|
return item.checked = false;
|
|
315
324
|
});
|
|
@@ -324,7 +333,7 @@ var Transfer = function Transfer(props) {
|
|
|
324
333
|
}
|
|
325
334
|
}, [leftData, rightData]);
|
|
326
335
|
var queryAll = useCallback(function (checked, direction) {
|
|
327
|
-
if (direction ===
|
|
336
|
+
if (direction === "left") {
|
|
328
337
|
leftData.forEach(function (item) {
|
|
329
338
|
if (!item.disabled && !item.hide) item.checked = checked;
|
|
330
339
|
});
|
|
@@ -337,7 +346,7 @@ var Transfer = function Transfer(props) {
|
|
|
337
346
|
}
|
|
338
347
|
}, [leftData, rightData]);
|
|
339
348
|
var inverse = useCallback(function (direction) {
|
|
340
|
-
if (direction ===
|
|
349
|
+
if (direction === "left") {
|
|
341
350
|
leftData.forEach(function (item) {
|
|
342
351
|
if (!item.disabled && !item.hide) item.checked = !item.checked;
|
|
343
352
|
});
|
|
@@ -351,7 +360,7 @@ var Transfer = function Transfer(props) {
|
|
|
351
360
|
}, [leftData, rightData]);
|
|
352
361
|
var onMove = function onMove(direction) {
|
|
353
362
|
var newData = [];
|
|
354
|
-
if (direction ===
|
|
363
|
+
if (direction === "left") {
|
|
355
364
|
newData = _toConsumableArray(rightData);
|
|
356
365
|
newData.forEach(function (item) {
|
|
357
366
|
if ((item === null || item === void 0 ? void 0 : item.checked) && !(item === null || item === void 0 ? void 0 : item.hide)) {
|
|
@@ -381,7 +390,7 @@ var Transfer = function Transfer(props) {
|
|
|
381
390
|
// 上下移动
|
|
382
391
|
var fluctuation = function fluctuation(direction) {
|
|
383
392
|
setAnimationLock(true);
|
|
384
|
-
if (direction ==
|
|
393
|
+
if (direction == "up") {
|
|
385
394
|
// setFluctuationPosition(rightCount[0] - 1)
|
|
386
395
|
// setFluctuationOrther(rightCount[0])
|
|
387
396
|
// setTimeout(() => {
|
|
@@ -424,13 +433,13 @@ var Transfer = function Transfer(props) {
|
|
|
424
433
|
}
|
|
425
434
|
};
|
|
426
435
|
|
|
427
|
-
var onSearch = function
|
|
436
|
+
var onSearch = debounce(function (e, direction) {
|
|
428
437
|
var str = trim ? e.toUpperCase().trim() : e.toUpperCase();
|
|
429
|
-
if (direction ===
|
|
438
|
+
if (direction === "left") {
|
|
430
439
|
leftData.forEach(function (item) {
|
|
431
440
|
item.hide = false;
|
|
432
|
-
var name = (item.name ||
|
|
433
|
-
var description = (item.description ||
|
|
441
|
+
var name = (item.name || "").toUpperCase();
|
|
442
|
+
var description = (item.description || "").toUpperCase();
|
|
434
443
|
if (!(name.indexOf(str) !== -1 || description.indexOf(str) !== -1)) {
|
|
435
444
|
item.hide = true;
|
|
436
445
|
}
|
|
@@ -439,15 +448,15 @@ var Transfer = function Transfer(props) {
|
|
|
439
448
|
} else {
|
|
440
449
|
rightData.filter(function (item) {
|
|
441
450
|
item.hide = false;
|
|
442
|
-
var name = (item.name ||
|
|
443
|
-
var description = (item.description ||
|
|
451
|
+
var name = (item.name || "").toUpperCase();
|
|
452
|
+
var description = (item.description || "").toUpperCase();
|
|
444
453
|
if (!(name.indexOf(str) !== -1 || description.indexOf(str) !== -1)) {
|
|
445
454
|
item.hide = true;
|
|
446
455
|
}
|
|
447
456
|
});
|
|
448
457
|
setRightData(_toConsumableArray(rightData));
|
|
449
458
|
}
|
|
450
|
-
};
|
|
459
|
+
}, 500);
|
|
451
460
|
var onEndSort = useCallback(function (oldIndex, newIndex) {
|
|
452
461
|
setRightData(function (pre) {
|
|
453
462
|
pre.splice.apply(pre, [newIndex, 0].concat(_toConsumableArray(pre.splice(oldIndex, 1))));
|
|
@@ -522,15 +531,15 @@ var Transfer = function Transfer(props) {
|
|
|
522
531
|
className: "moveBtn"
|
|
523
532
|
}, {
|
|
524
533
|
children: [jsx(Button.IconButton, Object.assign({
|
|
525
|
-
className:
|
|
526
|
-
variant:
|
|
534
|
+
className: "btn btn-right",
|
|
535
|
+
variant: "outlined",
|
|
527
536
|
disabled: leftCount.length <= 0,
|
|
528
537
|
toolTipTitle: leftCount.length <= 0 ? intl({
|
|
529
|
-
id:
|
|
530
|
-
}) :
|
|
538
|
+
id: "rightBtnTips"
|
|
539
|
+
}) : "",
|
|
531
540
|
TooltipProps: {
|
|
532
541
|
arrow: false,
|
|
533
|
-
placement:
|
|
542
|
+
placement: "bottomRight"
|
|
534
543
|
},
|
|
535
544
|
onClick: function onClick() {
|
|
536
545
|
onMove("right");
|
|
@@ -538,50 +547,50 @@ var Transfer = function Transfer(props) {
|
|
|
538
547
|
}, {
|
|
539
548
|
children: jsx(Right, {})
|
|
540
549
|
})), jsx(Button.IconButton, Object.assign({
|
|
541
|
-
className:
|
|
542
|
-
variant:
|
|
550
|
+
className: "btn btn-left",
|
|
551
|
+
variant: "outlined",
|
|
543
552
|
disabled: rightCount.length <= 0 || ((_a = rightData[0]) === null || _a === void 0 ? void 0 : _a.checked) || animationsLock,
|
|
544
553
|
toolTipTitle: rightCount.length <= 0 || ((_b = rightData[0]) === null || _b === void 0 ? void 0 : _b.checked) ? intl({
|
|
545
|
-
id:
|
|
546
|
-
}) :
|
|
554
|
+
id: "leftBtnTips"
|
|
555
|
+
}) : "",
|
|
547
556
|
TooltipProps: {
|
|
548
557
|
arrow: false,
|
|
549
|
-
placement:
|
|
558
|
+
placement: "bottomRight"
|
|
550
559
|
},
|
|
551
560
|
onClick: function onClick() {
|
|
552
|
-
fluctuation(
|
|
561
|
+
fluctuation("up");
|
|
553
562
|
}
|
|
554
563
|
}, {
|
|
555
564
|
children: jsx(ExpandLess, {})
|
|
556
565
|
})), jsx(Button.IconButton, Object.assign({
|
|
557
|
-
className:
|
|
558
|
-
variant:
|
|
566
|
+
className: "btn btn-left",
|
|
567
|
+
variant: "outlined",
|
|
559
568
|
disabled: rightCount.length <= 0 || ((_c = rightData[rightData.length - 1]) === null || _c === void 0 ? void 0 : _c.checked) || animationsLock,
|
|
560
569
|
toolTipTitle: rightCount.length <= 0 || ((_d = rightData[rightData.length - 1]) === null || _d === void 0 ? void 0 : _d.checked) ? intl({
|
|
561
|
-
id:
|
|
562
|
-
}) :
|
|
570
|
+
id: "leftBtnTips"
|
|
571
|
+
}) : "",
|
|
563
572
|
TooltipProps: {
|
|
564
573
|
arrow: false,
|
|
565
|
-
placement:
|
|
574
|
+
placement: "bottomRight"
|
|
566
575
|
},
|
|
567
576
|
onClick: function onClick() {
|
|
568
|
-
fluctuation(
|
|
577
|
+
fluctuation("down");
|
|
569
578
|
}
|
|
570
579
|
}, {
|
|
571
580
|
children: jsx(Down, {})
|
|
572
581
|
})), jsx(Button.IconButton, Object.assign({
|
|
573
|
-
className:
|
|
574
|
-
variant:
|
|
582
|
+
className: "btn btn-left",
|
|
583
|
+
variant: "outlined",
|
|
575
584
|
disabled: rightCount.length <= 0,
|
|
576
585
|
toolTipTitle: rightCount.length <= 0 ? intl({
|
|
577
|
-
id:
|
|
578
|
-
}) :
|
|
586
|
+
id: "leftBtnTips"
|
|
587
|
+
}) : "",
|
|
579
588
|
TooltipProps: {
|
|
580
589
|
arrow: false,
|
|
581
|
-
placement:
|
|
590
|
+
placement: "bottomRight"
|
|
582
591
|
},
|
|
583
592
|
onClick: function onClick() {
|
|
584
|
-
onMove(
|
|
593
|
+
onMove("left");
|
|
585
594
|
}
|
|
586
595
|
}, {
|
|
587
596
|
children: jsx(NavigateBefore, {})
|
package/Tree/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-
|
|
2
|
-
export { T as default } from '../_verture/index-
|
|
1
|
+
import { T as Tree } from '../_verture/index-9738004e.js';
|
|
2
|
+
export { T as default } from '../_verture/index-9738004e.js';
|
|
3
3
|
import '../_verture/toConsumableArray-81040c9e.js';
|
|
4
4
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
5
5
|
import '../_verture/defineProperty-62acccfc.js';
|
|
@@ -1355,7 +1355,7 @@ if (!Element.prototype.closest) {
|
|
|
1355
1355
|
};
|
|
1356
1356
|
}
|
|
1357
1357
|
|
|
1358
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/9 下午8:39\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-tree-treenode-leaf-last .paraui-v3-tree-switcher-leaf-line::before {\n top: auto !important;\n bottom: auto !important;\n height: 14px !important;\n}\n\n@keyframes treeCheckboxEffect {\n 0% {\n transform: scale(1);\n opacity: 0.5;\n }\n 100% {\n transform: scale(1.6);\n opacity: 0;\n }\n}\n.paraui-v3-tree-rtl {\n direction: rtl;\n}\n.paraui-v3-tree-rtl .paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator::after {\n right: -6px;\n left: unset;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-rtl {\n direction: rtl;\n}\n.paraui-v3-tree-rtl .paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon svg {\n transform: rotate(90deg);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before .paraui-v3-tree-rtl.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before {\n right: auto;\n left: -13px;\n border-right: none;\n border-left: 1px solid #d9d9d9;\n}\n.paraui-v3-tree-checkbox .paraui-v3-tree-rtl.paraui-v3-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v3-tree-select-dropdown-rtl .paraui-v3-select-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v3-tree-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: relative;\n top: 0.2em;\n line-height: 1;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n}\n.paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox-inner, .paraui-v3-tree-checkbox:hover .paraui-v3-tree-checkbox-inner, .paraui-v3-tree-checkbox-input:focus + .paraui-v3-tree-checkbox-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-tree-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid rgb(54, 102, 214);\n border-radius: 2px;\n visibility: hidden;\n animation: treeCheckboxEffect 0.36s ease-in-out;\n animation-fill-mode: backwards;\n content: \"\";\n box-sizing: border-box;\n}\n.paraui-v3-tree-checkbox:hover::after, .paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox::after {\n visibility: visible;\n}\n.paraui-v3-tree-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n direction: ltr;\n background-color: rgb(255, 255, 255);\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n border-collapse: separate;\n transition: all 0.3s;\n}\n.paraui-v3-tree-checkbox-inner::after {\n position: absolute;\n top: 50%;\n left: 21.5%;\n display: table;\n width: 6px;\n height: 9px;\n border: 2px solid rgb(255, 255, 255);\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(0) translate(-50%, -50%);\n opacity: 0;\n transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;\n content: \" \";\n box-sizing: border-box;\n}\n.paraui-v3-tree-checkbox-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n}\n\n.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 2px solid rgb(255, 255, 255);\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(1) translate(-50%, -50%);\n opacity: 1;\n transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n content: \" \";\n}\n\n.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner {\n background-color: rgb(54, 102, 214);\n border-color: rgb(54, 102, 214);\n}\n\n.paraui-v3-tree-checkbox-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner::after {\n border-color: rgba(0, 0, 0, 0.25);\n animation-name: none;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-input {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner::after {\n border-color: #f5f5f5;\n border-collapse: separate;\n animation-name: none;\n}\n.paraui-v3-tree-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled:hover::after, .paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox-disabled::after {\n visibility: hidden;\n}\n\n.paraui-v3-tree-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n display: inline-flex;\n align-items: baseline;\n line-height: unset;\n cursor: pointer;\n}\n.paraui-v3-tree-checkbox-wrapper.paraui-v3-tree-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-wrapper + .paraui-v3-tree-checkbox-wrapper {\n margin-left: 8px;\n}\n\n.paraui-v3-tree-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.paraui-v3-tree-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n display: inline-block;\n}\n.paraui-v3-tree-checkbox-group-item {\n margin-right: 8px;\n}\n.paraui-v3-tree-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.paraui-v3-tree-checkbox-group-item + .paraui-v3-tree-checkbox-group-item {\n margin-left: 0;\n}\n\n.paraui-v3-tree-checkbox-indeterminate .paraui-v3-tree-checkbox-inner {\n background-color: rgb(54, 102, 214);\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-tree-checkbox-indeterminate .paraui-v3-tree-checkbox-inner::after {\n top: 50%;\n left: 50%;\n width: 8px;\n height: 2px;\n background-color: rgb(255, 255, 255);\n border: 0;\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n content: \" \";\n}\n.paraui-v3-tree-checkbox-indeterminate.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner::after {\n background-color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n\n.paraui-v3-tree-wrapper .paraui-v3-tree-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.paraui-v3-tree {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n background: rgb(255, 255, 255);\n border-radius: 2px;\n transition: background-color 0.3s;\n}\n.paraui-v3-tree-focused:not(:hover):not(.paraui-v3-tree-active-focused) {\n background: #e6f7ff;\n}\n.paraui-v3-tree-list-holder-inner {\n align-items: flex-start;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner {\n align-items: stretch;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner .paraui-v3-tree-node-content-wrapper {\n flex: auto;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode {\n display: flex;\n align-items: flex-start;\n outline: none;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-disabled .paraui-v3-tree-node-content-wrapper {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-disabled .paraui-v3-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-active .paraui-v3-tree-node-content-wrapper {\n background: #f5f5f5;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode:not(.paraui-v3-tree .paraui-v3-tree-treenode-disabled).filter-node .paraui-v3-tree-title {\n color: inherit;\n font-weight: 500;\n}\n.paraui-v3-tree-indent {\n align-self: stretch;\n white-space: nowrap;\n user-select: none;\n}\n.paraui-v3-tree-indent-unit {\n display: inline-block;\n width: 24px;\n}\n.paraui-v3-tree-switcher {\n position: relative;\n flex: none;\n align-self: stretch;\n width: 24px;\n margin: 0;\n line-height: 24px;\n text-align: center;\n cursor: pointer;\n user-select: none;\n}\n.paraui-v3-tree-switcher .paraui-v3-tree-switcher-icon,\n.paraui-v3-tree-switcher .paraui-v3-select-tree-switcher-icon {\n display: inline-block;\n font-size: 14px;\n vertical-align: middle;\n transition: transform 0.3s;\n color: inherit;\n}\n.paraui-v3-tree-switcher .paraui-v3-tree-switcher-icon svg,\n.paraui-v3-tree-switcher .paraui-v3-select-tree-switcher-icon svg {\n font-size: inherit;\n color: inherit;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-switcher-noop {\n cursor: default;\n}\n.paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon {\n transform: rotate(-90deg);\n}\n.paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon svg {\n color: currentColor;\n transform: rotate(-90deg);\n}\n.paraui-v3-tree-switcher-loading-icon {\n color: rgb(54, 102, 214);\n will-change: transform;\n transition: transform 0.3s ease-in-out;\n animation: treeLoadingCircle 1s infinite linear;\n vertical-align: middle;\n font-size: 14px !important;\n}\n@keyframes treeLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n.paraui-v3-tree-switcher-leaf-line {\n position: relative;\n z-index: 1;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.paraui-v3-tree-switcher-leaf-line::before {\n position: absolute;\n top: 0;\n bottom: -4px;\n margin-left: -1px;\n border-left: 1px solid #d9d9d9;\n content: \" \";\n}\n.paraui-v3-tree-switcher-leaf-line::after {\n position: absolute;\n width: 10px;\n height: 14px;\n margin-left: -1px;\n border-bottom: 1px solid #d9d9d9;\n content: \" \";\n}\n.paraui-v3-tree-checkbox {\n top: initial;\n margin: 6px 6px 0 0;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper {\n position: relative;\n z-index: auto;\n min-height: 24px;\n margin: 2px 0 0 0;\n padding: 0 6px;\n color: inherit;\n line-height: 24px;\n background: transparent;\n border-radius: 2px;\n cursor: pointer;\n transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper:hover {\n background-color: rgba(171, 176, 185, 0.12);\n border-radius: 4px;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper.paraui-v3-tree-node-selected {\n background-color: transparent;\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle {\n display: inline-block;\n width: 24px;\n height: 24px;\n margin-left: -6px;\n line-height: 24px;\n text-align: center;\n vertical-align: top;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle > svg {\n vertical-align: -0.125em;\n color: inherit;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle:empty {\n display: none;\n}\n.paraui-v3-tree-unselectable .paraui-v3-tree-node-content-wrapper:hover {\n background-color: transparent;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] {\n line-height: 24px;\n user-select: none;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator {\n position: absolute;\n z-index: 1;\n height: 2px;\n background-color: rgb(54, 102, 214);\n border-radius: 1px;\n pointer-events: none;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator::after {\n position: absolute;\n top: -3px;\n left: -6px;\n width: 8px;\n height: 8px;\n background-color: transparent;\n border: 2px solid rgb(54, 102, 214);\n border-radius: 50%;\n content: \"\";\n}\n.paraui-v3-tree .paraui-v3-tree-treenode.drop-container > [draggable] {\n box-shadow: 0 0 0 2px rgb(54, 102, 214);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit {\n position: relative;\n height: 100%;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before {\n position: absolute;\n top: 0;\n right: 12px;\n bottom: -4px;\n border-right: 1px solid #d9d9d9;\n content: \"\";\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit-end::before {\n display: none;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher {\n background: rgb(255, 255, 255);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher_close svg {\n transform: rotate(-90deg);\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher_open svg {\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher-line-icon {\n vertical-align: -0.225em;\n color: inherit;\n font-size: 14px;\n}\n.paraui-v3-tree-node-content-wrapper {\n overflow: hidden;\n}\n.paraui-v3-tree-node-content-wrapper .paraui-v3-tree-title {\n display: flex;\n align-items: center;\n}\n.paraui-v3-tree-node-content-wrapper .paraui-v3-tree-treenode-more-wrapper {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper--active {\n background-color: rgba(171, 176, 185, 0.12) !important;\n border-radius: 4px !important;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper--active .sector-anchor {\n opacity: 1 !important;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner .paraui-v3-tree-node-content-wrapper {\n flex-grow: 0;\n flex-shrink: 1;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper {\n display: inline-flex;\n align-items: center;\n margin: 0 -6px;\n padding: 0 6px;\n overflow: hidden;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor {\n position: relative;\n width: 14px;\n height: 14px;\n margin: 1px 0 0 18px;\n line-height: 14px;\n opacity: 0;\n transition: opacity 0.3s;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor:before {\n content: \" \";\n position: absolute;\n left: -9px;\n top: 0;\n width: 1px;\n height: 14px;\n background-color: rgba(171, 176, 185, 0.2);\n pointer-events: none;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor svg {\n font-size: 14px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor--active.sector-anchor svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper--active .sector-anchor {\n opacity: 1;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-iconEle {\n position: absolute;\n left: 8px;\n top: 0;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-checkbox {\n display: none !important;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-checkbox-checked + .paraui-v3-tree-node-content-wrapper {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-node-radio {\n width: 16px;\n height: 16px;\n padding: 0;\n margin-top: 4px;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable-showradio .paraui-v3-tree-node-content-wrapper {\n padding-left: 28px;\n}\n\n.paraui-v3-tree-motion-collapse {\n overflow: hidden;\n transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;\n}";
|
|
1358
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/9 下午8:39\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-tree-treenode-leaf-last .paraui-v3-tree-switcher-leaf-line::before {\n top: auto !important;\n bottom: auto !important;\n height: 14px !important;\n}\n\n@keyframes treeCheckboxEffect {\n 0% {\n transform: scale(1);\n opacity: 0.5;\n }\n 100% {\n transform: scale(1.6);\n opacity: 0;\n }\n}\n.paraui-v3-tree-rtl {\n direction: rtl;\n}\n.paraui-v3-tree-rtl .paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator::after {\n right: -6px;\n left: unset;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-rtl {\n direction: rtl;\n}\n.paraui-v3-tree-rtl .paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon svg {\n transform: rotate(90deg);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before .paraui-v3-tree-rtl.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before {\n right: auto;\n left: -13px;\n border-right: none;\n border-left: 1px solid #d9d9d9;\n}\n.paraui-v3-tree-checkbox .paraui-v3-tree-rtl.paraui-v3-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v3-tree-select-dropdown-rtl .paraui-v3-select-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v3-tree-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: relative;\n top: 0.2em;\n line-height: 1;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n}\n.paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox-inner, .paraui-v3-tree-checkbox:hover .paraui-v3-tree-checkbox-inner, .paraui-v3-tree-checkbox-input:focus + .paraui-v3-tree-checkbox-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-tree-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid rgb(54, 102, 214);\n border-radius: 2px;\n visibility: hidden;\n animation: treeCheckboxEffect 0.36s ease-in-out;\n animation-fill-mode: backwards;\n content: \"\";\n box-sizing: border-box;\n}\n.paraui-v3-tree-checkbox:hover::after, .paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox::after {\n visibility: visible;\n}\n.paraui-v3-tree-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n direction: ltr;\n background-color: rgb(255, 255, 255);\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n border-collapse: separate;\n transition: all 0.3s;\n}\n.paraui-v3-tree-checkbox-inner::after {\n position: absolute;\n top: 50%;\n left: 21.5%;\n display: table;\n width: 6px;\n height: 9px;\n border: 2px solid rgb(255, 255, 255);\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(0) translate(-50%, -50%);\n opacity: 0;\n transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;\n content: \" \";\n box-sizing: border-box;\n}\n.paraui-v3-tree-checkbox-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n}\n\n.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 2px solid rgb(255, 255, 255);\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(1) translate(-50%, -50%);\n opacity: 1;\n transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n content: \" \";\n}\n\n.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner {\n background-color: rgb(54, 102, 214);\n border-color: rgb(54, 102, 214);\n}\n\n.paraui-v3-tree-checkbox-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner::after {\n border-color: rgba(0, 0, 0, 0.25);\n animation-name: none;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-input {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner::after {\n border-color: #f5f5f5;\n border-collapse: separate;\n animation-name: none;\n}\n.paraui-v3-tree-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled:hover::after, .paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox-disabled::after {\n visibility: hidden;\n}\n\n.paraui-v3-tree-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n display: inline-flex;\n align-items: baseline;\n line-height: unset;\n cursor: pointer;\n}\n.paraui-v3-tree-checkbox-wrapper.paraui-v3-tree-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-wrapper + .paraui-v3-tree-checkbox-wrapper {\n margin-left: 8px;\n}\n\n.paraui-v3-tree-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.paraui-v3-tree-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n display: inline-block;\n}\n.paraui-v3-tree-checkbox-group-item {\n margin-right: 8px;\n}\n.paraui-v3-tree-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.paraui-v3-tree-checkbox-group-item + .paraui-v3-tree-checkbox-group-item {\n margin-left: 0;\n}\n\n.paraui-v3-tree-checkbox-indeterminate .paraui-v3-tree-checkbox-inner {\n background-color: rgb(54, 102, 214);\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-tree-checkbox-indeterminate .paraui-v3-tree-checkbox-inner::after {\n top: 50%;\n left: 50%;\n width: 8px;\n height: 2px;\n background-color: rgb(255, 255, 255);\n border: 0;\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n content: \" \";\n}\n.paraui-v3-tree-checkbox-indeterminate.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner::after {\n background-color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n\n.paraui-v3-tree-wrapper .paraui-v3-tree-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.paraui-v3-tree {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n background: rgb(255, 255, 255);\n border-radius: 2px;\n transition: background-color 0.3s;\n}\n.paraui-v3-tree-focused:not(:hover):not(.paraui-v3-tree-active-focused) {\n background: #e6f7ff;\n}\n.paraui-v3-tree-list-holder-inner {\n align-items: flex-start;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner {\n align-items: stretch;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner .paraui-v3-tree-node-content-wrapper {\n flex: auto;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode {\n display: flex;\n align-items: flex-start;\n outline: none;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-disabled .paraui-v3-tree-node-content-wrapper {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-disabled .paraui-v3-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-active .paraui-v3-tree-node-content-wrapper {\n background: #f5f5f5;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode:not(.paraui-v3-tree .paraui-v3-tree-treenode-disabled).filter-node .paraui-v3-tree-title {\n color: inherit;\n font-weight: 500;\n}\n.paraui-v3-tree-indent {\n align-self: stretch;\n white-space: nowrap;\n user-select: none;\n}\n.paraui-v3-tree-indent-unit {\n display: inline-block;\n width: 24px;\n}\n.paraui-v3-tree-switcher {\n position: relative;\n flex: none;\n align-self: stretch;\n width: 24px;\n margin: 0;\n line-height: 24px;\n text-align: center;\n cursor: pointer;\n user-select: none;\n}\n.paraui-v3-tree-switcher .paraui-v3-tree-switcher-icon,\n.paraui-v3-tree-switcher .paraui-v3-select-tree-switcher-icon {\n display: inline-block;\n font-size: 14px;\n vertical-align: middle;\n transition: transform 0.3s;\n color: inherit;\n}\n.paraui-v3-tree-switcher .paraui-v3-tree-switcher-icon svg,\n.paraui-v3-tree-switcher .paraui-v3-select-tree-switcher-icon svg {\n font-size: inherit;\n color: inherit;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-switcher-noop {\n cursor: default;\n}\n.paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon {\n transform: rotate(-90deg);\n}\n.paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon svg {\n color: currentColor;\n transform: rotate(-90deg);\n}\n.paraui-v3-tree-switcher-loading-icon {\n color: rgb(54, 102, 214);\n will-change: transform;\n transition: transform 0.3s ease-in-out;\n animation: treeLoadingCircle 1s infinite linear;\n vertical-align: middle;\n font-size: 14px !important;\n}\n@keyframes treeLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n.paraui-v3-tree-switcher-leaf-line {\n position: relative;\n z-index: 1;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.paraui-v3-tree-switcher-leaf-line::before {\n position: absolute;\n top: 0;\n bottom: -4px;\n margin-left: -1px;\n border-left: 1px solid #d9d9d9;\n content: \" \";\n}\n.paraui-v3-tree-switcher-leaf-line::after {\n position: absolute;\n width: 10px;\n height: 14px;\n margin-left: -1px;\n border-bottom: 1px solid #d9d9d9;\n content: \" \";\n}\n.paraui-v3-tree-checkbox {\n top: initial;\n margin: 6px 6px 0 0;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper {\n position: relative;\n z-index: auto;\n min-height: 24px;\n margin: 2px 0 0 0;\n padding: 0 6px;\n color: inherit;\n line-height: 24px;\n background: transparent;\n border-radius: 2px;\n cursor: pointer;\n transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper:hover {\n background-color: rgba(171, 176, 185, 0.12);\n border-radius: 4px;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper.paraui-v3-tree-node-selected {\n background-color: transparent;\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle {\n display: inline-block;\n width: 24px;\n height: 24px;\n margin-left: -6px;\n line-height: 26px;\n text-align: center;\n vertical-align: top;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle > svg {\n vertical-align: -0.125em;\n color: inherit;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle:empty {\n display: none;\n}\n.paraui-v3-tree-unselectable .paraui-v3-tree-node-content-wrapper:hover {\n background-color: transparent;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] {\n line-height: 24px;\n user-select: none;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator {\n position: absolute;\n z-index: 1;\n height: 2px;\n background-color: rgb(54, 102, 214);\n border-radius: 1px;\n pointer-events: none;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator::after {\n position: absolute;\n top: -3px;\n left: -6px;\n width: 8px;\n height: 8px;\n background-color: transparent;\n border: 2px solid rgb(54, 102, 214);\n border-radius: 50%;\n content: \"\";\n}\n.paraui-v3-tree .paraui-v3-tree-treenode.drop-container > [draggable] {\n box-shadow: 0 0 0 2px rgb(54, 102, 214);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit {\n position: relative;\n height: 100%;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before {\n position: absolute;\n top: 0;\n right: 12px;\n bottom: -4px;\n border-right: 1px solid #d9d9d9;\n content: \"\";\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit-end::before {\n display: none;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher {\n background: rgb(255, 255, 255);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher_close svg {\n transform: rotate(-90deg);\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher_open svg {\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher-line-icon {\n vertical-align: -0.225em;\n color: inherit;\n font-size: 14px;\n}\n.paraui-v3-tree-node-content-wrapper {\n overflow: hidden;\n display: flex;\n}\n.paraui-v3-tree-node-content-wrapper .paraui-v3-tree-title {\n display: flex;\n align-items: center;\n}\n.paraui-v3-tree-node-content-wrapper .paraui-v3-tree-treenode-more-wrapper {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper--active {\n background-color: rgba(171, 176, 185, 0.12) !important;\n border-radius: 4px !important;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper--active .sector-anchor {\n opacity: 1 !important;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner .paraui-v3-tree-node-content-wrapper {\n flex-grow: 0;\n flex-shrink: 1;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper {\n display: inline-flex;\n align-items: center;\n margin: 0 -6px;\n padding: 0 6px;\n overflow: hidden;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor {\n position: relative;\n width: 14px;\n height: 14px;\n margin: 1px 0 0 18px;\n line-height: 14px;\n opacity: 0;\n transition: opacity 0.3s;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor:before {\n content: \" \";\n position: absolute;\n left: -9px;\n top: 0;\n width: 1px;\n height: 14px;\n background-color: rgba(171, 176, 185, 0.2);\n pointer-events: none;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor svg {\n font-size: 14px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor--active.sector-anchor svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper--active .sector-anchor {\n opacity: 1;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-iconEle {\n position: absolute;\n left: 8px;\n top: 0;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-checkbox {\n display: none !important;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-checkbox-checked + .paraui-v3-tree-node-content-wrapper {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-node-radio {\n width: 16px;\n height: 16px;\n padding: 0;\n margin-top: 4px;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable-showradio .paraui-v3-tree-node-content-wrapper {\n padding-left: 28px;\n}\n\n.paraui-v3-tree-motion-collapse {\n overflow: hidden;\n transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;\n}";
|
|
1359
1359
|
styleInject(css_248z);
|
|
1360
1360
|
|
|
1361
1361
|
export { Tree as T };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './defineProperty-62acccfc.js';
|
|
2
|
+
|
|
3
|
+
//获取替换字段
|
|
4
|
+
var getReplaceField = function getReplaceField(mode, repl, tableP, treeP) {
|
|
5
|
+
var t = {};
|
|
6
|
+
if (mode === "tree") t = treeP === null || treeP === void 0 ? void 0 : treeP.replaceFields;else t = tableP === null || tableP === void 0 ? void 0 : tableP.replaceFields;
|
|
7
|
+
return Object.assign(Object.assign({}, repl), t);
|
|
8
|
+
};
|
|
9
|
+
//to array
|
|
10
|
+
var toArray = function toArray(list) {
|
|
11
|
+
if (!list) return [];
|
|
12
|
+
return Array.isArray(list) ? list : JSON.stringify(list) === "{}" ? [] : [list];
|
|
13
|
+
};
|
|
14
|
+
var isRemoteLoad = function isRemoteLoad(mode, props) {
|
|
15
|
+
if (mode === "table") {
|
|
16
|
+
return !(props && Array.isArray(props.data));
|
|
17
|
+
}
|
|
18
|
+
return !(props && Array.isArray(props.treeData));
|
|
19
|
+
};
|
|
20
|
+
var getOverlaySize = function getOverlaySize(mode) {
|
|
21
|
+
var isRemoteLoad = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
22
|
+
var maxHeight = arguments.length > 2 ? arguments[2] : undefined;
|
|
23
|
+
var height = arguments.length > 3 ? arguments[3] : undefined;
|
|
24
|
+
var _a;
|
|
25
|
+
var screenH = 720;
|
|
26
|
+
var treeOverlay = "".concat(maxHeight || 254, "px");
|
|
27
|
+
var listOverlay = "".concat(maxHeight || 232, "px");
|
|
28
|
+
// let largeScreenH = 880;
|
|
29
|
+
var largeTreeOverlayH = "".concat(maxHeight || 338, "px");
|
|
30
|
+
var largeListOverlayH = "".concat(maxHeight || 304, "px");
|
|
31
|
+
var clientH = document.documentElement.clientHeight;
|
|
32
|
+
var fixHeight = height !== undefined ? "height" : "maxHeight";
|
|
33
|
+
if (mode === "tree") {
|
|
34
|
+
//tree
|
|
35
|
+
if (clientH <= screenH) {
|
|
36
|
+
//小屏幕
|
|
37
|
+
return isRemoteLoad ? {
|
|
38
|
+
height: treeOverlay
|
|
39
|
+
} : _defineProperty({}, fixHeight, treeOverlay);
|
|
40
|
+
}
|
|
41
|
+
//大屏幕
|
|
42
|
+
return isRemoteLoad ? {
|
|
43
|
+
height: largeTreeOverlayH
|
|
44
|
+
} : _defineProperty({}, fixHeight, largeTreeOverlayH);
|
|
45
|
+
} else if (mode === "list") {
|
|
46
|
+
//list
|
|
47
|
+
if (clientH <= screenH) {
|
|
48
|
+
return isRemoteLoad ? {
|
|
49
|
+
height: listOverlay
|
|
50
|
+
} : _defineProperty({}, fixHeight, listOverlay);
|
|
51
|
+
}
|
|
52
|
+
return isRemoteLoad ? {
|
|
53
|
+
height: largeListOverlayH
|
|
54
|
+
} : _defineProperty({}, fixHeight, largeListOverlayH);
|
|
55
|
+
} else {
|
|
56
|
+
//table
|
|
57
|
+
return {
|
|
58
|
+
height: "".concat((_a = maxHeight !== null && maxHeight !== void 0 ? maxHeight : height) !== null && _a !== void 0 ? _a : 360, "px")
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
// 实现一个防抖函数,debounce接受一个函数func和delay时间作为参数,返回一个防抖函数。使用泛型T保证返回防抖函数的类型与原func一致
|
|
63
|
+
function debounce(func, delay) {
|
|
64
|
+
var timer;
|
|
65
|
+
return function () {
|
|
66
|
+
var _this = this;
|
|
67
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
68
|
+
args[_key] = arguments[_key];
|
|
69
|
+
}
|
|
70
|
+
if (timer) clearTimeout(timer);
|
|
71
|
+
timer = setTimeout(function () {
|
|
72
|
+
func.apply(_this, args);
|
|
73
|
+
}, delay);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { getOverlaySize as a, debounce as d, getReplaceField as g, isRemoteLoad as i, toArray as t };
|
package/index.js
CHANGED
|
@@ -22,7 +22,7 @@ export { D as Dropdown } from './_verture/index-77f9e0fb.js';
|
|
|
22
22
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
23
23
|
export { default as Empty } from './Empty/index.js';
|
|
24
24
|
export { default as Form } from './Form/index.js';
|
|
25
|
-
export { F as FormItem } from './_verture/index-
|
|
25
|
+
export { F as FormItem } from './_verture/index-fa8a0124.js';
|
|
26
26
|
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-20780c9a.js';
|
|
27
27
|
export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
|
|
28
28
|
export { default as Help } from './Help/index.js';
|
|
@@ -69,7 +69,7 @@ export { Title } from './Title/index.js';
|
|
|
69
69
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
70
70
|
export { Tooltip } from './Tooltip/index.js';
|
|
71
71
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
72
|
-
export { T as Tree } from './_verture/index-
|
|
72
|
+
export { T as Tree } from './_verture/index-9738004e.js';
|
|
73
73
|
export { default as Upload } from './Upload/index.js';
|
|
74
74
|
export { default as locale } from './locale/index.js';
|
|
75
75
|
import './_verture/slicedToArray-76060636.js';
|
|
@@ -105,6 +105,7 @@ import '@para-ui/icons/DoubleRight';
|
|
|
105
105
|
import '@para-ui/icons/Search';
|
|
106
106
|
import '@para-ui/icons/Close';
|
|
107
107
|
import '@para-ui/icons/CloseCircle';
|
|
108
|
+
import './_verture/utils-c9b9a157.js';
|
|
108
109
|
import './_verture/useGlobalProps-1b846a65.js';
|
|
109
110
|
import 'rc-picker/es/generate/dayjs';
|
|
110
111
|
import 'rc-picker';
|