linkmore-design 1.0.41 → 1.0.44

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 (50) hide show
  1. package/dist/CardTable/table/TableRoot.d.ts +2 -1
  2. package/dist/CkFilter/complexFilter/saveModal.d.ts +4 -0
  3. package/dist/CustomTableOption/index.d.ts +2 -1
  4. package/dist/index.umd.js +235 -52
  5. package/dist/index.umd.min.js +4 -4
  6. package/es/CardTable/style/style.css +10 -0
  7. package/es/CardTable/table/TableRoot.js +4 -2
  8. package/es/CardTable/table/TableWrapper.js +6 -3
  9. package/es/CkFilter/baseFilter/index.js +9 -2
  10. package/es/CkFilter/complexFilter/drawer.js +31 -18
  11. package/es/CkFilter/complexFilter/saveModal.js +140 -0
  12. package/es/CkFilter/components/CascaderFilter.js +7 -0
  13. package/es/CkFilter/components/filterTypes.js +9 -2
  14. package/es/CkFilter/customFilter/drawer.js +2 -2
  15. package/es/CkFilter/style/style.css +34 -3
  16. package/es/CustomTableOption/index.d.ts +2 -1
  17. package/es/CustomTableOption/index.js +9 -5
  18. package/es/CustomTableOption/style/index.css +10 -2
  19. package/es/IconFont/font/iconfont.css +23 -15
  20. package/es/IconFont/font/iconfont.js +6 -6
  21. package/es/IconFont/font/iconfont.ttf +0 -0
  22. package/es/IconFont/font/iconfont.woff +0 -0
  23. package/es/IconFont/font/iconfont.woff2 +0 -0
  24. package/es/LmTable/ImgList/imgCell.js +22 -13
  25. package/es/LmTable/ImgList/imgTable.js +22 -4
  26. package/es/LmTable/Table.js +8 -7
  27. package/es/Tabs/index.js +6 -2
  28. package/lib/CardTable/style/style.css +10 -0
  29. package/lib/CardTable/table/TableRoot.js +4 -2
  30. package/lib/CardTable/table/TableWrapper.js +6 -3
  31. package/lib/CkFilter/baseFilter/index.js +9 -2
  32. package/lib/CkFilter/complexFilter/drawer.js +31 -18
  33. package/lib/CkFilter/complexFilter/saveModal.js +140 -0
  34. package/lib/CkFilter/components/CascaderFilter.js +7 -0
  35. package/lib/CkFilter/components/filterTypes.js +9 -2
  36. package/lib/CkFilter/customFilter/drawer.js +2 -2
  37. package/lib/CkFilter/style/style.css +34 -3
  38. package/lib/CustomTableOption/index.d.ts +2 -1
  39. package/lib/CustomTableOption/index.js +11 -5
  40. package/lib/CustomTableOption/style/index.css +10 -2
  41. package/lib/IconFont/font/iconfont.css +23 -15
  42. package/lib/IconFont/font/iconfont.js +6 -6
  43. package/lib/IconFont/font/iconfont.ttf +0 -0
  44. package/lib/IconFont/font/iconfont.woff +0 -0
  45. package/lib/IconFont/font/iconfont.woff2 +0 -0
  46. package/lib/LmTable/ImgList/imgCell.js +22 -13
  47. package/lib/LmTable/ImgList/imgTable.js +22 -4
  48. package/lib/LmTable/Table.js +8 -7
  49. package/lib/Tabs/index.js +6 -2
  50. package/package.json +1 -1
