linkmore-design 1.1.17 → 1.1.19
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/ghost.d.ts +2 -0
- package/dist/Descriptions/index.d.ts +1 -1
- package/dist/QuickMenu/demos/useInDraw.d.ts +2 -0
- package/dist/QuickMenu/index.d.ts +1 -0
- package/dist/Select/index.d.ts +3 -0
- package/dist/index.umd.js +91 -28
- package/dist/index.umd.min.js +6 -6
- package/dist/variables.css +64 -25
- package/es/Button/index.js +4 -3
- package/es/Button/style/index.css +28 -25
- package/es/Button/style/variables.css +28 -25
- package/es/Cascader/index.js +16 -2
- package/es/Descriptions/index.d.ts +1 -1
- package/es/Descriptions/index.js +3 -3
- package/es/Descriptions/style/index.css +3 -0
- package/es/Descriptions/style/variables.css +3 -0
- package/es/InputNumber/index.js +11 -4
- package/es/InputNumber/style/index.css +3 -0
- package/es/InputNumber/style/variables.css +3 -0
- package/es/LmEditTable/EditTable.js +5 -1
- package/es/LmFilter/components/DropdownFIlter.js +1 -1
- package/es/QuickMenu/index.d.ts +1 -0
- package/es/QuickMenu/index.js +12 -8
- package/es/Select/index.d.ts +3 -0
- package/es/Select/index.js +28 -1
- package/es/Select/style/index.css +27 -0
- package/es/Select/style/variables.css +27 -0
- package/es/TreeSelect/index.js +16 -2
- package/es/TreeSelect/style/index.css +3 -0
- package/es/TreeSelect/style/variables.css +3 -0
- package/es/styles/variables.css +64 -25
- package/lib/Button/index.js +4 -3
- package/lib/Button/style/index.css +28 -25
- package/lib/Button/style/variables.css +28 -25
- package/lib/Cascader/index.js +20 -2
- package/lib/Descriptions/index.d.ts +1 -1
- package/lib/Descriptions/index.js +3 -3
- package/lib/Descriptions/style/index.css +3 -0
- package/lib/Descriptions/style/variables.css +3 -0
- package/lib/InputNumber/index.js +13 -4
- package/lib/InputNumber/style/index.css +3 -0
- package/lib/InputNumber/style/variables.css +3 -0
- package/lib/LmEditTable/EditTable.js +5 -1
- package/lib/LmFilter/components/DropdownFIlter.js +1 -1
- package/lib/QuickMenu/index.d.ts +1 -0
- package/lib/QuickMenu/index.js +11 -7
- package/lib/Select/index.d.ts +3 -0
- package/lib/Select/index.js +29 -1
- package/lib/Select/style/index.css +27 -0
- package/lib/Select/style/variables.css +27 -0
- package/lib/TreeSelect/index.js +20 -2
- package/lib/TreeSelect/style/index.css +3 -0
- package/lib/TreeSelect/style/variables.css +3 -0
- package/lib/styles/variables.css +64 -25
- package/package.json +3 -3
|
@@ -167,9 +167,9 @@ function Descriptions(_ref) {
|
|
|
167
167
|
value: contextValue
|
|
168
168
|
}, /*#__PURE__*/React.createElement("div", {
|
|
169
169
|
className: (0, _classnames.default)(prefixCls, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-").concat(size), size && size !== 'default'), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-bordered"), !!bordered), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className, 'lm_descriptions', {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
lm_descriptions_default: containerType === 'default',
|
|
171
|
+
lm_descriptions_drawer: containerType === 'drawer',
|
|
172
|
+
lm_descriptions_modal: containerType === 'modal'
|
|
173
173
|
}),
|
|
174
174
|
style: style
|
|
175
175
|
}, (title || extra) && /*#__PURE__*/React.createElement("div", {
|
|
@@ -665,6 +665,9 @@ p {
|
|
|
665
665
|
padding-right: 24px;
|
|
666
666
|
padding-bottom: 8px;
|
|
667
667
|
}
|
|
668
|
+
.lm_descriptions .ant-descriptions-item:last-child {
|
|
669
|
+
padding-right: 0;
|
|
670
|
+
}
|
|
668
671
|
.lm_descriptions .ant-descriptions-item .ant-descriptions-item-container {
|
|
669
672
|
color: var(--color-85);
|
|
670
673
|
font-size: 12px;
|
|
@@ -153,6 +153,9 @@
|
|
|
153
153
|
padding-right: 24px;
|
|
154
154
|
padding-bottom: 8px;
|
|
155
155
|
}
|
|
156
|
+
.lm_descriptions .ant-descriptions-item:last-child {
|
|
157
|
+
padding-right: 0;
|
|
158
|
+
}
|
|
156
159
|
.lm_descriptions .ant-descriptions-item .ant-descriptions-item-container {
|
|
157
160
|
color: var(--color-85);
|
|
158
161
|
font-size: 12px;
|
package/lib/InputNumber/index.js
CHANGED
|
@@ -17,6 +17,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
17
17
|
|
|
18
18
|
var _DisabledContext = _interopRequireDefault(require("../ConfigProvider/DisabledContext"));
|
|
19
19
|
|
|
20
|
+
var _SizeContext = _interopRequireDefault(require("../ConfigProvider/SizeContext"));
|
|
21
|
+
|
|
20
22
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
21
23
|
var t = {};
|
|
22
24
|
|
|
@@ -36,18 +38,25 @@ var LMInputNumber = function LMInputNumber(props) {
|
|
|
36
38
|
var children = props.children,
|
|
37
39
|
className = props.className,
|
|
38
40
|
customDisabled = props.disabled,
|
|
41
|
+
customizeSize = props.size,
|
|
39
42
|
rest = __rest(props // ===================== Disabled =====================
|
|
40
|
-
, ["children", "className", "disabled"]); // ===================== Disabled =====================
|
|
43
|
+
, ["children", "className", "disabled", "size"]); // ===================== Disabled =====================
|
|
41
44
|
|
|
42
45
|
|
|
43
46
|
var disabled = _react.default.useContext(_DisabledContext.default);
|
|
44
47
|
|
|
45
|
-
var mergedDisabled = customDisabled || disabled;
|
|
48
|
+
var mergedDisabled = customDisabled || disabled; // ===================== size =====================
|
|
49
|
+
|
|
50
|
+
var size = _react.default.useContext(_SizeContext.default);
|
|
51
|
+
|
|
52
|
+
var mergeSize = customizeSize || size;
|
|
46
53
|
return /*#__PURE__*/_react.default.createElement(_inputNumber.default, Object.assign({
|
|
47
54
|
className: (0, _classnames.default)(className, prefixCls),
|
|
48
|
-
disabled: mergedDisabled,
|
|
49
55
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
50
|
-
}, rest
|
|
56
|
+
}, rest, {
|
|
57
|
+
size: mergeSize,
|
|
58
|
+
disabled: mergedDisabled
|
|
59
|
+
}));
|
|
51
60
|
};
|
|
52
61
|
|
|
53
62
|
var CInputNumber = LMInputNumber;
|
|
@@ -1185,7 +1185,11 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
1185
1185
|
relevanceCols = col.relevanceCols,
|
|
1186
1186
|
componentProps = col.componentProps;
|
|
1187
1187
|
|
|
1188
|
-
if (
|
|
1188
|
+
if (componentProps && (0, _lodash.isFunction)(componentProps)) {
|
|
1189
|
+
return true;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
if ((col === null || col === void 0 ? void 0 : col.fixed) || hasDisableOptions && hasDisableOptions.includes(dataIndex) || ((_a = col.componentProps) === null || _a === void 0 ? void 0 : _a.options) || editable === 'render' || !!relevanceCols || !!shouldUpdate || !!record.children) {
|
|
1189
1193
|
return true;
|
|
1190
1194
|
}
|
|
1191
1195
|
|
|
@@ -201,7 +201,7 @@ var ItemLabel = /*#__PURE__*/_react.default.memo(function (_ref3) {
|
|
|
201
201
|
} catch (error) {
|
|
202
202
|
return filterValue;
|
|
203
203
|
}
|
|
204
|
-
}, [type, filterValue]);
|
|
204
|
+
}, [type, data, filterValue]);
|
|
205
205
|
|
|
206
206
|
if (isString) {
|
|
207
207
|
return /*#__PURE__*/_react.default.createElement("span", null, String);
|
package/lib/QuickMenu/index.d.ts
CHANGED
package/lib/QuickMenu/index.js
CHANGED
|
@@ -48,6 +48,11 @@ var LMQuickMenu = function LMQuickMenu(props) {
|
|
|
48
48
|
var scroll = (0, _ahooks.useScroll)((0, _domTarget.getTargetElement)(warpElement || document), function () {
|
|
49
49
|
return scrollOpenStatus;
|
|
50
50
|
});
|
|
51
|
+
var filterMenuData = (0, _react.useMemo)(function () {
|
|
52
|
+
return menuData === null || menuData === void 0 ? void 0 : menuData.filter(function (item) {
|
|
53
|
+
return item.hidden !== true;
|
|
54
|
+
});
|
|
55
|
+
}, [menuData]);
|
|
51
56
|
|
|
52
57
|
function clearActiveToc() {
|
|
53
58
|
[].forEach.call(document.querySelectorAll('.lm_menu_list li a'), function (node) {
|
|
@@ -71,7 +76,7 @@ var LMQuickMenu = function LMQuickMenu(props) {
|
|
|
71
76
|
(_a = menuTimeEventRef.current) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
72
77
|
}
|
|
73
78
|
|
|
74
|
-
if (!
|
|
79
|
+
if (!filterMenuData.length) {
|
|
75
80
|
return;
|
|
76
81
|
} // eslint-disable-next-line global-require
|
|
77
82
|
|
|
@@ -83,11 +88,10 @@ var LMQuickMenu = function LMQuickMenu(props) {
|
|
|
83
88
|
|
|
84
89
|
menuTimeEventRef.current = scrollama();
|
|
85
90
|
(_c = (_b = menuTimeEventRef.current) === null || _b === void 0 ? void 0 : _b.setup({
|
|
86
|
-
step:
|
|
91
|
+
step: filterMenuData.map(function (item) {
|
|
87
92
|
return document.getElementById("".concat(item.menuId));
|
|
88
|
-
}).filter(Boolean)
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
}).filter(Boolean),
|
|
94
|
+
container: (0, _domTarget.getTargetElement)(warpElement || document)
|
|
91
95
|
})) === null || _c === void 0 ? void 0 : _c.onStepEnter(function (_ref) {
|
|
92
96
|
var element = _ref.element;
|
|
93
97
|
updateActiveToc(element.id);
|
|
@@ -95,7 +99,7 @@ var LMQuickMenu = function LMQuickMenu(props) {
|
|
|
95
99
|
};
|
|
96
100
|
|
|
97
101
|
function setKeysDom() {
|
|
98
|
-
|
|
102
|
+
filterMenuData.forEach(function (item) {
|
|
99
103
|
var _a, _b;
|
|
100
104
|
|
|
101
105
|
var warpTop = ((_a = (0, _domTarget.getTargetElement)(warpElement || document)) === null || _a === void 0 ? void 0 : _a.offsetTop) || 0;
|
|
@@ -173,7 +177,7 @@ var LMQuickMenu = function LMQuickMenu(props) {
|
|
|
173
177
|
})
|
|
174
178
|
}), /*#__PURE__*/_react.default.createElement("ul", {
|
|
175
179
|
className: (0, _classnames.default)('lm_menu_list', hovering && 'show', className)
|
|
176
|
-
},
|
|
180
|
+
}, filterMenuData.map(function (item) {
|
|
177
181
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
178
182
|
key: item.menuId,
|
|
179
183
|
onClick: function onClick() {
|
package/lib/Select/index.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ export interface ISelectProps extends SelectProps {
|
|
|
6
6
|
Option?: typeof Select.Option;
|
|
7
7
|
OptGroup?: typeof Select.OptGroup;
|
|
8
8
|
defaultLabel?: string;
|
|
9
|
+
suffix?: React.ReactNode;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
iconClick?: () => void;
|
|
9
12
|
}
|
|
10
13
|
declare type SelectType = typeof Select & typeof Select.Option & typeof Select.OptGroup;
|
|
11
14
|
declare const LMSelect: SelectType;
|
package/lib/Select/index.js
CHANGED
|
@@ -15,6 +15,8 @@ var _select = _interopRequireDefault(require("antd/es/select"));
|
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
|
|
18
|
+
var _Button = _interopRequireDefault(require("../Button"));
|
|
19
|
+
|
|
18
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
21
|
|
|
20
22
|
var _SizeContext = _interopRequireDefault(require("../ConfigProvider/SizeContext"));
|
|
@@ -44,8 +46,11 @@ var CLMSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
44
46
|
options = props.options,
|
|
45
47
|
value = props.value,
|
|
46
48
|
defaultLabel = props.defaultLabel,
|
|
49
|
+
suffix = props.suffix,
|
|
50
|
+
icon = props.icon,
|
|
51
|
+
iconClick = props.iconClick,
|
|
47
52
|
rest = __rest(props // ===================== Size =====================
|
|
48
|
-
, ["children", "className", "size", "disabled", "dropdownClassName", "options", "value", "defaultLabel"]); // ===================== Size =====================
|
|
53
|
+
, ["children", "className", "size", "disabled", "dropdownClassName", "options", "value", "defaultLabel", "suffix", "icon", "iconClick"]); // ===================== Size =====================
|
|
49
54
|
|
|
50
55
|
|
|
51
56
|
var size = customizeSize || _react.default.useContext(_SizeContext.default) || 'middle'; // ===================== Disabled =====================
|
|
@@ -84,6 +89,29 @@ var CLMSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
84
89
|
if (value && !hasOption) return defaultLabel !== null && defaultLabel !== void 0 ? defaultLabel : value;
|
|
85
90
|
return value;
|
|
86
91
|
}, [value, defaultLabel, hasOption]);
|
|
92
|
+
|
|
93
|
+
if (icon) {
|
|
94
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
95
|
+
className: 'lm_select_has_icon',
|
|
96
|
+
style: props.style
|
|
97
|
+
}, /*#__PURE__*/_react.default.createElement(_select.default, Object.assign({
|
|
98
|
+
className: (0, _classnames.default)(className, prefixCls),
|
|
99
|
+
size: size,
|
|
100
|
+
ref: ref,
|
|
101
|
+
value: resetValue,
|
|
102
|
+
options: options,
|
|
103
|
+
disabled: mergedDisabled || undefined
|
|
104
|
+
}, rest, {
|
|
105
|
+
dropdownClassName: (0, _classnames.default)('lm_select_dropdown', dropdownClassName)
|
|
106
|
+
}), children), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
107
|
+
size: size,
|
|
108
|
+
onClick: iconClick,
|
|
109
|
+
className: 'lm_select_icon_button',
|
|
110
|
+
disabled: mergedDisabled || undefined,
|
|
111
|
+
icon: icon
|
|
112
|
+
}));
|
|
113
|
+
}
|
|
114
|
+
|
|
87
115
|
return /*#__PURE__*/_react.default.createElement(_select.default, Object.assign({
|
|
88
116
|
className: (0, _classnames.default)(className, prefixCls),
|
|
89
117
|
size: size,
|
|
@@ -526,3 +526,30 @@ p {
|
|
|
526
526
|
.lm_select_dropdown .ant-select-item-option-disabled {
|
|
527
527
|
color: var(--disabled-font-color);
|
|
528
528
|
}
|
|
529
|
+
.lm_select_has_icon {
|
|
530
|
+
width: 100%;
|
|
531
|
+
display: flex;
|
|
532
|
+
flex-direction: row;
|
|
533
|
+
align-items: center;
|
|
534
|
+
justify-content: flex-start;
|
|
535
|
+
position: relative;
|
|
536
|
+
}
|
|
537
|
+
.lm_select_has_icon .ant-select {
|
|
538
|
+
border-top-right-radius: 0;
|
|
539
|
+
border-bottom-right-radius: 0;
|
|
540
|
+
z-index: 3;
|
|
541
|
+
}
|
|
542
|
+
.lm_select_has_icon .ant-select .ant-select-selector {
|
|
543
|
+
border-top-right-radius: 0 !important;
|
|
544
|
+
border-bottom-right-radius: 0 !important;
|
|
545
|
+
}
|
|
546
|
+
.lm_select_has_icon .lm_select_icon_button {
|
|
547
|
+
margin-left: -1px;
|
|
548
|
+
border-top-left-radius: 0;
|
|
549
|
+
border-bottom-left-radius: 0;
|
|
550
|
+
z-index: 2;
|
|
551
|
+
}
|
|
552
|
+
.lm_select_has_icon .lm_select_icon_button:hover,
|
|
553
|
+
.lm_select_has_icon .lm_select_icon_button:focus {
|
|
554
|
+
z-index: 5;
|
|
555
|
+
}
|
|
@@ -14,3 +14,30 @@
|
|
|
14
14
|
.lm_select_dropdown .ant-select-item-option-disabled {
|
|
15
15
|
color: var(--disabled-font-color);
|
|
16
16
|
}
|
|
17
|
+
.lm_select_has_icon {
|
|
18
|
+
width: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: flex-start;
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
.lm_select_has_icon .ant-select {
|
|
26
|
+
border-top-right-radius: 0;
|
|
27
|
+
border-bottom-right-radius: 0;
|
|
28
|
+
z-index: 3;
|
|
29
|
+
}
|
|
30
|
+
.lm_select_has_icon .ant-select .ant-select-selector {
|
|
31
|
+
border-top-right-radius: 0 !important;
|
|
32
|
+
border-bottom-right-radius: 0 !important;
|
|
33
|
+
}
|
|
34
|
+
.lm_select_has_icon .lm_select_icon_button {
|
|
35
|
+
margin-left: -1px;
|
|
36
|
+
border-top-left-radius: 0;
|
|
37
|
+
border-bottom-left-radius: 0;
|
|
38
|
+
z-index: 2;
|
|
39
|
+
}
|
|
40
|
+
.lm_select_has_icon .lm_select_icon_button:hover,
|
|
41
|
+
.lm_select_has_icon .lm_select_icon_button:focus {
|
|
42
|
+
z-index: 5;
|
|
43
|
+
}
|
package/lib/TreeSelect/index.js
CHANGED
|
@@ -15,6 +15,10 @@ var _treeSelect = _interopRequireDefault(require("antd/es/tree-select"));
|
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
|
|
18
|
+
var _DisabledContext = _interopRequireDefault(require("../ConfigProvider/DisabledContext"));
|
|
19
|
+
|
|
20
|
+
var _SizeContext = _interopRequireDefault(require("../ConfigProvider/SizeContext"));
|
|
21
|
+
|
|
18
22
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
19
23
|
var t = {};
|
|
20
24
|
|
|
@@ -33,8 +37,19 @@ var CLMTreeSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
33
37
|
treeData = props.treeData,
|
|
34
38
|
value = props.value,
|
|
35
39
|
defaultLabel = props.defaultLabel,
|
|
36
|
-
|
|
40
|
+
customDisabled = props.disabled,
|
|
41
|
+
customizeSize = props.size,
|
|
42
|
+
resetProps = __rest(props // ===================== Disabled =====================
|
|
43
|
+
, ["children", "treeData", "value", "defaultLabel", "disabled", "size"]); // ===================== Disabled =====================
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
var disabled = _react.default.useContext(_DisabledContext.default);
|
|
47
|
+
|
|
48
|
+
var mergedDisabled = customDisabled || disabled; // ===================== size =====================
|
|
49
|
+
|
|
50
|
+
var size = _react.default.useContext(_SizeContext.default);
|
|
37
51
|
|
|
52
|
+
var mergeSize = customizeSize || size;
|
|
38
53
|
var deepChildren = (0, _react.useCallback)(function (arr) {
|
|
39
54
|
var flag = false;
|
|
40
55
|
|
|
@@ -83,7 +98,10 @@ var CLMTreeSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
83
98
|
}, [value, hasOption]);
|
|
84
99
|
return /*#__PURE__*/_react.default.createElement(_treeSelect.default, Object.assign({
|
|
85
100
|
ref: ref,
|
|
86
|
-
|
|
101
|
+
className: 'lm_tree_select',
|
|
102
|
+
value: resetValue,
|
|
103
|
+
size: mergeSize,
|
|
104
|
+
disabled: mergedDisabled
|
|
87
105
|
}, resetProps), children);
|
|
88
106
|
});
|
|
89
107
|
var LMTreeSelect = CLMTreeSelect;
|
package/lib/styles/variables.css
CHANGED
|
@@ -746,12 +746,13 @@ p {
|
|
|
746
746
|
padding: 0 var(--gap);
|
|
747
747
|
}
|
|
748
748
|
.ant-btn.lm-button {
|
|
749
|
-
border: 0;
|
|
750
749
|
display: inline-flex !important;
|
|
751
750
|
flex-direction: row;
|
|
752
751
|
align-items: center;
|
|
753
752
|
justify-content: center;
|
|
753
|
+
color: var(--font-color);
|
|
754
754
|
vertical-align: middle;
|
|
755
|
+
border: 1px solid var(--stroke-color);
|
|
755
756
|
box-shadow: none;
|
|
756
757
|
}
|
|
757
758
|
.ant-btn.lm-button .anticon {
|
|
@@ -769,12 +770,24 @@ p {
|
|
|
769
770
|
white-space: nowrap;
|
|
770
771
|
}
|
|
771
772
|
.ant-btn.lm-button::before {
|
|
772
|
-
|
|
773
|
+
position: absolute;
|
|
774
|
+
z-index: 1;
|
|
775
|
+
display: none;
|
|
776
|
+
background: #fff;
|
|
777
|
+
border-radius: inherit;
|
|
778
|
+
opacity: 0.35;
|
|
779
|
+
transition: opacity 0.2s;
|
|
780
|
+
content: '';
|
|
781
|
+
pointer-events: none;
|
|
782
|
+
inset: -1px;
|
|
783
|
+
}
|
|
784
|
+
.ant-btn.lm-button.ant-btn-loading::before {
|
|
785
|
+
display: block;
|
|
773
786
|
}
|
|
774
787
|
.ant-btn.lm-button:disabled {
|
|
788
|
+
color: var(--disabled-font-color) !important;
|
|
775
789
|
background: var(--disabled-bg-color) !important;
|
|
776
790
|
border: 1px solid var(--disabled-border-color) !important;
|
|
777
|
-
color: var(--disabled-font-color) !important;
|
|
778
791
|
}
|
|
779
792
|
.ant-btn.lm-button > span:not(.anticon) {
|
|
780
793
|
font-size: 12px;
|
|
@@ -795,57 +808,46 @@ p {
|
|
|
795
808
|
.ant-btn.lm-button-middle .anticon {
|
|
796
809
|
font-size: 16px;
|
|
797
810
|
}
|
|
798
|
-
.ant-btn.lm-button-default {
|
|
799
|
-
border: 1px solid var(--stroke-color);
|
|
800
|
-
color: var(--font-color);
|
|
801
|
-
}
|
|
802
|
-
.ant-btn.lm-button-default-hover,
|
|
803
|
-
.ant-btn.lm-button-default:hover {
|
|
804
|
-
border: 1px solid var(--primary-hover-color);
|
|
805
|
-
color: var(--primary-hover-color);
|
|
806
|
-
}
|
|
807
|
-
.ant-btn.lm-button-default.ant-btn-loading {
|
|
808
|
-
border-color: rgba(0, 0, 0, 0.15);
|
|
809
|
-
color: rgba(0, 0, 0, 0.15);
|
|
810
|
-
}
|
|
811
811
|
.ant-btn.lm-button-primary {
|
|
812
|
-
background: var(--primary-color);
|
|
813
812
|
color: #fff;
|
|
813
|
+
background: var(--primary-color);
|
|
814
|
+
border-color: var(--primary-color);
|
|
814
815
|
}
|
|
815
|
-
.ant-btn.lm-button-primary-hover,
|
|
816
816
|
.ant-btn.lm-button-primary:hover {
|
|
817
817
|
background: var(--primary-hover-color);
|
|
818
818
|
}
|
|
819
|
+
.ant-btn.lm-button-primary:active {
|
|
820
|
+
background-color: var(--primary-click-color);
|
|
821
|
+
}
|
|
819
822
|
.ant-btn.lm-button-primary.ant-btn-loading {
|
|
820
823
|
background: var(--primary-loading-color);
|
|
821
824
|
}
|
|
822
825
|
.ant-btn.lm-button-ghost {
|
|
823
826
|
color: var(--font-color);
|
|
824
|
-
border-color: var(--color-15);
|
|
825
827
|
background: transparent;
|
|
828
|
+
border: 1px solid var(--color-15);
|
|
826
829
|
}
|
|
827
830
|
.ant-btn.lm-button-danger {
|
|
828
|
-
border: 1px solid var(--error-color);
|
|
829
831
|
color: var(--error-color);
|
|
830
832
|
text-shadow: none;
|
|
833
|
+
border: 1px solid var(--error-color);
|
|
831
834
|
box-shadow: none;
|
|
832
835
|
}
|
|
833
|
-
.ant-btn.lm-button-danger-hover,
|
|
834
836
|
.ant-btn.lm-button-danger:hover {
|
|
835
|
-
border-color: var(--error-hover-color);
|
|
836
837
|
color: var(--error-hover-color);
|
|
838
|
+
border-color: var(--error-hover-color);
|
|
837
839
|
}
|
|
838
840
|
.ant-btn.lm-button-danger.ant-btn-loading {
|
|
839
|
-
border-color: var(--error-loading-color);
|
|
840
841
|
color: var(--error-hover-color);
|
|
842
|
+
border-color: var(--error-loading-color);
|
|
841
843
|
}
|
|
842
844
|
.ant-btn.lm-button-dashed {
|
|
843
845
|
border: 1px dashed var(--color-15);
|
|
844
846
|
}
|
|
845
847
|
.ant-btn.lm-button-link {
|
|
846
848
|
color: var(--primary-color);
|
|
849
|
+
border-color: transparent;
|
|
847
850
|
}
|
|
848
|
-
.ant-btn.lm-button-link-hover,
|
|
849
851
|
.ant-btn.lm-button-link:hover {
|
|
850
852
|
color: var(--primary-hover-color);
|
|
851
853
|
}
|
|
@@ -853,11 +855,12 @@ p {
|
|
|
853
855
|
color: var(--primary-loading-color);
|
|
854
856
|
}
|
|
855
857
|
.ant-btn.lm-button-link[disabled] {
|
|
856
|
-
border: 0 !important;
|
|
857
858
|
background: transparent !important;
|
|
859
|
+
border: 0 !important;
|
|
858
860
|
}
|
|
859
861
|
.ant-btn.ant-btn-text {
|
|
860
862
|
background: transparent;
|
|
863
|
+
border-color: transparent;
|
|
861
864
|
}
|
|
862
865
|
.ant-btn.lm-button-icon-only .anticon {
|
|
863
866
|
font-size: 16px;
|
|
@@ -2241,6 +2244,9 @@ p {
|
|
|
2241
2244
|
padding-right: 24px;
|
|
2242
2245
|
padding-bottom: 8px;
|
|
2243
2246
|
}
|
|
2247
|
+
.lm_descriptions .ant-descriptions-item:last-child {
|
|
2248
|
+
padding-right: 0;
|
|
2249
|
+
}
|
|
2244
2250
|
.lm_descriptions .ant-descriptions-item .ant-descriptions-item-container {
|
|
2245
2251
|
color: var(--color-85);
|
|
2246
2252
|
font-size: 12px;
|
|
@@ -9540,6 +9546,9 @@ p {
|
|
|
9540
9546
|
.lm_input-number.ant-input-number-status-warning {
|
|
9541
9547
|
border-color: var(--warning-color) !important;
|
|
9542
9548
|
}
|
|
9549
|
+
.lm_input-number .ant-input-number-input::placeholder {
|
|
9550
|
+
font-size: 12px;
|
|
9551
|
+
}
|
|
9543
9552
|
.lm_grid_tree {
|
|
9544
9553
|
position: relative;
|
|
9545
9554
|
font-size: 12px;
|
|
@@ -12398,6 +12407,33 @@ button.ant-table-row-expand-icon::after {
|
|
|
12398
12407
|
.lm_select_dropdown .ant-select-item-option-disabled {
|
|
12399
12408
|
color: var(--disabled-font-color);
|
|
12400
12409
|
}
|
|
12410
|
+
.lm_select_has_icon {
|
|
12411
|
+
width: 100%;
|
|
12412
|
+
display: flex;
|
|
12413
|
+
flex-direction: row;
|
|
12414
|
+
align-items: center;
|
|
12415
|
+
justify-content: flex-start;
|
|
12416
|
+
position: relative;
|
|
12417
|
+
}
|
|
12418
|
+
.lm_select_has_icon .ant-select {
|
|
12419
|
+
border-top-right-radius: 0;
|
|
12420
|
+
border-bottom-right-radius: 0;
|
|
12421
|
+
z-index: 3;
|
|
12422
|
+
}
|
|
12423
|
+
.lm_select_has_icon .ant-select .ant-select-selector {
|
|
12424
|
+
border-top-right-radius: 0 !important;
|
|
12425
|
+
border-bottom-right-radius: 0 !important;
|
|
12426
|
+
}
|
|
12427
|
+
.lm_select_has_icon .lm_select_icon_button {
|
|
12428
|
+
margin-left: -1px;
|
|
12429
|
+
border-top-left-radius: 0;
|
|
12430
|
+
border-bottom-left-radius: 0;
|
|
12431
|
+
z-index: 2;
|
|
12432
|
+
}
|
|
12433
|
+
.lm_select_has_icon .lm_select_icon_button:hover,
|
|
12434
|
+
.lm_select_has_icon .lm_select_icon_button:focus {
|
|
12435
|
+
z-index: 5;
|
|
12436
|
+
}
|
|
12401
12437
|
.ant-switch.lm-switch {
|
|
12402
12438
|
width: 48px;
|
|
12403
12439
|
height: 24px;
|
|
@@ -12574,6 +12610,9 @@ button.ant-table-row-expand-icon::after {
|
|
|
12574
12610
|
.lm_tree .ant-tree-node-selected > .ant-tree-title {
|
|
12575
12611
|
color: var(--primary-color);
|
|
12576
12612
|
}
|
|
12613
|
+
.lm_tree_select .ant-select-selection-placeholder {
|
|
12614
|
+
font-size: 12px;
|
|
12615
|
+
}
|
|
12577
12616
|
.ant-upload-select-picture-card div {
|
|
12578
12617
|
margin-top: 8px;
|
|
12579
12618
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linkmore-design",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.19",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "nowthen",
|
|
6
6
|
"email": "rnlvwyx@gmail.com"
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"use-resize-observer": "^9.0.2"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"react": "17.0.1",
|
|
101
|
-
"react-dom": "17.0.1"
|
|
100
|
+
"react": ">= 17.0.1",
|
|
101
|
+
"react-dom": ">= 17.0.1"
|
|
102
102
|
},
|
|
103
103
|
"browserslist": [
|
|
104
104
|
"> 1%",
|