linkmore-design 1.0.38 → 1.0.41
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/LmTable/ImgList/footer.d.ts +3 -1
- package/dist/LmTable/demos/custom.d.ts +2 -0
- package/dist/LmTable/demos/tableSort.d.ts +2 -0
- package/dist/Spin/demos/basic.d.ts +2 -0
- package/dist/Spin/demos/size.d.ts +2 -0
- package/dist/Spin/index.d.ts +7 -0
- package/dist/Spin/style/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +1849 -88
- package/dist/index.umd.min.js +6 -14
- package/es/Button/style/style.css +4 -1
- package/es/CkFilter/style/style.css +2 -2
- package/es/CustomTableOption/index.js +8 -9
- package/es/Dropdown/index.js +10 -2
- package/es/EditTable/EditTable.js +6 -4
- package/es/IconFont/font/iconfont.css +105 -5
- package/es/IconFont/font/iconfont.js +16 -16
- 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/LeftTable/style/style.css +1 -1
- package/es/LmTable/ImgList/footer.js +9 -7
- package/es/LmTable/ImgList/imgCell.js +3 -0
- package/es/LmTable/ImgList/imgTable.js +7 -2
- package/es/LmTable/Table.js +108 -13
- package/es/LmTable/style/style.css +435 -395
- package/es/Pagination/index.js +2 -1
- package/es/ProTable/style/style.css +0 -3
- package/es/Radio/style/style.css +3 -4
- package/es/Spin/index.d.ts +7 -0
- package/es/Spin/index.js +3 -0
- package/es/Spin/style/index.css +505 -0
- package/es/Spin/style/index.d.ts +1 -0
- package/es/Spin/style/index.js +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/lib/Button/style/style.css +4 -1
- package/lib/CkFilter/style/style.css +2 -2
- package/lib/CustomTableOption/index.js +8 -9
- package/lib/Dropdown/index.js +10 -2
- package/lib/EditTable/EditTable.js +6 -4
- package/lib/IconFont/font/iconfont.css +105 -5
- package/lib/IconFont/font/iconfont.js +16 -16
- 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/LeftTable/style/style.css +1 -1
- package/lib/LmTable/ImgList/footer.js +9 -7
- package/lib/LmTable/ImgList/imgCell.js +3 -0
- package/lib/LmTable/ImgList/imgTable.js +7 -2
- package/lib/LmTable/Table.js +108 -13
- package/lib/LmTable/style/style.css +435 -395
- package/lib/Pagination/index.js +2 -1
- package/lib/ProTable/style/style.css +0 -3
- package/lib/Radio/style/style.css +3 -4
- package/lib/Spin/index.d.ts +7 -0
- package/lib/Spin/index.js +15 -0
- package/lib/Spin/style/index.css +505 -0
- package/lib/Spin/style/index.d.ts +1 -0
- package/lib/Spin/style/index.js +3 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +9 -1
- package/package.json +2 -1
package/lib/Dropdown/index.js
CHANGED
|
@@ -44,7 +44,9 @@ var CLMDropdown = function CLMDropdown(props) {
|
|
|
44
44
|
dropdownmatchwidth = _props$dropdownmatchw === void 0 ? false : _props$dropdownmatchw,
|
|
45
45
|
_props$onlyIcon = props.onlyIcon,
|
|
46
46
|
onlyIcon = _props$onlyIcon === void 0 ? false : _props$onlyIcon,
|
|
47
|
-
|
|
47
|
+
_props$trigger = props.trigger,
|
|
48
|
+
trigger = _props$trigger === void 0 ? ['click'] : _props$trigger,
|
|
49
|
+
others = __rest(props, ["children", "className", "overlayClassName", "dropdownmatchwidth", "onlyIcon", "trigger"]);
|
|
48
50
|
|
|
49
51
|
var dropdownRef = (0, _react.useRef)(null);
|
|
50
52
|
|
|
@@ -69,6 +71,7 @@ var CLMDropdown = function CLMDropdown(props) {
|
|
|
69
71
|
return /*#__PURE__*/_react.default.createElement(_dropdown.default, Object.assign({
|
|
70
72
|
className: (0, _classnames.default)(className, prefixCls, onlyIcon && 'only_icon')
|
|
71
73
|
}, others, {
|
|
74
|
+
trigger: trigger,
|
|
72
75
|
overlayClassName: (0, _classnames.default)(overlayClassName, 'lm_dropdown_overlay')
|
|
73
76
|
}), children);
|
|
74
77
|
}
|
|
@@ -78,6 +81,7 @@ var CLMDropdown = function CLMDropdown(props) {
|
|
|
78
81
|
}, /*#__PURE__*/_react.default.createElement(_dropdown.default, Object.assign({
|
|
79
82
|
className: (0, _classnames.default)(className, prefixCls, onlyIcon && 'only_icon')
|
|
80
83
|
}, others, {
|
|
84
|
+
trigger: trigger,
|
|
81
85
|
overlayClassName: (0, _classnames.default)(overlayClassName, 'lm_dropdown_overlay'),
|
|
82
86
|
overlayStyle: minwidth ? Object.assign({
|
|
83
87
|
minWidth: minwidth
|
|
@@ -90,7 +94,9 @@ var LMDropdown = CLMDropdown;
|
|
|
90
94
|
LMDropdown.Button = function (props) {
|
|
91
95
|
var _props$dropdownmatchw2 = props.dropdownmatchwidth,
|
|
92
96
|
dropdownmatchwidth = _props$dropdownmatchw2 === void 0 ? false : _props$dropdownmatchw2,
|
|
93
|
-
icon = props.icon
|
|
97
|
+
icon = props.icon,
|
|
98
|
+
_props$trigger2 = props.trigger,
|
|
99
|
+
trigger = _props$trigger2 === void 0 ? ['click'] : _props$trigger2;
|
|
94
100
|
var dropdownRef = (0, _react.useRef)(null);
|
|
95
101
|
|
|
96
102
|
var _useState3 = (0, _react.useState)(''),
|
|
@@ -112,6 +118,7 @@ LMDropdown.Button = function (props) {
|
|
|
112
118
|
|
|
113
119
|
if (!dropdownmatchwidth) {
|
|
114
120
|
return /*#__PURE__*/_react.default.createElement(_dropdown.default.Button, Object.assign({}, props, {
|
|
121
|
+
trigger: trigger,
|
|
115
122
|
icon: icon || /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
116
123
|
className: 'lm_default_icon',
|
|
117
124
|
type: 'lmweb-down'
|
|
@@ -124,6 +131,7 @@ LMDropdown.Button = function (props) {
|
|
|
124
131
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
125
132
|
ref: dropdownRef
|
|
126
133
|
}, /*#__PURE__*/_react.default.createElement(_dropdown.default.Button, Object.assign({}, props, {
|
|
134
|
+
trigger: trigger,
|
|
127
135
|
icon: icon || /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
128
136
|
className: 'lm_default_icon',
|
|
129
137
|
type: 'lmweb-down'
|
|
@@ -63,6 +63,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
63
63
|
|
|
64
64
|
var _react = _interopRequireWildcard(require("react"));
|
|
65
65
|
|
|
66
|
+
var _linkmoreDesign = require("linkmore-design");
|
|
67
|
+
|
|
66
68
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
67
69
|
|
|
68
70
|
var _UploadOss = _interopRequireDefault(require("../UploadOss"));
|
|
@@ -92,7 +94,7 @@ var UploadSingle = function UploadSingle(props) {
|
|
|
92
94
|
|
|
93
95
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
94
96
|
className: "upload_single"
|
|
95
|
-
}, value ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(IconFont, {
|
|
97
|
+
}, value ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
96
98
|
type: "lmweb-link",
|
|
97
99
|
style: {
|
|
98
100
|
fontSize: 14,
|
|
@@ -102,7 +104,7 @@ var UploadSingle = function UploadSingle(props) {
|
|
|
102
104
|
href: "".concat(value === null || value === void 0 ? void 0 : value.externalUrl, "/").concat(value === null || value === void 0 ? void 0 : value.filePath).concat(value === null || value === void 0 ? void 0 : value.realFileName),
|
|
103
105
|
target: "_blank",
|
|
104
106
|
rel: "noreferrer"
|
|
105
|
-
}, value === null || value === void 0 ? void 0 : value.fileName), /*#__PURE__*/_react.default.createElement(IconFont, {
|
|
107
|
+
}, value === null || value === void 0 ? void 0 : value.fileName), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
106
108
|
type: "lmweb-delete",
|
|
107
109
|
style: {
|
|
108
110
|
fontSize: 14,
|
|
@@ -168,7 +170,7 @@ var Opetate = function Opetate(_ref2) {
|
|
|
168
170
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({
|
|
169
171
|
type: "link",
|
|
170
172
|
size: "small",
|
|
171
|
-
icon: /*#__PURE__*/_react.default.createElement(IconFont, {
|
|
173
|
+
icon: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
172
174
|
type: "lmweb-minus-circle",
|
|
173
175
|
style: {
|
|
174
176
|
fontSize: 16
|
|
@@ -182,7 +184,7 @@ var Opetate = function Opetate(_ref2) {
|
|
|
182
184
|
})), /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({
|
|
183
185
|
type: "link",
|
|
184
186
|
size: "small",
|
|
185
|
-
icon: /*#__PURE__*/_react.default.createElement(IconFont, {
|
|
187
|
+
icon: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
186
188
|
type: "lmweb-plus-circle",
|
|
187
189
|
style: {
|
|
188
190
|
fontSize: 16
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "iconfont"; /* Project id 2966019 */
|
|
3
|
-
src: url('iconfont.woff2?t=
|
|
4
|
-
url('iconfont.woff?t=
|
|
5
|
-
url('iconfont.ttf?t=
|
|
3
|
+
src: url('iconfont.woff2?t=1659410207517') format('woff2'),
|
|
4
|
+
url('iconfont.woff?t=1659410207517') format('woff'),
|
|
5
|
+
url('iconfont.ttf?t=1659410207517') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.iconfont {
|
|
@@ -13,12 +13,112 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.lmweb-icon-m-receipt:before {
|
|
17
|
+
content: "\e6c6";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.lmweb-icon_m_up:before {
|
|
21
|
+
content: "\e6c1";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.lmweb-icon_m_down:before {
|
|
25
|
+
content: "\e6c2";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.lmweb-a-icon_m_search1:before {
|
|
29
|
+
content: "\e6c3";
|
|
30
|
+
}
|
|
31
|
+
|
|
16
32
|
.lmweb-icon_m_Import:before {
|
|
17
|
-
content: "\
|
|
33
|
+
content: "\e6c4";
|
|
18
34
|
}
|
|
19
35
|
|
|
20
36
|
.lmweb-icon_m_export:before {
|
|
21
|
-
content: "\
|
|
37
|
+
content: "\e6c5";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.lmweb-icon_set_light:before {
|
|
41
|
+
content: "\e6bf";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.lmweb-icon_set:before {
|
|
45
|
+
content: "\e6c0";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.lmweb-icon_operate1:before {
|
|
49
|
+
content: "\e6bb";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.lmweb-icon_industry_light:before {
|
|
53
|
+
content: "\e6bd";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.lmweb-icon_industry_dark:before {
|
|
57
|
+
content: "\e6be";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.lmweb-icon_my1:before {
|
|
61
|
+
content: "\e6bc";
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.lmweb-icon_operate:before {
|
|
65
|
+
content: "\e6ba";
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.lmweb-icon_deliver:before {
|
|
69
|
+
content: "\e6b4";
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.lmweb-icon_my:before {
|
|
73
|
+
content: "\e6b5";
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.lmweb-icon_industry:before {
|
|
77
|
+
content: "\e6b6";
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.lmweb-icon_support:before {
|
|
81
|
+
content: "\e6b7";
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.lmweb-iocn_technology:before {
|
|
85
|
+
content: "\e6b8";
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.lmweb-icon_research:before {
|
|
89
|
+
content: "\e6b9";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.lmweb-icon_fan:before {
|
|
93
|
+
content: "\e6b3";
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.lmweb-icon_china:before {
|
|
97
|
+
content: "\e6b1";
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.lmweb-icon_English:before {
|
|
101
|
+
content: "\e6b2";
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.lmweb-icon_deliver_light:before {
|
|
105
|
+
content: "\e6ac";
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.lmweb-icon_my_light:before {
|
|
109
|
+
content: "\e6ad";
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.lmweb-icon_support_light:before {
|
|
113
|
+
content: "\e6ae";
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.lmweb-icon_research_light:before {
|
|
117
|
+
content: "\e6af";
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.lmweb-iocn_technology_light:before {
|
|
121
|
+
content: "\e6b0";
|
|
22
122
|
}
|
|
23
123
|
|
|
24
124
|
.lmweb-icon_s_down:before {
|