@@ -515,6 +515,7 @@ html {
515
515
  align-items: center;
516
516
  justify-content: space-between;
517
517
  height: 32px;
518
+ line-height: 1;
518
519
  min-width: 100px;
519
520
  border: 1px solid var(--box-shadow-color);
520
521
  border-radius: 2px;
@@ -829,9 +830,6 @@ html {
829
830
  cursor: pointer;
830
831
  transition: 0.3s;
831
832
  }
832
- .ant-drawer.lm_filter_drawer .filter_drawer_group_list .filter_drawer_group_item .item_box:hover {
833
- border-color: var(--primary-color);
834
- }
835
833
  .ant-drawer.lm_filter_drawer .filter_drawer_group_list .filter_drawer_group_item .item_box .item_header {
836
834
  display: flex;
837
835
  align-items: center;
@@ -1039,6 +1037,39 @@ html {
1039
1037
  .ant-modal .custom_modal .ant-select {
1040
1038
  font-size: 12px;
1041
1039
  }
1040
+ .ant-modal .filter_drawer_group {
1041
+ font-size: 12px;
1042
+ line-height: 1;
1043
+ }
1044
+ .ant-modal .filter_drawer_group .text_tip {
1045
+ font-size: 12px;
1046
+ line-height: 22px;
1047
+ color: var(--text-color);
1048
+ margin-bottom: 16px;
1049
+ }
1050
+ .ant-modal .filter_drawer_group .ant-form-item {
1051
+ margin-bottom: 16px;
1052
+ }
1053
+ .ant-modal .filter_drawer_group .ant-form-item-label {
1054
+ padding-bottom: 0;
1055
+ }
1056
+ .ant-modal .filter_drawer_group .ant-form-item-label label {
1057
+ font-size: 12px;
1058
+ }
1059
+ .ant-modal .filter_drawer_group .ant-form-item-control {
1060
+ width: 100%;
1061
+ }
1062
+ .ant-modal .filter_drawer_group input {
1063
+ font-size: 12px;
1064
+ }
1065
+ .ant-modal .filter_drawer_group .ant-radio-wrapper {
1066
+ display: inline-flex;
1067
+ align-items: center;
1068
+ font-size: 12px;
1069
+ }
1070
+ .ant-modal .filter_drawer_group .ant-radio-wrapper .ant-radio {
1071
+ top: 0;
1072
+ }
1042
1073
  .lm_filter_dropdown_picker .filter_picker_box {
1043
1074
  display: flex;
1044
1075
  }
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { TableProps } from 'antd';
2
+ import { TableProps, TooltipProps } from 'antd';
3
3
  export interface ICustomTableOptionProps {
4
4
  className?: string;
5
5
  style?: React.CSSProperties;
6
6
  size?: 'small' | 'default' | 'middle';
7
+ tooltip?: TooltipProps;
7
8
  filter?: Record<string, any>[];
8
9
  columns?: TableProps<any>['columns'];
9
10
  onSave?: (data: any) => void;
@@ -9,6 +9,10 @@ Object.defineProperty(exports, "__esModule", {
9
9
  });
10
10
  exports.default = void 0;
11
11
 
12
+ require("antd/es/tooltip/style");
13
+
14
+ var _tooltip = _interopRequireDefault(require("antd/es/tooltip"));
15
+
12
16
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
17
 
14
18
  var _react = _interopRequireWildcard(require("react"));
@@ -43,7 +47,9 @@ var optionsWithDisabled = [{
43
47
  }];
44
48
  var prefixCls = 'lm_custom-table-option';
45
49
  var LMCustomTableOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
46
- var className = props.className;
50
+ var className = props.className,
51
+ _props$tooltip = props.tooltip,
52
+ tooltip = _props$tooltip === void 0 ? {} : _props$tooltip;
47
53
  var filterRef = (0, _react.useRef)(null);
48
54
  var columnsRef = (0, _react.useRef)(null); // const sizeRef = useRef(null)
49
55
 
@@ -62,7 +68,7 @@ var LMCustomTableOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
62
68
  var _useState5 = (0, _react.useState)({
63
69
  filter: [],
64
70
  columns: [],
65
- size: 'small'
71
+ size: 'middle'
66
72
  }),
67
73
  _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
68
74
  lmOptions = _useState6[0],
@@ -76,7 +82,7 @@ var LMCustomTableOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
76
82
  setLmOptions({
77
83
  filter: props.filter,
78
84
  columns: props.columns,
79
- size: props.size || 'small'
85
+ size: props.size || 'middle'
80
86
  });
81
87
  }, [props.filter, props.columns, props.size]);
82
88
  /** 提交按钮 */
@@ -104,12 +110,12 @@ var LMCustomTableOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
104
110
  setVisible(false);
105
111
  };
106
112
 
107
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
113
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_tooltip.default, Object.assign({}, tooltip), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
108
114
  onClick: openSetting,
109
115
  icon: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
110
116
  type: 'lmweb-setting'
111
117
  })
