linkmore-design 1.0.38 → 1.0.41

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 (63) hide show
  1. package/dist/LmTable/ImgList/footer.d.ts +3 -1
  2. package/dist/LmTable/demos/custom.d.ts +2 -0
  3. package/dist/LmTable/demos/tableSort.d.ts +2 -0
  4. package/dist/Spin/demos/basic.d.ts +2 -0
  5. package/dist/Spin/demos/size.d.ts +2 -0
  6. package/dist/Spin/index.d.ts +7 -0
  7. package/dist/Spin/style/index.d.ts +1 -0
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.umd.js +1849 -88
  10. package/dist/index.umd.min.js +6 -14
  11. package/es/Button/style/style.css +4 -1
  12. package/es/CkFilter/style/style.css +2 -2
  13. package/es/CustomTableOption/index.js +8 -9
  14. package/es/Dropdown/index.js +10 -2
  15. package/es/EditTable/EditTable.js +6 -4
  16. package/es/IconFont/font/iconfont.css +105 -5
  17. package/es/IconFont/font/iconfont.js +16 -16
  18. package/es/IconFont/font/iconfont.ttf +0 -0
  19. package/es/IconFont/font/iconfont.woff +0 -0
  20. package/es/IconFont/font/iconfont.woff2 +0 -0
  21. package/es/LeftTable/style/style.css +1 -1
  22. package/es/LmTable/ImgList/footer.js +9 -7
  23. package/es/LmTable/ImgList/imgCell.js +3 -0
  24. package/es/LmTable/ImgList/imgTable.js +7 -2
  25. package/es/LmTable/Table.js +108 -13
  26. package/es/LmTable/style/style.css +435 -395
  27. package/es/Pagination/index.js +2 -1
  28. package/es/ProTable/style/style.css +0 -3
  29. package/es/Radio/style/style.css +3 -4
  30. package/es/Spin/index.d.ts +7 -0
  31. package/es/Spin/index.js +3 -0
  32. package/es/Spin/style/index.css +505 -0
  33. package/es/Spin/style/index.d.ts +1 -0
  34. package/es/Spin/style/index.js +1 -0
  35. package/es/index.d.ts +1 -0
  36. package/es/index.js +2 -1
  37. package/lib/Button/style/style.css +4 -1
  38. package/lib/CkFilter/style/style.css +2 -2
  39. package/lib/CustomTableOption/index.js +8 -9
  40. package/lib/Dropdown/index.js +10 -2
  41. package/lib/EditTable/EditTable.js +6 -4
  42. package/lib/IconFont/font/iconfont.css +105 -5
  43. package/lib/IconFont/font/iconfont.js +16 -16
  44. package/lib/IconFont/font/iconfont.ttf +0 -0
  45. package/lib/IconFont/font/iconfont.woff +0 -0
  46. package/lib/IconFont/font/iconfont.woff2 +0 -0
  47. package/lib/LeftTable/style/style.css +1 -1
  48. package/lib/LmTable/ImgList/footer.js +9 -7
  49. package/lib/LmTable/ImgList/imgCell.js +3 -0
  50. package/lib/LmTable/ImgList/imgTable.js +7 -2
  51. package/lib/LmTable/Table.js +108 -13
  52. package/lib/LmTable/style/style.css +435 -395
  53. package/lib/Pagination/index.js +2 -1
  54. package/lib/ProTable/style/style.css +0 -3
  55. package/lib/Radio/style/style.css +3 -4
  56. package/lib/Spin/index.d.ts +7 -0
  57. package/lib/Spin/index.js +15 -0
  58. package/lib/Spin/style/index.css +505 -0
  59. package/lib/Spin/style/index.d.ts +1 -0
  60. package/lib/Spin/style/index.js +3 -0
  61. package/lib/index.d.ts +1 -0
  62. package/lib/index.js +9 -1
  63. package/package.json +2 -1
@@ -5,6 +5,7 @@
5
5
  align-items: center;
6
6
  justify-content: center;
7
7
  vertical-align: middle;
8
+ box-shadow: none;
8
9
  }
