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.
- package/dist/IconFont/font/iconfont.d.ts +0 -0
- package/dist/IconFont/index.d.ts +1 -1
- package/dist/Tooltip/demos/basic.d.ts +2 -0
- package/dist/Tooltip/index.d.ts +2 -0
- package/dist/Tooltip/style/index.d.ts +1 -0
- package/dist/Upload/demos/picture-card.d.ts +3 -0
- package/dist/Upload/demos/picture-style.d.ts +4 -0
- package/dist/Upload/index.d.ts +4 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.umd.js +26 -7
- package/dist/index.umd.min.js +3 -3
- package/es/Dropdown/index.js +11 -1
- package/es/Dropdown/style/index.css +6 -0
- package/es/EditTable/EditTable.js +2 -1
- package/es/IconFont/font/iconfont.css +1715 -0
- package/es/IconFont/font/iconfont.js +48 -0
- package/es/IconFont/font/iconfont.ttf +0 -0
- package/es/IconFont/font/iconfont.woff +0 -0
- package/es/IconFont/font/iconfont.woff2 +0 -0
- package/es/IconFont/index.js +2 -2
- package/es/Tooltip/index.d.ts +2 -0
- package/es/Tooltip/index.js +3 -0
- package/es/Tooltip/style/index.css +505 -0
- package/es/Tooltip/style/index.d.ts +1 -0
- package/es/Tooltip/style/index.js +1 -0
- package/es/Upload/index.d.ts +4 -0
- package/es/Upload/index.js +6 -3
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/lib/Dropdown/index.js +12 -1
- package/lib/Dropdown/style/index.css +6 -0
- package/lib/EditTable/EditTable.js +2 -1
- package/lib/IconFont/font/iconfont.css +1715 -0
- package/lib/IconFont/font/iconfont.js +48 -0
- package/lib/IconFont/font/iconfont.ttf +0 -0
- package/lib/IconFont/font/iconfont.woff +0 -0
- package/lib/IconFont/font/iconfont.woff2 +0 -0
- package/lib/IconFont/index.js +2 -2
- package/lib/Tooltip/index.d.ts +2 -0
- package/lib/Tooltip/index.js +15 -0
- package/lib/Tooltip/style/index.css +505 -0
- package/lib/Tooltip/style/index.d.ts +1 -0
- package/lib/Tooltip/style/index.js +3 -0
- package/lib/Upload/index.d.ts +4 -0
- package/lib/Upload/index.js +6 -3
- package/lib/index.d.ts +2 -1
- package/lib/index.js +9 -1
- package/package.json +1 -1
- package/typings/index.d.ts +1 -1
|
File without changes
|
package/dist/IconFont/index.d.ts
CHANGED
|
@@ -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 @@
|
|
|
1
|
+
import './index.less';
|
package/dist/Upload/index.d.ts
CHANGED
|
@@ -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);
|
|
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 () {
|