linkmore-design 1.0.10 → 1.0.13

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 (95) hide show
  1. package/dist/index.umd.js +4359 -1032
  2. package/dist/index.umd.min.js +6 -6
  3. package/es/Button/style/style.css +32 -31
  4. package/es/ButtonTags/style/style.css +3 -0
  5. package/es/Card/index.d.ts +2 -0
  6. package/es/Card/index.js +17 -0
  7. package/es/Card/style/index.css +495 -0
  8. package/es/Card/style/index.d.ts +1 -0
  9. package/es/Card/style/index.js +1 -0
  10. package/es/{CheckBox → Checkbox}/index.js +0 -0
  11. package/es/{CheckBox → Checkbox}/style/index.js +0 -0
  12. package/es/{CheckBox → Checkbox}/style/style.css +0 -0
  13. package/es/CkFilter/components/filterTypes.js +41 -31
  14. package/es/CkFilter/filter.js +1 -1
  15. package/es/CkFilter/style/style.css +5 -2
  16. package/es/CustomerService/style/style.css +3 -0
  17. package/es/Drawer/style/index.css +6 -0
  18. package/es/Dropdown/style/index.css +3 -0
  19. package/es/EditTable/style/style.css +3 -0
  20. package/es/Filter/Popover.js +2 -2
  21. package/es/Filter/style/style.css +3 -0
  22. package/es/IconFont/index.js +1 -1
  23. package/es/IconSelect/iconJson.json +2935 -0
  24. package/es/IconSelect/index.js +115 -0
  25. package/{lib/CheckBox → es/IconSelect}/style/index.js +0 -0
  26. package/es/IconSelect/style/style.css +25 -0
  27. package/es/Input/style/style.css +3 -0
  28. package/es/InputNumber/style/index.css +3 -0
  29. package/es/LeftTable/index.js +5 -3
  30. package/es/LeftTable/style/style.css +41 -10
  31. package/es/Modal/index.js +7 -3
  32. package/es/Modal/style/index.css +7 -0
  33. package/es/Notification/index.d.ts +7 -0
  34. package/es/Notification/index.js +12 -0
  35. package/es/Notification/style/index.css +495 -0
  36. package/es/Notification/style/index.d.ts +1 -0
  37. package/es/Notification/style/index.js +1 -0
  38. package/es/Pagination/style/index.css +3 -0
  39. package/es/PopTable/style/style.css +3 -1
  40. package/es/ProTable/ImgList/body.js +5 -5
  41. package/es/ProTable/Table.js +5 -4
  42. package/es/ProTable/style/style.css +11 -2
  43. package/es/Select/index.d.ts +1 -1
  44. package/es/Select/style/index.css +3 -0
  45. package/es/Space/style/index.css +3 -0
  46. package/es/index.js +36 -4
  47. package/es/styles/main.css +3 -0
  48. package/es/styles/resetAntd.css +3 -0
  49. package/lib/Button/style/style.css +32 -31
  50. package/lib/ButtonTags/style/style.css +3 -0
  51. package/lib/Card/index.d.ts +2 -0
  52. package/lib/Card/index.js +29 -0
  53. package/lib/Card/style/index.css +495 -0
  54. package/lib/Card/style/index.d.ts +1 -0
  55. package/lib/Card/style/index.js +3 -0
  56. package/lib/{CheckBox → Checkbox}/index.js +0 -0
  57. package/lib/Checkbox/style/index.js +3 -0
  58. package/lib/{CheckBox → Checkbox}/style/style.css +0 -0
  59. package/lib/CkFilter/components/filterTypes.js +41 -31
  60. package/lib/CkFilter/filter.js +1 -1
  61. package/lib/CkFilter/style/style.css +5 -2
  62. package/lib/CustomerService/style/style.css +3 -0
  63. package/lib/Drawer/style/index.css +6 -0
  64. package/lib/Dropdown/style/index.css +3 -0
  65. package/lib/EditTable/style/style.css +3 -0
  66. package/lib/Filter/Popover.js +2 -2
  67. package/lib/Filter/style/style.css +3 -0
  68. package/lib/IconFont/index.js +1 -1
  69. package/lib/IconSelect/iconJson.json +2935 -0
  70. package/lib/IconSelect/index.js +115 -0
  71. package/lib/IconSelect/style/index.js +3 -0
  72. package/lib/IconSelect/style/style.css +25 -0
  73. package/lib/Input/style/style.css +3 -0
  74. package/lib/InputNumber/style/index.css +3 -0
  75. package/lib/LeftTable/index.js +5 -3
  76. package/lib/LeftTable/style/style.css +41 -10
  77. package/lib/Modal/index.js +7 -3
  78. package/lib/Modal/style/index.css +7 -0
  79. package/lib/Notification/index.d.ts +7 -0
  80. package/lib/Notification/index.js +25 -0
  81. package/lib/Notification/style/index.css +495 -0
  82. package/lib/Notification/style/index.d.ts +1 -0
  83. package/lib/Notification/style/index.js +3 -0
  84. package/lib/Pagination/style/index.css +3 -0
  85. package/lib/PopTable/style/style.css +3 -1
  86. package/lib/ProTable/ImgList/body.js +5 -5
  87. package/lib/ProTable/Table.js +5 -4
  88. package/lib/ProTable/style/style.css +11 -2
  89. package/lib/Select/index.d.ts +1 -1
  90. package/lib/Select/style/index.css +3 -0
  91. package/lib/Space/style/index.css +3 -0
  92. package/lib/index.js +36 -4
  93. package/lib/styles/main.css +3 -0
  94. package/lib/styles/resetAntd.css +3 -0
  95. package/package.json +1 -1
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.default = void 0;
11
+
12
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
+
14
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
+
16
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
+
18
+ var _react = _interopRequireWildcard(require("react"));
19
+
20
+ var _linkmoreDesign = require("linkmore-design");
21
+
22
+ var _classnames = _interopRequireDefault(require("classnames"));
23
+
24
+ var _iconJson = _interopRequireDefault(require("./iconJson.json"));
25
+
26
+ var _excluded = ["item"];
27
+
28
+ // interface IconSelect {
29
+ // visible: boolean
30
+ // onClose: fn
31
+ // value: string
32
+ // onChange: fn
33
+ // }
34
+ var IconSelect = function IconSelect(_ref) {
35
+ var visible = _ref.visible,
36
+ onClose = _ref.onClose,
37
+ _ref$value = _ref.value,
38
+ value = _ref$value === void 0 ? '' : _ref$value,
39
+ onChange = _ref.onChange;
40
+
41
+ var _useState = (0, _react.useState)(),
42
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
43
+ active = _useState2[0],
44
+ setActive = _useState2[1];
45
+
46
+ var options = (0, _react.useMemo)(function () {
47
+ var result = [];
48
+ var originData = _iconJson.default.glyphs;
49
+
50
+ for (var i = 0, len = originData.length; i < len; i += 4) {
51
+ result.push(originData.slice(i, i + 4));
52
+ }
53
+
54
+ return result;
55
+ }, []);
56
+
57
+ var onSave = function onSave() {
58
+ onChange === null || onChange === void 0 ? void 0 : onChange(active);
59
+ onClose === null || onClose === void 0 ? void 0 : onClose();
60
+ };
61
+
62
+ var onDoubleClick = function onDoubleClick(e) {
63
+ e.preventDefault();
64
+ e.stopPropagation();
65
+ onSave();
66
+ };
67
+
68
+ (0, _react.useEffect)(function () {
69
+ if (visible) {
70
+ setActive(value);
71
+ }
72
+ }, [visible]);
73
+ var config = {
74
+ title: '选择图标',
75
+ visible: visible,
76
+ size: 'small',
77
+ onOk: onSave,
78
+ onCancel: onClose // footer: [
79
+ // <Button key="cancel" onClick={onClose} size="middle">
80
+ // 取消
81
+ // </Button>,
82
+ // <Button type="primary" key="back" onClick={onSave} size="middle">
83
+ // 确定
84
+ // </Button>,
85
+ // ],
86
+
87
+ };
88
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Modal, config, /*#__PURE__*/_react.default.createElement("div", {
89
+ className: "lm-icon_select"
90
+ }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.VirtualList, {
91
+ options: options
92
+ }, function (_ref2) {
93
+ var item = _ref2.item,
94
+ resetProps = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
95
+ return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, resetProps, {
96
+ className: "lm-icon_row"
97
+ }), item === null || item === void 0 ? void 0 : item.map(function (v) {
98
+ return /*#__PURE__*/_react.default.createElement("div", {
99
+ key: v.font_class,
100
+ className: "lm-icon_col_wrapper"
101
+ }, /*#__PURE__*/_react.default.createElement("div", {
102
+ className: (0, _classnames.default)('lm-icon_col', "lmweb-".concat(v.font_class) === active && 'lm-icon_active'),
103
+ onClick: function onClick() {
104
+ return setActive("lmweb-".concat(v.font_class));
105
+ },
106
+ onDoubleClick: onDoubleClick
107
+ }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
108
+ type: "lmweb-".concat(v.font_class)
109
+ })));
110
+ }));
111
+ }))));
112
+ };
113
+
114
+ var _default = IconSelect;
115
+ exports.default = _default;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./style.css");
@@ -0,0 +1,25 @@
1
+ .lm-icon_select {
2
+ user-select: none;
3
+ }
4
+ .lm-icon_select .lm-icon_row {
5
+ display: flex;
6
+ }
7
+ .lm-icon_select .lm-icon_row .lm-icon_col_wrapper {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ width: 25%;
12
+ }
13
+ .lm-icon_select .lm-icon_row .lm-icon_col {
14
+ font-size: 18px;
15
+ color: var(--color-45);
16
+ border: 1px dashed transparent;
17
+ padding: 0 8px;
18
+ transition: 0.3s;
19
+ cursor: pointer;
20
+ }
21
+ .lm-icon_select .lm-icon_row .lm-icon_col:hover,
22
+ .lm-icon_select .lm-icon_row .lm-icon_col.lm-icon_active {
23
+ color: var(--primary-color);
24
+ border-color: var(--primary-color);
25
+ }
@@ -71,6 +71,9 @@
71
71
  padding: var(--gap);
