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
File without changes
@@ -1,2 +1,2 @@
1
1
  export default IconFont;
2
- declare const IconFont: import("react").FC<import("@ant-design/icons/lib/components/IconFont").IconFontProps<string>>;
2
+ declare const IconFont: import("react").FC<import("@ant-design/icons/lib/components/IconFont.js").IconFontProps<string>>;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,2 @@
1
+ import { Tooltip } from 'antd';
2
+ export default Tooltip;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const App: React.FC;
4
+ export default App;
@@ -1,5 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { UploadProps as AntdUploadProps } from 'antd';
3
+ import type { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
4
+ import type { RcFile as AntdRcFile } from 'antd/es/upload';
3
5
  export declare type UploadProps = AntdUploadProps;
6
+ export declare type UploadFile = AntdUploadFile;
7
+ export declare type RcFile = AntdRcFile;
4
8
  declare const LMUpload: React.FC<UploadProps>;
5
9
  export default LMUpload;
package/dist/index.d.ts CHANGED
@@ -40,4 +40,5 @@ export { default as Switch } from './Switch';
40
40
  export { default as Image } from './Image';
41
41
  export { default as CustomTableOption } from './CustomTableOption';
42
42
  export { default as Upload } from './Upload';
43
- export type { UploadProps } from './Upload';
43
+ export type { UploadProps, UploadFile } from './Upload';
44
+ export { default as Tooltip } from './Tooltip';
package/dist/index.umd.js CHANGED
@@ -2613,8 +2613,8 @@
2613
2613
  }
2614
2614
 
2615
2615
  var IconFont$1 = create({
2616
- scriptUrl: '//at.alicdn.com/t/font_2966019_8aij0300kjo.js' // 在 iconfont.cn 上生成
2617
-
2616
+ // scriptUrl: '//at.alicdn.com/t/font_2966019_8aij0300kjo.js', // 在 iconfont.cn 上生成
2617
+ scriptUrl: require('./font/iconfont.js')
2618
2618
  });
2619
2619
 
2620
2620
  var lodash = createCommonjsModule(function (module, exports) {
@@ -33350,7 +33350,8 @@
33350
33350
 
33351
33351
  LMDropdown.Button = function (props) {
33352
33352
  var _props$dropdownmatchw2 = props.dropdownmatchwidth,
33353
- dropdownmatchwidth = _props$dropdownmatchw2 === void 0 ? false : _props$dropdownmatchw2;
33353
+ dropdownmatchwidth = _props$dropdownmatchw2 === void 0 ? false : _props$dropdownmatchw2,
33354
+ icon = props.icon;
33354
33355
  var dropdownRef = React.useRef(null);
33355
33356
 
33356
33357
  var _useState3 = React.useState(''),
@@ -33374,6 +33375,10 @@
33374
33375
 
33375
33376
  if (!dropdownmatchwidth) {
33376
33377
  return /*#__PURE__*/React__default['default'].createElement(_Dropdown__default['default'].Button, _objectSpread(_objectSpread({}, props), {}, {
33378
+ icon: icon || /*#__PURE__*/React__default['default'].createElement(IconFont$1, {
33379
+ className: 'lm_default_icon',
33380
+ type: 'lmweb-down'
33381
+ }),
33377
33382
  overlayClassName: classnames(props.overlayClassName, 'lm_dropdown_overlay'),
33378
33383
  className: classnames(props.className, 'lm_dropdown_button', props.disabled ? 'disabled' : '')
33379
33384
  }));
@@ -33382,6 +33387,10 @@
33382
33387
  return /*#__PURE__*/React__default['default'].createElement("div", {
33383
33388
  ref: dropdownRef
33384
33389
  }, /*#__PURE__*/React__default['default'].createElement(_Dropdown__default['default'].Button, _objectSpread(_objectSpread({}, props), {}, {
33390
+ icon: icon || /*#__PURE__*/React__default['default'].createElement(IconFont$1, {
33391
+ className: 'lm_default_icon',
33392
+ type: 'lmweb-down'
33393
+ }),
33385
33394
  overlayClassName: classnames(props.overlayClassName, 'lm_dropdown_overlay'),
33386
33395
  overlayStyle: minwidth ? _objectSpread({
33387
33396
  minWidth: minwidth
@@ -34170,7 +34179,8 @@
34170
34179
  var rowValue = lodash.get(record, rowKey);
34171
34180
  reWriteOriginSource(rowKey, rowValue, dataIndex, nextValue);
34172
34181
  } else {
34173
- var newChildNode = getDefaultChildNode(false); // setChildNode(newChildNode);
34182
+ var newChildNode = getDefaultChildNode(false);
34183
+ setChildNode(newChildNode);
34174
34184
  }
34175
34185
  };
34176
34186
 
@@ -81634,15 +81644,18 @@
81634
81644
  });
81635
81645
 
81636
81646
  var LMUpload = function LMUpload(props) {
81647
+ var listType = props.listType;
81648
+
81637
81649
  var renderUploadItem = function renderUploadItem(originNode, file) {
81638
- return /*#__PURE__*/React__default['default'].createElement(_Tooltip__default['default'], {
81650
+ return !listType ? /*#__PURE__*/React__default['default'].createElement(_Tooltip__default['default'], {
81639
81651
  placement: 'bottom',
81640
81652
  title: file.name
81641
- }, originNode.props.children);
81653
+ }, originNode.props.children) : originNode;
81642
81654
  };
81643
81655
 
81644
81656
  return /*#__PURE__*/React__default['default'].createElement(_Upload__default['default'], _objectSpread({
81645
- itemRender: renderUploadItem
81657
+ itemRender: renderUploadItem,
81658
+ listType: listType
81646
81659
  }, props));
81647
81660
  };
81648
81661
 
@@ -81682,6 +81695,12 @@
81682
81695
  return _Empty__default['default'];
81683
81696
  }
81684
81697
  });
81698
+ Object.defineProperty(exports, 'Tooltip', {
81699
+ enumerable: true,
81700
+ get: function () {
81701
+ return _Tooltip__default['default'];
81702
+ }
81703
+ });
81685
81704
  Object.defineProperty(exports, 'Switch', {
81686
81705
  enumerable: true,
81687
81706
  get: function () {