linkmore-design 1.0.34 → 1.0.35

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 (49) hide show
  1. package/dist/IconFont/font/iconfont.d.ts +0 -0
  2. package/dist/IconFont/index.d.ts +1 -1
  3. package/dist/Tooltip/demos/basic.d.ts +2 -0
  4. package/dist/Tooltip/index.d.ts +2 -0
  5. package/dist/Tooltip/style/index.d.ts +1 -0
  6. package/dist/Upload/demos/picture-card.d.ts +3 -0
  7. package/dist/Upload/demos/picture-style.d.ts +4 -0
  8. package/dist/Upload/index.d.ts +4 -0
  9. package/dist/index.d.ts +2 -1
  10. package/dist/index.umd.js +26 -7
  11. package/dist/index.umd.min.js +3 -3
  12. package/es/Dropdown/index.js +11 -1
  13. package/es/Dropdown/style/index.css +6 -0
  14. package/es/EditTable/EditTable.js +2 -1
  15. package/es/IconFont/font/iconfont.css +1715 -0
  16. package/es/IconFont/font/iconfont.js +48 -0
  17. package/es/IconFont/font/iconfont.ttf +0 -0
  18. package/es/IconFont/font/iconfont.woff +0 -0
  19. package/es/IconFont/font/iconfont.woff2 +0 -0
  20. package/es/IconFont/index.js +2 -2
  21. package/es/Tooltip/index.d.ts +2 -0
  22. package/es/Tooltip/index.js +3 -0
  23. package/es/Tooltip/style/index.css +505 -0
  24. package/es/Tooltip/style/index.d.ts +1 -0
  25. package/es/Tooltip/style/index.js +1 -0
  26. package/es/Upload/index.d.ts +4 -0
  27. package/es/Upload/index.js +6 -3
  28. package/es/index.d.ts +2 -1
  29. package/es/index.js +2 -1
  30. package/lib/Dropdown/index.js +12 -1
  31. package/lib/Dropdown/style/index.css +6 -0
  32. package/lib/EditTable/EditTable.js +2 -1
  33. package/lib/IconFont/font/iconfont.css +1715 -0
  34. package/lib/IconFont/font/iconfont.js +48 -0
  35. package/lib/IconFont/font/iconfont.ttf +0 -0
  36. package/lib/IconFont/font/iconfont.woff +0 -0
  37. package/lib/IconFont/font/iconfont.woff2 +0 -0
  38. package/lib/IconFont/index.js +2 -2
  39. package/lib/Tooltip/index.d.ts +2 -0
  40. package/lib/Tooltip/index.js +15 -0
  41. package/lib/Tooltip/style/index.css +505 -0
  42. package/lib/Tooltip/style/index.d.ts +1 -0
  43. package/lib/Tooltip/style/index.js +3 -0
  44. package/lib/Upload/index.d.ts +4 -0
  45. package/lib/Upload/index.js +6 -3
  46. package/lib/index.d.ts +2 -1
  47. package/lib/index.js +9 -1
  48. package/package.json +1 -1
  49. package/typings/index.d.ts +1 -1
@@ -16,6 +16,7 @@ var __rest = this && this.__rest || function (s, e) {
16
16
  };
17
17
 
18
18
  import React, { useRef, useEffect, useState } from 'react';
19
+ import { IconFont } from 'linkmore-design';
19
20
  import classNames from 'classnames';
20
21
  var prefixCls = 'lm_dropdown';
21
22
 
@@ -72,7 +73,8 @@ var LMDropdown = CLMDropdown;
72
73
 
73
74
  LMDropdown.Button = function (props) {
74
75
  var _props$dropdownmatchw2 = props.dropdownmatchwidth,
75
- dropdownmatchwidth = _props$dropdownmatchw2 === void 0 ? false : _props$dropdownmatchw2;
76
+ dropdownmatchwidth = _props$dropdownmatchw2 === void 0 ? false : _props$dropdownmatchw2,
77
+ icon = props.icon;
76
78
  var dropdownRef = useRef(null);
77
79
 
78
80
  var _useState3 = useState(''),
@@ -94,6 +96,10 @@ LMDropdown.Button = function (props) {
94
96
 
95
97
  if (!dropdownmatchwidth) {
96
98
  return /*#__PURE__*/React.createElement(_Dropdown.Button, Object.assign({}, props, {
99
+ icon: icon || /*#__PURE__*/React.createElement(IconFont, {
100
+ className: 'lm_default_icon',
101
+ type: 'lmweb-down'
102
+ }),
97
103
  overlayClassName: classNames(props.overlayClassName, 'lm_dropdown_overlay'),
98
104
  className: classNames(props.className, 'lm_dropdown_button', props.disabled ? 'disabled' : '')
99
105
  }));
@@ -102,6 +108,10 @@ LMDropdown.Button = function (props) {
102
108
  return /*#__PURE__*/React.createElement("div", {
103
109
  ref: dropdownRef
104
110
  }, /*#__PURE__*/React.createElement(_Dropdown.Button, Object.assign({}, props, {
111
+ icon: icon || /*#__PURE__*/React.createElement(IconFont, {
112
+ className: 'lm_default_icon',
113
+ type: 'lmweb-down'
114
+ }),
105
115
  overlayClassName: classNames(props.overlayClassName, 'lm_dropdown_overlay'),
106
116
  overlayStyle: minwidth ? Object.assign({
107
117
  minWidth: minwidth
@@ -551,6 +551,12 @@ html {
551
551
  .lm_dropdown_button .ant-btn.ant-btn-sm {
552
552
  font-size: 12px;
553
553
  }
554
+ .lm_dropdown_button .ant-btn .anticon {
555
+ font-size: 16px;
556
+ }
557
+ .lm_dropdown_button .ant-btn .lm_default_icon {
558
+ color: var(--text-color);
559
+ }
554
560
  .lm_dropdown_button:hover {
555
561
  color: var(--primary-hover-color) !important;
556
562
  border: 1px solid var(--primary-hover-color);
@@ -493,7 +493,8 @@ var EditableCell = function EditableCell(props) {
493
493
  var rowValue = (0, _lodash.get)(record, rowKey);
494
494
  reWriteOriginSource(rowKey, rowValue, dataIndex, nextValue);
495
495
  } else {
496
- var newChildNode = getDefaultChildNode(false); // setChildNode(newChildNode);
496
+ var newChildNode = getDefaultChildNode(false);
497
+ setChildNode(newChildNode);
497
498
  }
498
499
  };
499
500