linkmore-design 1.0.20 → 1.0.23
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/index.umd.css +0 -1
- package/dist/index.umd.js +4877 -2460
- package/dist/index.umd.min.css +1 -1
- package/dist/index.umd.min.js +14 -6
- package/es/ButtonTags/style/style.css +4 -0
- package/es/Card/style/index.css +4 -0
- package/es/CkFilter/baseFilter/moreFilters.js +1 -4
- package/es/CkFilter/components/filterTypes.js +45 -24
- package/es/CkFilter/style/style.css +6 -4
- package/es/CustomerService/style/style.css +4 -0
- package/es/Drawer/style/index.css +4 -0
- package/es/Dropdown/index.js +2 -2
- package/es/Dropdown/style/index.css +11 -0
- package/es/EditTable/style/style.css +4 -0
- package/es/Filter/style/style.css +4 -0
- package/es/Input/index.js +23 -3
- package/es/Input/style/style.css +4 -0
- package/es/InputNumber/style/index.css +4 -0
- package/es/LeftTable/style/style.css +4 -0
- package/es/LmTable/ImgList/imgCell.js +9 -17
- package/es/LmTable/Table.js +19 -21
- package/es/LmTable/style/style.css +5 -1
- package/es/Modal/style/index.css +10 -0
- package/es/Notification/index.js +6 -8
- package/es/Notification/style/index.css +7 -0
- package/es/Pagination/index.js +6 -1
- package/es/Pagination/style/index.css +29 -0
- package/es/PopTable/style/style.css +4 -0
- package/es/ProTable/style/style.css +5 -0
- package/es/Radio/index.js +1 -0
- package/es/Select/style/index.css +4 -0
- package/es/Space/style/index.css +4 -0
- package/es/styles/main.css +4 -0
- package/es/styles/resetAntd.css +4 -0
- package/lib/ButtonTags/style/style.css +4 -0
- package/lib/Card/style/index.css +4 -0
- package/lib/CkFilter/baseFilter/moreFilters.js +1 -4
- package/lib/CkFilter/components/filterTypes.js +45 -24
- package/lib/CkFilter/style/style.css +6 -4
- package/lib/CustomerService/style/style.css +4 -0
- package/lib/Drawer/style/index.css +4 -0
- package/lib/Dropdown/index.js +2 -2
- package/lib/Dropdown/style/index.css +11 -0
- package/lib/EditTable/style/style.css +4 -0
- package/lib/Filter/style/style.css +4 -0
- package/lib/Input/index.js +23 -3
- package/lib/Input/style/style.css +4 -0
- package/lib/InputNumber/style/index.css +4 -0
- package/lib/LeftTable/style/style.css +4 -0
- package/lib/LmTable/ImgList/imgCell.js +9 -17
- package/lib/LmTable/Table.js +19 -21
- package/lib/LmTable/style/style.css +5 -1
- package/lib/Modal/style/index.css +10 -0
- package/lib/Notification/index.js +6 -8
- package/lib/Notification/style/index.css +7 -0
- package/lib/Pagination/index.js +6 -1
- package/lib/Pagination/style/index.css +29 -0
- package/lib/PopTable/style/style.css +4 -0
- package/lib/ProTable/style/style.css +5 -0
- package/lib/Radio/index.js +1 -0
- package/lib/Select/style/index.css +4 -0
- package/lib/Space/style/index.css +4 -0
- package/lib/styles/main.css +4 -0
- package/lib/styles/resetAntd.css +4 -0
- package/package.json +2 -2
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
package/es/Card/style/index.css
CHANGED
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
|
@@ -200,10 +200,7 @@ var MoreFilters = function MoreFilters() {
|
|
|
200
200
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
201
201
|
className: (0, _classnames.default)('filter_item filter_item_more', {
|
|
202
202
|
active: visible
|
|
203
|
-
})
|
|
204
|
-
onClick: function onClick() {
|
|
205
|
-
return setVisible(!visible);
|
|
206
|
-
}
|
|
203
|
+
})
|
|
207
204
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
208
205
|
className: "filter_item_value"
|
|
209
206
|
}, /*#__PURE__*/_react.default.createElement(_IconFont.default, {
|
|
@@ -25,6 +25,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
25
25
|
|
|
26
26
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
27
27
|
|
|
28
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
29
|
+
|
|
28
30
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
29
31
|
|
|
30
32
|
var _linkmoreDesign = require("linkmore-design");
|
|
@@ -33,8 +35,6 @@ var _lodash = require("lodash");
|
|
|
33
35
|
|
|
34
36
|
var _moment = _interopRequireDefault(require("moment"));
|
|
35
37
|
|
|
36
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
37
|
-
|
|
38
38
|
var _IconFont = _interopRequireDefault(require("../../IconFont"));
|
|
39
39
|
|
|
40
40
|
var _VirtualList = _interopRequireDefault(require("../../VirtualList"));
|
|
@@ -419,7 +419,8 @@ var CheckboxFilter = function CheckboxFilter(_ref8) {
|
|
|
419
419
|
|
|
420
420
|
|
|
421
421
|
var MoreFilter = function MoreFilter(_ref12) {
|
|
422
|
-
var filters = _ref12.filters,
|
|
422
|
+
var _ref12$filters = _ref12.filters,
|
|
423
|
+
filters = _ref12$filters === void 0 ? [] : _ref12$filters,
|
|
423
424
|
getFilterValue = _ref12.getFilterValue,
|
|
424
425
|
setFilterValue = _ref12.setFilterValue;
|
|
425
426
|
|
|
@@ -430,9 +431,16 @@ var MoreFilter = function MoreFilter(_ref12) {
|
|
|
430
431
|
setCheckedValues = _useState10[1]; // 排序后的数组
|
|
431
432
|
|
|
432
433
|
|
|
433
|
-
var
|
|
434
|
-
|
|
435
|
-
|
|
434
|
+
var _useState11 = (0, _react.useState)(filters || []),
|
|
435
|
+
_useState12 = (0, _slicedToArray2.default)(_useState11, 2),
|
|
436
|
+
options = _useState12[0],
|
|
437
|
+
setOptions = _useState12[1];
|
|
438
|
+
|
|
439
|
+
console.log('more'); // 是否存在搜索, 当数据大于8时存在搜索
|
|
440
|
+
|
|
441
|
+
var isSearch = (0, _react.useMemo)(function () {
|
|
442
|
+
return filters.length > 8;
|
|
443
|
+
}, [filters.length]); // 是否可置顶, 第一项无置顶操作, 所以这里的index > 0
|
|
436
444
|
|
|
437
445
|
var isTop = (0, _react.useCallback)(function (item) {
|
|
438
446
|
return checkedValues.includes(item.field) && filters.findIndex(function (v) {
|
|
@@ -456,6 +464,13 @@ var MoreFilter = function MoreFilter(_ref12) {
|
|
|
456
464
|
});
|
|
457
465
|
console.log('nValue', checkAll, nValue, nValue.length);
|
|
458
466
|
setCheckedValues(nValue); // setFilterValue(options, checkAll ? 'hidden' : 'show')
|
|
467
|
+
}; // 搜索
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
var handleFilter = function handleFilter(val) {
|
|
471
|
+
setOptions(filters.filter(function (v) {
|
|
472
|
+
return v.title.indexOf(val) > -1;
|
|
473
|
+
}));
|
|
459
474
|
}; // 重置
|
|
460
475
|
|
|
461
476
|
|
|
@@ -487,7 +502,6 @@ var MoreFilter = function MoreFilter(_ref12) {
|
|
|
487
502
|
var nValue = checkedValues.includes(item.field) ? checkedValues.filter(function (v) {
|
|
488
503
|
return v !== item.field;
|
|
489
504
|
}) : [].concat((0, _toConsumableArray2.default)(checkedValues), [item.field]);
|
|
490
|
-
console.log('item', getFilterValue, nValue, checkedValues, item);
|
|
491
505
|
setCheckedValues(nValue);
|
|
492
506
|
};
|
|
493
507
|
|
|
@@ -495,7 +509,12 @@ var MoreFilter = function MoreFilter(_ref12) {
|
|
|
495
509
|
className: "filter_dropdown"
|
|
496
510
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
497
511
|
className: "filter_header"
|
|
498
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
512
|
+
}, isSearch && /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Input.Search, {
|
|
513
|
+
allowClear: true,
|
|
514
|
+
size: "small",
|
|
515
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
516
|
+
onSearch: handleFilter
|
|
517
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
499
518
|
className: "filter_header_operate"
|
|
500
519
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
501
520
|
onClick: onCheckAllChange,
|
|
@@ -616,7 +635,9 @@ var DatePickerFilter = function DatePickerFilter(_ref14) {
|
|
|
616
635
|
|
|
617
636
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_datePicker.default.RangePicker, (0, _extends2.default)({
|
|
618
637
|
picker: "date",
|
|
619
|
-
separator:
|
|
638
|
+
separator: /*#__PURE__*/_react.default.createElement(_IconFont.default, {
|
|
639
|
+
type: "lmweb-swap-right"
|
|
640
|
+
}),
|
|
620
641
|
placeholder: ['开始日期', '结束日期'],
|
|
621
642
|
style: {
|
|
622
643
|
width: 200
|
|
@@ -625,7 +646,7 @@ var DatePickerFilter = function DatePickerFilter(_ref14) {
|
|
|
625
646
|
value: value,
|
|
626
647
|
onChange: handleOnChange,
|
|
627
648
|
panelRender: panelRender,
|
|
628
|
-
dropdownClassName: "
|
|
649
|
+
dropdownClassName: "lm_filter_dropdown_picker",
|
|
629
650
|
bordered: false,
|
|
630
651
|
size: "small"
|
|
631
652
|
})));
|
|
@@ -651,25 +672,25 @@ var CascaderFilter = function CascaderFilter(props) {
|
|
|
651
672
|
itemProps = _props$itemProps === void 0 ? {} : _props$itemProps,
|
|
652
673
|
isFiltering = props.isFiltering;
|
|
653
674
|
|
|
654
|
-
var
|
|
655
|
-
_useState12 = (0, _slicedToArray2.default)(_useState11, 2),
|
|
656
|
-
visible = _useState12[0],
|
|
657
|
-
setVisible = _useState12[1];
|
|
658
|
-
|
|
659
|
-
var _useState13 = (0, _react.useState)(filters),
|
|
675
|
+
var _useState13 = (0, _react.useState)(false),
|
|
660
676
|
_useState14 = (0, _slicedToArray2.default)(_useState13, 2),
|
|
661
|
-
|
|
662
|
-
|
|
677
|
+
visible = _useState14[0],
|
|
678
|
+
setVisible = _useState14[1];
|
|
663
679
|
|
|
664
|
-
var _useState15 = (0, _react.useState)(
|
|
680
|
+
var _useState15 = (0, _react.useState)(filters),
|
|
665
681
|
_useState16 = (0, _slicedToArray2.default)(_useState15, 2),
|
|
666
|
-
|
|
667
|
-
|
|
682
|
+
options = _useState16[0],
|
|
683
|
+
setOptions = _useState16[1];
|
|
668
684
|
|
|
669
|
-
var _useState17 = (0, _react.useState)(
|
|
685
|
+
var _useState17 = (0, _react.useState)('全部'),
|
|
670
686
|
_useState18 = (0, _slicedToArray2.default)(_useState17, 2),
|
|
671
|
-
|
|
672
|
-
|
|
687
|
+
text = _useState18[0],
|
|
688
|
+
setText = _useState18[1];
|
|
689
|
+
|
|
690
|
+
var _useState19 = (0, _react.useState)(getFilterValue || itemProps.multiple ? [] : ''),
|
|
691
|
+
_useState20 = (0, _slicedToArray2.default)(_useState19, 2),
|
|
692
|
+
checkedValues = _useState20[0],
|
|
693
|
+
setCheckedValues = _useState20[1]; // const isSearch = useMemo(() => filters.length > 8, [filters.length]);
|
|
673
694
|
|
|
674
695
|
|
|
675
696
|
var handleFilter = function handleFilter(val) {
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
|
@@ -690,13 +694,10 @@ html {
|
|
|
690
694
|
}
|
|
691
695
|
.filter_dropdown .filter_body .filter_item .filter_item_operate .hover_show {
|
|
692
696
|
font-size: 16px;
|
|
693
|
-
color:
|
|
697
|
+
color: var(--primary-color);
|
|
694
698
|
transition: 0.3s;
|
|
695
699
|
opacity: 0;
|
|
696
700
|
}
|
|
697
|
-
.filter_dropdown .filter_body .filter_item .filter_item_operate .hover_show:hover {
|
|
698
|
-
color: var(--primary-color);
|
|
699
|
-
}
|
|
700
701
|
.filter_dropdown .filter_body .filter_item[disabled] {
|
|
701
702
|
display: none;
|
|
702
703
|
}
|
|
@@ -1017,6 +1018,7 @@ html {
|
|
|
1017
1018
|
align-items: center;
|
|
1018
1019
|
justify-content: space-between;
|
|
1019
1020
|
min-height: 40px;
|
|
1021
|
+
line-height: 1;
|
|
1020
1022
|
padding: 0 16px;
|
|
1021
1023
|
border-bottom: 1px solid var(--background-color-hover);
|
|
1022
1024
|
}
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
package/es/Dropdown/index.js
CHANGED
|
@@ -96,7 +96,7 @@ LMDropdown.Button = function (props) {
|
|
|
96
96
|
size: 'small'
|
|
97
97
|
}, props, {
|
|
98
98
|
overlayClassName: classNames(props.overlayClassName, 'lm_dropdown_overlay'),
|
|
99
|
-
className: classNames(props.className, 'lm_dropdown_button')
|
|
99
|
+
className: classNames(props.className, 'lm_dropdown_button', props.disabled ? 'disabled' : '')
|
|
100
100
|
}));
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -109,7 +109,7 @@ LMDropdown.Button = function (props) {
|
|
|
109
109
|
overlayStyle: minwidth ? Object.assign({
|
|
110
110
|
minWidth: minwidth
|
|
111
111
|
}, props.overlayStyle) : Object.assign({}, props.overlayStyle),
|
|
112
|
-
className: classNames(props.className, 'lm_dropdown_button')
|
|
112
|
+
className: classNames(props.className, 'lm_dropdown_button', props.disabled ? 'disabled' : '')
|
|
113
113
|
})));
|
|
114
114
|
};
|
|
115
115
|
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
|
@@ -538,3 +542,10 @@ html {
|
|
|
538
542
|
.lm_dropdown_button:hover .ant-btn {
|
|
539
543
|
color: var(--primary-hover-color) !important;
|
|
540
544
|
}
|
|
545
|
+
.lm_dropdown_button.disabled {
|
|
546
|
+
color: var(--disabled-font-color) !important;
|
|
547
|
+
border: 1px solid var(--disabled-border-color);
|
|
548
|
+
}
|
|
549
|
+
.lm_dropdown_button.disabled .ant-btn {
|
|
550
|
+
color: var(--disabled-font-color) !important;
|
|
551
|
+
}
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
package/es/Input/index.js
CHANGED
|
@@ -13,24 +13,39 @@ var _input = _interopRequireDefault(require("antd/es/input"));
|
|
|
13
13
|
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
|
15
15
|
|
|
16
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
17
|
+
|
|
16
18
|
var _react = _interopRequireDefault(require("react"));
|
|
17
19
|
|
|
18
20
|
var _IconFont = _interopRequireDefault(require("../IconFont"));
|
|
19
21
|
|
|
22
|
+
var _excluded = ["allowClear"],
|
|
23
|
+
_excluded2 = ["allowClear"],
|
|
24
|
+
_excluded3 = ["allowClear"];
|
|
25
|
+
|
|
20
26
|
var LmInput = function LmInput(props) {
|
|
27
|
+
var _props$allowClear = props.allowClear,
|
|
28
|
+
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
|
29
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
21
30
|
return /*#__PURE__*/_react.default.createElement(_input.default, (0, _extends2.default)({
|
|
22
31
|
className: "lm_input"
|
|
23
|
-
},
|
|
32
|
+
}, rest, {
|
|
33
|
+
allowClear: true
|
|
34
|
+
}));
|
|
24
35
|
};
|
|
25
36
|
|
|
26
37
|
LmInput.Group = _input.default.Group;
|
|
27
38
|
|
|
28
39
|
LmInput.Search = function (props) {
|
|
40
|
+
var _props$allowClear2 = props.allowClear,
|
|
41
|
+
allowClear = _props$allowClear2 === void 0 ? true : _props$allowClear2,
|
|
42
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
29
43
|
return /*#__PURE__*/_react.default.createElement(_input.default.Search, (0, _extends2.default)({
|
|
30
44
|
enterButton: /*#__PURE__*/_react.default.createElement(_IconFont.default, {
|
|
31
45
|
type: "lmweb-search"
|
|
32
46
|
})
|
|
33
|
-
},
|
|
47
|
+
}, rest, {
|
|
48
|
+
allowClear: true,
|
|
34
49
|
className: "lm_input_search"
|
|
35
50
|
}));
|
|
36
51
|
};
|
|
@@ -38,6 +53,9 @@ LmInput.Search = function (props) {
|
|
|
38
53
|
LmInput.TextArea = _input.default.TextArea;
|
|
39
54
|
|
|
40
55
|
LmInput.Password = function (props) {
|
|
56
|
+
var _props$allowClear3 = props.allowClear,
|
|
57
|
+
allowClear = _props$allowClear3 === void 0 ? true : _props$allowClear3,
|
|
58
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded3);
|
|
41
59
|
return /*#__PURE__*/_react.default.createElement(_input.default.Password, (0, _extends2.default)({
|
|
42
60
|
className: "lm_input_password",
|
|
43
61
|
iconRender: function iconRender(visible) {
|
|
@@ -47,7 +65,9 @@ LmInput.Password = function (props) {
|
|
|
47
65
|
type: "lmweb-eye-close"
|
|
48
66
|
});
|
|
49
67
|
}
|
|
50
|
-
},
|
|
68
|
+
}, rest, {
|
|
69
|
+
allowClear: true
|
|
70
|
+
}));
|
|
51
71
|
};
|
|
52
72
|
|
|
53
73
|
var _default = LmInput;
|
package/es/Input/style/style.css
CHANGED
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
|
@@ -17,31 +17,23 @@ require("antd/es/dropdown/style");
|
|
|
17
17
|
|
|
18
18
|
var _dropdown = _interopRequireDefault(require("antd/es/dropdown"));
|
|
19
19
|
|
|
20
|
-
require("antd/es/checkbox/style");
|
|
21
|
-
|
|
22
|
-
var _checkbox = _interopRequireDefault(require("antd/es/checkbox"));
|
|
23
|
-
|
|
24
20
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
25
21
|
|
|
26
22
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
27
23
|
|
|
28
24
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
29
25
|
|
|
30
|
-
require("antd/es/button/style");
|
|
31
|
-
|
|
32
|
-
var _button = _interopRequireDefault(require("antd/es/button"));
|
|
33
|
-
|
|
34
26
|
require("antd/es/typography/style");
|
|
35
27
|
|
|
36
28
|
var _typography = _interopRequireDefault(require("antd/es/typography"));
|
|
37
29
|
|
|
38
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
39
|
-
|
|
40
30
|
var _icons = require("@ant-design/icons");
|
|
41
31
|
|
|
42
32
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
43
33
|
|
|
44
|
-
var
|
|
34
|
+
var _linkmoreDesign = require("linkmore-design");
|
|
35
|
+
|
|
36
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
45
37
|
|
|
46
38
|
var _EnlargeImg = _interopRequireDefault(require("../../EnlargeImg"));
|
|
47
39
|
|
|
@@ -50,21 +42,21 @@ var Paragraph = _typography.default.Paragraph;
|
|
|
50
42
|
var stateRender = function stateRender(v) {
|
|
51
43
|
switch (v) {
|
|
52
44
|
case 'ok':
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, null, /*#__PURE__*/_react.default.createElement(_icons.CheckCircleFilled, {
|
|
54
46
|
style: {
|
|
55
47
|
color: 'rgb(253,77,78)'
|
|
56
48
|
}
|
|
57
49
|
}), "\u5DF2\u5BA1\u6838");
|
|
58
50
|
|
|
59
51
|
case 'wait':
|
|
60
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, null, /*#__PURE__*/_react.default.createElement(_icons.ClockCircleFilled, {
|
|
61
53
|
style: {
|
|
62
54
|
color: 'rgb(253,77,78)'
|
|
63
55
|
}
|
|
64
56
|
}), "\u5F85\u5BA1\u6838");
|
|
65
57
|
|
|
66
58
|
default:
|
|
67
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, null, /*#__PURE__*/_react.default.createElement(_icons.StopOutlined, {
|
|
68
60
|
style: {
|
|
69
61
|
color: 'rgb(253,77,78)'
|
|
70
62
|
}
|
|
@@ -79,7 +71,7 @@ var Cell = function Cell(props) {
|
|
|
79
71
|
style = props.style,
|
|
80
72
|
className = props.className;
|
|
81
73
|
|
|
82
|
-
var _useContext = (0, _react.useContext)(
|
|
74
|
+
var _useContext = (0, _react.useContext)(Context),
|
|
83
75
|
dispatch = _useContext.dispatch,
|
|
84
76
|
defaultValue = _useContext.defaultValue,
|
|
85
77
|
_useContext$rowKey = _useContext.rowKey,
|
|
@@ -104,7 +96,7 @@ var Cell = function Cell(props) {
|
|
|
104
96
|
checkbox: false,
|
|
105
97
|
singleRender: stateRender,
|
|
106
98
|
mapRender: function mapRender(v, i) {
|
|
107
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
99
|
+
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
|
|
108
100
|
key: i,
|
|
109
101
|
icon: v.icon || /*#__PURE__*/_react.default.createElement(_icons.StarFilled, {
|
|
110
102
|
style: {
|
|
@@ -145,7 +137,7 @@ var Cell = function Cell(props) {
|
|
|
145
137
|
}
|
|
146
138
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
147
139
|
className: "img_cell_thum"
|
|
148
|
-
}, defaultConfig.checkbox && /*#__PURE__*/_react.default.createElement(
|
|
140
|
+
}, defaultConfig.checkbox && /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
149
141
|
className: "checkBox",
|
|
150
142
|
checked: useCheck,
|
|
151
143
|
onChange: onChange
|
package/es/LmTable/Table.js
CHANGED
|
@@ -162,7 +162,6 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
162
162
|
checkConfig: checkConfig,
|
|
163
163
|
// components: vComponents,
|
|
164
164
|
scroll: (0, _objectSpread2.default)({
|
|
165
|
-
x: '100%',
|
|
166
165
|
y: autoSize.height
|
|
167
166
|
}, props.scroll),
|
|
168
167
|
pagination: !hiddenPage && (0, _objectSpread2.default)({
|
|
@@ -304,32 +303,31 @@ var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
304
303
|
var defaultRef = ref || (0, _react.useRef)(null);
|
|
305
304
|
var tableWarpRef = (0, _react.useRef)(null);
|
|
306
305
|
var resizeRef = (0, _react.useRef)(null);
|
|
307
|
-
var
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
var resetHeight = function resetHeight() {
|
|
313
|
-
var h = height - 48;
|
|
306
|
+
var resetHeight = (0, _react.useMemo)(function () {
|
|
307
|
+
var height = tableSize.height;
|
|
308
|
+
console.log(3);
|
|
309
|
+
var h = height - 48;
|
|
314
310
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
if (props.columns.some(function (v) {
|
|
320
|
-
return v.children;
|
|
321
|
-
})) {
|
|
322
|
-
h -= 32;
|
|
323
|
-
}
|
|
311
|
+
if (!props.hiddenPage || props.customCheck) {
|
|
312
|
+
h -= 32;
|
|
313
|
+
}
|
|
324
314
|
|
|
325
|
-
|
|
326
|
-
|
|
315
|
+
if (props.columns.some(function (v) {
|
|
316
|
+
return v.children;
|
|
317
|
+
})) {
|
|
318
|
+
h -= 32;
|
|
319
|
+
}
|
|
327
320
|
|
|
321
|
+
return h;
|
|
322
|
+
}, [props.hiddenPage, props.customCheck, props.column, tableSize]);
|
|
323
|
+
var throttleSize = (0, _react.useCallback)(function () {
|
|
324
|
+
var width = tableSize.width,
|
|
325
|
+
height = tableSize.height;
|
|
328
326
|
return /*#__PURE__*/_react.default.createElement(ResetTable, (0, _extends2.default)({
|
|
329
327
|
ref: defaultRef
|
|
330
328
|
}, props, {
|
|
331
329
|
autoSize: {
|
|
332
|
-
height: resetHeight
|
|
330
|
+
height: resetHeight,
|
|
333
331
|
width: width
|
|
334
332
|
}
|
|
335
333
|
}));
|
|
@@ -371,7 +369,7 @@ var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
371
369
|
resizeRef.current = window.addEventListener('resize', handResize);
|
|
372
370
|
setTableSize({
|
|
373
371
|
width: width,
|
|
374
|
-
height: typeof height === 'string' ? "calc(".concat(height, " - ").concat(value, "px)") : height - value
|
|
372
|
+
height: typeof height === 'string' ? "calc(".concat(height, " - ").concat(value, "px)") : height - value
|
|
375
373
|
});
|
|
376
374
|
return function () {
|
|
377
375
|
window.removeEventListener('resize', handResize);
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
|
@@ -906,7 +910,7 @@ html {
|
|
|
906
910
|
.lm_img_table .lm_imgList .img_cell_wrap .img_cell_body .img_cell_tags button.ant-btn-sm {
|
|
907
911
|
border: 0;
|
|
908
912
|
background: var(--background-color-hover);
|
|
909
|
-
margin: 0 4px 6px
|
|
913
|
+
margin: 0 4px 6px 0px;
|
|
910
914
|
}
|
|
911
915
|
.lm_img_table .lm_imgList .img_cell_wrap .img_cell_body.checked {
|
|
912
916
|
border-color: #2593f9;
|
package/es/Modal/style/index.css
CHANGED
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
|
@@ -505,6 +509,12 @@ html {
|
|
|
505
509
|
.lm_modal.lm_modal_info .ant-modal-body {
|
|
506
510
|
padding: 24px;
|
|
507
511
|
}
|
|
512
|
+
.lm_modal.lm_modal_info .ant-modal-confirm-title {
|
|
513
|
+
font-size: 14px;
|
|
514
|
+
}
|
|
515
|
+
.lm_modal.lm_modal_info .ant-modal-confirm-content {
|
|
516
|
+
font-size: 12px;
|
|
517
|
+
}
|
|
508
518
|
.lm_modal.lm_modal_info .ant-modal-confirm-btns button {
|
|
509
519
|
height: 32px;
|
|
510
520
|
padding: 6px 12px;
|
package/es/Notification/index.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import "antd/es/notification/style";
|
|
2
2
|
import _notification from "antd/es/notification";
|
|
3
3
|
export default _notification; // const prefixCls = 'lm_notification'
|
|
4
|
-
// const LMNotification
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
// )
|
|
11
|
-
// }
|
|
4
|
+
// const LMNotification = cloneDeep(notification)
|
|
5
|
+
// var paramsList = ['success', 'error', 'info', 'warning', 'warn', 'open'];
|
|
6
|
+
// paramsList.forEach(item => {
|
|
7
|
+
// LMNotification[item] = (config) => notification[item]?.({ ...config, classNames: classNames(config.className, prefixCls) })
|
|
8
|
+
// })
|
|
9
|
+
// console.log(LMNotification, 'fff', notification)
|
|
12
10
|
// export default LMNotification
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
line-height: 1;
|
|
73
73
|
}
|
|
74
74
|
.ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
|
|
75
|
+
font-size: 14px;
|
|
75
76
|
font-weight: 500;
|
|
76
77
|
}
|
|
78
|
+
.ant-notification-notice .ant-notification-notice-description {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
77
81
|
@font-face {
|
|
78
82
|
font-family: 'iconfont';
|
|
79
83
|
/* Project id 2966019 */
|
|
@@ -493,3 +497,6 @@ html {
|
|
|
493
497
|
.card_cell_content:hover .card_cell_body .card_cell_checkbox {
|
|
494
498
|
opacity: 1;
|
|
495
499
|
}
|
|
500
|
+
.ant-notification-notice-message {
|
|
501
|
+
font-size: 14px;
|
|
502
|
+
}
|