@pisell/materials 1.0.206 → 1.0.207
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 +3 -3
- 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
|
@@ -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;
|
|
@@ -16,7 +16,6 @@ import { Pagination as OriginPagination } from "antd";
|
|
|
16
16
|
import classNames from "classnames";
|
|
17
17
|
import { useResponsive } from "../../hooks";
|
|
18
18
|
import "./index.less";
|
|
19
|
-
import { getText } from "../../locales";
|
|
20
19
|
|
|
21
20
|
/**
|
|
22
21
|
* @title: 自定义渲染
|
|
@@ -33,14 +32,14 @@ var itemRender = function itemRender(_, type, originalElement) {
|
|
|
33
32
|
className: "paginator-page-btn-left-icon"
|
|
34
33
|
}), /*#__PURE__*/React.createElement("span", {
|
|
35
34
|
className: "paginator-page-btn-text"
|
|
36
|
-
},
|
|
35
|
+
}, "Previous"));
|
|
37
36
|
}
|
|
38
37
|
if (type === "next") {
|
|
39
38
|
return /*#__PURE__*/React.createElement("div", {
|
|
40
39
|
className: classNames("paginator-page-btn", "right")
|
|
41
40
|
}, /*#__PURE__*/React.createElement("span", {
|
|
42
41
|
className: "paginator-page-btn-text"
|
|
43
|
-
},
|
|
42
|
+
}, "Next"), /*#__PURE__*/React.createElement(ArrowRight, {
|
|
44
43
|
className: "paginator-page-btn-right-icon"
|
|
45
44
|
}));
|
|
46
45
|
}
|
|
@@ -131,7 +130,13 @@ var MiniPagination = function MiniPagination(props) {
|
|
|
131
130
|
className: "materials-grid-paginator-center"
|
|
132
131
|
}, /*#__PURE__*/React.createElement("span", {
|
|
133
132
|
className: "materials-grid-paginator-center-text"
|
|
134
|
-
},
|
|
133
|
+
}, "Page"), /*#__PURE__*/React.createElement("span", {
|
|
134
|
+
className: "materials-grid-paginator-center-value"
|
|
135
|
+
}, current), /*#__PURE__*/React.createElement("span", {
|
|
136
|
+
className: "materials-grid-paginator-center-text"
|
|
137
|
+
}, "of"), /*#__PURE__*/React.createElement("span", {
|
|
138
|
+
className: "materials-grid-paginator-center-value"
|
|
139
|
+
}, MAX)), /*#__PURE__*/React.createElement("div", {
|
|
135
140
|
className: "pisell-lowcode-pagination-next",
|
|
136
141
|
onClick: function onClick() {
|
|
137
142
|
if (current >= MAX) {
|
|
@@ -152,11 +157,11 @@ export var FormPagination = function FormPagination(_ref) {
|
|
|
152
157
|
page = _ref.page,
|
|
153
158
|
pageSize = _ref.pageSize,
|
|
154
159
|
other = _objectWithoutProperties(_ref, _excluded);
|
|
155
|
-
var _useState = useState(
|
|
160
|
+
var _useState = useState(1),
|
|
156
161
|
_useState2 = _slicedToArray(_useState, 2),
|
|
157
162
|
_p = _useState2[0],
|
|
158
163
|
_setP = _useState2[1];
|
|
159
|
-
var _useState3 = useState(
|
|
164
|
+
var _useState3 = useState(10),
|
|
160
165
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
161
166
|
_ps = _useState4[0],
|
|
162
167
|
_setPs = _useState4[1];
|
|
@@ -167,11 +172,11 @@ export var FormPagination = function FormPagination(_ref) {
|
|
|
167
172
|
});
|
|
168
173
|
};
|
|
169
174
|
useEffect(function () {
|
|
170
|
-
var _page = (value === null || value === void 0 ? void 0 : value.page) ||
|
|
171
|
-
var _size = (value === null || value === void 0 ? void 0 : value.size) ||
|
|
175
|
+
var _page = (value === null || value === void 0 ? void 0 : value.page) || 1;
|
|
176
|
+
var _size = (value === null || value === void 0 ? void 0 : value.size) || 10;
|
|
172
177
|
_setP(_page);
|
|
173
178
|
_setPs(_size);
|
|
174
|
-
}, [value
|
|
179
|
+
}, [value]);
|
|
175
180
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Pagination, _extends({}, other, {
|
|
176
181
|
pageSize: _ps,
|
|
177
182
|
current: _p,
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const AutoComplete: (
|
|
2
|
+
declare const AutoComplete: import("react").ForwardRefExoticComponent<Omit<import("antd").AutoCompleteProps<unknown, import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & {
|
|
5
|
+
ref?: import("react").Ref<import("antd").RefSelectProps> | undefined;
|
|
6
|
+
}, "ref"> & import("react").RefAttributes<any>>;
|
|
3
7
|
export default AutoComplete;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const Checkbox: (
|
|
2
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<import("antd").CheckboxProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<any>>;
|
|
3
3
|
export default Checkbox;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ConfigProviderProps as OriginalConfigProviderProps } from "antd/es/config-provider";
|
|
3
3
|
import "dayjs/locale/zh-cn";
|
|
4
4
|
export interface ConfigProviderProps extends OriginalConfigProviderProps {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}
|
|
7
|
-
declare const ConfigProvider: (props: ConfigProviderProps) =>
|
|
7
|
+
declare const ConfigProvider: (props: ConfigProviderProps) => JSX.Element;
|
|
8
8
|
export default ConfigProvider;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
var _excluded = ["children", "style", "others"];
|
|
2
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); }
|
|
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
2
|
import React from "react";
|
|
6
3
|
var Div = function Div(props) {
|
|
7
4
|
var children = props.children,
|
|
8
5
|
_props$style = props.style,
|
|
9
6
|
style = _props$style === void 0 ? {} : _props$style,
|
|
10
7
|
_props$others = props.others,
|
|
11
|
-
others = _props$others === void 0 ? {} : _props$others
|
|
12
|
-
otherProps = _objectWithoutProperties(props, _excluded);
|
|
8
|
+
others = _props$others === void 0 ? {} : _props$others;
|
|
13
9
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
14
10
|
style: style
|
|
15
|
-
}, others
|
|
11
|
+
}, others), children);
|
|
16
12
|
};
|
|
17
13
|
export default Div;
|
|
@@ -1,50 +1,12 @@
|
|
|
1
|
-
var _excluded = ["others"];
|
|
2
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); }
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import React, { useMemo } from "react";
|
|
6
|
-
import { Drawer as OriginalDrawer } from "antd";
|
|
7
|
-
import { CloseOutlined } from "@ant-design/icons";
|
|
8
|
-
import "./index.less";
|
|
9
|
-
var prefix = "pisell-lowcode-";
|
|
10
|
-
var Title = function Title(props) {
|
|
11
|
-
var placement = props.placement,
|
|
12
|
-
onClose = props.onClose;
|
|
13
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
-
className: "".concat(prefix, "drawer-outside-wrap ").concat(prefix, "drawer-outside-wrap-").concat(placement)
|
|
15
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
16
|
-
className: "".concat(prefix, "drawer-outside-action-wrap"),
|
|
17
|
-
onClick: onClose
|
|
18
|
-
}, /*#__PURE__*/React.createElement(CloseOutlined, null)));
|
|
19
|
-
};
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Drawer as OriginalDrawer } from 'antd';
|
|
20
4
|
var Drawer = function Drawer(props) {
|
|
21
|
-
var others = props.others,
|
|
22
|
-
resetProps = _objectWithoutProperties(props, _excluded);
|
|
23
|
-
var operateMode = props.operateMode,
|
|
24
|
-
headerStyle = props.headerStyle,
|
|
25
|
-
placement = props.placement,
|
|
26
|
-
onClose = props.onClose;
|
|
27
5
|
var innerProps = {};
|
|
28
|
-
if (props.__designMode ===
|
|
6
|
+
if (props.__designMode === 'design') {
|
|
29
7
|
// 低代码编辑态中强制显示,将控制权交给引擎侧
|
|
30
8
|
innerProps.open = true;
|
|
31
9
|
}
|
|
32
|
-
|
|
33
|
-
if (operateMode === "outside") {
|
|
34
|
-
return {
|
|
35
|
-
headerStyle: {
|
|
36
|
-
border: "none",
|
|
37
|
-
height: 0,
|
|
38
|
-
padding: 0
|
|
39
|
-
},
|
|
40
|
-
title: /*#__PURE__*/React.createElement(Title, {
|
|
41
|
-
placement: placement,
|
|
42
|
-
onClose: onClose
|
|
43
|
-
})
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
return headerStyle;
|
|
47
|
-
}, [operateMode, placement, onClose]);
|
|
48
|
-
return /*#__PURE__*/React.createElement(OriginalDrawer, _extends({}, resetProps, innerProps, otherProps, others));
|
|
10
|
+
return /*#__PURE__*/React.createElement(OriginalDrawer, _extends({}, props, innerProps));
|
|
49
11
|
};
|
|
50
12
|
export default Drawer;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: (props: any) => JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { FilterItemProps } from "../Dropdown";
|
|
3
3
|
interface QuickFilterProps {
|
|
4
4
|
quickFilter: FilterItemProps[];
|
|
5
5
|
}
|
|
6
|
-
declare const QuickFilter: (props: QuickFilterProps) =>
|
|
6
|
+
declare const QuickFilter: (props: QuickFilterProps) => JSX.Element;
|
|
7
7
|
export default QuickFilter;
|
|
@@ -7,8 +7,8 @@ export declare const fieldMaps: {
|
|
|
7
7
|
field_type: string;
|
|
8
8
|
default_value: string;
|
|
9
9
|
};
|
|
10
|
-
Preview: (props: any) =>
|
|
11
|
-
Editor: () =>
|
|
10
|
+
Preview: (props: any) => JSX.Element;
|
|
11
|
+
Editor: () => JSX.Element;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export declare const fieldList: {
|
|
@@ -24,8 +24,8 @@ export declare const getFieldByType: (type: string) => {
|
|
|
24
24
|
field_type: string;
|
|
25
25
|
default_value: string;
|
|
26
26
|
};
|
|
27
|
-
Preview: (props: any) =>
|
|
28
|
-
Editor: () =>
|
|
27
|
+
Preview: (props: any) => JSX.Element;
|
|
28
|
+
Editor: () => JSX.Element;
|
|
29
29
|
};
|
|
30
30
|
declare const _default: {
|
|
31
31
|
text: {
|
|
@@ -35,8 +35,8 @@ declare const _default: {
|
|
|
35
35
|
field_type: string;
|
|
36
36
|
default_value: string;
|
|
37
37
|
};
|
|
38
|
-
Preview: (props: any) =>
|
|
39
|
-
Editor: () =>
|
|
38
|
+
Preview: (props: any) => JSX.Element;
|
|
39
|
+
Editor: () => JSX.Element;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
export default _default;
|
|
@@ -6,7 +6,7 @@ declare const _default: {
|
|
|
6
6
|
field_type: string;
|
|
7
7
|
default_value: string;
|
|
8
8
|
};
|
|
9
|
-
Preview: (props: any) =>
|
|
10
|
-
Editor: () =>
|
|
9
|
+
Preview: (props: any) => JSX.Element;
|
|
10
|
+
Editor: () => JSX.Element;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { FilterItemProps } from "./components/Dropdown";
|
|
3
3
|
export interface FilterProps {
|
|
4
4
|
filter: {
|
|
@@ -8,5 +8,5 @@ export interface FilterProps {
|
|
|
8
8
|
isRenderFormContent: boolean;
|
|
9
9
|
onValuesChange: () => void;
|
|
10
10
|
}
|
|
11
|
-
declare const Filter: (props: FilterProps) =>
|
|
11
|
+
declare const Filter: (props: FilterProps) => JSX.Element | null;
|
|
12
12
|
export default Filter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ConfigProviderProps } from "../config-provider";
|
|
3
3
|
interface PageProps extends ConfigProviderProps {
|
|
4
4
|
}
|
|
5
|
-
declare const Page: (props: PageProps) =>
|
|
5
|
+
declare const Page: (props: PageProps) => JSX.Element;
|
|
6
6
|
export default Page;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "style"
|
|
1
|
+
var _excluded = ["children", "style"];
|
|
2
2
|
var _theme$token;
|
|
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
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; }
|
|
@@ -7,17 +7,6 @@ import React from "react";
|
|
|
7
7
|
import ConfigProvider from "../config-provider";
|
|
8
8
|
import { AdapterDayjs } from "@pisell/date-picker/es/AdapterDayjs";
|
|
9
9
|
import { LocalizationProvider, createTheme, ThemeProvider } from "@pisell/date-picker";
|
|
10
|
-
import enUS from 'antd/locale/en_US';
|
|
11
|
-
import zhCN from 'antd/locale/zh_CN';
|
|
12
|
-
import zhTW from 'antd/locale/zh_TW';
|
|
13
|
-
import zhHK from 'antd/locale/zh_HK';
|
|
14
|
-
var localMap = {
|
|
15
|
-
'zh-TW': zhTW,
|
|
16
|
-
'zh-CN': zhCN,
|
|
17
|
-
'zh-HK': zhHK,
|
|
18
|
-
'en-US': enUS,
|
|
19
|
-
'en': enUS
|
|
20
|
-
};
|
|
21
10
|
var theme = {
|
|
22
11
|
components: {
|
|
23
12
|
Table: {
|
|
@@ -168,10 +157,8 @@ var datePickerTheme = createTheme({
|
|
|
168
157
|
var Page = function Page(props) {
|
|
169
158
|
var children = props.children,
|
|
170
159
|
style = props.style,
|
|
171
|
-
locale = props.locale,
|
|
172
160
|
others = _objectWithoutProperties(props, _excluded);
|
|
173
161
|
return /*#__PURE__*/React.createElement(ConfigProvider, _extends({}, others, {
|
|
174
|
-
locale: localMap[locale],
|
|
175
162
|
prefixCls: props.prefixCls || "pisell-lowcode",
|
|
176
163
|
theme: props.theme || theme
|
|
177
164
|
}), /*#__PURE__*/React.createElement(LocalizationProvider, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const QRCode: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const QRCode: (props: any) => JSX.Element;
|
|
3
3
|
export default QRCode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const Radio: (
|
|
2
|
+
declare const Radio: import("react").ForwardRefExoticComponent<Omit<import("antd").RadioProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<any>>;
|
|
3
3
|
export default Radio;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import "
|
|
3
|
-
|
|
2
|
+
declare const Select: import("react").ForwardRefExoticComponent<Omit<import("antd").SelectProps<unknown, import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & {
|
|
5
|
+
ref?: import("react").Ref<import("antd").RefSelectProps> | undefined;
|
|
6
|
+
}, "ref"> & import("react").RefAttributes<any>>;
|
|
4
7
|
export default Select;
|
|
@@ -1,62 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
import { Checkbox, Divider, Select as OriginalSelect } from "antd";
|
|
9
|
-
import { useCallback, useMemo } from "react";
|
|
10
|
-
import { getText } from "../../locales";
|
|
1
|
+
import { Select as OriginalSelect } from 'antd';
|
|
11
2
|
import { withWrap } from "../../utils/hoc";
|
|
12
|
-
|
|
13
|
-
import "./index.less";
|
|
14
|
-
var prefix = "pisell-lowcode-";
|
|
15
|
-
var SelectBase = function SelectBase(props) {
|
|
16
|
-
var isShowDropdown = props.isShowDropdown,
|
|
17
|
-
selectAll = props.selectAll,
|
|
18
|
-
mode = props.mode,
|
|
19
|
-
options = props.options,
|
|
20
|
-
propsDropdownRender = props.dropdownRender;
|
|
21
|
-
var _useControllableValue = useControllableValue(props),
|
|
22
|
-
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
23
|
-
state = _useControllableValue2[0],
|
|
24
|
-
setState = _useControllableValue2[1];
|
|
25
|
-
var onSelectAllChange = function onSelectAllChange(e) {
|
|
26
|
-
if (e.target.checked) {
|
|
27
|
-
setState(options.map(function (item) {
|
|
28
|
-
return item.value;
|
|
29
|
-
}), options);
|
|
30
|
-
} else {
|
|
31
|
-
setState([], []);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
var isShowSelectAll = useMemo(function () {
|
|
35
|
-
return mode === "multiple" && isShowDropdown && selectAll;
|
|
36
|
-
}, [mode, selectAll, isShowDropdown]);
|
|
37
|
-
var checkboxChecked = useMemo(function () {
|
|
38
|
-
if (mode !== "multiple") return false;
|
|
39
|
-
return (state === null || state === void 0 ? void 0 : state.length) === (options === null || options === void 0 ? void 0 : options.length) && state.sort().join("") === options.map(function (item) {
|
|
40
|
-
return item.value;
|
|
41
|
-
}).sort().join("");
|
|
42
|
-
}, [state, options]);
|
|
43
|
-
var dropdownRender = useCallback(propsDropdownRender ? propsDropdownRender : function (originNode) {
|
|
44
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, originNode, isShowDropdown && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
|
|
45
|
-
className: "".concat(prefix, "select-dropdown-render-divider")
|
|
46
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
47
|
-
className: "".concat(prefix, "select-dropdown-render-options-wrap")
|
|
48
|
-
}, isShowSelectAll && /*#__PURE__*/React.createElement(Checkbox, {
|
|
49
|
-
onChange: onSelectAllChange,
|
|
50
|
-
checked: checkboxChecked
|
|
51
|
-
}, getText("select-dropdown-render-select-all")))));
|
|
52
|
-
}, [isShowDropdown, isShowSelectAll, checkboxChecked, propsDropdownRender]);
|
|
53
|
-
return /*#__PURE__*/React.createElement(OriginalSelect, _extends({}, props, {
|
|
54
|
-
value: state,
|
|
55
|
-
onChange: function onChange(value, option) {
|
|
56
|
-
return setState(value, option);
|
|
57
|
-
},
|
|
58
|
-
dropdownRender: dropdownRender
|
|
59
|
-
}));
|
|
60
|
-
};
|
|
61
|
-
var Select = withWrap(SelectBase);
|
|
3
|
+
var Select = withWrap(OriginalSelect);
|
|
62
4
|
export default Select;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SliderOuter: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SliderOuter: (props: any) => JSX.Element;
|
|
3
3
|
export default SliderOuter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type SortItemProps = {
|
|
3
|
+
type: "date" | "string" | "number";
|
|
4
|
+
label: string;
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
declare type SortListProps = {
|
|
8
|
+
list: SortItemProps[];
|
|
9
|
+
onChange?: (val: string) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const Sort: React.FC<SortListProps>;
|
|
12
|
+
export default Sort;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { Button, Dropdown } from "antd";
|
|
3
|
+
import SwitchVertical01 from "@pisell/icon/es/SwitchVertical01";
|
|
4
|
+
var sortChildrenMap = {
|
|
5
|
+
date: function date(key) {
|
|
6
|
+
return [{
|
|
7
|
+
key: "".concat(key, ":desc"),
|
|
8
|
+
label: "Oldest to newest"
|
|
9
|
+
}, {
|
|
10
|
+
key: "".concat(key, ":asc"),
|
|
11
|
+
label: "Newest to oldest"
|
|
12
|
+
}];
|
|
13
|
+
},
|
|
14
|
+
string: function string(key) {
|
|
15
|
+
return [{
|
|
16
|
+
key: "".concat(key, ":asc"),
|
|
17
|
+
label: "A to Z"
|
|
18
|
+
}, {
|
|
19
|
+
key: "".concat(key, ":desc"),
|
|
20
|
+
label: "Z to A"
|
|
21
|
+
}];
|
|
22
|
+
},
|
|
23
|
+
number: function number(key) {
|
|
24
|
+
return [{
|
|
25
|
+
key: "".concat(key, ":asc"),
|
|
26
|
+
label: "Lowest to highest"
|
|
27
|
+
}, {
|
|
28
|
+
key: "".concat(key, ":desc"),
|
|
29
|
+
label: "Highest to lowest"
|
|
30
|
+
}];
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var Sort = function Sort(_ref) {
|
|
34
|
+
var _ref$list = _ref.list,
|
|
35
|
+
list = _ref$list === void 0 ? [] : _ref$list,
|
|
36
|
+
onChange = _ref.onChange;
|
|
37
|
+
var sortItems = useMemo(function () {
|
|
38
|
+
return list.map(function (d) {
|
|
39
|
+
return {
|
|
40
|
+
key: d.name,
|
|
41
|
+
label: d.label,
|
|
42
|
+
children: sortChildrenMap[d.type](d.name)
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
}, [list]);
|
|
46
|
+
var onClick = function onClick(detail) {
|
|
47
|
+
var _detail$keyPath;
|
|
48
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(detail === null || detail === void 0 ? void 0 : (_detail$keyPath = detail.keyPath) === null || _detail$keyPath === void 0 ? void 0 : _detail$keyPath[0]);
|
|
49
|
+
};
|
|
50
|
+
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
51
|
+
menu: {
|
|
52
|
+
items: sortItems,
|
|
53
|
+
onClick: onClick
|
|
54
|
+
}
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
56
|
+
icon: /*#__PURE__*/React.createElement(SwitchVertical01, null)
|
|
57
|
+
}, "Sort"));
|
|
58
|
+
};
|
|
59
|
+
export default Sort;
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TableProps } from "antd";
|
|
2
|
-
|
|
3
|
-
declare const BasicTable: (props: TableProps<any>) => React.JSX.Element;
|
|
3
|
+
declare const BasicTable: (props: TableProps<any>) => JSX.Element;
|
|
4
4
|
export default BasicTable;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SelectField: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SelectField: () => JSX.Element;
|
|
3
3
|
export default SelectField;
|