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
package/es/Pagination/index.js
CHANGED
|
@@ -26,7 +26,12 @@ var LMPagination = function LMPagination(props) {
|
|
|
26
26
|
return /*#__PURE__*/React.createElement(_Pagination, Object.assign({
|
|
27
27
|
className: classNames(className, prefixCls),
|
|
28
28
|
size: "small"
|
|
29
|
-
}, others
|
|
29
|
+
}, others, {
|
|
30
|
+
locale: {
|
|
31
|
+
items_per_page: '/条',
|
|
32
|
+
jump_to: '前往'
|
|
33
|
+
}
|
|
34
|
+
}));
|
|
30
35
|
};
|
|
31
36
|
|
|
32
37
|
export default LMPagination;
|
|
@@ -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 */
|
|
@@ -496,6 +500,10 @@ html {
|
|
|
496
500
|
.lm_pagination.ant-pagination li {
|
|
497
501
|
font-size: 12px;
|
|
498
502
|
line-height: 24px !important;
|
|
503
|
+
color: var(--color-65);
|
|
504
|
+
}
|
|
505
|
+
.lm_pagination.ant-pagination li.ant-pagination-total-text {
|
|
506
|
+
color: var(--color-65);
|
|
499
507
|
}
|
|
500
508
|
.lm_pagination.ant-pagination li.ant-pagination-item {
|
|
501
509
|
border: 0;
|
|
@@ -507,9 +515,16 @@ html {
|
|
|
507
515
|
.lm_pagination.ant-pagination li .ant-pagination-item-link {
|
|
508
516
|
border: 0;
|
|
509
517
|
}
|
|
518
|
+
.lm_pagination.ant-pagination li .ant-pagination-item-link .anticon {
|
|
519
|
+
color: var(--color-85);
|
|
520
|
+
}
|
|
510
521
|
.lm_pagination.ant-pagination li > a {
|
|
511
522
|
color: var(--color-65);
|
|
512
523
|
}
|
|
524
|
+
.lm_pagination.ant-pagination li.ant-pagination-options .ant-select-selection-item {
|
|
525
|
+
color: var(--color-65);
|
|
526
|
+
font-size: 12px;
|
|
527
|
+
}
|
|
513
528
|
.lm_pagination.ant-pagination li.ant-pagination-item-active {
|
|
514
529
|
background-color: var(--primary-color);
|
|
515
530
|
color: #fff;
|
|
@@ -517,3 +532,17 @@ html {
|
|
|
517
532
|
.lm_pagination.ant-pagination li.ant-pagination-item-active > a {
|
|
518
533
|
color: #fff;
|
|
519
534
|
}
|
|
535
|
+
.lm_pagination.ant-pagination li .ant-pagination-options-quick-jumper input {
|
|
536
|
+
width: 38px;
|
|
537
|
+
font-size: 12px;
|
|
538
|
+
color: var(--color-65);
|
|
539
|
+
}
|
|
540
|
+
.lm_pagination.ant-pagination li.ant-pagination-simple-pager input {
|
|
541
|
+
width: 48px;
|
|
542
|
+
font-size: 12px;
|
|
543
|
+
color: var(--color-65);
|
|
544
|
+
height: 22px;
|
|
545
|
+
}
|
|
546
|
+
.lm_pagination.ant-pagination li.ant-pagination-simple-pager .ant-pagination-slash {
|
|
547
|
+
margin-right: 14px;
|
|
548
|
+
}
|
|
@@ -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 */
|
|
@@ -575,6 +579,7 @@ html {
|
|
|
575
579
|
.lm_operate .operate_left,
|
|
576
580
|
.lm_operate .operate_right {
|
|
577
581
|
display: flex;
|
|
582
|
+
gap: 8px;
|
|
578
583
|
}
|
|
579
584
|
.lm_operate .operate_left:empty,
|
|
580
585
|
.lm_operate .operate_right:empty {
|
package/es/Radio/index.js
CHANGED
|
@@ -37,6 +37,7 @@ LMRadio.Group = function (props) {
|
|
|
37
37
|
_props$direction = props.direction,
|
|
38
38
|
direction = _props$direction === void 0 ? 'row' : _props$direction,
|
|
39
39
|
restProps = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
40
|
+
console.log(children, 'rrr');
|
|
40
41
|
return /*#__PURE__*/_react.default.createElement(_radio.default.Group, (0, _extends2.default)({
|
|
41
42
|
className: (0, _classnames.default)('lm-radio-group', "lm-radio-group-".concat(direction))
|
|
42
43
|
}, restProps), children);
|
|
@@ -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/Space/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 */
|
package/es/styles/main.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 */
|
package/es/styles/resetAntd.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 */
|
package/lib/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/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/lib/Dropdown/index.js
CHANGED
|
@@ -111,7 +111,7 @@ LMDropdown.Button = function (props) {
|
|
|
111
111
|
size: 'small'
|
|
112
112
|
}, props, {
|
|
113
113
|
overlayClassName: (0, _classnames.default)(props.overlayClassName, 'lm_dropdown_overlay'),
|
|
114
|
-
className: (0, _classnames.default)(props.className, 'lm_dropdown_button')
|
|
114
|
+
className: (0, _classnames.default)(props.className, 'lm_dropdown_button', props.disabled ? 'disabled' : '')
|
|
115
115
|
}));
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -124,7 +124,7 @@ LMDropdown.Button = function (props) {
|
|
|
124
124
|
overlayStyle: minwidth ? Object.assign({
|
|
125
125
|
minWidth: minwidth
|
|
126
126
|
}, props.overlayStyle) : Object.assign({}, props.overlayStyle),
|
|
127
|
-
className: (0, _classnames.default)(props.className, 'lm_dropdown_button')
|
|
127
|
+
className: (0, _classnames.default)(props.className, 'lm_dropdown_button', props.disabled ? 'disabled' : '')
|
|
128
128
|
})));
|
|
129
129
|
};
|
|
130
130
|
|
|
@@ -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/lib/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/extends"));
|
|
15
15
|
|
|
16
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/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;
|
|
@@ -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 */
|