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
package/es/Dropdown/index.js
CHANGED
|
@@ -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);
|
|
496
|
+
var newChildNode = getDefaultChildNode(false);
|
|
497
|
+
setChildNode(newChildNode);
|
|
497
498
|
}
|
|
498
499
|
};
|
|
499
500
|
|