linkmore-design 1.1.10 → 1.1.12
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/dist/Button/demos/type.d.ts +2 -0
- package/dist/Cascader/demos/formItem.d.ts +2 -0
- package/dist/CustomTableOption/index.d.ts +1 -0
- package/dist/CustomTableOption/locale/en_US.d.ts +19 -0
- package/dist/CustomTableOption/locale/zh_CN.d.ts +19 -0
- package/dist/LmEditTable/demos/priceTable.d.ts +2 -0
- package/dist/LmEditTable/util.d.ts +1 -0
- package/dist/LmFilter/demos/filterControl.d.ts +2 -0
- package/dist/Locale/default.d.ts +4 -1
- package/dist/Locale/zh_CN.d.ts +4 -1
- package/dist/Modal/demos/locale.d.ts +2 -0
- package/dist/Modal/locale.d.ts +7 -0
- package/dist/Select/demos/formItem.d.ts +2 -0
- package/dist/Select/index.d.ts +1 -0
- package/dist/TreeSelect/demos/formItem.d.ts +2 -0
- package/dist/TreeSelect/index.d.ts +8 -3
- package/dist/base.css +1 -0
- package/dist/index.umd.js +394 -206
- package/dist/index.umd.min.js +6 -6
- package/dist/variables.css +45 -12
- package/es/Affix/style/index.css +1 -0
- package/es/Alert/style/index.css +1 -0
- package/es/Approval/style/index.css +1 -0
- package/es/AutoComplete/style/index.css +1 -0
- package/es/Avatar/style/index.css +1 -0
- package/es/Badge/style/index.css +1 -0
- package/es/Breadcrumb/style/index.css +1 -0
- package/es/Button/style/index.css +4 -1
- package/es/Button/style/variables.css +4 -1
- package/es/ButtonTags/style/index.css +1 -0
- package/es/Calendar/style/index.css +1 -0
- package/es/Card/style/index.css +1 -0
- package/es/CardTable/style/index.css +7 -9
- package/es/CardTable/style/variables.css +7 -9
- package/es/Carousel/style/index.css +1 -0
- package/es/Cascader/style/index.css +1 -0
- package/es/Col/style/index.css +1 -0
- package/es/Collapse/style/index.css +1 -0
- package/es/Comment/style/index.css +1 -0
- package/es/CustomTableOption/cardSort.js +21 -16
- package/es/CustomTableOption/columnsSort.js +16 -16
- package/es/CustomTableOption/filterSort.js +11 -11
- package/es/CustomTableOption/index.d.ts +1 -0
- package/es/CustomTableOption/index.js +45 -17
- package/es/CustomTableOption/locale/en_US.d.ts +19 -0
- package/es/CustomTableOption/locale/en_US.js +19 -0
- package/es/CustomTableOption/locale/zh_CN.d.ts +19 -0
- package/es/CustomTableOption/locale/zh_CN.js +19 -0
- package/es/CustomTableOption/style/index.css +5 -0
- package/es/CustomTableOption/style/variables.css +4 -0
- package/es/CustomerService/style/index.css +1 -0
- package/es/DatePicker/style/index.css +1 -0
- package/es/Descriptions/style/index.css +1 -0
- package/es/Divider/style/index.css +1 -0
- package/es/Drawer/style/index.css +1 -0
- package/es/Dropdown/style/index.css +3 -2
- package/es/Dropdown/style/variables.css +2 -2
- package/es/EditTable/style/index.css +1 -0
- package/es/Empty/style/index.css +1 -0
- package/es/Filter/style/index.css +1 -0
- package/es/Form/style/index.css +1 -0
- package/es/FullScreen/style/index.css +1 -0
- package/es/Grid/style/index.css +1 -0
- package/es/Icon/style/index.css +1 -0
- package/es/Image/style/index.css +1 -0
- package/es/Input/style/index.css +1 -0
- package/es/InputNumber/style/index.css +1 -0
- package/es/Layout/style/index.css +1 -0
- package/es/LeftTable/index.js +3 -1
- package/es/LeftTable/style/index.css +1 -0
- package/es/List/style/index.css +1 -0
- package/es/LmEditTable/EditTable.js +102 -98
- package/es/LmEditTable/style/index.css +23 -0
- package/es/LmEditTable/style/variables.css +22 -0
- package/es/LmEditTable/util.d.ts +1 -0
- package/es/LmEditTable/util.js +27 -0
- package/es/LmSelect/style/index.css +1 -0
- package/es/LmTable/style/index.css +1 -0
- package/es/Locale/default.d.ts +4 -1
- package/es/Locale/default.js +3 -1
- package/es/Locale/zh_CN.d.ts +4 -1
- package/es/Locale/zh_CN.js +3 -1
- package/es/Mentions/style/index.css +1 -0
- package/es/Menu/style/index.css +1 -0
- package/es/Modal/index.js +18 -14
- package/es/Modal/locale.d.ts +7 -0
- package/es/Modal/locale.js +12 -0
- package/es/Modal/style/index.css +1 -0
- package/es/PageHeader/style/index.css +1 -0
- package/es/Pagination/style/index.css +1 -0
- package/es/Popconfirm/style/index.css +1 -0
- package/es/Popover/style/index.css +1 -0
- package/es/Progress/style/index.css +1 -0
- package/es/QuickMenu/style/index.css +6 -0
- package/es/QuickMenu/style/variables.css +5 -0
- package/es/Rate/style/index.css +1 -0
- package/es/Result/style/index.css +1 -0
- package/es/Row/style/index.css +1 -0
- package/es/Segmented/style/index.css +1 -0
- package/es/Select/index.d.ts +1 -0
- package/es/Select/index.js +38 -4
- package/es/Select/style/index.css +1 -0
- package/es/Skeleton/style/index.css +1 -0
- package/es/Slider/style/index.css +1 -0
- package/es/Space/style/index.css +1 -0
- package/es/Spin/style/index.css +1 -0
- package/es/Statistic/style/index.css +1 -0
- package/es/Steps/style/index.css +1 -0
- package/es/Switch/style/index.css +1 -0
- package/es/Table/style/index.css +1 -0
- package/es/Tabs/style/index.css +1 -0
- package/es/Tag/style/index.css +1 -0
- package/es/TimePicker/style/index.css +1 -0
- package/es/Timeline/style/index.css +1 -0
- package/es/Tooltip/style/index.css +1 -0
- package/es/Transfer/style/index.css +1 -0
- package/es/Tree/style/index.css +1 -0
- package/es/TreeSelect/index.d.ts +8 -3
- package/es/TreeSelect/index.js +74 -1
- package/es/TreeSelect/style/index.css +1 -0
- package/es/Typography/style/index.css +1 -0
- package/es/Upload/style/index.css +1 -0
- package/es/locale-provider/style/index.css +1 -0
- package/es/message/style/index.css +1 -0
- package/es/notification/style/index.css +1 -0
- package/es/styles/main.css +1 -0
- package/es/styles/variables.css +45 -12
- package/lib/Affix/style/index.css +1 -0
- package/lib/Alert/style/index.css +1 -0
- package/lib/Approval/style/index.css +1 -0
- package/lib/AutoComplete/style/index.css +1 -0
- package/lib/Avatar/style/index.css +1 -0
- package/lib/Badge/style/index.css +1 -0
- package/lib/Breadcrumb/style/index.css +1 -0
- package/lib/Button/style/index.css +4 -1
- package/lib/Button/style/variables.css +4 -1
- package/lib/ButtonTags/style/index.css +1 -0
- package/lib/Calendar/style/index.css +1 -0
- package/lib/Card/style/index.css +1 -0
- package/lib/CardTable/style/index.css +7 -9
- package/lib/CardTable/style/variables.css +7 -9
- package/lib/Carousel/style/index.css +1 -0
- package/lib/Cascader/style/index.css +1 -0
- package/lib/Col/style/index.css +1 -0
- package/lib/Collapse/style/index.css +1 -0
- package/lib/Comment/style/index.css +1 -0
- package/lib/CustomTableOption/cardSort.js +20 -15
- package/lib/CustomTableOption/columnsSort.js +16 -16
- package/lib/CustomTableOption/filterSort.js +11 -11
- package/lib/CustomTableOption/index.d.ts +1 -0
- package/lib/CustomTableOption/index.js +45 -16
- package/lib/CustomTableOption/locale/en_US.d.ts +19 -0
- package/lib/CustomTableOption/locale/en_US.js +26 -0
- package/lib/CustomTableOption/locale/zh_CN.d.ts +19 -0
- package/lib/CustomTableOption/locale/zh_CN.js +26 -0
- package/lib/CustomTableOption/style/index.css +5 -0
- package/lib/CustomTableOption/style/variables.css +4 -0
- package/lib/CustomerService/style/index.css +1 -0
- package/lib/DatePicker/style/index.css +1 -0
- package/lib/Descriptions/style/index.css +1 -0
- package/lib/Divider/style/index.css +1 -0
- package/lib/Drawer/style/index.css +1 -0
- package/lib/Dropdown/style/index.css +3 -2
- package/lib/Dropdown/style/variables.css +2 -2
- package/lib/EditTable/style/index.css +1 -0
- package/lib/Empty/style/index.css +1 -0
- package/lib/Filter/style/index.css +1 -0
- package/lib/Form/style/index.css +1 -0
- package/lib/FullScreen/style/index.css +1 -0
- package/lib/Grid/style/index.css +1 -0
- package/lib/Icon/style/index.css +1 -0
- package/lib/Image/style/index.css +1 -0
- package/lib/Input/style/index.css +1 -0
- package/lib/InputNumber/style/index.css +1 -0
- package/lib/Layout/style/index.css +1 -0
- package/lib/LeftTable/index.js +3 -1
- package/lib/LeftTable/style/index.css +1 -0
- package/lib/List/style/index.css +1 -0
- package/lib/LmEditTable/EditTable.js +101 -96
- package/lib/LmEditTable/style/index.css +23 -0
- package/lib/LmEditTable/style/variables.css +22 -0
- package/lib/LmEditTable/util.d.ts +1 -0
- package/lib/LmEditTable/util.js +30 -0
- package/lib/LmSelect/style/index.css +1 -0
- package/lib/LmTable/style/index.css +1 -0
- package/lib/Locale/default.d.ts +4 -1
- package/lib/Locale/default.js +4 -1
- package/lib/Locale/zh_CN.d.ts +4 -1
- package/lib/Locale/zh_CN.js +4 -1
- package/lib/Mentions/style/index.css +1 -0
- package/lib/Menu/style/index.css +1 -0
- package/lib/Modal/index.js +22 -14
- package/lib/Modal/locale.d.ts +7 -0
- package/lib/Modal/locale.js +25 -0
- package/lib/Modal/style/index.css +1 -0
- package/lib/PageHeader/style/index.css +1 -0
- package/lib/Pagination/style/index.css +1 -0
- package/lib/Popconfirm/style/index.css +1 -0
- package/lib/Popover/style/index.css +1 -0
- package/lib/Progress/style/index.css +1 -0
- package/lib/QuickMenu/style/index.css +6 -0
- package/lib/QuickMenu/style/variables.css +5 -0
- package/lib/Rate/style/index.css +1 -0
- package/lib/Result/style/index.css +1 -0
- package/lib/Row/style/index.css +1 -0
- package/lib/Segmented/style/index.css +1 -0
- package/lib/Select/index.d.ts +1 -0
- package/lib/Select/index.js +37 -3
- package/lib/Select/style/index.css +1 -0
- package/lib/Skeleton/style/index.css +1 -0
- package/lib/Slider/style/index.css +1 -0
- package/lib/Space/style/index.css +1 -0
- package/lib/Spin/style/index.css +1 -0
- package/lib/Statistic/style/index.css +1 -0
- package/lib/Steps/style/index.css +1 -0
- package/lib/Switch/style/index.css +1 -0
- package/lib/Table/style/index.css +1 -0
- package/lib/Tabs/style/index.css +1 -0
- package/lib/Tag/style/index.css +1 -0
- package/lib/TimePicker/style/index.css +1 -0
- package/lib/Timeline/style/index.css +1 -0
- package/lib/Tooltip/style/index.css +1 -0
- package/lib/Transfer/style/index.css +1 -0
- package/lib/Tree/style/index.css +1 -0
- package/lib/TreeSelect/index.d.ts +8 -3
- package/lib/TreeSelect/index.js +78 -1
- package/lib/TreeSelect/style/index.css +1 -0
- package/lib/Typography/style/index.css +1 -0
- package/lib/Upload/style/index.css +1 -0
- package/lib/locale-provider/style/index.css +1 -0
- package/lib/message/style/index.css +1 -0
- package/lib/notification/style/index.css +1 -0
- package/lib/styles/main.css +1 -0
- package/lib/styles/variables.css +45 -12
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.changeConfirmLocale = changeConfirmLocale;
|
|
9
|
+
exports.getConfirmLocale = getConfirmLocale;
|
|
10
|
+
|
|
11
|
+
var _default = _interopRequireDefault(require("../Locale/default"));
|
|
12
|
+
|
|
13
|
+
var runtimeLocale = Object.assign({}, _default.default.Modal);
|
|
14
|
+
|
|
15
|
+
function changeConfirmLocale(newLocale) {
|
|
16
|
+
if (newLocale) {
|
|
17
|
+
runtimeLocale = Object.assign(Object.assign({}, runtimeLocale), newLocale);
|
|
18
|
+
} else {
|
|
19
|
+
runtimeLocale = Object.assign({}, _default.default.Modal);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function getConfirmLocale() {
|
|
24
|
+
return runtimeLocale;
|
|
25
|
+
}
|
|
@@ -198,6 +198,7 @@
|
|
|
198
198
|
--font-size-base: 14px;
|
|
199
199
|
--font-size-lg: calc(var(--font-size-base) + 2px);
|
|
200
200
|
--font-size-sm: 12px;
|
|
201
|
+
--border-radius: 2px;
|
|
201
202
|
--color-contrast: #fff;
|
|
202
203
|
--color-100: #000;
|
|
203
204
|
--color-85: #262626;
|
|
@@ -516,6 +517,11 @@ p {
|
|
|
516
517
|
z-index: 999;
|
|
517
518
|
background-color: #fff;
|
|
518
519
|
}
|
|
520
|
+
.lm_quick_menu .ant-btn {
|
|
521
|
+
border: 0;
|
|
522
|
+
border-radius: 4px;
|
|
523
|
+
box-shadow: 0px 12px 48px 0px rgba(0, 0, 0, 0.03), 0px 9px 28px 0px rgba(0, 0, 0, 0.05), 0px 6px 16px 0px rgba(0, 0, 0, 0.08);
|
|
524
|
+
}
|
|
519
525
|
.lm_quick_menu .lm_menu_list {
|
|
520
526
|
position: relative;
|
|
521
527
|
width: 0;
|
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
z-index: 999;
|
|
6
6
|
background-color: #fff;
|
|
7
7
|
}
|
|
8
|
+
.lm_quick_menu .ant-btn {
|
|
9
|
+
border: 0;
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
box-shadow: 0px 12px 48px 0px rgba(0, 0, 0, 0.03), 0px 9px 28px 0px rgba(0, 0, 0, 0.05), 0px 6px 16px 0px rgba(0, 0, 0, 0.08);
|
|
12
|
+
}
|
|
8
13
|
.lm_quick_menu .lm_menu_list {
|
|
9
14
|
position: relative;
|
|
10
15
|
width: 0;
|
package/lib/Rate/style/index.css
CHANGED
package/lib/Row/style/index.css
CHANGED
package/lib/Select/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface ISelectProps extends SelectProps {
|
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
6
|
Option?: typeof Select.Option;
|
|
7
7
|
OptGroup?: typeof Select.OptGroup;
|
|
8
|
+
defaultLabel?: string;
|
|
8
9
|
}
|
|
9
10
|
declare type SelectType = typeof Select & typeof Select.Option & typeof Select.OptGroup;
|
|
10
11
|
declare const LMSelect: SelectType;
|
package/lib/Select/index.js
CHANGED
|
@@ -38,13 +38,47 @@ var CLMSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
38
38
|
className = props.className,
|
|
39
39
|
customizeSize = props.size,
|
|
40
40
|
dropdownClassName = props.dropdownClassName,
|
|
41
|
-
|
|
41
|
+
options = props.options,
|
|
42
|
+
value = props.value,
|
|
43
|
+
defaultLabel = props.defaultLabel,
|
|
44
|
+
others = __rest(props, ["children", "className", "size", "dropdownClassName", "options", "value", "defaultLabel"]);
|
|
42
45
|
|
|
43
|
-
var size = customizeSize || _react.default.useContext(_SizeContext.default) || 'middle';
|
|
46
|
+
var size = customizeSize || _react.default.useContext(_SizeContext.default) || 'middle'; // 当前值是否存于选项中
|
|
47
|
+
|
|
48
|
+
var hasOption = (0, _react.useMemo)(function () {
|
|
49
|
+
var flag = false;
|
|
50
|
+
|
|
51
|
+
if (children) {
|
|
52
|
+
_react.default.Children.forEach(children, function (child) {
|
|
53
|
+
if ( /*#__PURE__*/_react.default.isValidElement(child)) {
|
|
54
|
+
var childValue = child.props.value;
|
|
55
|
+
|
|
56
|
+
if (!flag) {
|
|
57
|
+
flag = childValue === value;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (options) {
|
|
64
|
+
flag = !!options.some(function (v) {
|
|
65
|
+
return v.value === value;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return flag;
|
|
70
|
+
}, [children, value, options]); // 重组value: 传入value但找不到options项时,展示默认label
|
|
71
|
+
|
|
72
|
+
var resetValue = (0, _react.useMemo)(function () {
|
|
73
|
+
if (value && !hasOption) return defaultLabel !== null && defaultLabel !== void 0 ? defaultLabel : value;
|
|
74
|
+
return value;
|
|
75
|
+
}, [value, hasOption]);
|
|
44
76
|
return /*#__PURE__*/_react.default.createElement(_select.default, Object.assign({
|
|
45
77
|
className: (0, _classnames.default)(className, prefixCls),
|
|
46
78
|
size: size,
|
|
47
|
-
ref: ref
|
|
79
|
+
ref: ref,
|
|
80
|
+
value: resetValue,
|
|
81
|
+
options: options
|
|
48
82
|
}, others, {
|
|
49
83
|
dropdownClassName: (0, _classnames.default)('lm_select_dropdown', dropdownClassName)
|
|
50
84
|
}), children);
|
package/lib/Spin/style/index.css
CHANGED
package/lib/Tabs/style/index.css
CHANGED
package/lib/Tag/style/index.css
CHANGED
package/lib/Tree/style/index.css
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { TreeSelect } from 'antd';
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import { TreeSelect, TreeSelectProps as OriginTreeSelectProps } from 'antd';
|
|
2
|
+
export interface TreeSelectProps extends OriginTreeSelectProps {
|
|
3
|
+
defaultLabel?: string;
|
|
4
|
+
children?: any;
|
|
5
|
+
}
|
|
6
|
+
declare type TreeSelectType = typeof TreeSelect & typeof TreeSelect.TreeNode;
|
|
7
|
+
declare const LMTreeSelect: TreeSelectType;
|
|
8
|
+
export default LMTreeSelect;
|
package/lib/TreeSelect/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
+
|
|
3
5
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
6
|
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11,5 +13,80 @@ require("antd/es/tree-select/style");
|
|
|
11
13
|
|
|
12
14
|
var _treeSelect = _interopRequireDefault(require("antd/es/tree-select"));
|
|
13
15
|
|
|
14
|
-
var
|
|
16
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
19
|
+
var t = {};
|
|
20
|
+
|
|
21
|
+
for (var p in s) {
|
|
22
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
26
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
27
|
+
}
|
|
28
|
+
return t;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var CLMTreeSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
32
|
+
var children = props.children,
|
|
33
|
+
treeData = props.treeData,
|
|
34
|
+
value = props.value,
|
|
35
|
+
defaultLabel = props.defaultLabel,
|
|
36
|
+
resetProps = __rest(props, ["children", "treeData", "value", "defaultLabel"]);
|
|
37
|
+
|
|
38
|
+
var deepChildren = (0, _react.useCallback)(function (arr) {
|
|
39
|
+
var flag = false;
|
|
40
|
+
|
|
41
|
+
_react.default.Children.forEach(arr, function (child) {
|
|
42
|
+
if ( /*#__PURE__*/_react.default.isValidElement(child)) {
|
|
43
|
+
var _child$props = child.props,
|
|
44
|
+
childValue = _child$props.value,
|
|
45
|
+
childChildren = _child$props.children;
|
|
46
|
+
|
|
47
|
+
if (!flag) {
|
|
48
|
+
if (childValue === value) {
|
|
49
|
+
flag = true;
|
|
50
|
+
} else if (childChildren) {
|
|
51
|
+
flag = deepChildren(childChildren);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
return flag;
|
|
58
|
+
}, [value]);
|
|
59
|
+
var hasOption = (0, _react.useMemo)(function () {
|
|
60
|
+
var flag = false;
|
|
61
|
+
|
|
62
|
+
if (children) {
|
|
63
|
+
flag = deepChildren(children);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (treeData) {
|
|
67
|
+
var deepFind = function deepFind(arr) {
|
|
68
|
+
return arr.some(function (v) {
|
|
69
|
+
if (v.value === value) return true;
|
|
70
|
+
return v.children && deepFind(v.children);
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
flag = deepFind(treeData);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return flag;
|
|
78
|
+
}, [children, value, deepChildren]); // 重组value: 传入value但找不到options项时,展示默认label
|
|
79
|
+
|
|
80
|
+
var resetValue = (0, _react.useMemo)(function () {
|
|
81
|
+
if (value && !hasOption) return defaultLabel !== null && defaultLabel !== void 0 ? defaultLabel : value;
|
|
82
|
+
return value;
|
|
83
|
+
}, [value, hasOption]);
|
|
84
|
+
return /*#__PURE__*/_react.default.createElement(_treeSelect.default, Object.assign({
|
|
85
|
+
ref: ref,
|
|
86
|
+
value: resetValue
|
|
87
|
+
}, resetProps), children);
|
|
88
|
+
});
|
|
89
|
+
var LMTreeSelect = CLMTreeSelect;
|
|
90
|
+
LMTreeSelect.TreeNode = _treeSelect.default.TreeNode;
|
|
91
|
+
var _default = LMTreeSelect;
|
|
15
92
|
exports.default = _default;
|