linkmore-design 1.1.13-alpha.3 → 1.1.13-alpha.5

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.
Files changed (140) hide show
  1. package/dist/Button/demos/ghost.d.ts +2 -0
  2. package/dist/Descriptions/Cell.d.ts +1 -0
  3. package/dist/Descriptions/Item.d.ts +1 -0
  4. package/dist/Descriptions/index.d.ts +1 -1
  5. package/dist/LmDrag/LmDrag.d.ts +4 -0
  6. package/dist/LmDrag/components/DndContainer.d.ts +3 -0
  7. package/dist/LmDrag/components/sortableBox.d.ts +5 -0
  8. package/dist/LmDrag/components/sortableItem.d.ts +7 -0
  9. package/dist/LmDrag/demos/basic.d.ts +2 -0
  10. package/dist/LmDrag/index.d.ts +10 -0
  11. package/dist/LmDrag/style/index.d.ts +1 -0
  12. package/dist/LmDrag/style/variables.d.ts +1 -0
  13. package/dist/LmDrag/wrapper/Root.d.ts +3 -0
  14. package/dist/LmEditTable/EditTable.d.ts +15 -3
  15. package/dist/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  16. package/dist/LmUpload/fns/index.d.ts +1 -0
  17. package/dist/QuickMenu/demos/useInDraw.d.ts +2 -0
  18. package/dist/QuickMenu/index.d.ts +3 -1
  19. package/dist/Select/index.d.ts +3 -0
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.umd.js +757 -125
  22. package/dist/index.umd.min.js +9 -9
  23. package/dist/variables.css +76 -25
  24. package/es/Button/index.js +4 -3
  25. package/es/Button/style/index.css +28 -25
  26. package/es/Button/style/variables.css +28 -25
  27. package/es/Cascader/index.js +16 -2
  28. package/es/Descriptions/Cell.d.ts +1 -0
  29. package/es/Descriptions/Cell.js +5 -2
  30. package/es/Descriptions/Item.d.ts +1 -0
  31. package/es/Descriptions/Row.js +6 -1
  32. package/es/Descriptions/index.d.ts +1 -1
  33. package/es/Descriptions/index.js +3 -3
  34. package/es/Descriptions/style/index.css +3 -0
  35. package/es/Descriptions/style/variables.css +3 -0
  36. package/es/InputNumber/index.js +18 -13
  37. package/es/InputNumber/style/index.css +3 -0
  38. package/es/InputNumber/style/variables.css +3 -0
  39. package/es/LmDrag/LmDrag.d.ts +4 -0
  40. package/es/LmDrag/LmDrag.js +30 -0
  41. package/es/LmDrag/components/DndContainer.d.ts +3 -0
  42. package/es/LmDrag/components/DndContainer.js +121 -0
  43. package/es/LmDrag/components/sortableBox.d.ts +5 -0
  44. package/es/LmDrag/components/sortableBox.js +23 -0
  45. package/es/LmDrag/components/sortableItem.d.ts +7 -0
  46. package/es/LmDrag/components/sortableItem.js +41 -0
  47. package/es/LmDrag/index.d.ts +10 -0
  48. package/es/LmDrag/index.js +3 -0
  49. package/es/LmDrag/style/index.css +0 -0
  50. package/es/LmDrag/style/index.d.ts +1 -0
  51. package/es/LmDrag/style/index.js +1 -0
  52. package/es/LmDrag/style/variables.css +0 -0
  53. package/es/LmDrag/style/variables.d.ts +1 -0
  54. package/es/LmDrag/style/variables.js +1 -0
  55. package/es/LmDrag/wrapper/Root.d.ts +3 -0
  56. package/es/LmDrag/wrapper/Root.js +12 -0
  57. package/es/LmEditTable/EditTable.d.ts +15 -3
  58. package/es/LmEditTable/EditTable.js +88 -57
  59. package/es/LmEditTable/sortableItemCol.js +3 -1
  60. package/es/LmEditTable/util.js +1 -1
  61. package/es/LmFilter/components/DropdownFIlter.js +27 -6
  62. package/es/LmFilter/style/index.css +12 -0
  63. package/es/LmFilter/style/variables.css +12 -0
  64. package/es/LmUpload/LmUpload.js +2 -1
  65. package/es/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  66. package/es/LmUpload/UploadList/ItemPictureCard.js +4 -3
  67. package/es/LmUpload/UploadList/index.js +52 -2
  68. package/es/LmUpload/fns/index.d.ts +1 -0
  69. package/es/LmUpload/fns/index.js +19 -3
  70. package/es/QuickMenu/index.d.ts +3 -1
  71. package/es/QuickMenu/index.js +22 -19
  72. package/es/Select/index.d.ts +3 -0
  73. package/es/Select/index.js +28 -1
  74. package/es/Select/style/index.css +27 -0
  75. package/es/Select/style/variables.css +27 -0
  76. package/es/TreeSelect/index.js +16 -2
  77. package/es/TreeSelect/style/index.css +3 -0
  78. package/es/TreeSelect/style/variables.css +3 -0
  79. package/es/index.d.ts +2 -0
  80. package/es/index.js +2 -1
  81. package/es/styles/variables.css +76 -25
  82. package/lib/Button/index.js +4 -3
  83. package/lib/Button/style/index.css +28 -25
  84. package/lib/Button/style/variables.css +28 -25
  85. package/lib/Cascader/index.js +20 -2
  86. package/lib/Descriptions/Cell.d.ts +1 -0
  87. package/lib/Descriptions/Cell.js +5 -2
  88. package/lib/Descriptions/Item.d.ts +1 -0
  89. package/lib/Descriptions/Row.js +6 -1
  90. package/lib/Descriptions/index.d.ts +1 -1
  91. package/lib/Descriptions/index.js +3 -3
  92. package/lib/Descriptions/style/index.css +3 -0
  93. package/lib/Descriptions/style/variables.css +3 -0
  94. package/lib/InputNumber/index.js +22 -13
  95. package/lib/InputNumber/style/index.css +3 -0
  96. package/lib/InputNumber/style/variables.css +3 -0
  97. package/lib/LmDrag/LmDrag.d.ts +4 -0
  98. package/lib/LmDrag/LmDrag.js +44 -0
  99. package/lib/LmDrag/components/DndContainer.d.ts +3 -0
  100. package/lib/LmDrag/components/DndContainer.js +138 -0
  101. package/lib/LmDrag/components/sortableBox.d.ts +5 -0
  102. package/lib/LmDrag/components/sortableBox.js +37 -0
  103. package/lib/LmDrag/components/sortableItem.d.ts +7 -0
  104. package/lib/LmDrag/components/sortableItem.js +54 -0
  105. package/lib/LmDrag/index.d.ts +10 -0
  106. package/lib/LmDrag/index.js +19 -0
  107. package/lib/LmDrag/style/index.css +0 -0
  108. package/lib/LmDrag/style/index.d.ts +1 -0
  109. package/lib/LmDrag/style/index.js +3 -0
  110. package/lib/LmDrag/style/variables.css +0 -0
  111. package/lib/LmDrag/style/variables.d.ts +1 -0
  112. package/lib/LmDrag/style/variables.js +3 -0
  113. package/lib/LmDrag/wrapper/Root.d.ts +3 -0
  114. package/lib/LmDrag/wrapper/Root.js +26 -0
  115. package/lib/LmEditTable/EditTable.d.ts +15 -3
  116. package/lib/LmEditTable/EditTable.js +87 -56
  117. package/lib/LmEditTable/sortableItemCol.js +4 -1
  118. package/lib/LmEditTable/util.js +1 -1
  119. package/lib/LmFilter/components/DropdownFIlter.js +27 -6
  120. package/lib/LmFilter/style/index.css +12 -0
  121. package/lib/LmFilter/style/variables.css +12 -0
  122. package/lib/LmUpload/LmUpload.js +2 -1
  123. package/lib/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  124. package/lib/LmUpload/UploadList/ItemPictureCard.js +4 -3
  125. package/lib/LmUpload/UploadList/index.js +53 -2
  126. package/lib/LmUpload/fns/index.d.ts +1 -0
  127. package/lib/LmUpload/fns/index.js +19 -3
  128. package/lib/QuickMenu/index.d.ts +3 -1
  129. package/lib/QuickMenu/index.js +21 -18
  130. package/lib/Select/index.d.ts +3 -0
  131. package/lib/Select/index.js +29 -1
  132. package/lib/Select/style/index.css +27 -0
  133. package/lib/Select/style/variables.css +27 -0
  134. package/lib/TreeSelect/index.js +20 -2
  135. package/lib/TreeSelect/style/index.css +3 -0
  136. package/lib/TreeSelect/style/variables.css +3 -0
  137. package/lib/index.d.ts +2 -0
  138. package/lib/index.js +15 -1
  139. package/lib/styles/variables.css +76 -25
  140. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import React, { useEffect, useState, useRef } from 'react';
