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.
Files changed (65) hide show
  1. package/dist/index.umd.css +0 -1
  2. package/dist/index.umd.js +4877 -2460
  3. package/dist/index.umd.min.css +1 -1
  4. package/dist/index.umd.min.js +14 -6
  5. package/es/ButtonTags/style/style.css +4 -0
  6. package/es/Card/style/index.css +4 -0
  7. package/es/CkFilter/baseFilter/moreFilters.js +1 -4
  8. package/es/CkFilter/components/filterTypes.js +45 -24
  9. package/es/CkFilter/style/style.css +6 -4
  10. package/es/CustomerService/style/style.css +4 -0
  11. package/es/Drawer/style/index.css +4 -0
  12. package/es/Dropdown/index.js +2 -2
  13. package/es/Dropdown/style/index.css +11 -0
  14. package/es/EditTable/style/style.css +4 -0
  15. package/es/Filter/style/style.css +4 -0
  16. package/es/Input/index.js +23 -3
  17. package/es/Input/style/style.css +4 -0
  18. package/es/InputNumber/style/index.css +4 -0
  19. package/es/LeftTable/style/style.css +4 -0
  20. package/es/LmTable/ImgList/imgCell.js +9 -17
  21. package/es/LmTable/Table.js +19 -21
  22. package/es/LmTable/style/style.css +5 -1
  23. package/es/Modal/style/index.css +10 -0
  24. package/es/Notification/index.js +6 -8
  25. package/es/Notification/style/index.css +7 -0
  26. package/es/Pagination/index.js +6 -1
  27. package/es/Pagination/style/index.css +29 -0
  28. package/es/PopTable/style/style.css +4 -0
  29. package/es/ProTable/style/style.css +5 -0
  30. package/es/Radio/index.js +1 -0
  31. package/es/Select/style/index.css +4 -0
  32. package/es/Space/style/index.css +4 -0
  33. package/es/styles/main.css +4 -0
  34. package/es/styles/resetAntd.css +4 -0
  35. package/lib/ButtonTags/style/style.css +4 -0
  36. package/lib/Card/style/index.css +4 -0
  37. package/lib/CkFilter/baseFilter/moreFilters.js +1 -4
  38. package/lib/CkFilter/components/filterTypes.js +45 -24
  39. package/lib/CkFilter/style/style.css +6 -4
  40. package/lib/CustomerService/style/style.css +4 -0
  41. package/lib/Drawer/style/index.css +4 -0
  42. package/lib/Dropdown/index.js +2 -2
  43. package/lib/Dropdown/style/index.css +11 -0
  44. package/lib/EditTable/style/style.css +4 -0
  45. package/lib/Filter/style/style.css +4 -0
  46. package/lib/Input/index.js +23 -3
  47. package/lib/Input/style/style.css +4 -0
  48. package/lib/InputNumber/style/index.css +4 -0
  49. package/lib/LeftTable/style/style.css +4 -0
  50. package/lib/LmTable/ImgList/imgCell.js +9 -17
  51. package/lib/LmTable/Table.js +19 -21
  52. package/lib/LmTable/style/style.css +5 -1
  53. package/lib/Modal/style/index.css +10 -0
  54. package/lib/Notification/index.js +6 -8
  55. package/lib/Notification/style/index.css +7 -0
  56. package/lib/Pagination/index.js +6 -1
  57. package/lib/Pagination/style/index.css +29 -0
  58. package/lib/PopTable/style/style.css +4 -0
  59. package/lib/ProTable/style/style.css +5 -0
  60. package/lib/Radio/index.js +1 -0
  61. package/lib/Select/style/index.css +4 -0
  62. package/lib/Space/style/index.css +4 -0
  63. package/lib/styles/main.css +4 -0
  64. package/lib/styles/resetAntd.css +4 -0
  65. package/package.json +2 -2
@@ -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/toConsumableArray"));
25
21
 
26
22
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
27
23
 
28
24
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/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 _context = _interopRequireDefault(require("./context"));
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(_button.default, null, /*#__PURE__*/_react.default.createElement(_icons.CheckCircleFilled, {
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(_button.default, null, /*#__PURE__*/_react.default.createElement(_icons.ClockCircleFilled, {
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(_button.default, null, /*#__PURE__*/_react.default.createElement(_icons.StopOutlined, {
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)(_context.default),
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(_button.default, {
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(_checkbox.default, {
140
+ }, defaultConfig.checkbox && /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
149
141
  className: "checkBox",
150
142
  checked: useCheck,
151
143
  onChange: onChange
@@ -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 throttleSize = (0, _react.useCallback)(function () {
308
- console.log(tableSize, '211');
309
- var width = tableSize.width,
310
- height = tableSize.height;
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
- if (!props.hiddenPage || props.customCheck) {
316
- h -= 32;
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
- return h;
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 - 32
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 4px;
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;
@@ -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;
@@ -12,14 +12,12 @@ require("antd/es/notification/style");
12
12
  var _notification2 = _interopRequireDefault(require("antd/es/notification"));
13
13
 
14
14
  var _default = _notification2.default; // const prefixCls = 'lm_notification'
15
- // const LMNotification: React.FC<INotificationProps> = (props) => {
16
- // const { children, className, ...others } = props
17
- // return (
18
- // <div className={classNames(className, prefixCls)} {...others}>
19
- // {children}
20
- // </div>
21
- // )
22
- // }
15
+ // const LMNotification = cloneDeep(notification)
16
+ // var paramsList = ['success', 'error', 'info', 'warning', 'warn', 'open'];
17
+ // paramsList.forEach(item => {
18
+ // LMNotification[item] = (config) => notification[item]?.({ ...config, classNames: classNames(config.className, prefixCls) })
19
+ // })
20
+ // console.log(LMNotification, 'fff', notification)
23
21
  // export default LMNotification
24
22
 
25
23
  exports.default = _default;
@@ -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
+ }
@@ -38,7 +38,12 @@ var LMPagination = function LMPagination(props) {
38
38
  return /*#__PURE__*/_react.default.createElement(_pagination.default, Object.assign({
39
39
  className: (0, _classnames.default)(className, prefixCls),
40
40
  size: "small"
41
- }, others));
41
+ }, others, {
42
+ locale: {
43
+ items_per_page: '/条',
44
+ jump_to: '前往'
45
+ }
46
+ }));
42
47
  };
43
48
 
44
49
  var _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 {
@@ -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 */
@@ -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,5 +72,9 @@
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkmore-design",
3
- "version": "1.0.20",
3
+ "version": "1.0.23",
4
4
  "author": {
5
5
  "name": "nowthen",
6
6
  "email": "rnlvwyx@gmail.com"
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@ant-design/compatible": "^1.0.8",
50
50
  "@ant-design/icons": "^4.3.0",
51
- "@ant-design/pro-table": "^2.58.1",
51
+ "@ant-design/pro-table": "^2.77.0",
52
52
  "@babel/runtime": "^7.17.9",
53
53
  "@typescript-eslint/eslint-plugin": "^5.28.0",
54
54
  "@typescript-eslint/parser": "^5.28.0",