@pisell/materials 1.0.206 → 1.0.207-fix.1
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +20 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +20 -20
- package/es/components/DragSortList/index.d.ts +1 -1
- package/es/components/MultipleContainersSortList/index.d.ts +1 -1
- package/es/components/Pagination/index.d.ts +2 -2
- package/es/components/Pagination/index.js +14 -9
- package/es/components/auto-complete/index.d.ts +5 -1
- package/es/components/calendar/index.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +1 -1
- package/es/components/config-provider/index.d.ts +2 -2
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/div/index.d.ts +1 -1
- package/es/components/div/index.js +2 -6
- package/es/components/drawer/index.d.ts +0 -1
- package/es/components/drawer/index.js +4 -42
- package/es/components/dropdown/index.d.ts +2 -2
- package/es/components/filter/components/QuickFilter/index.d.ts +2 -2
- package/es/components/filter/components/items/index.d.ts +6 -6
- package/es/components/filter/components/items/text/Editor/index.d.ts +1 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +1 -1
- package/es/components/filter/components/items/text/index.d.ts +2 -2
- package/es/components/filter/index.d.ts +2 -2
- package/es/components/form/index.d.ts +1 -1
- package/es/components/page/index.d.ts +2 -2
- package/es/components/page/index.js +1 -14
- package/es/components/qrcode/index.d.ts +2 -2
- package/es/components/radio/index.d.ts +1 -1
- package/es/components/record-view/index.less +0 -2
- package/es/components/select/index.d.ts +5 -2
- package/es/components/select/index.js +2 -60
- package/es/components/skeleton/index.d.ts +1 -1
- package/es/components/slider/index.d.ts +2 -2
- package/es/components/table/Actions/Sort/index.d.ts +12 -0
- package/es/components/table/Actions/Sort/index.js +59 -0
- package/es/components/table/Actions/Sort/index.less +0 -0
- package/es/components/table/Actions/index.d.ts +2 -2
- package/es/components/table/Actions/index.js +1 -1
- package/es/components/table/BasicTable/index.d.ts +2 -2
- package/es/components/table/Header/index.d.ts +2 -2
- package/es/components/table/Summary/index.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +2 -2
- package/es/components/table/Table/fields/date/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/date/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/date/Show/index.js +1 -2
- package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/date/index.d.ts +3 -3
- package/es/components/table/Table/fields/image/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/Show/index.js +1 -2
- package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/index.d.ts +3 -3
- package/es/components/table/Table/fields/index.d.ts +57 -57
- package/es/components/table/Table/fields/link/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/Show/index.js +5 -7
- package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/index.d.ts +3 -3
- package/es/components/table/Table/fields/number/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/Show/index.js +1 -2
- package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/index.d.ts +3 -3
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/pSwitch/Show/index.js +1 -2
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +3 -3
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +3 -3
- package/es/components/table/Table/fields/search/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/Show/index.js +1 -2
- package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/index.d.ts +3 -3
- package/es/components/table/Table/fields/select/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/index.d.ts +3 -3
- package/es/components/table/Table/fields/text/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Edit/index.js +3 -8
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.js +1 -2
- package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/index.d.ts +3 -3
- package/es/components/table/Table/index.js +4 -5
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
- package/es/components/table/Table/tableConfig/summary/index.d.ts +2 -2
- package/es/components/table/TableFilter/SortIcon.d.ts +2 -2
- package/es/components/table/TableFilter/numberFilter.js +4 -5
- package/es/components/table/TableFilter/selectFilter.js +2 -3
- package/es/components/table/TableFilter/stringFilter.js +3 -4
- package/es/components/table/model.d.ts +1 -1
- package/es/components/table/model.js +29 -1
- package/es/components/tabs/index.d.ts +2 -5
- package/es/components/tabs/index.js +8 -51
- package/es/components/time-picker/index.d.ts +1 -1
- package/es/components/upload/index.d.ts +1 -1
- package/es/index.d.ts +1 -5
- package/es/index.js +5 -6
- package/es/utils/hoc.d.ts +4 -4
- package/es/utils/hoc.js +8 -9
- package/es/utils/miniRedux.d.ts +1 -1
- package/lib/components/DragSortList/index.d.ts +1 -1
- package/lib/components/MultipleContainersSortList/index.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +2 -2
- package/lib/components/Pagination/index.js +8 -9
- package/lib/components/auto-complete/index.d.ts +5 -1
- package/lib/components/calendar/index.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +1 -1
- package/lib/components/config-provider/index.d.ts +2 -2
- package/lib/components/date-picker/index.d.ts +1 -1
- package/lib/components/div/index.d.ts +1 -1
- package/lib/components/div/index.js +2 -2
- package/lib/components/drawer/index.d.ts +0 -1
- package/lib/components/drawer/index.js +1 -37
- package/lib/components/dropdown/index.d.ts +2 -2
- package/lib/components/filter/components/QuickFilter/index.d.ts +2 -2
- package/lib/components/filter/components/items/index.d.ts +6 -6
- package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -1
- package/lib/components/filter/components/items/text/index.d.ts +2 -2
- package/lib/components/filter/index.d.ts +2 -2
- package/lib/components/form/index.d.ts +1 -1
- package/lib/components/page/index.d.ts +2 -2
- package/lib/components/page/index.js +1 -13
- package/lib/components/qrcode/index.d.ts +2 -2
- package/lib/components/radio/index.d.ts +1 -1
- package/lib/components/record-view/index.less +0 -2
- package/lib/components/select/index.d.ts +5 -2
- package/lib/components/select/index.js +1 -67
- package/lib/components/skeleton/index.d.ts +1 -1
- package/lib/components/slider/index.d.ts +2 -2
- package/lib/components/table/Actions/Sort/index.d.ts +12 -0
- package/lib/components/table/Actions/Sort/index.js +86 -0
- package/lib/components/table/Actions/Sort/index.less +0 -0
- package/lib/components/table/Actions/index.d.ts +2 -2
- package/lib/components/table/Actions/index.js +2 -2
- package/lib/components/table/BasicTable/index.d.ts +2 -2
- package/lib/components/table/Header/index.d.ts +2 -2
- package/lib/components/table/Summary/index.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +2 -2
- package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/date/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/date/Show/index.js +1 -2
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/date/index.d.ts +3 -3
- package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/Show/index.js +1 -2
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/index.d.ts +3 -3
- package/lib/components/table/Table/fields/index.d.ts +57 -57
- package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/Show/index.js +5 -7
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/index.d.ts +3 -3
- package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/Show/index.js +1 -2
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/index.d.ts +3 -3
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/pSwitch/Show/index.js +1 -2
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +3 -3
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +3 -3
- package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/Show/index.js +1 -2
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/index.d.ts +3 -3
- package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/index.d.ts +3 -3
- package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Edit/index.js +1 -2
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.js +1 -2
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/index.d.ts +3 -3
- package/lib/components/table/Table/index.js +2 -3
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +2 -2
- package/lib/components/table/TableFilter/SortIcon.d.ts +2 -2
- package/lib/components/table/TableFilter/numberFilter.js +4 -5
- package/lib/components/table/TableFilter/selectFilter.js +2 -3
- package/lib/components/table/TableFilter/stringFilter.js +3 -4
- package/lib/components/table/model.d.ts +1 -1
- package/lib/components/table/model.js +34 -1
- package/lib/components/tabs/index.d.ts +2 -5
- package/lib/components/tabs/index.js +1 -50
- package/lib/components/time-picker/index.d.ts +1 -1
- package/lib/components/upload/index.d.ts +1 -1
- package/lib/index.d.ts +1 -5
- package/lib/index.js +2 -14
- package/lib/utils/hoc.d.ts +4 -4
- package/lib/utils/hoc.js +3 -3
- package/lib/utils/miniRedux.d.ts +1 -1
- package/package.json +1 -1
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
- package/es/components/classicLayout/index.d.ts +0 -4
- package/es/components/classicLayout/index.js +0 -25
- package/es/components/classicLayout/index.less +0 -22
- package/es/components/component/index.d.ts +0 -11
- package/es/components/component/index.js +0 -10
- package/es/components/drawer/index.less +0 -34
- package/es/components/list/index.d.ts +0 -7
- package/es/components/list/index.js +0 -104
- package/es/components/list/index.less +0 -38
- package/es/components/select/index.less +0 -11
- package/es/components/sort/components/InlineMenu/index.d.ts +0 -15
- package/es/components/sort/components/InlineMenu/index.js +0 -87
- package/es/components/sort/components/InlineMenu/index.less +0 -20
- package/es/components/sort/index.d.ts +0 -18
- package/es/components/sort/index.js +0 -113
- package/es/components/sort/index.less +0 -10
- package/es/components/table/Table/fields/utils/index.d.ts +0 -1
- package/es/components/table/Table/fields/utils/index.js +0 -29
- package/es/components/tabs/index.less +0 -60
- package/es/locales/en-US.d.ts +0 -21
- package/es/locales/en-US.js +0 -22
- package/es/locales/index.d.ts +0 -1
- package/es/locales/index.js +0 -21
- package/es/locales/zh-CN.d.ts +0 -21
- package/es/locales/zh-CN.js +0 -22
- package/es/locales/zh-TW.d.ts +0 -21
- package/es/locales/zh-TW.js +0 -22
- package/es/utils/locale.d.ts +0 -1
- package/es/utils/locale.js +0 -5
- package/es/utils/platform.d.ts +0 -1
- package/es/utils/platform.js +0 -8
- package/lib/components/classicLayout/index.d.ts +0 -4
- package/lib/components/classicLayout/index.js +0 -59
- package/lib/components/classicLayout/index.less +0 -22
- package/lib/components/component/index.d.ts +0 -11
- package/lib/components/component/index.js +0 -29
- package/lib/components/drawer/index.less +0 -34
- package/lib/components/list/index.d.ts +0 -7
- package/lib/components/list/index.js +0 -134
- package/lib/components/list/index.less +0 -38
- package/lib/components/select/index.less +0 -11
- package/lib/components/sort/components/InlineMenu/index.d.ts +0 -15
- package/lib/components/sort/components/InlineMenu/index.js +0 -89
- package/lib/components/sort/components/InlineMenu/index.less +0 -20
- package/lib/components/sort/index.d.ts +0 -18
- package/lib/components/sort/index.js +0 -147
- package/lib/components/sort/index.less +0 -10
- package/lib/components/table/Table/fields/utils/index.d.ts +0 -1
- package/lib/components/table/Table/fields/utils/index.js +0 -46
- package/lib/components/tabs/index.less +0 -60
- package/lib/locales/en-US.d.ts +0 -21
- package/lib/locales/en-US.js +0 -44
- package/lib/locales/index.d.ts +0 -1
- package/lib/locales/index.js +0 -58
- package/lib/locales/zh-CN.d.ts +0 -21
- package/lib/locales/zh-CN.js +0 -44
- package/lib/locales/zh-TW.d.ts +0 -21
- package/lib/locales/zh-TW.js +0 -44
- package/lib/utils/locale.d.ts +0 -1
- package/lib/utils/locale.js +0 -32
- package/lib/utils/platform.d.ts +0 -1
- package/lib/utils/platform.js +0 -36
|
@@ -6,9 +6,9 @@ declare const _default: {
|
|
|
6
6
|
field_type: string;
|
|
7
7
|
default_value: string;
|
|
8
8
|
};
|
|
9
|
-
config: () =>
|
|
9
|
+
config: () => JSX.Element;
|
|
10
10
|
edit: import("react").ForwardRefExoticComponent<Omit<import("../types").EditPropsType, "ref"> & import("react").RefAttributes<any>>;
|
|
11
|
-
sort: () =>
|
|
12
|
-
show: (props: import("../types").FieldPropsType) =>
|
|
11
|
+
sort: () => JSX.Element;
|
|
12
|
+
show: (props: import("../types").FieldPropsType) => JSX.Element;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
var _excluded = ["value", "onChange", "onPressEnter", "onBlur", "style", "bordered"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
1
|
import { forwardRef } from "react";
|
|
6
2
|
import Input from "../../../../../input";
|
|
7
3
|
var Edit = function Edit(props, ref) {
|
|
@@ -10,9 +6,8 @@ var Edit = function Edit(props, ref) {
|
|
|
10
6
|
onPressEnter = props.onPressEnter,
|
|
11
7
|
onBlur = props.onBlur,
|
|
12
8
|
style = props.style,
|
|
13
|
-
bordered = props.bordered
|
|
14
|
-
|
|
15
|
-
return /*#__PURE__*/React.createElement(Input, _extends({}, others, {
|
|
9
|
+
bordered = props.bordered;
|
|
10
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
16
11
|
bordered: bordered,
|
|
17
12
|
ref: ref,
|
|
18
13
|
value: value,
|
|
@@ -23,6 +18,6 @@ var Edit = function Edit(props, ref) {
|
|
|
23
18
|
onClick: function onClick(e) {
|
|
24
19
|
return e.stopPropagation();
|
|
25
20
|
}
|
|
26
|
-
})
|
|
21
|
+
});
|
|
27
22
|
};
|
|
28
23
|
export default /*#__PURE__*/forwardRef(Edit);
|
|
@@ -5,7 +5,6 @@ import { useSharedState } from "../../../../../../hooks";
|
|
|
5
5
|
import { Context } from "../../../../model";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import "./index.less";
|
|
8
|
-
import { getValueByKeys } from "../../utils";
|
|
9
8
|
var Show = function Show(props) {
|
|
10
9
|
var modal = useSharedState(Context);
|
|
11
10
|
var title = props.title,
|
|
@@ -32,6 +31,6 @@ var Show = function Show(props) {
|
|
|
32
31
|
"table-fields-text-link": action
|
|
33
32
|
}, contentClassName),
|
|
34
33
|
onClick: onClick
|
|
35
|
-
},
|
|
34
|
+
}, record[dataIndex]);
|
|
36
35
|
};
|
|
37
36
|
export default Show;
|
|
@@ -6,9 +6,9 @@ declare const _default: {
|
|
|
6
6
|
field_type: string;
|
|
7
7
|
default_value: string;
|
|
8
8
|
};
|
|
9
|
-
config: () =>
|
|
9
|
+
config: () => JSX.Element;
|
|
10
10
|
edit: import("react").ForwardRefExoticComponent<Omit<import("../types").EditPropsType, "ref"> & import("react").RefAttributes<any>>;
|
|
11
|
-
sort: () =>
|
|
12
|
-
show: (props: import("../types").FieldPropsType) =>
|
|
11
|
+
sort: () => JSX.Element;
|
|
12
|
+
show: (props: import("../types").FieldPropsType) => JSX.Element;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
@@ -27,7 +27,6 @@ import getColumnStringProps from "../TableFilter/stringFilter";
|
|
|
27
27
|
import getColumnNumberProps from "../TableFilter/numberFilter";
|
|
28
28
|
import getColumnSelectProps from "../TableFilter/selectFilter";
|
|
29
29
|
import SortIcon from "../TableFilter/SortIcon";
|
|
30
|
-
import { getText } from "../../../locales";
|
|
31
30
|
var GridViewTable = function GridViewTable(_ref) {
|
|
32
31
|
var tableProps = _ref.tableProps;
|
|
33
32
|
var responsive = useResponsive();
|
|
@@ -127,7 +126,7 @@ var GridViewTable = function GridViewTable(_ref) {
|
|
|
127
126
|
var showTotal = useCallback(function (total, range, pageSize) {
|
|
128
127
|
var start = range[0] - 1;
|
|
129
128
|
var _current = start / pageSize + 1;
|
|
130
|
-
return
|
|
129
|
+
return "Page ".concat(_current, " of ").concat(Math.ceil(total / pageSize));
|
|
131
130
|
}, []);
|
|
132
131
|
var _paginationConfig = useMemo(function () {
|
|
133
132
|
if (tableProps.pagination === false) {
|
|
@@ -152,11 +151,11 @@ var GridViewTable = function GridViewTable(_ref) {
|
|
|
152
151
|
row: Body.Row,
|
|
153
152
|
cell: Body.Coll
|
|
154
153
|
}
|
|
155
|
-
},
|
|
156
|
-
scroll: {
|
|
157
|
-
x: "max-content"
|
|
158
154
|
}
|
|
159
155
|
}, tableProps, {
|
|
156
|
+
scroll: {
|
|
157
|
+
x: "max-content"
|
|
158
|
+
},
|
|
160
159
|
pagination: _paginationConfig
|
|
161
160
|
}))));
|
|
162
161
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const summary: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const summary: (props: any) => JSX.Element;
|
|
3
3
|
export default summary;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface SortIconProps {
|
|
3
3
|
sortOrder: null | "ascend" | "descend";
|
|
4
4
|
}
|
|
5
|
-
declare const SortIcon: (props: SortIconProps) =>
|
|
5
|
+
declare const SortIcon: (props: SortIconProps) => JSX.Element;
|
|
6
6
|
export default SortIcon;
|
|
@@ -9,7 +9,6 @@ import { Button, InputNumber, Space } from "antd";
|
|
|
9
9
|
// import { FilterFunnel01, FilterFunnel01Fill } from "@pisell/icon/es";
|
|
10
10
|
import FilterFunnel01 from "@pisell/icon/es/FilterFunnel01";
|
|
11
11
|
import FilterFunnel01Fill from "@pisell/icon/es/FilterFunnel01Fill";
|
|
12
|
-
import { getText } from "../../../locales";
|
|
13
12
|
import "./index.less";
|
|
14
13
|
var getColumnNumberProps = function getColumnNumberProps(_ref) {
|
|
15
14
|
var dataIndex = _ref.dataIndex;
|
|
@@ -37,7 +36,7 @@ var getColumnNumberProps = function getColumnNumberProps(_ref) {
|
|
|
37
36
|
});
|
|
38
37
|
setSelectedKeys([newVal]);
|
|
39
38
|
},
|
|
40
|
-
placeholder:
|
|
39
|
+
placeholder: "Min",
|
|
41
40
|
onPressEnter: function onPressEnter() {
|
|
42
41
|
return confirm();
|
|
43
42
|
},
|
|
@@ -46,7 +45,7 @@ var getColumnNumberProps = function getColumnNumberProps(_ref) {
|
|
|
46
45
|
}
|
|
47
46
|
}), /*#__PURE__*/React.createElement(InputNumber, {
|
|
48
47
|
value: selectedKeys === null || selectedKeys === void 0 ? void 0 : (_selectedKeys$2 = selectedKeys[0]) === null || _selectedKeys$2 === void 0 ? void 0 : _selectedKeys$2.max,
|
|
49
|
-
placeholder:
|
|
48
|
+
placeholder: "Max",
|
|
50
49
|
onChange: function onChange(value) {
|
|
51
50
|
var newVal = _objectSpread(_objectSpread({}, (selectedKeys === null || selectedKeys === void 0 ? void 0 : selectedKeys[0]) || {}), {}, {
|
|
52
51
|
max: value
|
|
@@ -72,13 +71,13 @@ var getColumnNumberProps = function getColumnNumberProps(_ref) {
|
|
|
72
71
|
confirm();
|
|
73
72
|
},
|
|
74
73
|
block: true
|
|
75
|
-
},
|
|
74
|
+
}, "Clear"), /*#__PURE__*/React.createElement(Button, {
|
|
76
75
|
type: "primary",
|
|
77
76
|
onClick: function onClick() {
|
|
78
77
|
return confirm();
|
|
79
78
|
},
|
|
80
79
|
block: true
|
|
81
|
-
},
|
|
80
|
+
}, "Filter")));
|
|
82
81
|
},
|
|
83
82
|
filterIcon: function filterIcon(filtered) {
|
|
84
83
|
return filtered ? /*#__PURE__*/React.createElement(FilterFunnel01Fill, {
|
|
@@ -13,7 +13,6 @@ import React, { useEffect, useMemo, useState } from "react";
|
|
|
13
13
|
import { Button, Checkbox, Space, Menu } from "antd";
|
|
14
14
|
import FilterFunnel01Fill from "@pisell/icon/es/FilterFunnel01Fill";
|
|
15
15
|
import FilterFunnel01 from "@pisell/icon/es/FilterFunnel01";
|
|
16
|
-
import { getText } from "../../../locales";
|
|
17
16
|
import "./index.less";
|
|
18
17
|
var FilterDropdown = function FilterDropdown(props) {
|
|
19
18
|
var setSelectedKeys = props.setSelectedKeys,
|
|
@@ -90,7 +89,7 @@ var FilterDropdown = function FilterDropdown(props) {
|
|
|
90
89
|
style: {
|
|
91
90
|
flex: 1
|
|
92
91
|
}
|
|
93
|
-
},
|
|
92
|
+
}, "Clear"), /*#__PURE__*/React.createElement(Button, {
|
|
94
93
|
type: "primary",
|
|
95
94
|
onClick: function onClick() {
|
|
96
95
|
return confirm();
|
|
@@ -99,7 +98,7 @@ var FilterDropdown = function FilterDropdown(props) {
|
|
|
99
98
|
style: {
|
|
100
99
|
flex: 1
|
|
101
100
|
}
|
|
102
|
-
},
|
|
101
|
+
}, "Filter")));
|
|
103
102
|
};
|
|
104
103
|
var getColumnSelectProps = function getColumnSelectProps(_ref2) {
|
|
105
104
|
var dataIndex = _ref2.dataIndex,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Button, Input, Space } from "antd";
|
|
3
3
|
import SearchLg from "@pisell/icon/es/SearchLg";
|
|
4
|
-
import { getText } from "../../../locales";
|
|
5
4
|
import "./index.less";
|
|
6
5
|
var getColumnStringProps = function getColumnStringProps(_ref) {
|
|
7
6
|
var dataIndex = _ref.dataIndex;
|
|
@@ -21,7 +20,7 @@ var getColumnStringProps = function getColumnStringProps(_ref) {
|
|
|
21
20
|
className: "pisell-table-filter-dropdown-top"
|
|
22
21
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
23
22
|
prefix: /*#__PURE__*/React.createElement(SearchLg, null),
|
|
24
|
-
placeholder:
|
|
23
|
+
placeholder: "Search",
|
|
25
24
|
value: selectedKeys[0],
|
|
26
25
|
onChange: function onChange(e) {
|
|
27
26
|
return setSelectedKeys(e.target.value ? [e.target.value] : []);
|
|
@@ -48,7 +47,7 @@ var getColumnStringProps = function getColumnStringProps(_ref) {
|
|
|
48
47
|
style: {
|
|
49
48
|
flex: 1
|
|
50
49
|
}
|
|
51
|
-
},
|
|
50
|
+
}, "Clear"), /*#__PURE__*/React.createElement(Button, {
|
|
52
51
|
type: "primary",
|
|
53
52
|
onClick: function onClick() {
|
|
54
53
|
return confirm();
|
|
@@ -57,7 +56,7 @@ var getColumnStringProps = function getColumnStringProps(_ref) {
|
|
|
57
56
|
style: {
|
|
58
57
|
flex: 1
|
|
59
58
|
}
|
|
60
|
-
},
|
|
59
|
+
}, "Filter")));
|
|
61
60
|
},
|
|
62
61
|
filterIcon: function filterIcon(filtered) {
|
|
63
62
|
return /*#__PURE__*/React.createElement(SearchLg, {
|
|
@@ -9,7 +9,7 @@ interface FormState {
|
|
|
9
9
|
otherFilter: FilterItemProps[];
|
|
10
10
|
utils: any;
|
|
11
11
|
}
|
|
12
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
12
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
13
13
|
state: FormState;
|
|
14
14
|
} & {
|
|
15
15
|
dispatch: (params: {
|
|
@@ -21,7 +21,34 @@ var defaultState = {
|
|
|
21
21
|
address: "London, Park Lane no. 1",
|
|
22
22
|
image: ["https://file.mypisell-dev.com//static/avatar.png"]
|
|
23
23
|
}],
|
|
24
|
-
defaultColumns: [
|
|
24
|
+
defaultColumns: [{
|
|
25
|
+
title: "Name",
|
|
26
|
+
dataIndex: "name",
|
|
27
|
+
field_type: "text",
|
|
28
|
+
editable: true,
|
|
29
|
+
width: 200,
|
|
30
|
+
fixed: "left",
|
|
31
|
+
lock: true
|
|
32
|
+
}, {
|
|
33
|
+
title: "Age",
|
|
34
|
+
dataIndex: "age",
|
|
35
|
+
editable: true,
|
|
36
|
+
width: 200,
|
|
37
|
+
field_type: "text",
|
|
38
|
+
lock: true
|
|
39
|
+
}, {
|
|
40
|
+
title: "Address",
|
|
41
|
+
dataIndex: "address",
|
|
42
|
+
editable: true,
|
|
43
|
+
width: 200,
|
|
44
|
+
field_type: "text"
|
|
45
|
+
}, {
|
|
46
|
+
title: "Image",
|
|
47
|
+
dataIndex: "image",
|
|
48
|
+
editable: true,
|
|
49
|
+
width: 200,
|
|
50
|
+
field_type: "image"
|
|
51
|
+
}],
|
|
25
52
|
currentCell: null,
|
|
26
53
|
quickFilter: [],
|
|
27
54
|
otherFilter: [],
|
|
@@ -86,6 +113,7 @@ export { Provider, Context };
|
|
|
86
113
|
var formatColumn = function formatColumn(item) {
|
|
87
114
|
var _other = _objectSpread({
|
|
88
115
|
editable: true,
|
|
116
|
+
width: 100,
|
|
89
117
|
field_type: "text",
|
|
90
118
|
lock: true
|
|
91
119
|
}, item.other || {});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TabsProps } from "antd";
|
|
3
|
-
import "./index.less";
|
|
1
|
+
import { Component } from 'react';
|
|
4
2
|
declare class Tabs extends Component<any> {
|
|
5
3
|
state: {
|
|
6
4
|
activeKey: any;
|
|
@@ -8,7 +6,6 @@ declare class Tabs extends Component<any> {
|
|
|
8
6
|
private _handleChange;
|
|
9
7
|
setActiveKey: (key: string) => void;
|
|
10
8
|
getActiveKey: () => any;
|
|
11
|
-
|
|
12
|
-
render(): React.JSX.Element;
|
|
9
|
+
render(): JSX.Element;
|
|
13
10
|
}
|
|
14
11
|
export default Tabs;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var _excluded = ["tab"];
|
|
2
2
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
4
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
7
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
9
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
10
10
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -18,12 +18,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
18
18
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
19
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
20
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
|
-
import React, { Component } from
|
|
22
|
-
import {
|
|
21
|
+
import React, { Component } from 'react';
|
|
22
|
+
import { Tabs as OriginalTabs } from 'antd';
|
|
23
23
|
import { warning } from "../../utils/warning";
|
|
24
|
-
import classNames from "classnames";
|
|
25
|
-
import "./index.less";
|
|
26
|
-
var prefix = "pisell-lowcode-";
|
|
27
24
|
var Tabs = /*#__PURE__*/function (_Component) {
|
|
28
25
|
_inherits(Tabs, _Component);
|
|
29
26
|
var _super = _createSuper(Tabs);
|
|
@@ -52,38 +49,6 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
52
49
|
_defineProperty(_assertThisInitialized(_this), "getActiveKey", function () {
|
|
53
50
|
return _this.state.activeKey;
|
|
54
51
|
});
|
|
55
|
-
_defineProperty(_assertThisInitialized(_this), "renderIconLabelTabBar", function (props, DefaultTabBar) {
|
|
56
|
-
var _this$props = _this.props,
|
|
57
|
-
items = _this$props.items,
|
|
58
|
-
sidebarWidth = _this$props.sidebarWidth;
|
|
59
|
-
var wrapStyle = {
|
|
60
|
-
gap: props.tabBarGutter
|
|
61
|
-
};
|
|
62
|
-
if (["left", "right"].includes(props.tabPosition)) {
|
|
63
|
-
wrapStyle = _objectSpread(_objectSpread({}, wrapStyle), {}, {
|
|
64
|
-
width: sidebarWidth || 130
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
68
|
-
className: classNames("pisell-lowcode-tabs-nav", "".concat(prefix, "tab-bar-wrap"), "".concat(prefix, "tab-bar-wrap-").concat(props.tabPosition)),
|
|
69
|
-
style: wrapStyle
|
|
70
|
-
}, items.map(function (item) {
|
|
71
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
72
|
-
className: classNames("".concat(prefix, "tab-bar-item"), _defineProperty({}, "".concat(prefix, "tab-bar-item-active"), item.key === props.activeKey)),
|
|
73
|
-
key: item.key,
|
|
74
|
-
onClick: function onClick(e) {
|
|
75
|
-
return props.onTabClick(item.key, e);
|
|
76
|
-
}
|
|
77
|
-
}, /*#__PURE__*/React.createElement(Badge, {
|
|
78
|
-
count: item.badge,
|
|
79
|
-
offset: [0, 6]
|
|
80
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
81
|
-
className: "".concat(prefix, "tab-bar-icon-wrap")
|
|
82
|
-
}, item.icon)), /*#__PURE__*/React.createElement("span", {
|
|
83
|
-
className: "".concat(prefix, "tab-bar-label")
|
|
84
|
-
}, item.label));
|
|
85
|
-
}), props.extra);
|
|
86
|
-
});
|
|
87
52
|
return _this;
|
|
88
53
|
}
|
|
89
54
|
_createClass(Tabs, [{
|
|
@@ -91,15 +56,13 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
91
56
|
value: function render() {
|
|
92
57
|
var props = this.props;
|
|
93
58
|
var activeKey = this.state.activeKey;
|
|
94
|
-
var children = props.children
|
|
95
|
-
type = props.type;
|
|
59
|
+
var children = props.children;
|
|
96
60
|
var items = props.items;
|
|
97
|
-
var otherProps = {};
|
|
98
61
|
|
|
99
62
|
// props.items 存在,只认 props.items
|
|
100
|
-
// 兼容代码:props.
|
|
63
|
+
// 兼容代码:props.childrens 反推 props.items
|
|
101
64
|
if (!props.items && Array.isArray(children) && children.length > 0) {
|
|
102
|
-
warning(
|
|
65
|
+
warning('Tabs.TabPane is deprecated. Please use `items` directly.');
|
|
103
66
|
items = children.map(function (node) {
|
|
104
67
|
if ( /*#__PURE__*/React.isValidElement(node)) {
|
|
105
68
|
var key = node.key,
|
|
@@ -117,13 +80,7 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
117
80
|
return null;
|
|
118
81
|
}).filter(Boolean);
|
|
119
82
|
}
|
|
120
|
-
|
|
121
|
-
otherProps = {
|
|
122
|
-
renderTabBar: this.renderIconLabelTabBar,
|
|
123
|
-
type: "line"
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
return /*#__PURE__*/React.createElement(OriginalTabs, _extends({}, props, otherProps, {
|
|
83
|
+
return /*#__PURE__*/React.createElement(OriginalTabs, _extends({}, props, {
|
|
127
84
|
items: items,
|
|
128
85
|
activeKey: activeKey,
|
|
129
86
|
onChange: this._handleChange
|
package/es/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ export { Empty } from "antd";
|
|
|
14
14
|
export { Grid } from "antd";
|
|
15
15
|
export { Image } from "antd";
|
|
16
16
|
export { InputNumber } from "antd";
|
|
17
|
+
export { List } from "antd";
|
|
17
18
|
export { message } from "antd";
|
|
18
|
-
export { Menu } from "antd";
|
|
19
19
|
export { Mentions } from "antd";
|
|
20
20
|
export { Statistic } from "antd";
|
|
21
21
|
export { notification } from "antd";
|
|
@@ -61,12 +61,8 @@ export { default as Cascader } from "./components/cascader";
|
|
|
61
61
|
export { default as AutoComplete } from "./components/auto-complete";
|
|
62
62
|
export { default as Div } from "./components/div";
|
|
63
63
|
export { default as Page } from "./components/page";
|
|
64
|
-
export { default as Component } from "./components/component";
|
|
65
64
|
export { default as Filter } from "./components/filter";
|
|
66
65
|
export { default as Translation } from "./components/translation";
|
|
67
66
|
export { default as SortableList } from "./components/sortableList";
|
|
68
67
|
export { default as RecordView } from "./components/record-view";
|
|
69
68
|
export { default as QRCode } from "./components/qrcode";
|
|
70
|
-
export { default as ClassicLayout } from "./components/classicLayout";
|
|
71
|
-
export { default as List } from "./components/list";
|
|
72
|
-
export { default as Sort } from "./components/sort";
|
package/es/index.js
CHANGED
|
@@ -23,8 +23,11 @@ export { Grid } from "antd";
|
|
|
23
23
|
|
|
24
24
|
export { Image } from "antd";
|
|
25
25
|
export { InputNumber } from "antd";
|
|
26
|
+
export { List } from "antd";
|
|
26
27
|
export { message } from "antd";
|
|
27
|
-
|
|
28
|
+
|
|
29
|
+
// export { Menu } from "antd";
|
|
30
|
+
|
|
28
31
|
export { Mentions } from "antd";
|
|
29
32
|
export { Statistic } from "antd";
|
|
30
33
|
export { notification } from "antd";
|
|
@@ -81,12 +84,8 @@ export { default as Cascader } from "./components/cascader";
|
|
|
81
84
|
export { default as AutoComplete } from "./components/auto-complete";
|
|
82
85
|
export { default as Div } from "./components/div";
|
|
83
86
|
export { default as Page } from "./components/page";
|
|
84
|
-
export { default as Component } from "./components/component";
|
|
85
87
|
export { default as Filter } from "./components/filter";
|
|
86
88
|
export { default as Translation } from "./components/translation";
|
|
87
89
|
export { default as SortableList } from "./components/sortableList";
|
|
88
90
|
export { default as RecordView } from "./components/record-view";
|
|
89
|
-
export { default as QRCode } from "./components/qrcode";
|
|
90
|
-
export { default as ClassicLayout } from "./components/classicLayout";
|
|
91
|
-
export { default as List } from "./components/list";
|
|
92
|
-
export { default as Sort } from "./components/sort";
|
|
91
|
+
export { default as QRCode } from "./components/qrcode";
|
package/es/utils/hoc.d.ts
CHANGED
|
@@ -3,15 +3,15 @@ import React, { ComponentType } from 'react';
|
|
|
3
3
|
* 简单包装,不做任何处理
|
|
4
4
|
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
5
5
|
*/
|
|
6
|
-
export declare function withWrap<T extends ComponentType<any>>(Comp: T):
|
|
6
|
+
export declare function withWrap<T extends ComponentType<any>>(Comp: T): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.ComponentProps<T>> & React.RefAttributes<any>>;
|
|
7
7
|
/**
|
|
8
8
|
* 某些组件会用React.Children.only检查子节点
|
|
9
9
|
* 需要做处理避免报错
|
|
10
10
|
*/
|
|
11
|
-
export declare function withSingleChild(Comp: ComponentType<any>, needsConvert?: string[]): (props: any) =>
|
|
12
|
-
export declare function withSingleFunctionChild(Comp: ComponentType<any>): (props: any) =>
|
|
11
|
+
export declare function withSingleChild(Comp: ComponentType<any>, needsConvert?: string[]): (props: any) => JSX.Element;
|
|
12
|
+
export declare function withSingleFunctionChild(Comp: ComponentType<any>): (props: any) => JSX.Element;
|
|
13
13
|
/**
|
|
14
14
|
* moment对象在序列化后会被转为字符串
|
|
15
15
|
* 需要让日期类组件支持接受字符串值
|
|
16
16
|
*/
|
|
17
|
-
export declare function withMomentProps(Comp: ComponentType<any>, needsConvert?: string[]): (props: any) =>
|
|
17
|
+
export declare function withMomentProps(Comp: ComponentType<any>, needsConvert?: string[]): (props: any) => JSX.Element;
|
package/es/utils/hoc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
|
-
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
import React, { forwardRef } from 'react';
|
|
4
4
|
import { get, set, has } from 'lodash';
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
6
|
function convertProps(props, list, mapper) {
|
|
@@ -18,13 +18,12 @@ function convertProps(props, list, mapper) {
|
|
|
18
18
|
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
19
19
|
*/
|
|
20
20
|
export function withWrap(Comp) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
return /*#__PURE__*/React.createElement(Comp, _extends({}, props, {
|
|
24
|
+
ref: ref
|
|
25
|
+
}));
|
|
26
|
+
});
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
/**
|
package/es/utils/miniRedux.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ declare const _default: <State extends Record<string, any>, Namespace extends st
|
|
|
12
12
|
payload: any;
|
|
13
13
|
}) => void;
|
|
14
14
|
}>;
|
|
15
|
-
Provider: (ComponentUi: any) => (props: any) =>
|
|
15
|
+
Provider: (ComponentUi: any) => (props: any) => JSX.Element;
|
|
16
16
|
};
|
|
17
17
|
export default _default;
|
|
@@ -18,7 +18,7 @@ export interface Props<T> {
|
|
|
18
18
|
attributes: DraggableAttributes;
|
|
19
19
|
}) => React.ReactElement<HTMLElement>;
|
|
20
20
|
}
|
|
21
|
-
export default function Sortable<T extends Record<string, any>>({ list, onChange, rowKey, children, activationConstraint, }: Props<T>):
|
|
21
|
+
export default function Sortable<T extends Record<string, any>>({ list, onChange, rowKey, children, activationConstraint, }: Props<T>): JSX.Element;
|
|
22
22
|
export interface SortableItemProps<T> {
|
|
23
23
|
id: number;
|
|
24
24
|
index: number;
|
|
@@ -21,5 +21,5 @@ interface DefaultRenderContainerProps {
|
|
|
21
21
|
}) => React.ReactElement;
|
|
22
22
|
children: any;
|
|
23
23
|
}
|
|
24
|
-
declare const MultipleContainersSortList: <T extends Record<string, any>>(props: MultipleContainersSortListProps<T>) =>
|
|
24
|
+
declare const MultipleContainersSortList: <T extends Record<string, any>>(props: MultipleContainersSortListProps<T>) => JSX.Element;
|
|
25
25
|
export default MultipleContainersSortList;
|
|
@@ -9,6 +9,6 @@ export declare const paginationConfig: {
|
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
12
|
-
declare const Pagination: (props: PaginationProps) =>
|
|
12
|
+
declare const Pagination: (props: PaginationProps) => JSX.Element | null;
|
|
13
13
|
export default Pagination;
|
|
14
|
-
export declare const FormPagination: ({ value, onChange, page, pageSize, ...other }: any) =>
|
|
14
|
+
export declare const FormPagination: ({ value, onChange, page, pageSize, ...other }: any) => JSX.Element;
|