wargerm 0.3.21 → 0.3.22
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.
@@ -1,6 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ReactNode } from 'react';
|
3
3
|
import { FormProps } from 'antd';
|
4
|
+
import { Isearch } from '../WForm';
|
4
5
|
interface ColumnProps {
|
5
6
|
title: string;
|
6
7
|
dataIndex: string;
|
@@ -57,23 +58,6 @@ interface Iscroll {
|
|
57
58
|
*/
|
58
59
|
y?: string | number;
|
59
60
|
}
|
60
|
-
declare type defaultColConfig = {
|
61
|
-
xs: 24;
|
62
|
-
sm: 24;
|
63
|
-
md: 12;
|
64
|
-
lg: 12;
|
65
|
-
xl: 8;
|
66
|
-
xxl: 6;
|
67
|
-
};
|
68
|
-
interface Isearch {
|
69
|
-
labelWidth?: number | 'auto';
|
70
|
-
span?: number | defaultColConfig;
|
71
|
-
filterType?: 'query' | 'light';
|
72
|
-
searchText?: string;
|
73
|
-
resetText?: string;
|
74
|
-
submitText?: string;
|
75
|
-
optionRender?: ((searchConfig: any, formProps: any, dom: any) => ReactNode[]) | false;
|
76
|
-
}
|
77
61
|
declare type Props = {
|
78
62
|
className?: string;
|
79
63
|
rowClassName?: (record: Record<string, any>, index: number) => string;
|
@@ -43,6 +43,7 @@ export interface Isearch {
|
|
43
43
|
submitText?: string;
|
44
44
|
hideSubmit?: boolean;
|
45
45
|
transform?: (value: any) => any;
|
46
|
+
optionDomReverse?: boolean;
|
46
47
|
optionRender?: ((searchConfig: any, formProps: any, dom: any) => ReactNode[]) | false;
|
47
48
|
}
|
48
49
|
export interface WFormProps extends FormProps {
|
package/dist/index.esm.js
CHANGED
@@ -8346,7 +8346,8 @@ function Table(_ref) {
|
|
8346
8346
|
span: 6
|
8347
8347
|
}, search), {}, {
|
8348
8348
|
optionRender: function optionRender(searchConfig, formProps, dom) {
|
8349
|
-
return
|
8349
|
+
// return [...dom.reverse()];
|
8350
|
+
return _toConsumableArray((search === null || search === void 0 ? void 0 : search.optionDomReverse) ? dom.reverse() : dom);
|
8350
8351
|
}
|
8351
8352
|
}),
|
8352
8353
|
onSubmit: onFormSubmit,
|
@@ -10591,7 +10592,8 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10591
10592
|
span: 6
|
10592
10593
|
}, search), {}, {
|
10593
10594
|
optionRender: function optionRender(searchConfig, formProps, dom) {
|
10594
|
-
return [
|
10595
|
+
// return [...dom.reverse(), tableBarDom];
|
10596
|
+
return [].concat(_toConsumableArray((search === null || search === void 0 ? void 0 : search.optionDomReverse) ? dom.reverse() : dom), [tableBarDom]);
|
10595
10597
|
}
|
10596
10598
|
}),
|
10597
10599
|
onSubmit: onSubmit,
|
package/dist/index.js
CHANGED
@@ -8380,7 +8380,8 @@ function Table(_ref) {
|
|
8380
8380
|
span: 6
|
8381
8381
|
}, search), {}, {
|
8382
8382
|
optionRender: function optionRender(searchConfig, formProps, dom) {
|
8383
|
-
return
|
8383
|
+
// return [...dom.reverse()];
|
8384
|
+
return _toConsumableArray((search === null || search === void 0 ? void 0 : search.optionDomReverse) ? dom.reverse() : dom);
|
8384
8385
|
}
|
8385
8386
|
}),
|
8386
8387
|
onSubmit: onFormSubmit,
|
@@ -10625,7 +10626,8 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10625
10626
|
span: 6
|
10626
10627
|
}, search), {}, {
|
10627
10628
|
optionRender: function optionRender(searchConfig, formProps, dom) {
|
10628
|
-
return [
|
10629
|
+
// return [...dom.reverse(), tableBarDom];
|
10630
|
+
return [].concat(_toConsumableArray((search === null || search === void 0 ? void 0 : search.optionDomReverse) ? dom.reverse() : dom), [tableBarDom]);
|
10629
10631
|
}
|
10630
10632
|
}),
|
10631
10633
|
onSubmit: onSubmit,
|