72
72
  line-height: 1;
73
73
  }
74
+ .ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
75
+ font-weight: 500;
76
+ }
74
77
  @font-face {
75
78
  font-family: 'iconfont';
76
79
  /* Project id 2966019 */
@@ -71,6 +71,9 @@
71
71
  padding: var(--gap);
72
72
  line-height: 1;
73
73
  }
74
+ .ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
75
+ font-weight: 500;
76
+ }
74
77
  @font-face {
75
78
  font-family: 'iconfont';
76
79
  /* Project id 2966019 */
@@ -19,10 +19,10 @@ var _button = _interopRequireDefault(require("antd/es/button"));
19
19
 
20
20
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
21
21
 
22
- var _react = _interopRequireWildcard(require("react"));
23
-
24
22
  var _icons = require("@ant-design/icons");
25
23
 
24
+ var _react = _interopRequireWildcard(require("react"));
25
+
26
26
  var _Popover = _interopRequireDefault(require("../Filter/Popover"));
27
27
 
28
28
  var _imgTest = _interopRequireDefault(require("./assets/imgTest.jpg"));
@@ -91,6 +91,7 @@ var LeftSide = function LeftSide(_ref) {
91
91
  }, /*#__PURE__*/_react.default.createElement("span", null, useTree.title)), /*#__PURE__*/_react.default.createElement(_Popover.default, {
92
92
  item: treeType,
93
93
  config: {
94
+ arrow: false,
94
95
  placement: 'bottomRight',
95
96
  overlayStyle: {
96
97
  width: 168,
@@ -105,7 +106,8 @@ var LeftSide = function LeftSide(_ref) {
105
106
  }, /*#__PURE__*/_react.default.createElement(_button.default, {
106
107
  type: "text"
107
108
  }, /*#__PURE__*/_react.default.createElement(_icons.EllipsisOutlined, null))))), /*#__PURE__*/_react.default.createElement(_tree.default, {
108
- treeData: useTree.treeData
109
+ treeData: useTree.treeData,
110
+ rootClassName: "lm_tree_warp"
109
111
  }), /*#__PURE__*/_react.default.createElement("div", {
110
112
  className: "toggle_btn",
111
113
  onClick: toggleTree
@@ -71,6 +71,9 @@
71
71
  padding: var(--gap);
72
72
  line-height: 1;
73
73
  }
74
+ .ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
75
+ font-weight: 500;
76
+ }
74
77
  @font-face {
75
78
  font-family: 'iconfont';
76
79
  /* Project id 2966019 */
@@ -495,7 +498,7 @@ html {
495
498
  font-size: 12px;
496
499
  height: calc(100% - 36px);
497
500
  width: 168px;
498
- border: 1px solid #eee;
501
+ border: 1px solid var(--line-color);
499
502
  }
500
503
  .lm_grid_tree .grid_tree_title {
501
504
  display: flex;
@@ -507,15 +510,31 @@ html {
507
510
  transition: 0.3s;
508
511
  overflow: hidden;
509
512
  }
510
- .lm_grid_tree .grid_tree_title .grid_tree_title_left,
511
- .lm_grid_tree .grid_tree_title .grid_tree_title_right {
513
+ .lm_grid_tree .grid_tree_title .grid_tree_title_left {
512
514
  white-space: nowrap;
513
- padding: 0 6px 0 16px;
515
+ padding: 0 6px 0 8px;
516
+ }
517
+ .lm_grid_tree .grid_tree_title .grid_tree_title_left > button {
518
+ display: flex;
519
+ justify-content: flex-end;
520
+ }
521
+ .lm_grid_tree .grid_tree_title .grid_tree_title_right button {
522
+ width: 24px;
523
+ height: 24px;
524
+ margin-right: 8px;
525
+ padding: 0;
526
+ cursor: pointer;
527
+ }
528
+ .lm_grid_tree .grid_tree_title .grid_tree_title_right button :hover {
529
+ color: var(--primary-color);
530
+ }
531
+ .lm_grid_tree .grid_tree_title .grid_tree_title_right.ant-popover-open button {
532
+ color: var(--primary-color);
514
533
  }
515
534
  .lm_grid_tree .ant-tree {
516
535
  font-size: 12px;
517
536
  white-space: nowrap;
518
- padding: 0 10px;
537
+ padding: 0px;
519
538
  transition: 0.3s;
520
539
  }
521
540
  .lm_grid_tree .ant-tree .ant-tree-list-holder-inner > :first-child .ant-tree-switcher:empty {
@@ -540,17 +559,19 @@ html {
540
559
  z-index: 1;
541
560
  top: 50%;
542
561
  transform: translateY(-50%);
543
- right: -6px;
562
+ right: 0;
544
563
  display: flex;
545
564
  font-size: 8px;
546
565
  width: 12px;
547
566
  height: 48px;
548
567
  align-items: center;
549
568
  justify-content: center;
550
- border-radius: 12px;
551
- color: var(--font-color);
552
- background-color: var(--table-background-color);
553
- transition: 0.3s;
569
+ border-radius: 0;
570
+ color: var(--text-color);
571
+ background-color: var(--line-color);
572
+ transition: 0s;
573
+ border-top-left-radius: 100px;
574
+ border-bottom-left-radius: 100px;
554
575
  cursor: pointer;
555
576
  }
556
577
  .lm_grid_tree .toggle_btn:hover {
@@ -572,3 +593,13 @@ html {
572
593
  right: -14px;
573
594
  transform: translateY(-50%) rotateY(180deg);
574
595
  }
596
+ .lm_tree_warp .ant-tree-list-holder-inner .ant-tree-treenode {
597
+ width: 100%;
598
+ display: flex;
599
+ }
600
+ .lm_tree_warp .ant-tree-list-holder-inner .ant-tree-treenode > .ant-tree-node-content-wrapper {
601
+ flex: 1 1 auto;
602
+ }
603
+ .lm_tree_warp .ant-tree-list-holder-inner .ant-tree-treenode > .ant-tree-node-content-wrapper.ant-tree-node-selected {
604
+ background-color: var(--primary-select-color);
605
+ }
@@ -46,16 +46,20 @@ var CLMModal = function CLMModal(props) {
46
46
 
47
47
  return /*#__PURE__*/_react.default.createElement(_modal.default, Object.assign({
48
48
  wrapClassName: (0, _classnames.default)(wrapClassName, prefixCls),
49
- width: size === 'default' ? 552 : 416
50
- }, other, {
49
+ width: size === 'default' ? 552 : 416,
51
50
  footer: [/*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
52
51
  onClick: onCancel,
53
52
  size: 'middle'
54
- }, cancelText || '取消'), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
53
+ }, cancelText), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
55
54
  type: "primary",
56
55
  onClick: onOk,
57
56
  size: 'middle'
58
57
  }, okText)]
58
+ }, other, {
59
+ onOk: onOk,
60
+ onCancel: onCancel,
61
+ okText: okText,
62
+ cancelText: cancelText
59
63
  }));
60
64
  };
61
65
 
@@ -71,6 +71,9 @@
71
71
  padding: var(--gap);
72
72
  line-height: 1;
73
73
  }
74
+ .ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
75
+ font-weight: 500;
76
+ }
74
77
  @font-face {
75
78
  font-family: 'iconfont';
76
79
  /* Project id 2966019 */
@@ -494,6 +497,10 @@ html {
494
497
  font-weight: normal;
495
498
  font-size: 14px;
496
499
  color: var(--font-color);
500
+ font-weight: 500;
501
+ }
502
+ .lm_modal.ant-modal-wrap .ant-modal-body {
503
+ font-size: 12px;
497
504
  }
498
505
  .lm_modal.lm_modal_info .ant-modal-body {
499
506
  padding: 24px;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { notification } from 'antd';
3
+ export interface INotificationProps {
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ }
7
+ export default notification;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ require("antd/es/notification/style");
11
+
12
+ var _notification2 = _interopRequireDefault(require("antd/es/notification"));
13
+
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
+ // }
23
+ // export default LMNotification
24
+
25
+ exports.default = _default;