9
10
  .ant-btn.lm-button .anticon {
10
11
  font-size: 12px;
@@ -14,6 +15,7 @@
14
15
  margin-left: 4px;
15
16
  overflow: hidden;
16
17
  white-space: nowrap;
18
+ max-width: 96px;
17
19
  }
18
20
  .ant-btn.lm-button > span:not(.anticon) {
19
21
  display: inline-block;
@@ -31,6 +33,7 @@
31
33
  .ant-btn.lm-button > span:not(.anticon) {
32
34
  font-size: 12px;
33
35
  line-height: 20px;
36
+ max-width: 96px;
34
37
  }
35
38
  .ant-btn.lm-button-small {
36
39
  height: 24px;
@@ -44,7 +47,7 @@
44
47
  .ant-btn.lm-button-middle {
45
48
  height: 32px;
46
49
  padding: 6px 12px;
47
- max-width: 120px;
50
+ max-width: 142px;
48
51
  }
49
52
  .ant-btn.lm-button-middle .anticon {
50
53
  font-size: 16px;
@@ -507,8 +507,8 @@ html {
507
507
  display: flex;
508
508
  flex-wrap: wrap;
509
509
  font-size: 12px;
510
- gap: 8px;
511
- margin-bottom: 8px;
510
+ gap: 12px;
511
+ margin-bottom: 12px;
512
512
  }
513
513
  .lm_filter_base .filter_custom {
514
514
  display: inline-flex;
@@ -38,7 +38,7 @@ var LMCustomTableOption = /*#__PURE__*/forwardRef(function (props, ref) {
38
38
  /** 是否记住页面使用状态 */
39
39
 
40
40
 
41
- var _useState3 = useState(false),
41
+ var _useState3 = useState(true),
42
42
  _useState4 = _slicedToArray(_useState3, 2),
43
43
  saveSetting = _useState4[0],
44
44
  setSaveSetting = _useState4[1];
@@ -88,15 +88,14 @@ var LMCustomTableOption = /*#__PURE__*/forwardRef(function (props, ref) {
88
88
  setVisible(false);
89
89
  };
90
90
 
91
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconFont, {
92
- type: 'lmweb-setting',
93
- style: {
94
- fontSize: '20px'
95
- },
96
- onClick: openSetting
91
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
92
+ onClick: openSetting,
93
+ icon: /*#__PURE__*/React.createElement(IconFont, {
94
+ type: 'lmweb-setting'
95
+ })
97
96
  }), /*#__PURE__*/React.createElement(Drawer, {
98
97
  className: classNames(className, prefixCls),
99
- title: "\u4E2A\u6027\u5316\u8BBE\u7F6E",
98
+ title: "\u7B5B\u9009\u8BBE\u7F6E",
100
99
  visible: visible,
101
100
  extra: /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
102
101
  size: "small",
@@ -122,7 +121,7 @@ var LMCustomTableOption = /*#__PURE__*/forwardRef(function (props, ref) {
122
121
  ref: filterRef,
123
122
  filter: lmOptions.filter
124
123
  })), /*#__PURE__*/React.createElement(TabPane, {
125
- tab: "\u5217\u5B57\u6BB5\u8BBE\u7F6E",
124
+ tab: "\u5217\u8868\u5B57\u6BB5\u8BBE\u7F6E",
126
125
  key: "2",
127
126
  forceRender: true
128
127
  }, /*#__PURE__*/React.createElement(ColumnsSort, {
@@ -28,7 +28,9 @@ var CLMDropdown = function CLMDropdown(props) {
28
28
  dropdownmatchwidth = _props$dropdownmatchw === void 0 ? false : _props$dropdownmatchw,
29
29
  _props$onlyIcon = props.onlyIcon,
30
30
  onlyIcon = _props$onlyIcon === void 0 ? false : _props$onlyIcon,
31
- others = __rest(props, ["children", "className", "overlayClassName", "dropdownmatchwidth", "onlyIcon"]);
31
+ _props$trigger = props.trigger,
32
+ trigger = _props$trigger === void 0 ? ['click'] : _props$trigger,
33
+ others = __rest(props, ["children", "className", "overlayClassName", "dropdownmatchwidth", "onlyIcon", "trigger"]);
32
34
 
33
35
  var dropdownRef = useRef(null);
34
36
 
@@ -53,6 +55,7 @@ var CLMDropdown = function CLMDropdown(props) {
53
55
  return /*#__PURE__*/React.createElement(_Dropdown, Object.assign({
54
56
  className: classNames(className, prefixCls, onlyIcon && 'only_icon')
55
57
  }, others, {
58
+ trigger: trigger,
56
59
  overlayClassName: classNames(overlayClassName, 'lm_dropdown_overlay')
57
60
  }), children);
58
61
  }
@@ -62,6 +65,7 @@ var CLMDropdown = function CLMDropdown(props) {
62
65
  }, /*#__PURE__*/React.createElement(_Dropdown, Object.assign({
63
66
  className: classNames(className, prefixCls, onlyIcon && 'only_icon')
64
67
  }, others, {
68
+ trigger: trigger,
65
69
  overlayClassName: classNames(overlayClassName, 'lm_dropdown_overlay'),
66
70
  overlayStyle: minwidth ? Object.assign({
67
71
  minWidth: minwidth
@@ -74,7 +78,9 @@ var LMDropdown = CLMDropdown;
74
78
  LMDropdown.Button = function (props) {
75
79
  var _props$dropdownmatchw2 = props.dropdownmatchwidth,
76
80
  dropdownmatchwidth = _props$dropdownmatchw2 === void 0 ? false : _props$dropdownmatchw2,
77
- icon = props.icon;
81
+ icon = props.icon,
82
+ _props$trigger2 = props.trigger,
83
+ trigger = _props$trigger2 === void 0 ? ['click'] : _props$trigger2;
78
84
  var dropdownRef = useRef(null);
79
85
 
80
86
  var _useState3 = useState(''),
@@ -96,6 +102,7 @@ LMDropdown.Button = function (props) {
96
102
 
97
103
  if (!dropdownmatchwidth) {
98
104
  return /*#__PURE__*/React.createElement(_Dropdown.Button, Object.assign({}, props, {
105
+ trigger: trigger,
99
106
  icon: icon || /*#__PURE__*/React.createElement(IconFont, {
100
107
  className: 'lm_default_icon',
101
108
  type: 'lmweb-down'
@@ -108,6 +115,7 @@ LMDropdown.Button = function (props) {
108
115
  return /*#__PURE__*/React.createElement("div", {
109
116
  ref: dropdownRef
110
117
  }, /*#__PURE__*/React.createElement(_Dropdown.Button, Object.assign({}, props, {
118
+ trigger: trigger,
111
119
  icon: icon || /*#__PURE__*/React.createElement(IconFont, {
112
120
  className: 'lm_default_icon',
113
121
  type: 'lmweb-down'
@@ -63,6 +63,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/exten
63
63
 
64
64
  var _react = _interopRequireWildcard(require("react"));
65
65
 
66
+ var _linkmoreDesign = require("linkmore-design");
67
+
66
68
  var _dayjs = _interopRequireDefault(require("dayjs"));
67
69
 
68
70
  var _UploadOss = _interopRequireDefault(require("../UploadOss"));
@@ -92,7 +94,7 @@ var UploadSingle = function UploadSingle(props) {
92
94
 
93
95
  return /*#__PURE__*/_react.default.createElement("div", {
94
96
  className: "upload_single"
95
- }, value ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(IconFont, {
97
+ }, value ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
96
98
  type: "lmweb-link",
97
99
  style: {
98
100
  fontSize: 14,
@@ -102,7 +104,7 @@ var UploadSingle = function UploadSingle(props) {
102
104
  href: "".concat(value === null || value === void 0 ? void 0 : value.externalUrl, "/").concat(value === null || value === void 0 ? void 0 : value.filePath).concat(value === null || value === void 0 ? void 0 : value.realFileName),
103
105
  target: "_blank",
104
106
  rel: "noreferrer"
105
- }, value === null || value === void 0 ? void 0 : value.fileName), /*#__PURE__*/_react.default.createElement(IconFont, {
107
+ }, value === null || value === void 0 ? void 0 : value.fileName), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
106
108
  type: "lmweb-delete",
107
109
  style: {
108
110
  fontSize: 14,
@@ -168,7 +170,7 @@ var Opetate = function Opetate(_ref2) {
168
170
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({
169
171
  type: "link",
170
172
  size: "small",
171
- icon: /*#__PURE__*/_react.default.createElement(IconFont, {
173
+ icon: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
172
174
  type: "lmweb-minus-circle",
173
175
  style: {
174
176
  fontSize: 16
@@ -182,7 +184,7 @@ var Opetate = function Opetate(_ref2) {
182
184
  })), /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({
183
185
  type: "link",
184
186
  size: "small",
185
- icon: /*#__PURE__*/_react.default.createElement(IconFont, {
187
+ icon: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
186
188
  type: "lmweb-plus-circle",
187
189
  style: {
188
190
  fontSize: 16
@@ -1,8 +1,8 @@
1
1
  @font-face {
2
2
  font-family: "iconfont"; /* Project id 2966019 */
3
- src: url('iconfont.woff2?t=1658815891548') format('woff2'),
4
- url('iconfont.woff?t=1658815891548') format('woff'),
5
- url('iconfont.ttf?t=1658815891548') format('truetype');
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');
6
6
  }
7
7
 
8
8
  .iconfont {
@@ -13,12 +13,112 @@
13
13
  -moz-osx-font-smoothing: grayscale;
14
14
  }
15
15
 
16
+ .lmweb-icon-m-receipt:before {
17
+ content: "\e6c6";
18
+ }
19
+
20
+ .lmweb-icon_m_up:before {
21
+ content: "\e6c1";
22
+ }
23
+
24
+ .lmweb-icon_m_down:before {
25
+ content: "\e6c2";
26
+ }
27
+
28
+ .lmweb-a-icon_m_search1:before {
29
+ content: "\e6c3";
30
+ }
31
+
16
32
  .lmweb-icon_m_Import:before {
17
- content: "\e6a7";
33
+ content: "\e6c4";
18
34
  }
19
35
 
20
36
  .lmweb-icon_m_export:before {
21
- content: "\e6a8";
37
+ content: "\e6c5";
38
+ }
39
+
40
+ .lmweb-icon_set_light:before {
41
+ content: "\e6bf";
42
+ }
43
+
44
+ .lmweb-icon_set:before {
45
+ content: "\e6c0";
46
+ }
47
+
48
+ .lmweb-icon_operate1:before {
49
+ content: "\e6bb";
50
+ }
51
+
52
+ .lmweb-icon_industry_light:before {
53
+ content: "\e6bd";
54
+ }
55
+
56
+ .lmweb-icon_industry_dark:before {
57
+ content: "\e6be";
58
+ }
59
+
60
+ .lmweb-icon_my1:before {
61
+ content: "\e6bc";
62
+ }
63
+
64
+ .lmweb-icon_operate:before {
65
+ content: "\e6ba";
66
+ }
67
+
68
+ .lmweb-icon_deliver:before {
69
+ content: "\e6b4";
70
+ }
71
+
72
+ .lmweb-icon_my:before {
73
+ content: "\e6b5";
74
+ }
75
+
76
+ .lmweb-icon_industry:before {
77
+ content: "\e6b6";
78
+ }
79
+
80
+ .lmweb-icon_support:before {
81
+ content: "\e6b7";
82
+ }
83
+
84
+ .lmweb-iocn_technology:before {
85
+ content: "\e6b8";
86
+ }
87
+
88
+ .lmweb-icon_research:before {
89
+ content: "\e6b9";
90
+ }
91
+
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
+ .lmweb-icon_deliver_light:before {
105
+ content: "\e6ac";
106
+ }
107
+
108
+ .lmweb-icon_my_light:before {
109
+ content: "\e6ad";
110
+ }
111
+
112
+ .lmweb-icon_support_light:before {
113
+ content: "\e6ae";
114
+ }
115
+
116
+ .lmweb-icon_research_light:before {
117
+ content: "\e6af";
118
+ }
119
+
120
+ .lmweb-iocn_technology_light:before {
121
+ content: "\e6b0";
22
122
  }
23
123
 
24
124
  .lmweb-icon_s_down:before {