linkmore-design 1.1.13-alpha.4 → 1.1.13-alpha.6
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/Cell.d.ts +1 -0
- package/dist/Descriptions/Item.d.ts +1 -0
- package/dist/LmDrag/LmDrag.d.ts +4 -0
- package/dist/LmDrag/components/DndContainer.d.ts +3 -0
- package/dist/LmDrag/components/sortableBox.d.ts +5 -0
- package/dist/LmDrag/components/sortableItem.d.ts +7 -0
- package/dist/LmDrag/demos/basic.d.ts +2 -0
- package/dist/LmDrag/index.d.ts +10 -0
- package/dist/LmDrag/style/index.d.ts +1 -0
- package/dist/LmDrag/style/variables.d.ts +1 -0
- package/dist/LmDrag/wrapper/Root.d.ts +3 -0
- package/dist/LmEditTable/EditTable.d.ts +15 -3
- package/dist/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
- package/dist/LmUpload/fns/index.d.ts +1 -0
- package/dist/QuickMenu/index.d.ts +2 -1
- package/dist/Select/index.d.ts +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.umd.js +804 -119
- package/dist/index.umd.min.js +9 -9
- package/dist/variables.css +67 -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/Descriptions/Cell.d.ts +1 -0
- package/es/Descriptions/Cell.js +5 -2
- package/es/Descriptions/Item.d.ts +1 -0
- package/es/Descriptions/Row.js +6 -1
- package/es/InputNumber/index.js +7 -9
- package/es/LmDrag/LmDrag.d.ts +4 -0
- package/es/LmDrag/LmDrag.js +30 -0
- package/es/LmDrag/components/DndContainer.d.ts +3 -0
- package/es/LmDrag/components/DndContainer.js +121 -0
- package/es/LmDrag/components/sortableBox.d.ts +5 -0
- package/es/LmDrag/components/sortableBox.js +23 -0
- package/es/LmDrag/components/sortableItem.d.ts +7 -0
- package/es/LmDrag/components/sortableItem.js +41 -0
- package/es/LmDrag/index.d.ts +10 -0
- package/es/LmDrag/index.js +3 -0
- package/es/LmDrag/style/index.css +0 -0
- package/es/LmDrag/style/index.d.ts +1 -0
- package/es/LmDrag/style/index.js +1 -0
- package/es/LmDrag/style/variables.css +0 -0
- package/es/LmDrag/style/variables.d.ts +1 -0
- package/es/LmDrag/style/variables.js +1 -0
- package/es/LmDrag/wrapper/Root.d.ts +3 -0
- package/es/LmDrag/wrapper/Root.js +12 -0
- package/es/LmEditTable/EditTable.d.ts +15 -3
- package/es/LmEditTable/EditTable.js +147 -67
- package/es/LmEditTable/sortableItemCol.js +38 -11
- package/es/LmEditTable/util.js +16 -5
- package/es/LmFilter/components/DropdownFIlter.js +27 -6
- package/es/LmFilter/style/index.css +12 -0
- package/es/LmFilter/style/variables.css +12 -0
- package/es/LmUpload/LmUpload.js +2 -1
- package/es/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
- package/es/LmUpload/UploadList/ItemPictureCard.js +4 -3
- package/es/LmUpload/UploadList/index.js +52 -2
- package/es/LmUpload/fns/index.d.ts +1 -0
- package/es/LmUpload/fns/index.js +19 -3
- package/es/QuickMenu/index.d.ts +2 -1
- package/es/QuickMenu/index.js +11 -12
- 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/index.d.ts +2 -0
- package/es/index.js +2 -1
- package/es/styles/variables.css +67 -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/Descriptions/Cell.d.ts +1 -0
- package/lib/Descriptions/Cell.js +5 -2
- package/lib/Descriptions/Item.d.ts +1 -0
- package/lib/Descriptions/Row.js +6 -1
- package/lib/InputNumber/index.js +9 -9
- package/lib/LmDrag/LmDrag.d.ts +4 -0
- package/lib/LmDrag/LmDrag.js +44 -0
- package/lib/LmDrag/components/DndContainer.d.ts +3 -0
- package/lib/LmDrag/components/DndContainer.js +138 -0
- package/lib/LmDrag/components/sortableBox.d.ts +5 -0
- package/lib/LmDrag/components/sortableBox.js +37 -0
- package/lib/LmDrag/components/sortableItem.d.ts +7 -0
- package/lib/LmDrag/components/sortableItem.js +54 -0
- package/lib/LmDrag/index.d.ts +10 -0
- package/lib/LmDrag/index.js +19 -0
- package/lib/LmDrag/style/index.css +0 -0
- package/lib/LmDrag/style/index.d.ts +1 -0
- package/lib/LmDrag/style/index.js +3 -0
- package/lib/LmDrag/style/variables.css +0 -0
- package/lib/LmDrag/style/variables.d.ts +1 -0
- package/lib/LmDrag/style/variables.js +3 -0
- package/lib/LmDrag/wrapper/Root.d.ts +3 -0
- package/lib/LmDrag/wrapper/Root.js +26 -0
- package/lib/LmEditTable/EditTable.d.ts +15 -3
- package/lib/LmEditTable/EditTable.js +146 -66
- package/lib/LmEditTable/sortableItemCol.js +34 -8
- package/lib/LmEditTable/util.js +15 -4
- package/lib/LmFilter/components/DropdownFIlter.js +27 -6
- package/lib/LmFilter/style/index.css +12 -0
- package/lib/LmFilter/style/variables.css +12 -0
- package/lib/LmUpload/LmUpload.js +2 -1
- package/lib/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
- package/lib/LmUpload/UploadList/ItemPictureCard.js +4 -3
- package/lib/LmUpload/UploadList/index.js +53 -2
- package/lib/LmUpload/fns/index.d.ts +1 -0
- package/lib/LmUpload/fns/index.js +19 -3
- package/lib/QuickMenu/index.d.ts +2 -1
- package/lib/QuickMenu/index.js +11 -12
- 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/index.d.ts +2 -0
- package/lib/index.js +15 -1
- package/lib/styles/variables.css +67 -25
- package/package.json +1 -1
package/dist/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;
|
|
@@ -9963,6 +9966,18 @@ p {
|
|
|
9963
9966
|
.lm_filter_basic_item .filter_item_icon.addon_before {
|
|
9964
9967
|
color: var(--font-color);
|
|
9965
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
|
+
}
|
|
9966
9981
|
.lm_filter_basic_item.expand .filter_item_icon.addon_after {
|
|
9967
9982
|
transform: rotateX(180deg);
|
|
9968
9983
|
}
|
|
@@ -12433,6 +12448,33 @@ button.ant-table-row-expand-icon::after {
|
|
|
12433
12448
|
.lm_select_dropdown .ant-select-item-option-disabled {
|
|
12434
12449
|
color: var(--disabled-font-color);
|
|
12435
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
|
+
}
|
|
12436
12478
|
.ant-switch.lm-switch {
|
|
12437
12479
|
width: 48px;
|
|
12438
12480
|
height: 24px;
|
package/es/Button/index.js
CHANGED
|
@@ -27,7 +27,8 @@ var LMButton = function LMButton(props) {
|
|
|
27
27
|
type = _props$type === void 0 ? 'default' : _props$type,
|
|
28
28
|
_props$hover = props.hover,
|
|
29
29
|
hover = _props$hover === void 0 ? false : _props$hover,
|
|
30
|
-
|
|
30
|
+
danger = props.danger,
|
|
31
|
+
restProps = __rest(props, ["children", "className", "size", "type", "hover", "danger"]);
|
|
31
32
|
|
|
32
33
|
var globalSize = customizeSize || React.useContext(SizeContext) || 'middle';
|
|
33
34
|
var size = React.useMemo(function () {
|
|
@@ -36,12 +37,12 @@ var LMButton = function LMButton(props) {
|
|
|
36
37
|
|
|
37
38
|
var classs = cls('lm-button', className, {
|
|
38
39
|
'lm-button-icon-only': !children
|
|
39
|
-
}, _defineProperty({}, "lm-button-".concat(size), size), _defineProperty({}, "lm-button-".concat(type), type), _defineProperty({}, "lm-button-".concat(type, "-hover"), type && hover));
|
|
40
|
+
}, _defineProperty({}, "lm-button-danger", danger), _defineProperty({}, "lm-button-".concat(size), size), _defineProperty({}, "lm-button-".concat(type), type), _defineProperty({}, "lm-button-".concat(type, "-hover"), type && hover));
|
|
40
41
|
return /*#__PURE__*/React.createElement(_Button, Object.assign({}, restProps, {
|
|
41
42
|
className: classs,
|
|
42
43
|
size: size,
|
|
43
44
|
type: type,
|
|
44
|
-
danger: !!
|
|
45
|
+
danger: !!danger
|
|
45
46
|
}), children);
|
|
46
47
|
};
|
|
47
48
|
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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;
|
package/es/Descriptions/Cell.js
CHANGED
|
@@ -10,6 +10,7 @@ var Cell = function Cell(_ref) {
|
|
|
10
10
|
var itemPrefixCls = _ref.itemPrefixCls,
|
|
11
11
|
component = _ref.component,
|
|
12
12
|
span = _ref.span,
|
|
13
|
+
rowSpan = _ref.rowSpan,
|
|
13
14
|
className = _ref.className,
|
|
14
15
|
style = _ref.style,
|
|
15
16
|
labelStyle = _ref.labelStyle,
|
|
@@ -26,7 +27,8 @@ var Cell = function Cell(_ref) {
|
|
|
26
27
|
return /*#__PURE__*/React.createElement(Component, {
|
|
27
28
|
className: classNames((_classNames = {}, _defineProperty(_classNames, "".concat(itemPrefixCls, "-item-label"), notEmpty(label)), _defineProperty(_classNames, "".concat(itemPrefixCls, "-item-content"), notEmpty(content)), _classNames), className),
|
|
28
29
|
style: style,
|
|
29
|
-
colSpan: span
|
|
30
|
+
colSpan: span,
|
|
31
|
+
rowSpan: rowSpan
|
|
30
32
|
}, notEmpty(label) && /*#__PURE__*/React.createElement("span", {
|
|
31
33
|
style: labelStyle
|
|
32
34
|
}, label), notEmpty(content) && /*#__PURE__*/React.createElement("span", {
|
|
@@ -37,7 +39,8 @@ var Cell = function Cell(_ref) {
|
|
|
37
39
|
return /*#__PURE__*/React.createElement(Component, {
|
|
38
40
|
className: classNames("".concat(itemPrefixCls, "-item"), className),
|
|
39
41
|
style: style,
|
|
40
|
-
colSpan: span
|
|
42
|
+
colSpan: span,
|
|
43
|
+
rowSpan: rowSpan
|
|
41
44
|
}, /*#__PURE__*/React.createElement("div", {
|
|
42
45
|
className: "".concat(itemPrefixCls, "-item-container")
|
|
43
46
|
}, (label || label === 0) && /*#__PURE__*/React.createElement("span", {
|
package/es/Descriptions/Row.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { DescriptionsContext } from
|
|
2
|
+
import { DescriptionsContext } from ".";
|
|
3
3
|
import Cell from './Cell';
|
|
4
4
|
|
|
5
5
|
function renderCells(items, _ref, _ref2) {
|
|
@@ -24,6 +24,8 @@ function renderCells(items, _ref, _ref2) {
|
|
|
24
24
|
contentStyle = _ref3$props.contentStyle,
|
|
25
25
|
_ref3$props$span = _ref3$props.span,
|
|
26
26
|
span = _ref3$props$span === void 0 ? 1 : _ref3$props$span,
|
|
27
|
+
_ref3$props$rowSpan = _ref3$props.rowSpan,
|
|
28
|
+
rowSpan = _ref3$props$rowSpan === void 0 ? 1 : _ref3$props$rowSpan,
|
|
27
29
|
key = _ref3.key;
|
|
28
30
|
|
|
29
31
|
if (typeof component === 'string') {
|
|
@@ -34,6 +36,7 @@ function renderCells(items, _ref, _ref2) {
|
|
|
34
36
|
labelStyle: Object.assign(Object.assign({}, rootLabelStyle), labelStyle),
|
|
35
37
|
contentStyle: Object.assign(Object.assign({}, rootContentStyle), contentStyle),
|
|
36
38
|
span: span,
|
|
39
|
+
rowSpan: rowSpan,
|
|
37
40
|
colon: colon,
|
|
38
41
|
component: component,
|
|
39
42
|
itemPrefixCls: itemPrefixCls,
|
|
@@ -48,6 +51,7 @@ function renderCells(items, _ref, _ref2) {
|
|
|
48
51
|
className: className,
|
|
49
52
|
style: Object.assign(Object.assign(Object.assign({}, rootLabelStyle), style), labelStyle),
|
|
50
53
|
span: 1,
|
|
54
|
+
rowSpan: rowSpan,
|
|
51
55
|
colon: colon,
|
|
52
56
|
component: component[0],
|
|
53
57
|
itemPrefixCls: itemPrefixCls,
|
|
@@ -58,6 +62,7 @@ function renderCells(items, _ref, _ref2) {
|
|
|
58
62
|
className: className,
|
|
59
63
|
style: Object.assign(Object.assign(Object.assign({}, rootContentStyle), style), contentStyle),
|
|
60
64
|
span: span * 2 - 1,
|
|
65
|
+
rowSpan: rowSpan,
|
|
61
66
|
component: component[1],
|
|
62
67
|
itemPrefixCls: itemPrefixCls,
|
|
63
68
|
bordered: bordered,
|
package/es/InputNumber/index.js
CHANGED
|
@@ -15,12 +15,11 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
import classNames from 'classnames';
|
|
18
|
-
import React from 'react';
|
|
18
|
+
import React, { forwardRef } from 'react';
|
|
19
19
|
import DisabledContext from '../ConfigProvider/DisabledContext';
|
|
20
20
|
import SizeContext from '../ConfigProvider/SizeContext';
|
|
21
21
|
var prefixCls = 'lm_input-number';
|
|
22
|
-
|
|
23
|
-
var LMInputNumber = function LMInputNumber(props) {
|
|
22
|
+
var LMInputNumber = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
24
23
|
var children = props.children,
|
|
25
24
|
className = props.className,
|
|
26
25
|
customDisabled = props.disabled,
|
|
@@ -35,23 +34,22 @@ var LMInputNumber = function LMInputNumber(props) {
|
|
|
35
34
|
var size = React.useContext(SizeContext);
|
|
36
35
|
var mergeSize = customizeSize || size;
|
|
37
36
|
return /*#__PURE__*/React.createElement(_InputNumber, Object.assign({
|
|
37
|
+
ref: ref,
|
|
38
38
|
className: classNames(className, prefixCls),
|
|
39
39
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
40
40
|
}, rest, {
|
|
41
41
|
size: mergeSize,
|
|
42
42
|
disabled: mergedDisabled
|
|
43
43
|
}));
|
|
44
|
-
};
|
|
45
|
-
|
|
44
|
+
});
|
|
46
45
|
var CInputNumber = LMInputNumber;
|
|
47
|
-
|
|
48
|
-
CInputNumber.Price = function (props) {
|
|
46
|
+
CInputNumber.Price = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
49
47
|
return /*#__PURE__*/React.createElement(_InputNumber, Object.assign({
|
|
50
48
|
prefix: "\uFFE5",
|
|
49
|
+
ref: ref,
|
|
51
50
|
formatter: function formatter(value) {
|
|
52
51
|
return "".concat(value).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
53
52
|
}
|
|
54
53
|
}, props));
|
|
55
|
-
};
|
|
56
|
-
|
|
54
|
+
});
|
|
57
55
|
export default CInputNumber;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
|
|
4
|
+
for (var p in s) {
|
|
5
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
import React, { useRef, forwardRef } from 'react';
|
|
15
|
+
import Root from './wrapper/Root';
|
|
16
|
+
|
|
17
|
+
var LmDrag = function LmDrag(_a, ref) {
|
|
18
|
+
var resetProps = __rest(_a, []);
|
|
19
|
+
|
|
20
|
+
var defaultRef = useRef(null);
|
|
21
|
+
var defaultProps = Object.assign({
|
|
22
|
+
options: [],
|
|
23
|
+
rowKey: 'id'
|
|
24
|
+
}, resetProps);
|
|
25
|
+
return /*#__PURE__*/React.createElement(Root, Object.assign({
|
|
26
|
+
ref: ref || defaultRef
|
|
27
|
+
}, defaultProps));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default /*#__PURE__*/forwardRef(LmDrag);
|