@para-ui/core 4.0.0-rc → 4.0.0-rc.2
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/AutoBox/index.d.ts +1 -1
- package/AutoBox/index.js +12 -12
- package/AutoTips/autoTipsMultiline/index.d.ts +1 -1
- package/AutoTips/index.d.ts +2 -2
- package/AutoTips/index.js +15 -21
- package/Badge/index.d.ts +23 -0
- package/Badge/index.js +54 -0
- package/Breadcrumbs/index.js +8 -8
- package/Button/SplitButton.d.ts +1 -1
- package/Button/index.d.ts +1 -1
- package/Button/index.js +8 -38
- package/Carousel/index.d.ts +6 -6
- package/Carousel/index.js +5 -5
- package/Cascader/Cascader.d.ts +10 -10
- package/Cascader/OptionList/Column.d.ts +3 -3
- package/Cascader/OptionList/index.d.ts +2 -2
- package/Cascader/index.d.ts +1 -1
- package/Cascader/index.js +4 -2
- package/Cascader/lang/en_US.d.ts +5 -0
- package/Cascader/lang/index.d.ts +11 -0
- package/Cascader/lang/zh_CN.d.ts +5 -0
- package/Cascader/utils/treeUtil.d.ts +1 -1
- package/Checkbox/index.d.ts +1 -1
- package/Checkbox/index.js +5 -5
- package/CheckboxGroup/index.d.ts +2 -2
- package/CheckboxGroup/index.js +4 -4
- package/Collapse/index.js +5 -5
- package/CollapseBox/index.js +12 -20
- package/CollapseLayout/index.js +21 -21
- package/ColorPicker/index.js +2 -2
- package/ComboSelect/index.js +43 -52
- package/ComboSelect/interface.d.ts +3 -3
- package/Container/index.d.ts +3 -3
- package/Container/index.js +56 -56
- package/CopyText/index.d.ts +2 -2
- package/CopyText/index.js +3 -3
- package/DatePicker/generatePicker/index.d.ts +22 -22
- package/DatePicker/index.js +10 -9
- package/DatePicker/util.d.ts +1 -1
- package/Descriptions/index.d.ts +38 -0
- package/Descriptions/index.js +23 -0
- package/Desktop/index.d.ts +1 -1
- package/Desktop/index.js +18 -13
- package/DragVerify/index.d.ts +1 -1
- package/DragVerify/index.js +13 -13
- package/Drawer/index.js +40 -38
- package/Drawer/interface.d.ts +4 -6
- package/Dropdown/index.d.ts +1 -1
- package/DynamicMultiBox/formItem.d.ts +1 -1
- package/DynamicMultiBox/index.d.ts +1 -1
- package/DynamicMultiBox/index.js +38 -35
- package/DynamicMultiBox/interface.d.ts +8 -8
- package/DynamicMultiBox/rowForm.d.ts +3 -1
- package/Empty/index.d.ts +1 -1
- package/Empty/index.js +3 -3
- package/Form/index.d.ts +12 -13
- package/Form/index.js +10 -8
- package/FormItem/compoments/defaultCompoments/index.d.ts +4 -4
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +1 -1
- package/FormItem/compoments/formFile/index.d.ts +2 -2
- package/FormItem/compoments/formRadioGroup/index.d.ts +1 -1
- package/FormItem/compoments/formSelect/index.d.ts +7 -7
- package/FormItem/errorTips.d.ts +3 -3
- package/FormItem/index.d.ts +5 -5
- package/FormItem/index.js +3 -2
- package/FormItem/lang/en_US.d.ts +10 -0
- package/FormItem/lang/index.d.ts +21 -0
- package/FormItem/lang/zh_CN.d.ts +10 -0
- package/FormItem/validateFunction.d.ts +1 -1
- package/FunctionModal/dialog.d.ts +26 -26
- package/FunctionModal/index.d.ts +6 -6
- package/FunctionModal/index.js +9 -10
- package/FunctionModal/modalContext.d.ts +3 -3
- package/GlobalContext/componentsProps.d.ts +7 -7
- package/GlobalContext/confirmLocale.d.ts +1 -2
- package/GlobalContext/index.d.ts +2 -2
- package/GlobalContext/index.js +3 -2
- package/GlobalContext/useFormatMessage.d.ts +1 -1
- package/Help/index.js +2 -2
- package/HelperText/index.js +1 -1
- package/InputLang/index.d.ts +2 -2
- package/InputLang/index.js +8 -8
- package/InputNumber/index.d.ts +4 -2
- package/InputNumber/index.js +27 -15
- package/Label/index.js +2 -2
- package/Loading/index.js +1 -1
- package/Menu/index.js +17 -17
- package/Menu/interface.d.ts +1 -1
- package/Message/index.js +13 -13
- package/Modal/Confirm/index.d.ts +3 -3
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +20 -17
- package/Modal/lang/index.d.ts +8 -0
- package/MultiBox/index.d.ts +2 -2
- package/MultiBox/index.js +4 -4
- package/Notification/index.js +2 -2
- package/OperateBtn/index.d.ts +2 -2
- package/OperateBtn/index.js +49 -49
- package/PageHeader/index.js +45 -34
- package/PageHeader/interface.d.ts +1 -1
- package/Pagination/index.d.ts +1 -1
- package/Pagination/index.js +19 -19
- package/PasswordRules/index.js +8 -8
- package/PopConfirm/index.js +8 -7
- package/Progress/Line.d.ts +10 -10
- package/Progress/Steps.d.ts +2 -2
- package/Progress/index.d.ts +12 -12
- package/Progress/index.js +43 -42
- package/Progress/utils.d.ts +4 -4
- package/Querying/index.d.ts +1 -1
- package/Querying/index.js +3 -3
- package/README.md +7 -0
- package/Radio/index.d.ts +1 -1
- package/Radio/index.js +5 -5
- package/RadioGroup/index.d.ts +2 -2
- package/RadioGroup/index.js +4 -4
- package/Search/index.js +1 -1
- package/Select/index.d.ts +3 -3
- package/Select/index.js +43 -43
- package/SelectInput/index.js +2 -2
- package/Selector/index.js +26 -34
- package/Selector/interface.d.ts +6 -6
- package/SelectorPicker/index.d.ts +4 -4
- package/SelectorPicker/index.js +10 -10
- package/SingleBox/index.d.ts +2 -2
- package/SingleBox/index.js +4 -4
- package/Slider/index.js +1 -1
- package/Slider/interface.d.ts +1 -1
- package/Status/index.d.ts +4 -4
- package/Status/index.js +6 -7
- package/Stepper/index.d.ts +5 -5
- package/Stepper/index.js +23 -23
- package/Styles/theme.scss +1 -0
- package/Switch/index.d.ts +7 -7
- package/Switch/index.js +38 -21
- package/Switch/lang/en_US.d.ts +4 -0
- package/Switch/lang/index.d.ts +9 -0
- package/Switch/lang/zh_CN.d.ts +4 -0
- package/Table/index.js +35 -35
- package/Table/interface.d.ts +4 -4
- package/Table/tableBodyElement/index.d.ts +1 -1
- package/Table/tableBodyInterface.d.ts +2 -2
- package/Table/tableContainer/index.d.ts +1 -1
- package/Table/tableElement/index.d.ts +1 -1
- package/Table/tableHeadElement/index.d.ts +1 -1
- package/Table/tableHeadInterface.d.ts +1 -1
- package/Table/tablePaginationInterface.d.ts +6 -6
- package/Table/tdElement/index.d.ts +1 -1
- package/Table/thElement/index.d.ts +2 -2
- package/Table/trElement/index.d.ts +1 -1
- package/Table/util.d.ts +1 -1
- package/Tabs/index.d.ts +1 -1
- package/Tabs/index.js +27 -19
- package/Tag/TagGroup.d.ts +5 -5
- package/Tag/index.d.ts +7 -7
- package/Tag/index.js +25 -25
- package/TextEditor/index.d.ts +2 -2
- package/TextEditor/index.js +45 -27
- package/TextEditor/lang/en_US.d.ts +4 -0
- package/TextEditor/lang/index.d.ts +9 -0
- package/TextEditor/lang/zh_CN.d.ts +4 -0
- package/TextField/index.d.ts +1 -1
- package/TextField/index.js +19 -16
- package/TimePicker/index.d.ts +1 -1
- package/TimePicker/index.js +2 -2
- package/Timeline/TimelineItem.d.ts +1 -1
- package/Timeline/index.d.ts +5 -5
- package/Timeline/index.js +14 -14
- package/Title/index.d.ts +4 -4
- package/Title/index.js +3 -3
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButton/index.d.ts +5 -1
- package/ToggleButton/index.js +18 -11
- package/Transfer/box.d.ts +6 -6
- package/Transfer/index.js +22 -25
- package/Tree/OperateBar/index.d.ts +4 -4
- package/Tree/Tree.d.ts +2 -2
- package/Tree/index.js +2 -2
- package/Tree/interface.d.ts +4 -4
- package/Tree/utils/tools.d.ts +1 -1
- package/Upload/Dragger/index.d.ts +2 -2
- package/Upload/ErroTip/index.d.ts +1 -1
- package/Upload/index.d.ts +2 -2
- package/Upload/index.js +10 -11
- package/Upload/interface.d.ts +1 -1
- package/_verture/{index-8469865e.js → index-024bbc9b.js} +3 -3
- package/_verture/{index-19947788.js → index-05f7bf11.js} +3 -1
- package/_verture/{index-e1b800aa.js → index-50f56891.js} +49 -25
- package/_verture/{index-1c8d3e94.js → index-649b450f.js} +102 -48
- package/_verture/{index-47297a40.js → index-692e29c1.js} +53 -46
- package/_verture/{modalContext-670eab09.js → modalContext-11c51a45.js} +25 -25
- package/index.d.ts +4 -0
- package/index.js +14 -11
- package/locale/en-US.d.ts +19 -0
- package/locale/index.d.ts +38 -0
- package/locale/index.js +40 -2
- package/locale/zh-CN.d.ts +19 -0
- package/package.json +4 -2
- package/umd/AutoBox.js +1 -1
- package/umd/AutoTips.js +1 -1
- package/umd/Badge.js +1 -0
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Button.js +2 -2
- package/umd/ButtonGroup.js +2 -2
- package/umd/Cascader.js +4 -4
- package/umd/Checkbox.js +2 -2
- package/umd/CheckboxGroup.js +2 -2
- package/umd/Collapse.js +5 -5
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +4 -4
- package/umd/CopyText.js +2 -2
- package/umd/DatePicker.js +2 -2
- package/umd/Descriptions.js +1 -0
- package/umd/Desktop.js +2 -2
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +2 -2
- package/umd/DynamicMultiBox.js +4 -4
- package/umd/Empty.js +1 -1
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +4 -4
- package/umd/FunctionModal.js +4 -4
- package/umd/GlobalContext.js +1 -1
- package/umd/Help.js +2 -2
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +2 -2
- package/umd/InputNumber.js +4 -4
- package/umd/Label.js +2 -2
- package/umd/Loading.js +1 -1
- package/umd/Menu.js +3 -3
- package/umd/Message.js +2 -2
- package/umd/Modal.js +4 -4
- package/umd/MultiBox.js +7 -7
- package/umd/Notification.js +2 -2
- package/umd/OperateBtn.js +4 -4
- package/umd/PageHeader.js +4 -4
- package/umd/Pagination.js +2 -2
- package/umd/PasswordRules.js +4 -4
- package/umd/PopConfirm.js +2 -2
- package/umd/Progress.js +3 -3
- package/umd/Querying.js +1 -1
- package/umd/Radio.js +2 -2
- package/umd/RadioGroup.js +2 -2
- package/umd/Search.js +7 -7
- package/umd/Select.js +2 -2
- package/umd/SelectInput.js +2 -2
- package/umd/Selector.js +2 -2
- package/umd/SelectorPicker.js +2 -2
- package/umd/SingleBox.js +2 -2
- package/umd/Slider.js +1 -1
- package/umd/Status.js +2 -2
- package/umd/Stepper.js +1 -1
- package/umd/Switch.js +5 -5
- package/umd/Table.js +6 -6
- package/umd/Tabs.js +6 -6
- package/umd/Tag.js +1 -1
- package/umd/TextEditor.js +3 -3
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +2 -2
- package/umd/Title.js +7 -7
- package/umd/ToggleButton.js +4 -4
- package/umd/Transfer.js +3 -3
- package/umd/Tree.js +2 -2
- package/umd/Upload.js +2 -2
- package/umd/locale.js +1 -1
|
@@ -191,15 +191,18 @@ function renderSwitcherIcon(prefixCls, switcherIcon, showLine, _ref) {
|
|
|
191
191
|
expanded = _ref.expanded,
|
|
192
192
|
loading = _ref.loading;
|
|
193
193
|
_ref.eventKey;
|
|
194
|
+
// 如果有loading 返回loading
|
|
194
195
|
if (loading) {
|
|
195
196
|
return jsx(LoadingOutlined, {
|
|
196
197
|
className: "".concat(prefixCls, "-switcher-loading-icon")
|
|
197
198
|
});
|
|
198
199
|
}
|
|
199
200
|
var showLeafIcon;
|
|
201
|
+
// 如果有showLine切showLine是对象的情况下,就用showLine对象下的icon
|
|
200
202
|
if (showLine && _typeof(showLine) === 'object') {
|
|
201
203
|
showLeafIcon = showLine.showLeafIcon;
|
|
202
204
|
}
|
|
205
|
+
// 如果是叶子节点
|
|
203
206
|
if (isLeaf) {
|
|
204
207
|
if (showLine) {
|
|
205
208
|
if (_typeof(showLine) === 'object' && !showLeafIcon) {
|
|
@@ -207,6 +210,7 @@ function renderSwitcherIcon(prefixCls, switcherIcon, showLine, _ref) {
|
|
|
207
210
|
className: "".concat(prefixCls, "-switcher-leaf-line")
|
|
208
211
|
});
|
|
209
212
|
}
|
|
213
|
+
// 当存在showLine时,用户没有传icon时,则展示默认icon
|
|
210
214
|
return jsx(FileOutlined, {
|
|
211
215
|
className: "".concat(prefixCls, "-switcher-line-icon")
|
|
212
216
|
});
|
|
@@ -219,9 +223,11 @@ function renderSwitcherIcon(prefixCls, switcherIcon, showLine, _ref) {
|
|
|
219
223
|
className: clsx(switcherIcon.props.className || '', switcherCls)
|
|
220
224
|
});
|
|
221
225
|
}
|
|
226
|
+
// 如果是开关节点
|
|
222
227
|
if (switcherIcon) {
|
|
223
228
|
return switcherIcon;
|
|
224
229
|
}
|
|
230
|
+
// 普通节点
|
|
225
231
|
if (showLine) {
|
|
226
232
|
return expanded ? jsx(SolidArrowDown, {
|
|
227
233
|
className: "".concat(prefixCls, "-switcher-line-icon")
|
|
@@ -229,6 +235,7 @@ function renderSwitcherIcon(prefixCls, switcherIcon, showLine, _ref) {
|
|
|
229
235
|
className: "".concat(prefixCls, "-switcher-line-icon")
|
|
230
236
|
});
|
|
231
237
|
}
|
|
238
|
+
// 默认返回
|
|
232
239
|
return jsx(SolidArrowDown, {
|
|
233
240
|
className: switcherCls
|
|
234
241
|
});
|
|
@@ -274,25 +281,25 @@ var getIconMap = function getIconMap(intl) {
|
|
|
274
281
|
add: {
|
|
275
282
|
icon: jsx(AddOutlinedIcon, {}),
|
|
276
283
|
text: intl({
|
|
277
|
-
id:
|
|
284
|
+
id: 'add'
|
|
278
285
|
})
|
|
279
286
|
},
|
|
280
287
|
edit: {
|
|
281
288
|
icon: jsx(EditOutlinedIcon, {}),
|
|
282
289
|
text: intl({
|
|
283
|
-
id:
|
|
290
|
+
id: 'edit'
|
|
284
291
|
})
|
|
285
292
|
},
|
|
286
293
|
enable: {
|
|
287
294
|
icon: jsx(Forbid, {}),
|
|
288
295
|
text: intl({
|
|
289
|
-
id:
|
|
296
|
+
id: 'disabled'
|
|
290
297
|
})
|
|
291
298
|
},
|
|
292
299
|
del: {
|
|
293
300
|
icon: jsx(Delete, {}),
|
|
294
301
|
text: intl({
|
|
295
|
-
id:
|
|
302
|
+
id: 'delete'
|
|
296
303
|
})
|
|
297
304
|
}
|
|
298
305
|
};
|
|
@@ -310,10 +317,10 @@ var toActionArr = function toActionArr(actions, nodeData, IconMap) {
|
|
|
310
317
|
var arr = [];
|
|
311
318
|
Object.keys(actions).forEach(function (k) {
|
|
312
319
|
var aItem = actions[k];
|
|
313
|
-
if (k !==
|
|
320
|
+
if (k !== 'customizeActions') {
|
|
314
321
|
//非自定义
|
|
315
|
-
if (_typeof(aItem) ===
|
|
316
|
-
if (typeof aItem.show ===
|
|
322
|
+
if (_typeof(aItem) === 'object') {
|
|
323
|
+
if (typeof aItem.show === 'function') {
|
|
317
324
|
if (aItem.show(nodeData)) arr.push(Object.assign(Object.assign(Object.assign({}, IconMap[k]), aItem), {
|
|
318
325
|
action: k
|
|
319
326
|
}));
|
|
@@ -322,7 +329,7 @@ var toActionArr = function toActionArr(actions, nodeData, IconMap) {
|
|
|
322
329
|
action: k
|
|
323
330
|
}));
|
|
324
331
|
}
|
|
325
|
-
} else if (typeof aItem ===
|
|
332
|
+
} else if (typeof aItem === 'function') {
|
|
326
333
|
if (aItem(nodeData)) {
|
|
327
334
|
arr.push(Object.assign(Object.assign({}, IconMap[k]), {
|
|
328
335
|
action: k
|
|
@@ -336,7 +343,7 @@ var toActionArr = function toActionArr(actions, nodeData, IconMap) {
|
|
|
336
343
|
} else if (Array.isArray(aItem) && aItem.length) {
|
|
337
344
|
//自定义按钮
|
|
338
345
|
aItem.forEach(function (_) {
|
|
339
|
-
if (typeof _.show ===
|
|
346
|
+
if (typeof _.show === 'function') {
|
|
340
347
|
if (_.show(nodeData)) {
|
|
341
348
|
arr.push(_);
|
|
342
349
|
}
|
|
@@ -354,7 +361,7 @@ var OperateBar = function OperateBar(props) {
|
|
|
354
361
|
showActions = props.showActions,
|
|
355
362
|
onRemove = props.onRemove;
|
|
356
363
|
var portalRef = useRef(null); //portal
|
|
357
|
-
var uidRef = useRef(UUID().replace(/-/g,
|
|
364
|
+
var uidRef = useRef(UUID().replace(/-/g, '')); //portal uid
|
|
358
365
|
var _useState = useState({}),
|
|
359
366
|
_useState2 = _slicedToArray(_useState, 2),
|
|
360
367
|
nodeData = _useState2[0],
|
|
@@ -367,12 +374,12 @@ var OperateBar = function OperateBar(props) {
|
|
|
367
374
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
368
375
|
hasPortal = _useState6[0],
|
|
369
376
|
setHasPortal = _useState6[1]; //创建插槽portal
|
|
377
|
+
var intl = useFormatMessage('Tree', localeJson);
|
|
370
378
|
var opRefCurrent = opRef.current;
|
|
371
|
-
var intl = useFormatMessage("Tree", localeJson);
|
|
372
379
|
//扇形位置
|
|
373
380
|
var getPosition = function getPosition(length, deg) {
|
|
374
|
-
var left = Math.round(Math.sin(Math.PI / 180 * deg) * length)
|
|
375
|
-
var top = -Math.round(Math.cos(Math.PI / 180 * deg) * length + 12)
|
|
381
|
+
var left = "".concat(Math.round(Math.sin(Math.PI / 180 * deg) * length), "px");
|
|
382
|
+
var top = "".concat(-Math.round(Math.cos(Math.PI / 180 * deg) * length + 12), "px");
|
|
376
383
|
return {
|
|
377
384
|
left: left,
|
|
378
385
|
top: top
|
|
@@ -425,7 +432,7 @@ var OperateBar = function OperateBar(props) {
|
|
|
425
432
|
var sectorAndRotate = function sectorAndRotate() {
|
|
426
433
|
var _a;
|
|
427
434
|
var portal = document.getElementById(uidRef.current);
|
|
428
|
-
var container = (_a = portal === null || portal === void 0 ? void 0 : portal.getElementsByClassName(
|
|
435
|
+
var container = (_a = portal === null || portal === void 0 ? void 0 : portal.getElementsByClassName('sector-item-container')) === null || _a === void 0 ? void 0 : _a[0];
|
|
429
436
|
var items = (container === null || container === void 0 ? void 0 : container.childNodes) || [];
|
|
430
437
|
var parentContainer = container === null || container === void 0 ? void 0 : container.parentNode;
|
|
431
438
|
var r = calcRadius(items.length);
|
|
@@ -448,7 +455,7 @@ var OperateBar = function OperateBar(props) {
|
|
|
448
455
|
var sectorAndRotateReverse = function sectorAndRotateReverse() {
|
|
449
456
|
var _a, _b;
|
|
450
457
|
var portal = document.getElementById(uidRef.current);
|
|
451
|
-
var container = (_a = portal === null || portal === void 0 ? void 0 : portal.getElementsByClassName(
|
|
458
|
+
var container = (_a = portal === null || portal === void 0 ? void 0 : portal.getElementsByClassName('sector-item-container')) === null || _a === void 0 ? void 0 : _a[0];
|
|
452
459
|
var items = (container === null || container === void 0 ? void 0 : container.childNodes) || [];
|
|
453
460
|
for (var i = 0; i < items.length; i++) {
|
|
454
461
|
var item = items[i];
|
|
@@ -499,8 +506,8 @@ var OperateBar = function OperateBar(props) {
|
|
|
499
506
|
title: text
|
|
500
507
|
}, {
|
|
501
508
|
children: jsx("li", Object.assign({
|
|
502
|
-
className: clsx(
|
|
503
|
-
|
|
509
|
+
className: clsx('sector-item', {
|
|
510
|
+
'sector-item--del': action === 'del'
|
|
504
511
|
}),
|
|
505
512
|
onClick: function onClick(evt) {
|
|
506
513
|
return handleNodeActions(nodeData, action, evt);
|
|
@@ -523,10 +530,10 @@ var OperateBar = function OperateBar(props) {
|
|
|
523
530
|
var createPortal = function createPortal() {
|
|
524
531
|
var portal = document.getElementById(uidRef.current);
|
|
525
532
|
if (!portal) {
|
|
526
|
-
portal = document.createElement(
|
|
533
|
+
portal = document.createElement('div');
|
|
527
534
|
portal.id = uidRef.current;
|
|
528
|
-
portal.style.position =
|
|
529
|
-
portal.style.top =
|
|
535
|
+
portal.style.position = 'fixed';
|
|
536
|
+
portal.style.top = '-9999px';
|
|
530
537
|
portal.style.zIndex = 1500;
|
|
531
538
|
document.body.appendChild(portal);
|
|
532
539
|
setHasPortal(true);
|
|
@@ -571,17 +578,17 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
571
578
|
_props$params = props.params,
|
|
572
579
|
params = _props$params === void 0 ? null : _props$params,
|
|
573
580
|
_props$method = props.method,
|
|
574
|
-
method = _props$method === void 0 ?
|
|
581
|
+
method = _props$method === void 0 ? 'GET' : _props$method,
|
|
575
582
|
headers = props.headers,
|
|
576
583
|
requestCallback = props.requestCallback,
|
|
577
584
|
refresh = props.refresh,
|
|
578
585
|
_props$replaceFields = props.replaceFields,
|
|
579
586
|
replaceFields = _props$replaceFields === void 0 ? {
|
|
580
|
-
key:
|
|
581
|
-
parentId:
|
|
582
|
-
children:
|
|
583
|
-
title:
|
|
584
|
-
loadKey:
|
|
587
|
+
key: 'key',
|
|
588
|
+
parentId: 'parentId',
|
|
589
|
+
children: 'children',
|
|
590
|
+
title: 'title',
|
|
591
|
+
loadKey: 'key'
|
|
585
592
|
} : _props$replaceFields,
|
|
586
593
|
originTreeData = props.treeData,
|
|
587
594
|
className = props.className,
|
|
@@ -654,7 +661,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
654
661
|
var treeOriDataRef = useRef([]); //tree origin data
|
|
655
662
|
var nPageSize = Object.assign(Object.assign({}, defaultPageSize), pageSize);
|
|
656
663
|
var halfCheckedKeys = useRef([]); //半选keys
|
|
657
|
-
var intl = useFormatMessage(
|
|
664
|
+
var intl = useFormatMessage('Tree', localeJson);
|
|
658
665
|
var _useState7 = useState(false),
|
|
659
666
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
660
667
|
loading = _useState8[0],
|
|
@@ -701,7 +708,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
701
708
|
//加载更多节点
|
|
702
709
|
return jsx("span", Object.assign({
|
|
703
710
|
className: "".concat($prefixCls, "-tree-title-wrapper"),
|
|
704
|
-
title:
|
|
711
|
+
title: ''
|
|
705
712
|
}, {
|
|
706
713
|
children: jsx(AutoTips, Object.assign({
|
|
707
714
|
placement: "top-start",
|
|
@@ -716,13 +723,13 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
716
723
|
onMouseEnter: handleTreeNodeMEnter,
|
|
717
724
|
onMouseLeave: handleTreeNodeMLeave,
|
|
718
725
|
onClick: handleTreeNodeClick,
|
|
719
|
-
title: blockNode ?
|
|
726
|
+
title: blockNode ? '' : undefined
|
|
720
727
|
}, {
|
|
721
728
|
children: [jsx(AutoTips, Object.assign({
|
|
722
729
|
tipMaxWidth: tipMaxWidth,
|
|
723
730
|
placement: "top-start"
|
|
724
731
|
}, {
|
|
725
|
-
children: typeof titleRender ===
|
|
732
|
+
children: typeof titleRender === 'function' ? titleRender(nodeData) : nodeData.title
|
|
726
733
|
})), !!showActions && jsx("div", Object.assign({
|
|
727
734
|
className: "sector-anchor",
|
|
728
735
|
onMouseEnter: function onMouseEnter(evt) {
|
|
@@ -808,9 +815,9 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
808
815
|
var showSector = function showSector(anchorEl, nodeData) {
|
|
809
816
|
var _a, _b;
|
|
810
817
|
var portalRoot = document.getElementById(opRef.current.uid);
|
|
811
|
-
anchorEl.classList.add(
|
|
818
|
+
anchorEl.classList.add('sector-anchor--active');
|
|
812
819
|
if (portalRoot) {
|
|
813
|
-
var container = portalRoot.querySelector(
|
|
820
|
+
var container = portalRoot.querySelector('.sector-container');
|
|
814
821
|
if (container) {
|
|
815
822
|
(_b = (_a = opRef.current) === null || _a === void 0 ? void 0 : _a.onShowSector) === null || _b === void 0 ? void 0 : _b.call(_a, nodeData, true);
|
|
816
823
|
}
|
|
@@ -820,7 +827,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
820
827
|
var removeSector = function removeSector(anchorEl) {
|
|
821
828
|
var _a, _b;
|
|
822
829
|
if (anchorEl) {
|
|
823
|
-
anchorEl.classList.remove(
|
|
830
|
+
anchorEl.classList.remove('sector-anchor--active');
|
|
824
831
|
(_b = (_a = opRef.current) === null || _a === void 0 ? void 0 : _a.onShowSector) === null || _b === void 0 ? void 0 : _b.call(_a, {}, false);
|
|
825
832
|
}
|
|
826
833
|
};
|
|
@@ -852,7 +859,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
852
859
|
if (radioable) {
|
|
853
860
|
//单选
|
|
854
861
|
var node = e.node;
|
|
855
|
-
var key = (_a = replaceFields.key) !== null && _a !== void 0 ? _a :
|
|
862
|
+
var key = (_a = replaceFields.key) !== null && _a !== void 0 ? _a : 'key';
|
|
856
863
|
if (e.checked) temp = [node[key]];
|
|
857
864
|
} else if (checkStrictly) {
|
|
858
865
|
//严格模式
|
|
@@ -863,14 +870,14 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
863
870
|
temp = checkedKeys;
|
|
864
871
|
halfChecked = e.halfCheckedKeys;
|
|
865
872
|
}
|
|
866
|
-
if (!(
|
|
873
|
+
if (!('checkedKeys' in props)) {
|
|
867
874
|
setInCheckedKeys(temp);
|
|
868
875
|
}
|
|
869
876
|
onCheck === null || onCheck === void 0 ? void 0 : onCheck(temp, e, halfChecked);
|
|
870
877
|
};
|
|
871
878
|
//展开节点
|
|
872
879
|
var internalExpand = function internalExpand(expandedKeys, e) {
|
|
873
|
-
if (!(
|
|
880
|
+
if (!('expandedKeys' in props)) {
|
|
874
881
|
setInExpandedKeys(_toConsumableArray(expandedKeys));
|
|
875
882
|
}
|
|
876
883
|
onExpand === null || onExpand === void 0 ? void 0 : onExpand(expandedKeys, e);
|
|
@@ -896,7 +903,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
896
903
|
url: url,
|
|
897
904
|
ctx: ctx,
|
|
898
905
|
method: m
|
|
899
|
-
}, m ===
|
|
906
|
+
}, m === 'GET' ? 'params' : 'data', tParams || {});
|
|
900
907
|
if (headers) opts.headers = headers;
|
|
901
908
|
_context.next = 9;
|
|
902
909
|
return Request(opts);
|
|
@@ -925,7 +932,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
925
932
|
return {
|
|
926
933
|
key: String((Math.random() * 1000000 | 0) + Date.now()),
|
|
927
934
|
title: intl({
|
|
928
|
-
id:
|
|
935
|
+
id: 'loadMore'
|
|
929
936
|
}),
|
|
930
937
|
checkable: false,
|
|
931
938
|
disableCheckbox: true,
|
|
@@ -950,7 +957,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
950
957
|
//更新tree数据
|
|
951
958
|
var updateTreeData = function updateTreeData(list, key, children, moreFlag) {
|
|
952
959
|
//root节点
|
|
953
|
-
if (key ===
|
|
960
|
+
if (key === 'ROOT_KEY') {
|
|
954
961
|
list.pop(); //删除加载更多节点
|
|
955
962
|
return list.concat(children);
|
|
956
963
|
}
|
|
@@ -999,7 +1006,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
999
1006
|
case 3:
|
|
1000
1007
|
//当前节点key
|
|
1001
1008
|
tKey = key; //参数动态字段
|
|
1002
|
-
loadKey = (_a = replaceFields.loadKey) !== null && _a !== void 0 ? _a :
|
|
1009
|
+
loadKey = (_a = replaceFields.loadKey) !== null && _a !== void 0 ? _a : 'key'; //加载节点时参数
|
|
1003
1010
|
loadParams = Object.assign(_defineProperty({}, loadKey, tKey), params); //是否分页
|
|
1004
1011
|
if (pagination) {
|
|
1005
1012
|
if (moreFlag) {
|
|
@@ -1007,7 +1014,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
1007
1014
|
tKey = parentId;
|
|
1008
1015
|
treeMapRef.current[tKey].page += 1;
|
|
1009
1016
|
loadParams[loadKey] = tKey;
|
|
1010
|
-
if (tKey ===
|
|
1017
|
+
if (tKey === 'ROOT_KEY') {
|
|
1011
1018
|
//根节点加载更多,不需要key
|
|
1012
1019
|
delete loadParams[loadKey];
|
|
1013
1020
|
}
|
|
@@ -1073,7 +1080,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
1073
1080
|
//计算分页,是否显示加载更多
|
|
1074
1081
|
if (page * size < total) {
|
|
1075
1082
|
var loadMoreData = getLoadMoreData();
|
|
1076
|
-
loadMoreData.parentId = parentId ||
|
|
1083
|
+
loadMoreData.parentId = parentId || 'ROOT_KEY';
|
|
1077
1084
|
loadMoreData.title = renderLoadMoreNode(loadMoreData);
|
|
1078
1085
|
newTreeData.push(loadMoreData);
|
|
1079
1086
|
}
|
|
@@ -1236,7 +1243,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
1236
1243
|
var searchKey = _ref2.searchKey,
|
|
1237
1244
|
searchValue = _ref2.searchValue;
|
|
1238
1245
|
if (!searchKey) return;
|
|
1239
|
-
if (searchValue ===
|
|
1246
|
+
if (searchValue === '') {
|
|
1240
1247
|
setTreeData(treeOriDataRef.current);
|
|
1241
1248
|
var tKeys = expandedKeys || defaultExpandedKeys;
|
|
1242
1249
|
setInExpandedKeys(_toConsumableArray(tKeys || []));
|
|
@@ -1276,7 +1283,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
1276
1283
|
style: props.style
|
|
1277
1284
|
}, {
|
|
1278
1285
|
children: notFoundContent !== null && notFoundContent !== void 0 ? notFoundContent : jsx(Empty, Object.assign({
|
|
1279
|
-
size:
|
|
1286
|
+
size: 'small'
|
|
1280
1287
|
}, emptyProps))
|
|
1281
1288
|
}));
|
|
1282
1289
|
//tree memo
|
|
@@ -1316,7 +1323,7 @@ var Tree = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
1316
1323
|
onExpand: internalExpand,
|
|
1317
1324
|
icon: function icon(nodeProps) {
|
|
1318
1325
|
if (_icon) {
|
|
1319
|
-
return typeof _icon ===
|
|
1326
|
+
return typeof _icon === 'function' ? _icon(nodeProps) : _icon;
|
|
1320
1327
|
}
|
|
1321
1328
|
if (nodeProps.checkable === false) return null;
|
|
1322
1329
|
if (!radioable) {
|
|
@@ -1368,7 +1375,7 @@ if (!Element.prototype.closest) {
|
|
|
1368
1375
|
};
|
|
1369
1376
|
}
|
|
1370
1377
|
|
|
1371
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/9 下午8:39\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-tree-treenode-leaf-last .paraui-v4-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-v4-tree-rtl {\n direction: rtl;\n}\n.paraui-v4-tree-rtl .paraui-v4-tree-node-content-wrapper[draggable=true] .paraui-v4-tree-drop-indicator::after {\n right: -6px;\n left: unset;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode-rtl {\n direction: rtl;\n}\n.paraui-v4-tree-rtl .paraui-v4-tree-switcher_close .paraui-v4-tree-switcher-icon svg {\n transform: rotate(90deg);\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-indent-unit::before .paraui-v4-tree-rtl.paraui-v4-tree-show-line .paraui-v4-tree-indent-unit::before {\n right: auto;\n left: -13px;\n border-right: none;\n border-left: 1px solid #d9d9d9;\n}\n.paraui-v4-tree-checkbox .paraui-v4-tree-rtl.paraui-v4-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v4-tree-select-dropdown-rtl .paraui-v4-select-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v4-tree-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(29, 33, 38, 0.9);\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-v4-tree-checkbox-wrapper:hover .paraui-v4-tree-checkbox-inner, .paraui-v4-tree-checkbox:hover .paraui-v4-tree-checkbox-inner, .paraui-v4-tree-checkbox-input:focus + .paraui-v4-tree-checkbox-inner {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-tree-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid rgb(46, 101, 230);\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-v4-tree-checkbox:hover::after, .paraui-v4-tree-checkbox-wrapper:hover .paraui-v4-tree-checkbox::after {\n visibility: visible;\n}\n.paraui-v4-tree-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 14px;\n height: 14px;\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-v4-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-v4-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-v4-tree-checkbox-checked .paraui-v4-tree-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 1px solid rgb(255, 255, 255);\n border-top: 0;\n border-left: 0;\n width: 4px;\n height: 8px;\n top: 45%;\n left: 21%;\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 line-height: 16px;\n content: \" \";\n}\n\n.paraui-v4-tree-checkbox-checked .paraui-v4-tree-checkbox-inner {\n background-color: rgb(46, 101, 230);\n border-color: rgba(0, 0, 0, 0);\n line-height: 16px;\n}\n\n.paraui-v4-tree-checkbox-disabled {\n cursor: not-allowed;\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-tree-checkbox-disabled .paraui-v4-tree-checkbox-inner {\n border-color: rgb(212, 218, 227) !important;\n}\n.paraui-v4-tree-checkbox-disabled.paraui-v4-tree-checkbox-checked:hover .paraui-v4-tree-checkbox-inner {\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-tree-checkbox-disabled.paraui-v4-tree-checkbox-checked .paraui-v4-tree-checkbox-inner::after {\n border-color: rgb(255, 255, 255);\n color: rgb(255, 255, 255);\n}\n.paraui-v4-tree-checkbox-disabled .paraui-v4-tree-checkbox-input {\n cursor: not-allowed;\n}\n.paraui-v4-tree-checkbox-disabled .paraui-v4-tree-checkbox-inner {\n background-color: rgb(234, 236, 241);\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-tree-checkbox-disabled .paraui-v4-tree-checkbox-inner::after {\n border-color: #fff !important;\n border-collapse: separate;\n animation-name: none;\n}\n.paraui-v4-tree-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v4-tree-checkbox-disabled:hover::after, .paraui-v4-tree-checkbox-wrapper:hover .paraui-v4-tree-checkbox-disabled::after {\n visibility: hidden;\n}\n\n.paraui-v4-tree-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(29, 33, 38, 0.9);\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-v4-tree-checkbox-wrapper.paraui-v4-tree-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.paraui-v4-tree-checkbox-wrapper + .paraui-v4-tree-checkbox-wrapper {\n margin-left: 8px;\n}\n\n.paraui-v4-tree-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.paraui-v4-tree-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(29, 33, 38, 0.9);\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-v4-tree-checkbox-group-item {\n margin-right: 8px;\n}\n.paraui-v4-tree-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.paraui-v4-tree-checkbox-group-item + .paraui-v4-tree-checkbox-group-item {\n margin-left: 0;\n}\n\n.paraui-v4-tree-checkbox-indeterminate .paraui-v4-tree-checkbox-inner {\n background-color: rgb(46, 101, 230);\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-tree-checkbox-indeterminate .paraui-v4-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-v4-tree-checkbox-indeterminate.paraui-v4-tree-checkbox-disabled .paraui-v4-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-v4-tree-wrapper .paraui-v4-tree-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.paraui-v4-tree {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(29, 33, 38, 0.9);\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-v4-tree-focused:not(:hover):not(.paraui-v4-tree-active-focused) {\n background: #e6f7ff;\n}\n.paraui-v4-tree-list-holder-inner {\n align-items: flex-start;\n}\n.paraui-v4-tree.paraui-v4-tree-block-node .paraui-v4-tree-list-holder-inner {\n align-items: stretch;\n}\n.paraui-v4-tree.paraui-v4-tree-block-node .paraui-v4-tree-list-holder-inner .paraui-v4-tree-node-content-wrapper {\n flex: auto;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode {\n display: flex;\n align-items: flex-start;\n outline: none;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode-disabled .paraui-v4-tree-node-content-wrapper {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode-disabled .paraui-v4-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode-active .paraui-v4-tree-node-content-wrapper {\n background: #f5f5f5;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode:not(.paraui-v4-tree .paraui-v4-tree-treenode-disabled).filter-node .paraui-v4-tree-title {\n color: inherit;\n font-weight: 500;\n}\n.paraui-v4-tree-indent {\n align-self: stretch;\n white-space: nowrap;\n user-select: none;\n}\n.paraui-v4-tree-indent-unit {\n display: inline-block;\n width: 24px;\n}\n.paraui-v4-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-v4-tree-switcher .paraui-v4-tree-switcher-icon,\n.paraui-v4-tree-switcher .paraui-v4-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-v4-tree-switcher .paraui-v4-tree-switcher-icon svg,\n.paraui-v4-tree-switcher .paraui-v4-select-tree-switcher-icon svg {\n font-size: inherit;\n color: inherit;\n transition: transform 0.3s;\n}\n.paraui-v4-tree-switcher-noop {\n cursor: default;\n}\n.paraui-v4-tree-switcher-icon[data-name=DownTriangleF]:hover {\n color: rgb(46, 101, 230);\n background: rgb(247, 248, 250);\n}\n.paraui-v4-tree-switcher_close .paraui-v4-tree-switcher-icon {\n transform: rotate(-90deg);\n}\n.paraui-v4-tree-switcher_close .paraui-v4-tree-switcher-icon svg {\n color: currentColor;\n transform: rotate(-90deg);\n}\n.paraui-v4-tree-switcher-loading-icon {\n color: rgb(46, 101, 230);\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-v4-tree-switcher-leaf-line {\n position: relative;\n z-index: 1;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.paraui-v4-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-v4-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-v4-tree-checkbox {\n top: initial;\n margin: 6px 6px 0 0;\n}\n.paraui-v4-tree .paraui-v4-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-v4-tree .paraui-v4-tree-node-content-wrapper:hover {\n background-color: rgb(247, 248, 250);\n border-radius: 4px;\n}\n.paraui-v4-tree .paraui-v4-tree-node-content-wrapper.paraui-v4-tree-node-selected {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-tree .paraui-v4-tree-node-content-wrapper .paraui-v4-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-v4-tree .paraui-v4-tree-node-content-wrapper .paraui-v4-tree-iconEle > svg {\n vertical-align: -0.125em;\n color: inherit;\n}\n.paraui-v4-tree .paraui-v4-tree-node-content-wrapper .paraui-v4-tree-iconEle:empty {\n display: none;\n}\n.paraui-v4-tree-unselectable .paraui-v4-tree-node-content-wrapper:hover {\n background-color: transparent;\n}\n.paraui-v4-tree-node-content-wrapper[draggable=true] {\n line-height: 24px;\n user-select: none;\n}\n.paraui-v4-tree-node-content-wrapper[draggable=true] .paraui-v4-tree-drop-indicator {\n position: absolute;\n z-index: 1;\n height: 2px;\n background-color: rgb(46, 101, 230);\n border-radius: 1px;\n pointer-events: none;\n}\n.paraui-v4-tree-node-content-wrapper[draggable=true] .paraui-v4-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(46, 101, 230);\n border-radius: 50%;\n content: \"\";\n}\n.paraui-v4-tree .paraui-v4-tree-treenode.drop-container > [draggable] {\n box-shadow: 0 0 0 2px rgb(46, 101, 230);\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-indent-unit {\n position: relative;\n height: 100%;\n}\n.paraui-v4-tree-show-line .paraui-v4-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-v4-tree-show-line .paraui-v4-tree-indent-unit-end::before {\n display: none;\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-switcher {\n background: rgb(255, 255, 255);\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-switcher_close svg {\n transform: rotate(-90deg);\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-switcher_open svg {\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-switcher-line-icon {\n vertical-align: -0.225em;\n color: inherit;\n font-size: 14px;\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-switcher-line-icon[data-name=DownTriangleF]:hover {\n color: rgb(46, 101, 230);\n background: rgb(247, 248, 250);\n}\n.paraui-v4-tree-node-content-wrapper {\n overflow: hidden;\n display: flex;\n}\n.paraui-v4-tree-node-content-wrapper .paraui-v4-tree-title {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.paraui-v4-tree-node-content-wrapper .paraui-v4-tree-treenode-more-wrapper {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-tree .paraui-v4-tree-node-content-wrapper--active {\n background-color: rgb(247, 248, 250) !important;\n border-radius: 2px !important;\n}\n.paraui-v4-tree .paraui-v4-tree-node-content-wrapper--active .sector-anchor {\n opacity: 1 !important;\n}\n.paraui-v4-tree.paraui-v4-tree-block-node .paraui-v4-tree-list-holder-inner .paraui-v4-tree-node-content-wrapper {\n flex-grow: 0;\n flex-shrink: 1;\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper {\n display: inline-flex;\n align-items: center;\n margin: 0 -6px;\n padding: 0 8px;\n overflow: hidden;\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper .sector-anchor {\n position: relative;\n margin: 1px 0 0 10px;\n line-height: 14px;\n opacity: 0;\n transition: opacity 0.3s;\n}\n.paraui-v4-tree .paraui-v4-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: rgb(247, 248, 250);\n pointer-events: none;\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper .sector-anchor svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper .sector-anchor svg:hover {\n background: rgba(212, 218, 227, 0.4);\n border-radius: 2px;\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper .sector-anchor--active.sector-anchor svg {\n color: rgb(46, 101, 230);\n background: rgba(212, 218, 227, 0.4);\n border-radius: 2px;\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper--active .sector-anchor {\n opacity: 1;\n}\n.paraui-v4-tree.paraui-v4-tree-radioable .paraui-v4-tree-iconEle {\n position: absolute;\n left: 8px;\n top: 0;\n}\n.paraui-v4-tree.paraui-v4-tree-radioable .paraui-v4-tree-checkbox {\n display: none !important;\n}\n.paraui-v4-tree.paraui-v4-tree-radioable .paraui-v4-tree-checkbox-checked + .paraui-v4-tree-node-content-wrapper {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-tree.paraui-v4-tree-radioable .paraui-v4-tree-node-radio {\n width: 16px;\n height: 16px;\n padding: 0;\n margin-top: 4px;\n}\n.paraui-v4-tree.paraui-v4-tree-radioable-showradio .paraui-v4-tree-node-content-wrapper {\n padding-left: 28px;\n}\n\n.paraui-v4-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}";
|
|
1378
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/9 下午8:39\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-tree-treenode-leaf-last .paraui-v4-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-v4-tree-rtl {\n direction: rtl;\n}\n.paraui-v4-tree-rtl .paraui-v4-tree-node-content-wrapper[draggable=true] .paraui-v4-tree-drop-indicator::after {\n right: -6px;\n left: unset;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode-rtl {\n direction: rtl;\n}\n.paraui-v4-tree-rtl .paraui-v4-tree-switcher_close .paraui-v4-tree-switcher-icon svg {\n transform: rotate(90deg);\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-indent-unit::before .paraui-v4-tree-rtl.paraui-v4-tree-show-line .paraui-v4-tree-indent-unit::before {\n right: auto;\n left: -13px;\n border-right: none;\n border-left: 1px solid #d9d9d9;\n}\n.paraui-v4-tree-checkbox .paraui-v4-tree-rtl.paraui-v4-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v4-tree-select-dropdown-rtl .paraui-v4-select-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v4-tree-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(29, 33, 38);\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-v4-tree-checkbox-wrapper:hover .paraui-v4-tree-checkbox-inner, .paraui-v4-tree-checkbox:hover .paraui-v4-tree-checkbox-inner, .paraui-v4-tree-checkbox-input:focus + .paraui-v4-tree-checkbox-inner {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-tree-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid rgb(46, 101, 230);\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-v4-tree-checkbox:hover::after, .paraui-v4-tree-checkbox-wrapper:hover .paraui-v4-tree-checkbox::after {\n visibility: visible;\n}\n.paraui-v4-tree-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 14px;\n height: 14px;\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-v4-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-v4-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-v4-tree-checkbox-checked .paraui-v4-tree-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 1px solid rgb(255, 255, 255);\n border-top: 0;\n border-left: 0;\n width: 4px;\n height: 8px;\n top: 45%;\n left: 21%;\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 line-height: 16px;\n content: \" \";\n}\n\n.paraui-v4-tree-checkbox-checked .paraui-v4-tree-checkbox-inner {\n background-color: rgb(46, 101, 230);\n border-color: rgba(0, 0, 0, 0);\n line-height: 16px;\n}\n\n.paraui-v4-tree-checkbox-disabled {\n cursor: not-allowed;\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-tree-checkbox-disabled.paraui-v4-tree-checkbox-checked .paraui-v4-tree-checkbox-inner {\n background-color: rgb(234, 236, 241);\n border: none !important;\n}\n.paraui-v4-tree-checkbox-disabled.paraui-v4-tree-checkbox-checked:hover .paraui-v4-tree-checkbox-inner {\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-tree-checkbox-disabled.paraui-v4-tree-checkbox-checked .paraui-v4-tree-checkbox-inner::after {\n border-color: rgb(255, 255, 255);\n color: rgb(255, 255, 255);\n}\n.paraui-v4-tree-checkbox-disabled .paraui-v4-tree-checkbox-input {\n cursor: not-allowed;\n}\n.paraui-v4-tree-checkbox-disabled .paraui-v4-tree-checkbox-inner {\n background-color: rgb(234, 236, 241);\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-tree-checkbox-disabled .paraui-v4-tree-checkbox-inner::after {\n border-color: #fff !important;\n border-collapse: separate;\n animation-name: none;\n}\n.paraui-v4-tree-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v4-tree-checkbox-disabled:hover::after, .paraui-v4-tree-checkbox-wrapper:hover .paraui-v4-tree-checkbox-disabled::after {\n visibility: hidden;\n}\n\n.paraui-v4-tree-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(29, 33, 38);\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-v4-tree-checkbox-wrapper.paraui-v4-tree-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.paraui-v4-tree-checkbox-wrapper + .paraui-v4-tree-checkbox-wrapper {\n margin-left: 8px;\n}\n\n.paraui-v4-tree-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.paraui-v4-tree-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(29, 33, 38);\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-v4-tree-checkbox-group-item {\n margin-right: 8px;\n}\n.paraui-v4-tree-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.paraui-v4-tree-checkbox-group-item + .paraui-v4-tree-checkbox-group-item {\n margin-left: 0;\n}\n\n.paraui-v4-tree-checkbox-indeterminate .paraui-v4-tree-checkbox-inner {\n background-color: rgb(46, 101, 230);\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-tree-checkbox-indeterminate .paraui-v4-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-v4-tree-checkbox-indeterminate.paraui-v4-tree-checkbox-disabled .paraui-v4-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-v4-tree-wrapper .paraui-v4-tree-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.paraui-v4-tree {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(29, 33, 38);\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-v4-tree-focused:not(:hover):not(.paraui-v4-tree-active-focused) {\n background: #e6f7ff;\n}\n.paraui-v4-tree-list-holder-inner {\n align-items: flex-start;\n}\n.paraui-v4-tree.paraui-v4-tree-block-node .paraui-v4-tree-list-holder-inner {\n align-items: stretch;\n}\n.paraui-v4-tree.paraui-v4-tree-block-node .paraui-v4-tree-list-holder-inner .paraui-v4-tree-node-content-wrapper {\n flex: auto;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode {\n display: flex;\n align-items: flex-start;\n outline: none;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode-disabled .paraui-v4-tree-node-content-wrapper {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode-disabled .paraui-v4-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode-active .paraui-v4-tree-node-content-wrapper {\n background: #f5f5f5;\n}\n.paraui-v4-tree .paraui-v4-tree-treenode:not(.paraui-v4-tree .paraui-v4-tree-treenode-disabled).filter-node .paraui-v4-tree-title {\n color: inherit;\n font-weight: 500;\n}\n.paraui-v4-tree-indent {\n align-self: stretch;\n white-space: nowrap;\n user-select: none;\n}\n.paraui-v4-tree-indent-unit {\n display: inline-block;\n width: 24px;\n}\n.paraui-v4-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-v4-tree-switcher .paraui-v4-tree-switcher-icon,\n.paraui-v4-tree-switcher .paraui-v4-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-v4-tree-switcher .paraui-v4-tree-switcher-icon svg,\n.paraui-v4-tree-switcher .paraui-v4-select-tree-switcher-icon svg {\n font-size: inherit;\n color: inherit;\n transition: transform 0.3s;\n}\n.paraui-v4-tree-switcher-noop {\n cursor: default;\n}\n.paraui-v4-tree-switcher-icon[data-name=DownTriangleF]:hover {\n color: rgb(46, 101, 230);\n background: rgb(247, 248, 250);\n}\n.paraui-v4-tree-switcher_close .paraui-v4-tree-switcher-icon {\n transform: rotate(-90deg);\n}\n.paraui-v4-tree-switcher_close .paraui-v4-tree-switcher-icon svg {\n color: currentColor;\n transform: rotate(-90deg);\n}\n.paraui-v4-tree-switcher-loading-icon {\n color: rgb(46, 101, 230);\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-v4-tree-switcher-leaf-line {\n position: relative;\n z-index: 1;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.paraui-v4-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-v4-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-v4-tree-checkbox {\n top: initial;\n margin: 6px 6px 0 0;\n}\n.paraui-v4-tree .paraui-v4-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-v4-tree .paraui-v4-tree-node-content-wrapper:hover {\n background-color: rgb(247, 248, 250);\n border-radius: 4px;\n}\n.paraui-v4-tree .paraui-v4-tree-node-content-wrapper.paraui-v4-tree-node-selected {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-tree .paraui-v4-tree-node-content-wrapper .paraui-v4-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-v4-tree .paraui-v4-tree-node-content-wrapper .paraui-v4-tree-iconEle > svg {\n vertical-align: -0.125em;\n color: inherit;\n}\n.paraui-v4-tree .paraui-v4-tree-node-content-wrapper .paraui-v4-tree-iconEle:empty {\n display: none;\n}\n.paraui-v4-tree-unselectable .paraui-v4-tree-node-content-wrapper:hover {\n background-color: transparent;\n}\n.paraui-v4-tree-node-content-wrapper[draggable=true] {\n line-height: 24px;\n user-select: none;\n}\n.paraui-v4-tree-node-content-wrapper[draggable=true] .paraui-v4-tree-drop-indicator {\n position: absolute;\n z-index: 1;\n height: 2px;\n background-color: rgb(46, 101, 230);\n border-radius: 1px;\n pointer-events: none;\n}\n.paraui-v4-tree-node-content-wrapper[draggable=true] .paraui-v4-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(46, 101, 230);\n border-radius: 50%;\n content: \"\";\n}\n.paraui-v4-tree .paraui-v4-tree-treenode.drop-container > [draggable] {\n box-shadow: 0 0 0 2px rgb(46, 101, 230);\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-indent-unit {\n position: relative;\n height: 100%;\n}\n.paraui-v4-tree-show-line .paraui-v4-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-v4-tree-show-line .paraui-v4-tree-indent-unit-end::before {\n display: none;\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-switcher {\n background: rgb(255, 255, 255);\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-switcher_close svg {\n transform: rotate(-90deg);\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-switcher_open svg {\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-switcher-line-icon {\n vertical-align: -0.225em;\n color: inherit;\n font-size: 14px;\n}\n.paraui-v4-tree-show-line .paraui-v4-tree-switcher-line-icon[data-name=DownTriangleF]:hover {\n color: rgb(46, 101, 230);\n background: rgb(247, 248, 250);\n}\n.paraui-v4-tree-node-content-wrapper {\n overflow: hidden;\n display: flex;\n}\n.paraui-v4-tree-node-content-wrapper .paraui-v4-tree-title {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.paraui-v4-tree-node-content-wrapper .paraui-v4-tree-treenode-more-wrapper {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-tree .paraui-v4-tree-node-content-wrapper--active {\n background-color: rgb(247, 248, 250) !important;\n border-radius: 2px !important;\n}\n.paraui-v4-tree .paraui-v4-tree-node-content-wrapper--active .sector-anchor {\n opacity: 1 !important;\n}\n.paraui-v4-tree.paraui-v4-tree-block-node .paraui-v4-tree-list-holder-inner .paraui-v4-tree-node-content-wrapper {\n flex-grow: 0;\n flex-shrink: 1;\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper {\n display: inline-flex;\n align-items: center;\n margin: 0 -6px;\n padding: 0 8px;\n overflow: hidden;\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper .sector-anchor {\n position: relative;\n margin: 1px 0 0 10px;\n line-height: 14px;\n opacity: 0;\n transition: opacity 0.3s;\n}\n.paraui-v4-tree .paraui-v4-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: rgb(247, 248, 250);\n pointer-events: none;\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper .sector-anchor svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper .sector-anchor svg:hover {\n background: rgba(212, 218, 227, 0.4);\n border-radius: 2px;\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper .sector-anchor--active.sector-anchor svg {\n color: rgb(46, 101, 230);\n background: rgba(212, 218, 227, 0.4);\n border-radius: 2px;\n}\n.paraui-v4-tree .paraui-v4-tree-title-wrapper--active .sector-anchor {\n opacity: 1;\n}\n.paraui-v4-tree.paraui-v4-tree-radioable .paraui-v4-tree-iconEle {\n position: absolute;\n left: 8px;\n top: 0;\n}\n.paraui-v4-tree.paraui-v4-tree-radioable .paraui-v4-tree-checkbox {\n display: none !important;\n}\n.paraui-v4-tree.paraui-v4-tree-radioable .paraui-v4-tree-checkbox-checked + .paraui-v4-tree-node-content-wrapper {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-tree.paraui-v4-tree-radioable .paraui-v4-tree-node-radio {\n width: 16px;\n height: 16px;\n padding: 0;\n margin-top: 4px;\n}\n.paraui-v4-tree.paraui-v4-tree-radioable-showradio .paraui-v4-tree-node-content-wrapper {\n padding-left: 28px;\n}\n\n.paraui-v4-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}";
|
|
1372
1379
|
styleInject(css_248z);
|
|
1373
1380
|
|
|
1374
1381
|
export { Tree as T };
|
|
@@ -23,8 +23,8 @@ var FDialog = function FDialog(props) {
|
|
|
23
23
|
listIndex = props.listIndex,
|
|
24
24
|
ModalProps = props.ModalProps;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
* 外部想要单独关闭弹窗传出
|
|
27
|
+
*/
|
|
28
28
|
React__default.useEffect(function () {
|
|
29
29
|
getClose && getClose(function () {
|
|
30
30
|
return onClose(listIndex);
|
|
@@ -56,8 +56,8 @@ var FDialog = function FDialog(props) {
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
* 创建模态框的上下文
|
|
60
|
-
*/
|
|
59
|
+
* 创建模态框的上下文
|
|
60
|
+
*/
|
|
61
61
|
var FunctionModalContext = /*#__PURE__*/React__default.createContext(Promise.reject);
|
|
62
62
|
/**
|
|
63
63
|
* 弹出框组件
|
|
@@ -71,8 +71,8 @@ var useModal = function useModal() {
|
|
|
71
71
|
};
|
|
72
72
|
var setState;
|
|
73
73
|
/**
|
|
74
|
-
* 函数弹窗组件Provider
|
|
75
|
-
*/
|
|
74
|
+
* 函数弹窗组件Provider
|
|
75
|
+
*/
|
|
76
76
|
var FunctionModalProvider = function FunctionModalProvider(_ref) {
|
|
77
77
|
var children = _ref.children;
|
|
78
78
|
// 模态框组 配置
|
|
@@ -88,10 +88,10 @@ var FunctionModalProvider = function FunctionModalProvider(_ref) {
|
|
|
88
88
|
// 存储每个模态框的 promise 方法
|
|
89
89
|
var awaitingPromiseRef = React__default.useRef([]);
|
|
90
90
|
/**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
* 模态框初始化方法
|
|
92
|
+
* @param options 模态框配置
|
|
93
|
+
* @return 返回一个promise 用于外部判断弹窗状态
|
|
94
|
+
*/
|
|
95
95
|
var openConfirmation = function openConfirmation(options) {
|
|
96
96
|
setConfirmationState(function (pre) {
|
|
97
97
|
pre.push(options);
|
|
@@ -105,10 +105,10 @@ var FunctionModalProvider = function FunctionModalProvider(_ref) {
|
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
107
|
/**
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
* 模态框关闭方法
|
|
109
|
+
* @param idx 模态框在模态框数组里的下标,用于拿到对应的配置 和 promise
|
|
110
|
+
* @description 关闭后会清空相关配置
|
|
111
|
+
*/
|
|
112
112
|
var handleClose = function handleClose(idx) {
|
|
113
113
|
// 是否有禁用取消停止功能的配置
|
|
114
114
|
if (confirmationState[idx] && !confirmationState[idx].disCatchOnCancel && awaitingPromiseRef.current[idx]) {
|
|
@@ -120,9 +120,9 @@ var FunctionModalProvider = function FunctionModalProvider(_ref) {
|
|
|
120
120
|
deleteOption(idx);
|
|
121
121
|
};
|
|
122
122
|
/**
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
* 模态框确定触发的方法
|
|
124
|
+
* @param idx 模态框在模态框数组里的下标,用于拿到对应的配置 和 promise
|
|
125
|
+
*/
|
|
126
126
|
var handleSubmit = function handleSubmit(idx) {
|
|
127
127
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/regenerator.mark(function _callee() {
|
|
128
128
|
var checkFuc, jude, pRef;
|
|
@@ -157,10 +157,10 @@ var FunctionModalProvider = function FunctionModalProvider(_ref) {
|
|
|
157
157
|
}));
|
|
158
158
|
};
|
|
159
159
|
/**
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
* 删除模态框配置,promise 执行成功操作
|
|
161
|
+
* @param pRef 模态框的promise
|
|
162
|
+
* @param idx 模态框在模态框组里的下标
|
|
163
|
+
*/
|
|
164
164
|
var deleteOption = function deleteOption(idx, pRef) {
|
|
165
165
|
setTimeout(function () {
|
|
166
166
|
pRef && pRef.resolve(true);
|
|
@@ -172,10 +172,10 @@ var FunctionModalProvider = function FunctionModalProvider(_ref) {
|
|
|
172
172
|
}, 200);
|
|
173
173
|
};
|
|
174
174
|
/**
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
* 隐藏模态框对应的dom
|
|
176
|
+
* @param idx 模态框在模态框数组里的下标
|
|
177
|
+
* @desc 解决异步导致的闪烁问题
|
|
178
|
+
*/
|
|
179
179
|
var hideDialog = function hideDialog(idx) {
|
|
180
180
|
var dialogEl = document.querySelectorAll('.function-modal .MuiDialog-container')[idx];
|
|
181
181
|
if (dialogEl) dialogEl.style.opacity = '0';
|
package/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export { default as AutoBox } from './AutoBox';
|
|
|
2
2
|
export * from './AutoBox';
|
|
3
3
|
export { default as AutoTips } from './AutoTips';
|
|
4
4
|
export * from './AutoTips';
|
|
5
|
+
export { default as Badge } from './Badge';
|
|
6
|
+
export * from './Badge';
|
|
5
7
|
export { default as Breadcrumbs } from './Breadcrumbs';
|
|
6
8
|
export * from './Breadcrumbs';
|
|
7
9
|
export { default as Button } from './Button';
|
|
@@ -32,6 +34,8 @@ export { default as CopyText } from './CopyText';
|
|
|
32
34
|
export * from './CopyText';
|
|
33
35
|
export { default as DatePicker } from './DatePicker';
|
|
34
36
|
export * from './DatePicker';
|
|
37
|
+
export { default as Descriptions } from './Descriptions';
|
|
38
|
+
export * from './Descriptions';
|
|
35
39
|
export { default as Desktop } from './Desktop';
|
|
36
40
|
export * from './Desktop';
|
|
37
41
|
export { default as DragVerify } from './DragVerify';
|