linkmore-design 1.0.56 → 1.0.59
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/Button/index.d.ts +4 -0
- package/dist/CardTable/LmCardTable.d.ts +1 -0
- package/dist/CustomTableOption/cardSort.d.ts +4 -0
- package/dist/CustomTableOption/index.d.ts +1 -0
- package/dist/DatePicker/PickerButton.d.ts +2 -0
- package/dist/DatePicker/PickerTag.d.ts +2 -0
- package/dist/DatePicker/demos/basic.d.ts +2 -0
- package/dist/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
- package/dist/DatePicker/generatePicker/generateSinglePicker.d.ts +14 -0
- package/dist/DatePicker/generatePicker/index.d.ts +106 -0
- package/dist/DatePicker/generatePicker/interface.d.ts +12 -0
- package/dist/DatePicker/index.d.ts +17 -0
- package/dist/DatePicker/style/index.d.ts +1 -0
- package/dist/DatePicker/util.d.ts +14 -0
- package/dist/Empty/demos/custom.d.ts +2 -0
- package/dist/Empty/empty.d.ts +2 -0
- package/dist/Empty/index.d.ts +18 -3
- package/dist/Empty/simple.d.ts +2 -0
- package/dist/Form/container.d.ts +8 -0
- package/dist/Form/demos/responsive.d.ts +2 -0
- package/dist/Form/index.d.ts +3 -0
- package/dist/LmEditTable/demos/basic copy.d.ts +2 -0
- package/dist/LmFilter/customFilter/index.d.ts +3 -1
- package/dist/LmFilter/filterFns/index.d.ts +4 -1
- package/dist/LmFilter/utils.d.ts +1 -1
- package/dist/_util/motion.d.ts +8 -0
- package/dist/_util/statusUtils.d.ts +6 -0
- package/dist/_util/type.d.ts +9 -0
- package/dist/_util/warning.d.ts +6 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.umd.js +10675 -271
- package/dist/index.umd.min.js +6 -6
- package/es/Button/index.d.ts +4 -0
- package/es/Button/index.js +1 -1
- package/es/CardTable/LmCardTable.js +4 -1
- package/es/CardTable/card/PictureTextRow.js +8 -3
- package/es/CardTable/style/index.css +8 -1
- package/es/CustomTableOption/cardSort.d.ts +4 -0
- package/es/CustomTableOption/cardSort.js +219 -0
- package/es/CustomTableOption/columnsSort.js +2 -4
- package/es/CustomTableOption/filterSort.js +0 -3
- package/es/CustomTableOption/index.d.ts +1 -0
- package/es/CustomTableOption/index.js +37 -13
- package/es/CustomTableOption/style/index.css +3 -0
- package/es/DatePicker/PickerButton.d.ts +2 -0
- package/es/DatePicker/PickerButton.js +8 -0
- package/es/DatePicker/PickerTag.d.ts +2 -0
- package/es/DatePicker/PickerTag.js +7 -0
- package/es/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
- package/es/DatePicker/generatePicker/generateRangePicker.js +142 -0
- package/es/DatePicker/generatePicker/generateSinglePicker.d.ts +14 -0
- package/es/DatePicker/generatePicker/generateSinglePicker.js +170 -0
- package/es/DatePicker/generatePicker/index.d.ts +106 -0
- package/es/DatePicker/generatePicker/index.js +84 -0
- package/es/DatePicker/generatePicker/interface.d.ts +12 -0
- package/es/DatePicker/generatePicker/interface.js +1 -0
- package/es/DatePicker/index.d.ts +17 -0
- package/es/DatePicker/index.js +7 -0
- package/es/DatePicker/style/index.css +505 -0
- package/es/DatePicker/style/index.d.ts +1 -0
- package/es/DatePicker/style/index.js +1 -0
- package/es/DatePicker/util.d.ts +14 -0
- package/es/DatePicker/util.js +111 -0
- package/es/Empty/empty.d.ts +2 -0
- package/es/Empty/empty.js +55 -0
- package/es/Empty/index.d.ts +18 -3
- package/es/Empty/index.js +100 -1
- package/es/Empty/simple.d.ts +2 -0
- package/es/Empty/simple.js +36 -0
- package/es/Empty/style/index.css +44 -0
- package/es/Form/container.d.ts +8 -0
- package/es/Form/container.js +97 -0
- package/es/Form/index.d.ts +3 -0
- package/es/Form/index.js +13 -1
- package/es/Form/style/index.css +35 -0
- package/es/IconFont/index.js +1 -1
- package/es/LmEditTable/DragHandle.js +1 -1
- package/es/LmEditTable/EditTable.js +27 -35
- package/es/LmFilter/Controls/index.js +32 -2
- package/es/LmFilter/baseFilter/index.js +2 -1
- package/es/LmFilter/complexFilter/drawer.js +33 -32
- package/es/LmFilter/components/CascaderFilter.js +35 -35
- package/es/LmFilter/components/CheckboxFilter.js +13 -21
- package/es/LmFilter/components/DateFilter.js +53 -29
- package/es/LmFilter/components/DropdownFIlter.js +51 -22
- package/es/LmFilter/components/SelectFilter.js +2 -3
- package/es/LmFilter/components/index.js +5 -61
- package/es/LmFilter/customFilter/index.js +3 -2
- package/es/LmFilter/filterFns/index.js +65 -25
- package/es/LmFilter/style/style.css +2 -1
- package/es/LmFilter/utils.js +63 -14
- package/es/LmFilter/wrapper/Filter.js +6 -3
- package/es/LmFilter/wrapper/FilterRoot.js +29 -22
- package/es/LmTable/Table.js +15 -8
- package/es/QuickMenu/index.js +5 -3
- package/es/_util/motion.d.ts +8 -0
- package/es/_util/motion.js +60 -0
- package/es/_util/statusUtils.d.ts +6 -0
- package/es/_util/statusUtils.js +12 -0
- package/es/_util/type.d.ts +9 -0
- package/es/_util/type.js +15 -0
- package/es/_util/warning.d.ts +6 -0
- package/es/_util/warning.js +17 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +2 -1
- package/es/message/index.d.ts +5 -5
- package/lib/Button/index.d.ts +4 -0
- package/lib/Button/index.js +1 -1
- package/lib/CardTable/LmCardTable.js +4 -1
- package/lib/CardTable/card/PictureTextRow.js +8 -3
- package/lib/CardTable/style/index.css +8 -1
- package/lib/CustomTableOption/cardSort.d.ts +4 -0
- package/lib/CustomTableOption/cardSort.js +239 -0
- package/lib/CustomTableOption/columnsSort.js +2 -4
- package/lib/CustomTableOption/filterSort.js +0 -3
- package/lib/CustomTableOption/index.d.ts +1 -0
- package/lib/CustomTableOption/index.js +38 -13
- package/lib/CustomTableOption/style/index.css +3 -0
- package/lib/DatePicker/PickerButton.d.ts +2 -0
- package/lib/DatePicker/PickerButton.js +19 -0
- package/lib/DatePicker/PickerTag.d.ts +2 -0
- package/lib/DatePicker/PickerTag.js +18 -0
- package/lib/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
- package/lib/DatePicker/generatePicker/generateRangePicker.js +168 -0
- package/lib/DatePicker/generatePicker/generateSinglePicker.d.ts +14 -0
- package/lib/DatePicker/generatePicker/generateSinglePicker.js +196 -0
- package/lib/DatePicker/generatePicker/index.d.ts +106 -0
- package/lib/DatePicker/generatePicker/index.js +102 -0
- package/lib/DatePicker/generatePicker/interface.d.ts +12 -0
- package/lib/DatePicker/generatePicker/interface.js +5 -0
- package/lib/DatePicker/index.d.ts +17 -0
- package/lib/DatePicker/index.js +21 -0
- package/lib/DatePicker/style/index.css +505 -0
- package/lib/DatePicker/style/index.d.ts +1 -0
- package/lib/DatePicker/style/index.js +3 -0
- package/lib/DatePicker/util.d.ts +14 -0
- package/lib/DatePicker/util.js +122 -0
- package/lib/Empty/empty.d.ts +2 -0
- package/lib/Empty/empty.js +66 -0
- package/lib/Empty/index.d.ts +18 -3
- package/lib/Empty/index.js +107 -1
- package/lib/Empty/simple.d.ts +2 -0
- package/lib/Empty/simple.js +47 -0
- package/lib/Empty/style/index.css +44 -0
- package/lib/Form/container.d.ts +8 -0
- package/lib/Form/container.js +112 -0
- package/lib/Form/index.d.ts +3 -0
- package/lib/Form/index.js +14 -1
- package/lib/Form/style/index.css +35 -0
- package/lib/IconFont/index.js +1 -1
- package/lib/LmEditTable/DragHandle.js +1 -1
- package/lib/LmEditTable/EditTable.js +26 -36
- package/lib/LmFilter/Controls/index.js +32 -2
- package/lib/LmFilter/baseFilter/index.js +2 -1
- package/lib/LmFilter/complexFilter/drawer.js +33 -32
- package/lib/LmFilter/components/CascaderFilter.js +35 -35
- package/lib/LmFilter/components/CheckboxFilter.js +13 -21
- package/lib/LmFilter/components/DateFilter.js +53 -29
- package/lib/LmFilter/components/DropdownFIlter.js +51 -22
- package/lib/LmFilter/components/SelectFilter.js +2 -3
- package/lib/LmFilter/components/index.js +5 -61
- package/lib/LmFilter/customFilter/index.js +3 -2
- package/lib/LmFilter/filterFns/index.js +65 -25
- package/lib/LmFilter/style/style.css +2 -1
- package/lib/LmFilter/utils.js +63 -14
- package/lib/LmFilter/wrapper/Filter.js +6 -3
- package/lib/LmFilter/wrapper/FilterRoot.js +29 -22
- package/lib/LmTable/Table.js +15 -8
- package/lib/QuickMenu/index.js +4 -2
- package/lib/_util/motion.d.ts +8 -0
- package/lib/_util/motion.js +71 -0
- package/lib/_util/statusUtils.d.ts +6 -0
- package/lib/_util/statusUtils.js +29 -0
- package/lib/_util/type.d.ts +9 -0
- package/lib/_util/type.js +27 -0
- package/lib/_util/warning.d.ts +6 -0
- package/lib/_util/warning.js +35 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +9 -1
- package/lib/message/index.d.ts +5 -5
- package/package.json +1 -1
|
@@ -21,6 +21,8 @@ var _FilterWrapper = _interopRequireDefault(require("./FilterWrapper"));
|
|
|
21
21
|
|
|
22
22
|
var _filterFns = _interopRequireDefault(require("../filterFns"));
|
|
23
23
|
|
|
24
|
+
var _utils = require("../utils");
|
|
25
|
+
|
|
24
26
|
// 根文件 => 参数聚合
|
|
25
27
|
var reducer = function reducer(state, action) {
|
|
26
28
|
var basicFilter = action.basicFilter,
|
|
@@ -66,38 +68,43 @@ var reducer = function reducer(state, action) {
|
|
|
66
68
|
case 'reset':
|
|
67
69
|
// 一键清空
|
|
68
70
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
69
|
-
basicFilter: {}
|
|
71
|
+
basicFilter: {},
|
|
72
|
+
complexFilter: {}
|
|
70
73
|
});
|
|
71
74
|
|
|
72
75
|
default:
|
|
73
76
|
throw new Error();
|
|
74
77
|
}
|
|
75
|
-
}; //
|
|
76
|
-
// const findItem = arr.find(item => {
|
|
77
|
-
// return item.field === fieldName;
|
|
78
|
-
// })
|
|
79
|
-
// switch (findItem.type) {
|
|
80
|
-
// case 'input':
|
|
81
|
-
// return value;
|
|
82
|
-
// case 'select':
|
|
83
|
-
// return findItem.data.find(v => v.value === value);
|
|
84
|
-
// case 'checkbox':
|
|
85
|
-
// return findItem.data.find(v => [value].includes(v.value));
|
|
86
|
-
// default:
|
|
87
|
-
// break;
|
|
88
|
-
// }
|
|
89
|
-
// };
|
|
90
|
-
// 仅在初始化时触发一次
|
|
78
|
+
}; // 仅在初始化时触发一次
|
|
91
79
|
|
|
92
80
|
|
|
93
81
|
var getInitialState = function getInitialState(_ref) {
|
|
94
|
-
var localization = _ref.localization
|
|
82
|
+
var localization = _ref.localization,
|
|
83
|
+
dataSource = _ref.dataSource;
|
|
95
84
|
var globalQuery = localization.globalQuery,
|
|
96
85
|
filterQuery = localization.filterQuery;
|
|
97
|
-
var basicFilter = {};
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
86
|
+
var basicFilter = {}; // 初始化基础查询缓存
|
|
87
|
+
|
|
88
|
+
if (filterQuery === null || filterQuery === void 0 ? void 0 : filterQuery.filter) {
|
|
89
|
+
basicFilter = filterQuery === null || filterQuery === void 0 ? void 0 : filterQuery.filter.reduce(function (pre, cur) {
|
|
90
|
+
// 查找改数据是否展示
|
|
91
|
+
var someData = dataSource.some(function (v) {
|
|
92
|
+
if (cur.fieldName === v.field) {
|
|
93
|
+
var isHidden = !v.show && typeof v.show === 'boolean';
|
|
94
|
+
return !isHidden;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return false;
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
if ((0, _utils.getIsHas)(cur.value) && someData) {
|
|
101
|
+
pre[cur.fieldName] = cur.value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return pre;
|
|
105
|
+
}, {});
|
|
106
|
+
}
|
|
107
|
+
|
|
101
108
|
return {
|
|
102
109
|
basicFilter: basicFilter,
|
|
103
110
|
complexFilter: {},
|
package/es/LmTable/Table.js
CHANGED
|
@@ -23,14 +23,14 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm
|
|
|
23
23
|
|
|
24
24
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
25
25
|
|
|
26
|
-
var _icons = require("@ant-design/icons");
|
|
27
|
-
|
|
28
26
|
var _proTable = _interopRequireDefault(require("@ant-design/pro-table"));
|
|
29
27
|
|
|
30
28
|
var _sortable = require("@dnd-kit/sortable");
|
|
31
29
|
|
|
32
30
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
33
31
|
|
|
32
|
+
var _linkmoreDesign = require("linkmore-design");
|
|
33
|
+
|
|
34
34
|
var _lodash = require("lodash");
|
|
35
35
|
|
|
36
36
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -43,23 +43,26 @@ var _empty = _interopRequireDefault(require("./assets/empty.png"));
|
|
|
43
43
|
|
|
44
44
|
var _resetConfig = _interopRequireDefault(require("./resetConfig"));
|
|
45
45
|
|
|
46
|
-
var _excluded = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size"],
|
|
46
|
+
var _excluded = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "emptyProps"],
|
|
47
47
|
_excluded2 = ["className", "style"],
|
|
48
48
|
_excluded3 = ["onResize", "width", "onResizeStop"];
|
|
49
|
-
var Summary = _proTable.default.Summary;
|
|
49
|
+
var Summary = _proTable.default.Summary; // const DragHandle = SortableHandle(() => <MenuOutlined style={{ cursor: 'grab', color: '#999' }} />);
|
|
50
|
+
|
|
50
51
|
exports.Summary = Summary;
|
|
51
52
|
var DragHandle = (0, _reactSortableHoc.SortableHandle)(function () {
|
|
52
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
54
|
+
type: "lmweb-icon-m-receipt1",
|
|
53
55
|
style: {
|
|
54
56
|
cursor: 'grab',
|
|
55
|
-
|
|
57
|
+
fontSize: '16px'
|
|
56
58
|
}
|
|
57
59
|
});
|
|
58
60
|
});
|
|
59
61
|
var sortDefaultColumnItem = {
|
|
60
62
|
title: '排序',
|
|
61
63
|
dataIndex: 'sort',
|
|
62
|
-
width:
|
|
64
|
+
width: 48,
|
|
65
|
+
maxWidth: 48,
|
|
63
66
|
className: 'drag-visible',
|
|
64
67
|
render: function render() {
|
|
65
68
|
return /*#__PURE__*/_react.default.createElement(DragHandle, null);
|
|
@@ -92,7 +95,9 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
92
95
|
tableRowType = _props$tableRowType === void 0 ? 'default' : _props$tableRowType,
|
|
93
96
|
_props$size = props.size,
|
|
94
97
|
size = _props$size === void 0 ? 'default' : _props$size,
|
|
98
|
+
emptyProps = props.emptyProps,
|
|
95
99
|
resetProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
100
|
+
console.log(emptyProps, '--emptyProps');
|
|
96
101
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
97
102
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
98
103
|
|
|
@@ -508,7 +513,9 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
508
513
|
width: '100%'
|
|
509
514
|
}
|
|
510
515
|
}, /*#__PURE__*/_react.default.createElement(_configProvider.default, {
|
|
511
|
-
renderEmpty:
|
|
516
|
+
renderEmpty: emptyProps ? function () {
|
|
517
|
+
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Empty, emptyProps, (emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.footer) || null);
|
|
518
|
+
} : customizeRenderEmpty
|
|
512
519
|
}, /*#__PURE__*/_react.default.createElement(_proTable.default, (0, _extends2.default)({}, config, {
|
|
513
520
|
loading: loading,
|
|
514
521
|
dataSource: dataSource,
|
package/es/QuickMenu/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
2
|
import React, { useEffect, useState, useRef } from 'react';
|
|
3
3
|
import { IconFont, Button } from 'linkmore-design';
|
|
4
|
-
import { useScroll } from 'ahooks';
|
|
4
|
+
import { useScroll, useDebounceEffect } from 'ahooks';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { getTargetElement } from '../_util/domTarget';
|
|
7
7
|
var prefixCls = 'lm_quick_menu';
|
|
@@ -86,7 +86,7 @@ var LMQuickMenu = function LMQuickMenu(props) {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
useDebounceEffect(function () {
|
|
90
90
|
if (scroll && !hovering) {
|
|
91
91
|
setHovering(true);
|
|
92
92
|
}
|
|
@@ -98,7 +98,9 @@ var LMQuickMenu = function LMQuickMenu(props) {
|
|
|
98
98
|
scrollTimeOut.current = setTimeout(function () {
|
|
99
99
|
setHovering(false);
|
|
100
100
|
}, 2000);
|
|
101
|
-
}, [scroll]
|
|
101
|
+
}, [scroll], {
|
|
102
|
+
wait: 50
|
|
103
|
+
});
|
|
102
104
|
|
|
103
105
|
var bindDom = function bindDom() {
|
|
104
106
|
if (!Object.keys(idTopInfo.current).length) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CSSMotionProps } from 'rc-motion';
|
|
2
|
+
declare const collapseMotion: CSSMotionProps;
|
|
3
|
+
declare const SelectPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
|
|
4
|
+
export declare type SelectCommonPlacement = typeof SelectPlacements[number];
|
|
5
|
+
declare const getTransitionDirection: (placement: SelectCommonPlacement | undefined) => "slide-down" | "slide-up";
|
|
6
|
+
declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string) => string;
|
|
7
|
+
export { getTransitionName, getTransitionDirection };
|
|
8
|
+
export default collapseMotion;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { tuple } from './type'; // ================== Collapse Motion ==================
|
|
2
|
+
|
|
3
|
+
var getCollapsedHeight = function getCollapsedHeight() {
|
|
4
|
+
return {
|
|
5
|
+
height: 0,
|
|
6
|
+
opacity: 0
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
var getRealHeight = function getRealHeight(node) {
|
|
11
|
+
var scrollHeight = node.scrollHeight;
|
|
12
|
+
return {
|
|
13
|
+
height: scrollHeight,
|
|
14
|
+
opacity: 1
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
var getCurrentHeight = function getCurrentHeight(node) {
|
|
19
|
+
return {
|
|
20
|
+
height: node ? node.offsetHeight : 0
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var skipOpacityTransition = function skipOpacityTransition(_, event) {
|
|
25
|
+
return (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === 'height';
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var collapseMotion = {
|
|
29
|
+
motionName: 'ant-motion-collapse',
|
|
30
|
+
onAppearStart: getCollapsedHeight,
|
|
31
|
+
onEnterStart: getCollapsedHeight,
|
|
32
|
+
onAppearActive: getRealHeight,
|
|
33
|
+
onEnterActive: getRealHeight,
|
|
34
|
+
onLeaveStart: getCurrentHeight,
|
|
35
|
+
onLeaveActive: getCollapsedHeight,
|
|
36
|
+
onAppearEnd: skipOpacityTransition,
|
|
37
|
+
onEnterEnd: skipOpacityTransition,
|
|
38
|
+
onLeaveEnd: skipOpacityTransition,
|
|
39
|
+
motionDeadline: 500
|
|
40
|
+
};
|
|
41
|
+
var SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight');
|
|
42
|
+
|
|
43
|
+
var getTransitionDirection = function getTransitionDirection(placement) {
|
|
44
|
+
if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {
|
|
45
|
+
return "slide-down";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return "slide-up";
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var getTransitionName = function getTransitionName(rootPrefixCls, motion, transitionName) {
|
|
52
|
+
if (transitionName !== undefined) {
|
|
53
|
+
return transitionName;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return "".concat(rootPrefixCls, "-").concat(motion);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { getTransitionName, getTransitionDirection };
|
|
60
|
+
export default collapseMotion;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ValidateStatus } from 'antd/es/form/FormItem';
|
|
2
|
+
declare const InputStatuses: ["warning", "error", ""];
|
|
3
|
+
export declare type InputStatus = typeof InputStatuses[number];
|
|
4
|
+
export declare function getStatusClassNames(prefixCls: string, status?: ValidateStatus, hasFeedback?: boolean): string;
|
|
5
|
+
export declare const getMergedStatus: (contextStatus?: ValidateStatus, customStatus?: InputStatus) => "" | "warning" | "error" | "success" | "validating";
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { tuple } from './type';
|
|
4
|
+
var InputStatuses = tuple('warning', 'error', '');
|
|
5
|
+
export function getStatusClassNames(prefixCls, status, hasFeedback) {
|
|
6
|
+
var _classNames;
|
|
7
|
+
|
|
8
|
+
return classNames((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-status-success"), status === 'success'), _defineProperty(_classNames, "".concat(prefixCls, "-status-warning"), status === 'warning'), _defineProperty(_classNames, "".concat(prefixCls, "-status-error"), status === 'error'), _defineProperty(_classNames, "".concat(prefixCls, "-status-validating"), status === 'validating'), _defineProperty(_classNames, "".concat(prefixCls, "-has-feedback"), hasFeedback), _classNames));
|
|
9
|
+
}
|
|
10
|
+
export var getMergedStatus = function getMergedStatus(contextStatus, customStatus) {
|
|
11
|
+
return customStatus || contextStatus;
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const tuple: <T extends string[]>(...args: T) => T;
|
|
2
|
+
export declare const tupleNum: <T extends number[]>(...args: T) => T;
|
|
3
|
+
/**
|
|
4
|
+
* https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without
|
|
5
|
+
* performing indexing
|
|
6
|
+
*/
|
|
7
|
+
export declare type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
|
|
8
|
+
/** https://github.com/Microsoft/TypeScript/issues/29729 */
|
|
9
|
+
export declare type LiteralUnion<T extends U, U> = T | (U & {});
|
package/es/_util/type.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead
|
|
2
|
+
export var tuple = function tuple() {
|
|
3
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4
|
+
args[_key] = arguments[_key];
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
return args;
|
|
8
|
+
};
|
|
9
|
+
export var tupleNum = function tupleNum() {
|
|
10
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
11
|
+
args[_key2] = arguments[_key2];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return args;
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import rcWarning, { resetWarned } from 'rc-util/lib/warning';
|
|
2
|
+
export { resetWarned };
|
|
3
|
+
export function noop() {} // eslint-disable-next-line import/no-mutable-exports
|
|
4
|
+
|
|
5
|
+
var warning = noop;
|
|
6
|
+
|
|
7
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
8
|
+
warning = function warning(valid, component, message) {
|
|
9
|
+
rcWarning(valid, "[antd: ".concat(component, "] ").concat(message)); // StrictMode will inject console which will not throw warning in React 17.
|
|
10
|
+
|
|
11
|
+
if (process.env.NODE_ENV === 'test') {
|
|
12
|
+
resetWarned();
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default warning;
|
package/es/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export { default as Tree } from './Tree';
|
|
|
35
35
|
export { default as UploadOss } from './UploadOss';
|
|
36
36
|
export { default as VirtualList } from './VirtualList';
|
|
37
37
|
export { default as Tag } from './Tag';
|
|
38
|
+
export type { ILMTagProps } from './Tag';
|
|
38
39
|
export { default as message } from './message';
|
|
39
40
|
export { default as Tabs } from './Tabs';
|
|
40
41
|
export { default as Table } from './Table';
|
|
@@ -49,3 +50,5 @@ export { default as Spin } from './Spin';
|
|
|
49
50
|
export { default as LmEditTable } from './LmEditTable';
|
|
50
51
|
export { default as List } from './List';
|
|
51
52
|
export { default as LMQuickMenu } from './QuickMenu';
|
|
53
|
+
export { default as DatePicker } from './DatePicker';
|
|
54
|
+
export type { DatePickerProps, MonthPickerProps, WeekPickerProps, RangePickerProps } from './DatePicker';
|
package/es/index.js
CHANGED
|
@@ -47,4 +47,5 @@ export { default as Form } from './Form';
|
|
|
47
47
|
export { default as Spin } from './Spin';
|
|
48
48
|
export { default as LmEditTable } from './LmEditTable';
|
|
49
49
|
export { default as List } from './List';
|
|
50
|
-
export { default as LMQuickMenu } from './QuickMenu';
|
|
50
|
+
export { default as LMQuickMenu } from './QuickMenu';
|
|
51
|
+
export { default as DatePicker } from './DatePicker';
|
package/es/message/index.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ export interface MessageType extends PromiseLike<any> {
|
|
|
17
17
|
(): void;
|
|
18
18
|
}
|
|
19
19
|
declare const typeToIcon: {
|
|
20
|
-
info: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "
|
|
21
|
-
success: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "
|
|
22
|
-
error: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "
|
|
23
|
-
warning: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "
|
|
24
|
-
loading: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "
|
|
20
|
+
info: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "type" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "size" | "default" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
success: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "type" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "size" | "default" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
|
|
22
|
+
error: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "type" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "size" | "default" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
|
|
23
|
+
warning: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "type" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "size" | "default" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
|
|
24
|
+
loading: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "type" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "size" | "default" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
|
|
25
25
|
};
|
|
26
26
|
export declare type NoticeType = keyof typeof typeToIcon;
|
|
27
27
|
export declare const typeList: ("loading" | "warning" | "error" | "info" | "success")[];
|
package/lib/Button/index.d.ts
CHANGED
package/lib/Button/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
|
|
18
18
|
var _TableRoot = _interopRequireDefault(require("./table/TableRoot"));
|
|
19
19
|
|
|
20
|
-
var _excluded = ["cellKey", "type", "height", "virtual", "components", "dataSource", "cellConfig", "checkboxConfig"];
|
|
20
|
+
var _excluded = ["cellKey", "type", "height", "virtual", "ellipsis", "components", "dataSource", "cellConfig", "checkboxConfig"];
|
|
21
21
|
|
|
22
22
|
// export type LmCardTableProps<TData extends Record<string, any> = {}> {
|
|
23
23
|
// rows: LM_Row<TData>[];
|
|
@@ -32,6 +32,8 @@ var LmCardTable = function LmCardTable(_ref, ref) {
|
|
|
32
32
|
height = _ref$height === void 0 ? '100%' : _ref$height,
|
|
33
33
|
_ref$virtual = _ref.virtual,
|
|
34
34
|
virtual = _ref$virtual === void 0 ? true : _ref$virtual,
|
|
35
|
+
_ref$ellipsis = _ref.ellipsis,
|
|
36
|
+
ellipsis = _ref$ellipsis === void 0 ? true : _ref$ellipsis,
|
|
35
37
|
_ref$components = _ref.components,
|
|
36
38
|
components = _ref$components === void 0 ? {} : _ref$components,
|
|
37
39
|
_ref$dataSource = _ref.dataSource,
|
|
@@ -47,6 +49,7 @@ var LmCardTable = function LmCardTable(_ref, ref) {
|
|
|
47
49
|
type: type,
|
|
48
50
|
height: height,
|
|
49
51
|
virtual: virtual,
|
|
52
|
+
ellipsis: ellipsis,
|
|
50
53
|
components: components,
|
|
51
54
|
dataSource: dataSource,
|
|
52
55
|
cellConfig: cellConfig,
|