linkmore-design 1.0.34 → 1.0.37
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/CardTable/utils.d.ts +1 -1
- package/dist/Cascader/demos/basic.d.ts +2 -0
- package/dist/Cascader/index.d.ts +4 -0
- package/dist/Cascader/style/index.d.ts +1 -0
- package/dist/Form/demos/basic.d.ts +2 -0
- package/dist/Form/demos/drawer1152-triple.d.ts +3 -0
- package/dist/Form/demos/drawer440-double.d.ts +3 -0
- package/dist/Form/demos/drawer440.d.ts +3 -0
- package/dist/Form/demos/drawer720-double.d.ts +3 -0
- package/dist/Form/demos/modal416.d.ts +3 -0
- package/dist/Form/demos/modal552-double.d.ts +3 -0
- package/dist/Form/index.d.ts +24 -0
- package/dist/Form/style/index.d.ts +1 -0
- package/dist/IconFont/font/iconfont.d.ts +0 -0
- package/dist/IconFont/index.d.ts +1 -1
- package/dist/Input/demos/after.d.ts +1 -1
- package/dist/Input/demos/base.d.ts +1 -1
- package/dist/Input/demos/basic.d.ts +1 -1
- package/dist/Input/demos/color.d.ts +1 -1
- package/dist/Input/demos/combination.d.ts +1 -1
- package/dist/Input/demos/import.d.ts +1 -1
- package/dist/Input/demos/line.d.ts +1 -1
- package/dist/Input/demos/password.d.ts +1 -1
- package/dist/Input/demos/size.d.ts +1 -1
- package/dist/Input/index.d.ts +10 -2
- package/dist/LmSelect/GhostSelect.d.ts +2 -0
- package/dist/LmSelect/NormalSelect.d.ts +11 -0
- package/dist/LmSelect/demos/basic.d.ts +2 -0
- package/dist/LmSelect/demos/checkbox.d.ts +2 -0
- package/dist/LmSelect/demos/ghost.d.ts +2 -0
- package/dist/LmSelect/index.d.ts +14 -0
- package/dist/LmSelect/style/index.d.ts +1 -0
- package/dist/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/dist/LmSelect/utils.d.ts +10 -0
- package/dist/LmTable/demos/getData.d.ts +2 -0
- 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/VirtualList/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useEvent/index.d.ts +2 -0
- package/dist/hooks/useFullscreen/demos/basic.d.ts +2 -0
- package/dist/hooks/useFullscreen/index.d.ts +15 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.umd.js +1385 -278
- package/dist/index.umd.min.js +7 -7
- package/es/Cascader/index.d.ts +4 -0
- package/es/Cascader/index.js +37 -0
- package/es/Cascader/style/index.css +520 -0
- package/es/Cascader/style/index.d.ts +1 -0
- package/es/Cascader/style/index.js +1 -0
- package/es/CustomTableOption/columnsSort.js +42 -11
- package/es/CustomTableOption/filterSort.js +34 -4
- package/es/CustomTableOption/index.js +25 -8
- package/es/CustomTableOption/style/index.css +29 -0
- package/es/Dropdown/index.js +11 -1
- package/es/Dropdown/style/index.css +6 -0
- package/es/EditTable/EditTable.js +27 -4
- package/es/Form/index.d.ts +24 -0
- package/es/Form/index.js +56 -0
- package/es/Form/style/index.css +531 -0
- package/es/Form/style/index.d.ts +1 -0
- package/es/Form/style/index.js +1 -0
- 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/Input/index.d.ts +11 -0
- package/es/Input/index.js +31 -37
- package/es/LmSelect/GhostSelect.d.ts +2 -0
- package/es/LmSelect/GhostSelect.js +523 -0
- package/es/LmSelect/NormalSelect.d.ts +11 -0
- package/es/LmSelect/NormalSelect.js +97 -0
- package/es/LmSelect/icon_placeholder.png +0 -0
- package/es/LmSelect/index.d.ts +14 -0
- package/es/LmSelect/index.js +34 -0
- package/es/LmSelect/style/index.css +751 -0
- package/es/LmSelect/style/index.d.ts +1 -0
- package/es/LmSelect/style/index.js +1 -0
- package/es/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/es/LmSelect/useCheckboxOptions.js +120 -0
- package/es/LmSelect/utils.d.ts +10 -0
- package/es/LmSelect/utils.js +66 -0
- package/es/LmTable/Table.js +29 -26
- package/es/Radio/index.js +3 -2
- package/es/Radio/style/style.css +4 -0
- 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/VirtualList/index.js +2 -1
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.js +2 -0
- package/es/hooks/useEvent/index.d.ts +2 -0
- package/es/hooks/useEvent/index.js +16 -0
- package/es/hooks/useFullscreen/index.d.ts +15 -0
- package/es/hooks/useFullscreen/index.js +99 -0
- package/es/index.d.ts +5 -1
- package/es/index.js +5 -1
- package/lib/Cascader/index.d.ts +4 -0
- package/lib/Cascader/index.js +50 -0
- package/lib/Cascader/style/index.css +520 -0
- package/lib/Cascader/style/index.d.ts +1 -0
- package/lib/Cascader/style/index.js +3 -0
- package/lib/CustomTableOption/columnsSort.js +42 -10
- package/lib/CustomTableOption/filterSort.js +33 -3
- package/lib/CustomTableOption/index.js +24 -7
- package/lib/CustomTableOption/style/index.css +29 -0
- package/lib/Dropdown/index.js +12 -1
- package/lib/Dropdown/style/index.css +6 -0
- package/lib/EditTable/EditTable.js +27 -4
- package/lib/Form/index.d.ts +24 -0
- package/lib/Form/index.js +75 -0
- package/lib/Form/style/index.css +531 -0
- package/lib/Form/style/index.d.ts +1 -0
- package/lib/Form/style/index.js +3 -0
- 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/Input/index.d.ts +11 -0
- package/lib/Input/index.js +24 -15
- package/lib/LmSelect/GhostSelect.d.ts +2 -0
- package/lib/LmSelect/GhostSelect.js +545 -0
- package/lib/LmSelect/NormalSelect.d.ts +11 -0
- package/lib/LmSelect/NormalSelect.js +116 -0
- package/lib/LmSelect/icon_placeholder.png +0 -0
- package/lib/LmSelect/index.d.ts +14 -0
- package/lib/LmSelect/index.js +50 -0
- package/lib/LmSelect/style/index.css +751 -0
- package/lib/LmSelect/style/index.d.ts +1 -0
- package/lib/LmSelect/style/index.js +3 -0
- package/lib/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/lib/LmSelect/useCheckboxOptions.js +139 -0
- package/lib/LmSelect/utils.d.ts +10 -0
- package/lib/LmSelect/utils.js +103 -0
- package/lib/LmTable/Table.js +29 -26
- package/lib/Radio/index.js +3 -2
- package/lib/Radio/style/style.css +4 -0
- 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/VirtualList/index.js +2 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +23 -0
- package/lib/hooks/useEvent/index.d.ts +2 -0
- package/lib/hooks/useEvent/index.js +25 -0
- package/lib/hooks/useFullscreen/index.d.ts +15 -0
- package/lib/hooks/useFullscreen/index.js +113 -0
- package/lib/index.d.ts +5 -1
- package/lib/index.js +33 -1
- package/package.json +5 -4
- package/typings/index.d.ts +1 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
|
|
14
|
+
var _index = require("../../index");
|
|
15
|
+
|
|
16
|
+
var isBrowser = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
17
|
+
|
|
18
|
+
var isFunction = function isFunction(value) {
|
|
19
|
+
return typeof value === 'function';
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var getTargetElement = function getTargetElement(target, defaultElement) {
|
|
23
|
+
if (!isBrowser) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (!target) {
|
|
28
|
+
return defaultElement;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
var targetElement;
|
|
32
|
+
|
|
33
|
+
if (isFunction(target)) {
|
|
34
|
+
targetElement = target();
|
|
35
|
+
} else if ('current' in target) {
|
|
36
|
+
targetElement = target.current;
|
|
37
|
+
} else {
|
|
38
|
+
targetElement = target;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return targetElement;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
var fullScreenCssText = 'position: fixed;width: 100%;height:100%;top:0;left:0;z-index:1009;background-color: #abcdef;';
|
|
45
|
+
|
|
46
|
+
var useFullscreen = function useFullscreen(target, options) {
|
|
47
|
+
var _ref = options || {},
|
|
48
|
+
onExit = _ref.onExit,
|
|
49
|
+
onEnter = _ref.onEnter;
|
|
50
|
+
|
|
51
|
+
var _useState = (0, _react.useState)(false),
|
|
52
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
53
|
+
isFullscreen = _useState2[0],
|
|
54
|
+
setIsFullscreen = _useState2[1];
|
|
55
|
+
|
|
56
|
+
var originCssTextRef = (0, _react.useRef)('');
|
|
57
|
+
var eleRef = (0, _react.useRef)(null);
|
|
58
|
+
|
|
59
|
+
var enterFullscreen = function enterFullscreen() {
|
|
60
|
+
onEnter === null || onEnter === void 0 ? void 0 : onEnter();
|
|
61
|
+
setIsFullscreen(true);
|
|
62
|
+
var el = getTargetElement(target);
|
|
63
|
+
|
|
64
|
+
if (!eleRef.current) {
|
|
65
|
+
eleRef.current = el;
|
|
66
|
+
var originCssText = el.style.cssText;
|
|
67
|
+
originCssTextRef.current = originCssText;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
eleRef.current.style.cssText = "".concat(originCssTextRef.current).concat(fullScreenCssText);
|
|
71
|
+
|
|
72
|
+
_index.message.info({
|
|
73
|
+
content: '使用 Esc 键可退出全屏模式',
|
|
74
|
+
key: 'tip'
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
var exitFullscreen = function exitFullscreen() {
|
|
79
|
+
onExit === null || onExit === void 0 ? void 0 : onExit();
|
|
80
|
+
setIsFullscreen(false);
|
|
81
|
+
eleRef.current.style.cssText = "".concat(originCssTextRef.current);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
var toggleFullscreen = function toggleFullscreen() {
|
|
85
|
+
if (isFullscreen) {
|
|
86
|
+
exitFullscreen();
|
|
87
|
+
} else {
|
|
88
|
+
enterFullscreen();
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
(0, _react.useEffect)(function () {
|
|
93
|
+
var fn = function fn(event) {
|
|
94
|
+
if (event.keyCode === 27) {
|
|
95
|
+
exitFullscreen();
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
window.addEventListener('keydown', fn);
|
|
100
|
+
return function () {
|
|
101
|
+
window.removeEventListener('keydown', fn);
|
|
102
|
+
};
|
|
103
|
+
}, []);
|
|
104
|
+
return {
|
|
105
|
+
isFullscreen: isFullscreen,
|
|
106
|
+
enterFullscreen: enterFullscreen,
|
|
107
|
+
exitFullscreen: exitFullscreen,
|
|
108
|
+
toggleFullscreen: toggleFullscreen
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
var _default = useFullscreen;
|
|
113
|
+
exports.default = _default;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as Button } from './Button';
|
|
2
2
|
export { default as ButtonTags } from './ButtonTags';
|
|
3
3
|
export { default as Card } from './Card';
|
|
4
|
+
export { default as Cascader } from './Cascader';
|
|
4
5
|
export { default as Checkbox } from './Checkbox';
|
|
5
6
|
export { default as CkFilter } from './CkFilter';
|
|
6
7
|
export { default as CustomerService } from './CustomerService';
|
|
@@ -17,6 +18,7 @@ export { default as Input } from './Input';
|
|
|
17
18
|
export { default as InputNumber } from './InputNumber';
|
|
18
19
|
export { default as LeftTable } from './LeftTable';
|
|
19
20
|
export { default as LmTable } from './LmTable';
|
|
21
|
+
export { default as LmSelect } from './LmSelect';
|
|
20
22
|
export { default as LoadingPage } from './LoadingPage';
|
|
21
23
|
export { default as Menu } from './Menu';
|
|
22
24
|
export { default as Modal } from './Modal';
|
|
@@ -40,4 +42,6 @@ export { default as Switch } from './Switch';
|
|
|
40
42
|
export { default as Image } from './Image';
|
|
41
43
|
export { default as CustomTableOption } from './CustomTableOption';
|
|
42
44
|
export { default as Upload } from './Upload';
|
|
43
|
-
export type { UploadProps } from './Upload';
|
|
45
|
+
export type { UploadProps, UploadFile, RcFile } from './Upload';
|
|
46
|
+
export { default as Tooltip } from './Tooltip';
|
|
47
|
+
export { default as Form } from './Form';
|
package/lib/index.js
CHANGED
|
@@ -23,6 +23,12 @@ Object.defineProperty(exports, "Card", {
|
|
|
23
23
|
return _Card.default;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
+
Object.defineProperty(exports, "Cascader", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _Cascader.default;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
26
32
|
Object.defineProperty(exports, "Checkbox", {
|
|
27
33
|
enumerable: true,
|
|
28
34
|
get: function get() {
|
|
@@ -83,6 +89,12 @@ Object.defineProperty(exports, "Filter", {
|
|
|
83
89
|
return _Filter.default;
|
|
84
90
|
}
|
|
85
91
|
});
|
|
92
|
+
Object.defineProperty(exports, "Form", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function get() {
|
|
95
|
+
return _Form.default;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
86
98
|
Object.defineProperty(exports, "Icon", {
|
|
87
99
|
enumerable: true,
|
|
88
100
|
get: function get() {
|
|
@@ -125,6 +137,12 @@ Object.defineProperty(exports, "LeftTable", {
|
|
|
125
137
|
return _LeftTable.default;
|
|
126
138
|
}
|
|
127
139
|
});
|
|
140
|
+
Object.defineProperty(exports, "LmSelect", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function get() {
|
|
143
|
+
return _LmSelect.default;
|
|
144
|
+
}
|
|
145
|
+
});
|
|
128
146
|
Object.defineProperty(exports, "LmTable", {
|
|
129
147
|
enumerable: true,
|
|
130
148
|
get: function get() {
|
|
@@ -221,6 +239,12 @@ Object.defineProperty(exports, "Tag", {
|
|
|
221
239
|
return _Tag.default;
|
|
222
240
|
}
|
|
223
241
|
});
|
|
242
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
243
|
+
enumerable: true,
|
|
244
|
+
get: function get() {
|
|
245
|
+
return _Tooltip.default;
|
|
246
|
+
}
|
|
247
|
+
});
|
|
224
248
|
Object.defineProperty(exports, "Tree", {
|
|
225
249
|
enumerable: true,
|
|
226
250
|
get: function get() {
|
|
@@ -264,6 +288,8 @@ var _ButtonTags = _interopRequireDefault(require("./ButtonTags"));
|
|
|
264
288
|
|
|
265
289
|
var _Card = _interopRequireDefault(require("./Card"));
|
|
266
290
|
|
|
291
|
+
var _Cascader = _interopRequireDefault(require("./Cascader"));
|
|
292
|
+
|
|
267
293
|
var _Checkbox = _interopRequireDefault(require("./Checkbox"));
|
|
268
294
|
|
|
269
295
|
var _CkFilter = _interopRequireDefault(require("./CkFilter"));
|
|
@@ -296,6 +322,8 @@ var _LeftTable = _interopRequireDefault(require("./LeftTable"));
|
|
|
296
322
|
|
|
297
323
|
var _LmTable = _interopRequireDefault(require("./LmTable"));
|
|
298
324
|
|
|
325
|
+
var _LmSelect = _interopRequireDefault(require("./LmSelect"));
|
|
326
|
+
|
|
299
327
|
var _LoadingPage = _interopRequireDefault(require("./LoadingPage"));
|
|
300
328
|
|
|
301
329
|
var _Menu = _interopRequireDefault(require("./Menu"));
|
|
@@ -340,4 +368,8 @@ var _Image = _interopRequireDefault(require("./Image"));
|
|
|
340
368
|
|
|
341
369
|
var _CustomTableOption = _interopRequireDefault(require("./CustomTableOption"));
|
|
342
370
|
|
|
343
|
-
var _Upload = _interopRequireDefault(require("./Upload"));
|
|
371
|
+
var _Upload = _interopRequireDefault(require("./Upload"));
|
|
372
|
+
|
|
373
|
+
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
374
|
+
|
|
375
|
+
var _Form = _interopRequireDefault(require("./Form"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linkmore-design",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.37",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "nowthen",
|
|
6
6
|
"email": "rnlvwyx@gmail.com"
|
|
@@ -52,12 +52,13 @@
|
|
|
52
52
|
"@ant-design/icons": "^4.3.0",
|
|
53
53
|
"@ant-design/pro-table": "^2.77.0",
|
|
54
54
|
"@babel/runtime": "^7.17.9",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^5.28.0",
|
|
56
|
-
"@typescript-eslint/parser": "^5.28.0",
|
|
57
|
-
"antd": "^4.20.7",
|
|
58
55
|
"@dnd-kit/core": "^5.0.3",
|
|
59
56
|
"@dnd-kit/modifiers": "^5.0.0",
|
|
60
57
|
"@dnd-kit/sortable": "^6.0.1",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^5.28.0",
|
|
59
|
+
"@typescript-eslint/parser": "^5.28.0",
|
|
60
|
+
"ahooks": "^3.6.2",
|
|
61
|
+
"antd": "^4.20.7",
|
|
61
62
|
"axios": "^0.21.0",
|
|
62
63
|
"classnames": "^2.3.1",
|
|
63
64
|
"dayjs": "^1.9.7",
|
package/typings/index.d.ts
CHANGED