112
- }), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Drawer, {
118
+ })), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Drawer, {
113
119
  className: (0, _classnames.default)(className, prefixCls),
114
120
  title: "\u7B5B\u9009\u8BBE\u7F6E",
115
121
  visible: visible,
@@ -514,11 +514,11 @@ html {
514
514
  }
515
515
  .lm_custom_option_columns .global_setting {
516
516
  height: 44px;
517
- background-color: var(--color-4);
518
517
  display: flex;
519
518
  align-items: center;
520
519
  justify-content: space-between;
521
- padding: 0 16px;
520
+ padding-bottom: 12px;
521
+ border-bottom: 1px solid var(--border-color);
522
522
  font-size: 12px;
523
523
  margin-bottom: 8px;
524
524
  }
@@ -544,6 +544,13 @@ html {
544
544
  padding: 0 16px;
545
545
  font-size: 12px;
546
546
  margin-bottom: 8px;
547
+ cursor: pointer;
548
+ }
549
+ .lm_custom_option_columns .lm_custom_item:hover {
550
+ background-color: var(--line-color);
551
+ }
552
+ .lm_custom_option_columns .lm_custom_item:hover .hover_show {
553
+ display: inline-flex;
547
554
  }
548
555
  .lm_custom_option_columns .lm_custom_item .lm-checkbox > span {
549
556
  font-size: 12px;
@@ -557,6 +564,7 @@ html {
557
564
  color: var(--tip-text-color);
558
565
  }
559
566
  .lm_custom_option_columns .lm_custom_icon.hover_show {
567
+ display: none;
560
568
  color: var(--primary-color);
561
569
  }
562
570
  .lm_custom_size_warp {
@@ -1,8 +1,8 @@
1
1
  @font-face {
2
2
  font-family: "iconfont"; /* Project id 2966019 */
3
- src: url('iconfont.woff2?t=1659410207517') format('woff2'),
4
- url('iconfont.woff?t=1659410207517') format('woff'),
5
- url('iconfont.ttf?t=1659410207517') format('truetype');
3
+ src: url('iconfont.woff2?t=1659434868739') format('woff2'),
4
+ url('iconfont.woff?t=1659434868739') format('woff'),
5
+ url('iconfont.ttf?t=1659434868739') format('truetype');
6
6
  }
7
7
 
8
8
  .iconfont {
@@ -13,6 +13,26 @@
13
13
  -moz-osx-font-smoothing: grayscale;
14
14
  }
15
15
 
16
+ .lmweb-icon_china1:before {
17
+ content: "\e6c9";
18
+ }
19
+
20
+ .lmweb-icon_English1:before {
21
+ content: "\e6ca";
22
+ }
23
+
24
+ .lmweb-icon_fan1:before {
25
+ content: "\e6cb";
26
+ }
27
+
28
+ .lmweb-icon_application_light:before {
29
+ content: "\e6c7";
30
+ }
31
+
32
+ .lmweb-icon_application:before {
33
+ content: "\e6c8";
34
+ }
35
+
16
36
  .lmweb-icon-m-receipt:before {
17
37
  content: "\e6c6";
18
38
  }
@@ -89,18 +109,6 @@
89
109
  content: "\e6b9";
90
110
  }
91
111
 
92
- .lmweb-icon_fan:before {
93
- content: "\e6b3";
94
- }
95
-
96
- .lmweb-icon_china:before {
97
- content: "\e6b1";
98
- }
99
-
100
- .lmweb-icon_English:before {
101
- content: "\e6b2";
102
- }
103
-
104
112
  .lmweb-icon_deliver_light:before {
105
113
  content: "\e6ac";
106
114
  }