2
+ import React, { useEffect, useState, useRef, useMemo } from 'react';
3
3
  import { IconFont, Button } from 'linkmore-design';
4
4
  import { useScroll, useDebounceEffect } from 'ahooks';
5
5
  import classNames from 'classnames';
@@ -12,7 +12,8 @@ var LMQuickMenu = function LMQuickMenu(props) {
12
12
  top = _props$top === void 0 ? '104px' : _props$top,
13
13
  _props$menuData = props.menuData,
14
14
  menuData = _props$menuData === void 0 ? [] : _props$menuData,
15
- warpElement = props.warpElement;
15
+ warpElement = props.warpElement,
16
+ root = props.root;
16
17
  var idTopInfo = useRef({});
17
18
 
18
19
  var _useState = useState(false),
@@ -31,6 +32,11 @@ var LMQuickMenu = function LMQuickMenu(props) {
31
32
  var scroll = useScroll(getTargetElement(warpElement || document), function () {
32
33
  return scrollOpenStatus;
33
34
  });
35
+ var filterMenuData = useMemo(function () {
36
+ return menuData === null || menuData === void 0 ? void 0 : menuData.filter(function (item) {
37
+ return item.hidden !== true;
38
+ });
39
+ }, [menuData]);
34
40
 
35
41
  function clearActiveToc() {
36
42
  [].forEach.call(document.querySelectorAll('.lm_menu_list li a'), function (node) {
@@ -54,7 +60,7 @@ var LMQuickMenu = function LMQuickMenu(props) {
54
60
  (_a = menuTimeEventRef.current) === null || _a === void 0 ? void 0 : _a.destroy();
55
61
  }
56
62
 
57
- if (!menuData.length) {
63
+ if (!filterMenuData.length) {
58
64
  return;
59
65
  } // eslint-disable-next-line global-require
60
66
 
@@ -65,12 +71,13 @@ var LMQuickMenu = function LMQuickMenu(props) {
65
71
  var scrollama = require('scrollama');
66
72
 
67
73
  menuTimeEventRef.current = scrollama();
74
+ console.log(getTargetElement(warpElement || document), '--getTargetElement(warpElement || document)');
68
75
  (_c = (_b = menuTimeEventRef.current) === null || _b === void 0 ? void 0 : _b.setup({
69
- step: menuData.map(function (item) {
76
+ step: filterMenuData.map(function (item) {
70
77
  return document.getElementById("".concat(item.menuId));
71
- }).filter(Boolean) // required
72
- // offset: '10px',
73
-
78
+ }).filter(Boolean),
79
+ container: getTargetElement(warpElement || document),
80
+ root: root ? getTargetElement(root) : undefined
74
81
  })) === null || _c === void 0 ? void 0 : _c.onStepEnter(function (_ref) {
75
82
  var element = _ref.element;
76
83
  updateActiveToc(element.id);
@@ -78,7 +85,7 @@ var LMQuickMenu = function LMQuickMenu(props) {
78
85
  };
79
86
 
80
87
  function setKeysDom() {
81
- menuData.forEach(function (item) {
88
+ filterMenuData.forEach(function (item) {
82
89
  var _a, _b;
83
90
 
84
91
  var warpTop = ((_a = getTargetElement(warpElement || document)) === null || _a === void 0 ? void 0 : _a.offsetTop) || 0;
@@ -102,12 +109,6 @@ var LMQuickMenu = function LMQuickMenu(props) {
102
109
  wait: 50
103
110
  });
104
111
 
105
- var bindDom = function bindDom() {
106
- if (!Object.keys(idTopInfo.current).length) {
107
- setKeysDom();
108
- }
109
- };
110
-
111
112
  var handleScroll = function handleScroll() {
112
113
  setScrollOpenStatus(true);
113
114
  };
@@ -122,10 +123,6 @@ var LMQuickMenu = function LMQuickMenu(props) {
122
123
  var _a; // bindScroller();
123
124
 
124
125
 
125
- setTimeout(function () {
126
- bindDom();
127
- bindScroller();
128
- }, 200);
129
126
  (_a = getTargetElement(warpElement || document)) === null || _a === void 0 ? void 0 : _a.addEventListener('scroll', handleScroll, {
130
127
  once: true
131
128
  });
@@ -135,6 +132,12 @@ var LMQuickMenu = function LMQuickMenu(props) {
135
132
  (_a = getTargetElement(warpElement || document)) === null || _a === void 0 ? void 0 : _a.removeEventListener('scroll', handleScroll);
136
133
  };
137
134
  }, []);
135
+ useEffect(function () {
136
+ setTimeout(function () {
137
+ setKeysDom();
138
+ bindScroller();
139
+ }, 200);
140
+ }, [filterMenuData]);
138
141
  return /*#__PURE__*/React.createElement("div", {
139
142
  className: classNames(prefixCls),
140
143
  onMouseEnter: function onMouseEnter() {
@@ -156,7 +159,7 @@ var LMQuickMenu = function LMQuickMenu(props) {
156
159
  })
157
160
  }), /*#__PURE__*/React.createElement("ul", {
158
161
  className: classNames('lm_menu_list', hovering && 'show', className)
159
- }, menuData.map(function (item) {
162
+ }, filterMenuData.map(function (item) {
160
163
  return /*#__PURE__*/React.createElement("li", {
161
164
  key: item.menuId,
162
165
  onClick: function onClick() {
@@ -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;
@@ -15,6 +15,7 @@ var __rest = this && this.__rest || function (s, e) {
15
15
  };
16
16
 
17
17
  import React, { forwardRef, useMemo } from 'react';
18
+ import Button from '../Button';
18
19
  import classNames from 'classnames';
19
20
  import SizeContext from '../ConfigProvider/SizeContext';
20
21
  import DisabledContext from '../ConfigProvider/DisabledContext';
@@ -28,8 +29,11 @@ var CLMSelect = /*#__PURE__*/forwardRef(function (props, ref) {
28
29
  options = props.options,
29
30
  value = props.value,
30
31
  defaultLabel = props.defaultLabel,
32
+ suffix = props.suffix,
33
+ icon = props.icon,
34
+ iconClick = props.iconClick,
31
35
  rest = __rest(props // ===================== Size =====================
32
- , ["children", "className", "size", "disabled", "dropdownClassName", "options", "value", "defaultLabel"]); // ===================== Size =====================
36
+ , ["children", "className", "size", "disabled", "dropdownClassName", "options", "value", "defaultLabel", "suffix", "icon", "iconClick"]); // ===================== Size =====================
33
37
 
34
38
 
35
39
  var size = customizeSize || React.useContext(SizeContext) || 'middle'; // ===================== Disabled =====================
@@ -67,6 +71,29 @@ var CLMSelect = /*#__PURE__*/forwardRef(function (props, ref) {
67
71
  if (value && !hasOption) return defaultLabel !== null && defaultLabel !== void 0 ? defaultLabel : value;
68
72
  return value;
69
73
  }, [value, defaultLabel, hasOption]);
74
+
75
+ if (icon) {
76
+ return /*#__PURE__*/React.createElement("div", {
77
+ className: 'lm_select_has_icon',
78
+ style: props.style
79
+ }, /*#__PURE__*/React.createElement(_Select, Object.assign({
80
+ className: classNames(className, prefixCls),
81
+ size: size,
82
+ ref: ref,
83
+ value: resetValue,
84
+ options: options,
85
+ disabled: mergedDisabled || undefined
86
+ }, rest, {
87
+ dropdownClassName: classNames('lm_select_dropdown', dropdownClassName)
88
+ }), children), /*#__PURE__*/React.createElement(Button, {
89
+ size: size,
90
+ onClick: iconClick,
91
+ className: 'lm_select_icon_button',
92
+ disabled: mergedDisabled || undefined,
93
+ icon: icon
94
+ }));
95
+ }
96
+
70
97
  return /*#__PURE__*/React.createElement(_Select, Object.assign({
71
98
  className: classNames(className, prefixCls),
72
99
  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
+ }
@@ -15,13 +15,24 @@ var __rest = this && this.__rest || function (s, e) {
15
15
  };
16
16
 
17
17
  import React, { forwardRef, useCallback, useMemo } from 'react';
18
+ import DisabledContext from '../ConfigProvider/DisabledContext';
19
+ import SizeContext from '../ConfigProvider/SizeContext';
18
20
  var CLMTreeSelect = /*#__PURE__*/forwardRef(function (props, ref) {
19
21
  var children = props.children,
20
22
  treeData = props.treeData,
21
23
  value = props.value,
22
24
  defaultLabel = props.defaultLabel,
23
- resetProps = __rest(props, ["children", "treeData", "value", "defaultLabel"]);
25
+ customDisabled = props.disabled,
26
+ customizeSize = props.size,
27
+ resetProps = __rest(props // ===================== Disabled =====================
28
+ , ["children", "treeData", "value", "defaultLabel", "disabled", "size"]); // ===================== Disabled =====================
24
29
 
30
+
31
+ var disabled = React.useContext(DisabledContext);
32
+ var mergedDisabled = customDisabled || disabled; // ===================== size =====================
33
+
34
+ var size = React.useContext(SizeContext);
35
+ var mergeSize = customizeSize || size;
25
36
  var deepChildren = useCallback(function (arr) {
26
37
  var flag = false;
27
38
  React.Children.forEach(arr, function (child) {
@@ -68,7 +79,10 @@ var CLMTreeSelect = /*#__PURE__*/forwardRef(function (props, ref) {
68
79
  }, [value, hasOption]);
69
80
  return /*#__PURE__*/React.createElement(_TreeSelect, Object.assign({
70
81
  ref: ref,
71
- value: resetValue
82
+ className: 'lm_tree_select',
83
+ value: resetValue,
84
+ size: mergeSize,
85
+ disabled: mergedDisabled
72
86
  }, resetProps), children);
73
87
  });
74
88
  var LMTreeSelect = CLMTreeSelect;
@@ -510,3 +510,6 @@ html {
510
510
  p {
511
511
  margin-bottom: 0;
512
512
  }
513
+ .lm_tree_select .ant-select-selection-placeholder {
514
+ font-size: 12px;
515
+ }
@@ -0,0 +1,3 @@
1
+ .lm_tree_select .ant-select-selection-placeholder {
2
+ font-size: 12px;
3
+ }
package/es/index.d.ts CHANGED
@@ -51,6 +51,7 @@ export type { TooltipProps } from './Tooltip';
51
51
  export { default as Form } from './Form';
52
52
  export { default as Spin } from './Spin';
53
53
  export { default as LmEditTable } from './LmEditTable';
54
+ export type { TLmEditTable, CountdownHandle } from './LmEditTable/EditTable';
54
55
  export { default as List } from './List';
55
56
  export { default as LMQuickMenu } from './QuickMenu';
56
57
  export { default as DatePicker } from './DatePicker';
@@ -125,3 +126,4 @@ export { default as CropImg } from './CropImg';
125
126
  export type { CropImgProps } from './CropImg';
126
127
  export { default as ImageViewer } from './ImageViewer';
127
128
  export type { ImageViewerProps } from './ImageViewer';
129
+ export * from './LmDrag';
package/es/index.js CHANGED
@@ -82,4 +82,5 @@ export { default as FullScreen } from './FullScreen';
82
82
  export * from './LmImgList';
83
83
  export { default as LmImgList } from './LmImgList';
84
84
  export { default as CropImg } from './CropImg';
85
- export { default as ImageViewer } from './ImageViewer';
85
+ export { default as ImageViewer } from './ImageViewer';
86
+ export * from './LmDrag';
@@ -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
- display: none !important;
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;
@@ -9957,6 +9966,18 @@ p {
9957
9966
  .lm_filter_basic_item .filter_item_icon.addon_before {
9958
9967
  color: var(--font-color);
9959
9968
  }
9969
+ .lm_filter_basic_item .filter_item_icon .icon_clear {
9970
+ display: none;
9971
+ opacity: 0;
9972
+ }
9973
+ .lm_filter_basic_item .filter_item_icon:hover .icon_down {
9974
+ display: none;
9975
+ opacity: 0;
9976
+ }
9977
+ .lm_filter_basic_item .filter_item_icon:hover .icon_clear {
9978
+ display: inline-block;
9979
+ opacity: 1;
9980
+ }
9960
9981
  .lm_filter_basic_item.expand .filter_item_icon.addon_after {
9961
9982
  transform: rotateX(180deg);
9962
9983
  }
@@ -12427,6 +12448,33 @@ button.ant-table-row-expand-icon::after {
12427
12448
  .lm_select_dropdown .ant-select-item-option-disabled {
12428
12449
  color: var(--disabled-font-color);
12429
12450
  }
12451
+ .lm_select_has_icon {
12452
+ width: 100%;
12453
+ display: flex;
12454
+ flex-direction: row;
12455
+ align-items: center;
12456
+ justify-content: flex-start;
12457
+ position: relative;
12458
+ }
12459
+ .lm_select_has_icon .ant-select {
12460
+ border-top-right-radius: 0;
12461
+ border-bottom-right-radius: 0;
12462
+ z-index: 3;
12463
+ }
12464
+ .lm_select_has_icon .ant-select .ant-select-selector {
12465
+ border-top-right-radius: 0 !important;
12466
+ border-bottom-right-radius: 0 !important;
12467
+ }
12468
+ .lm_select_has_icon .lm_select_icon_button {
12469
+ margin-left: -1px;
12470
+ border-top-left-radius: 0;
12471
+ border-bottom-left-radius: 0;
12472
+ z-index: 2;
12473
+ }
12474
+ .lm_select_has_icon .lm_select_icon_button:hover,
12475
+ .lm_select_has_icon .lm_select_icon_button:focus {
12476
+ z-index: 5;
12477
+ }
12430
12478
  .ant-switch.lm-switch {
12431
12479
  width: 48px;
12432
12480
  height: 24px;
@@ -12603,6 +12651,9 @@ button.ant-table-row-expand-icon::after {
12603
12651
  .lm_tree .ant-tree-node-selected > .ant-tree-title {
12604
12652
  color: var(--primary-color);
12605
12653
  }
12654
+ .lm_tree_select .ant-select-selection-placeholder {
12655
+ font-size: 12px;
12656
+ }
12606
12657
  .ant-upload-select-picture-card div {
12607
12658
  margin-top: 8px;
12608
12659
  }
@@ -40,7 +40,8 @@ var LMButton = function LMButton(props) {
40
40
  type = _props$type === void 0 ? 'default' : _props$type,
41
41
  _props$hover = props.hover,
42
42
  hover = _props$hover === void 0 ? false : _props$hover,
43
- restProps = __rest(props, ["children", "className", "size", "type", "hover"]);
43
+ danger = props.danger,
44
+ restProps = __rest(props, ["children", "className", "size", "type", "hover", "danger"]);
44
45
 
45
46
  var globalSize = customizeSize || _react.default.useContext(_SizeContext.default) || 'middle';
46
47
 
@@ -51,12 +52,12 @@ var LMButton = function LMButton(props) {
51
52
 
52
53
  var classs = (0, _classnames.default)('lm-button', className, {
53
54
  'lm-button-icon-only': !children
54
- }, (0, _defineProperty2.default)({}, "lm-button-".concat(size), size), (0, _defineProperty2.default)({}, "lm-button-".concat(type), type), (0, _defineProperty2.default)({}, "lm-button-".concat(type, "-hover"), type && hover));
55
+ }, (0, _defineProperty2.default)({}, "lm-button-danger", danger), (0, _defineProperty2.default)({}, "lm-button-".concat(size), size), (0, _defineProperty2.default)({}, "lm-button-".concat(type), type), (0, _defineProperty2.default)({}, "lm-button-".concat(type, "-hover"), type && hover));
55
56
  return /*#__PURE__*/_react.default.createElement(_button.default, Object.assign({}, restProps, {
56
57
  className: classs,
57
58
  size: size,
58
59
  type: type,
59
- danger: !!restProps.danger
60
+ danger: !!danger
60
61
  }), children);
61
62
  };
62
63
 
@@ -1,10 +1,11 @@
1
1
  .ant-btn.lm-button {
2
- border: 0;
3
2
  display: inline-flex !important;
4
3
  flex-direction: row;
5
4
  align-items: center;
6
5
  justify-content: center;
6
+ color: var(--font-color);
7
7
  vertical-align: middle;
8
+ border: 1px solid var(--stroke-color);
8
9
  box-shadow: none;
9
10
  }
10
11
  .ant-btn.lm-button .anticon {
@@ -22,12 +23,24 @@
22
23
  white-space: nowrap;
23
24
  }
24
25
  .ant-btn.lm-button::before {
25
- display: none !important;
26
+ position: absolute;
27
+ z-index: 1;
28
+ display: none;
29
+ background: #fff;
30
+ border-radius: inherit;
31
+ opacity: 0.35;
32
+ transition: opacity 0.2s;
33
+ content: '';
34
+ pointer-events: none;
35
+ inset: -1px;
36
+ }
37
+ .ant-btn.lm-button.ant-btn-loading::before {
38
+ display: block;
26
39
  }
27
40
  .ant-btn.lm-button:disabled {
41
+ color: var(--disabled-font-color) !important;
28
42
  background: var(--disabled-bg-color) !important;
29
43
  border: 1px solid var(--disabled-border-color) !important;
30
- color: var(--disabled-font-color) !important;
31
44
  }
32
45
  .ant-btn.lm-button > span:not(.anticon) {
33
46
  font-size: 12px;
@@ -48,57 +61,46 @@
48
61
  .ant-btn.lm-button-middle .anticon {
49
62
  font-size: 16px;
50
63
  }
51
- .ant-btn.lm-button-default {
52
- border: 1px solid var(--stroke-color);
53
- color: var(--font-color);
54
- }
55
- .ant-btn.lm-button-default-hover,
56
- .ant-btn.lm-button-default:hover {
57
- border: 1px solid var(--primary-hover-color);
58
- color: var(--primary-hover-color);
59
- }
60
- .ant-btn.lm-button-default.ant-btn-loading {
61
- border-color: rgba(0, 0, 0, 0.15);
62
- color: rgba(0, 0, 0, 0.15);
63
- }
64
64
  .ant-btn.lm-button-primary {
65
- background: var(--primary-color);
66
65
  color: #fff;
66
+ background: var(--primary-color);
67
+ border-color: var(--primary-color);
67
68
  }
68
- .ant-btn.lm-button-primary-hover,
69
69
  .ant-btn.lm-button-primary:hover {
70
70
  background: var(--primary-hover-color);
71
71
  }
72
+ .ant-btn.lm-button-primary:active {
73
+ background-color: var(--primary-click-color);
74
+ }
72
75
  .ant-btn.lm-button-primary.ant-btn-loading {
73
76
  background: var(--primary-loading-color);
74
77
  }
75
78
  .ant-btn.lm-button-ghost {
76
79
  color: var(--font-color);
77
- border-color: var(--color-15);
78
80
  background: transparent;
81
+ border: 1px solid var(--color-15);
79
82
  }
80
83
  .ant-btn.lm-button-danger {
81
- border: 1px solid var(--error-color);
82
84
  color: var(--error-color);
83
85
  text-shadow: none;
86
+ border: 1px solid var(--error-color);
84
87
  box-shadow: none;
85
88
  }
86
- .ant-btn.lm-button-danger-hover,
87
89
  .ant-btn.lm-button-danger:hover {
88
- border-color: var(--error-hover-color);
89
90
  color: var(--error-hover-color);
91
+ border-color: var(--error-hover-color);
90
92
  }
91
93
  .ant-btn.lm-button-danger.ant-btn-loading {
92
- border-color: var(--error-loading-color);
93
94
  color: var(--error-hover-color);
95
+ border-color: var(--error-loading-color);
94
96
  }
95
97
  .ant-btn.lm-button-dashed {
96
98
  border: 1px dashed var(--color-15);
97
99
  }
98
100
  .ant-btn.lm-button-link {
99
101
  color: var(--primary-color);
102
+ border-color: transparent;
100
103
  }
101
- .ant-btn.lm-button-link-hover,
102
104
  .ant-btn.lm-button-link:hover {
103
105
  color: var(--primary-hover-color);
104
106
  }
@@ -106,11 +108,12 @@
106
108
  color: var(--primary-loading-color);
107
109
  }
108
110
  .ant-btn.lm-button-link[disabled] {
109
- border: 0 !important;
110
111
  background: transparent !important;
112
+ border: 0 !important;
111
113
  }
112
114
  .ant-btn.ant-btn-text {
113
115
  background: transparent;
116
+ border-color: transparent;
114
117
  }
115
118
  .ant-btn.lm-button-icon-only .anticon {
116
119
  font-size: 16px;