wt-antd 4.2.54 → 4.2.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/component/BiuAButton/index.d.ts +4 -4
- package/dist/esm/component/BiuADatePicker/index.d.ts +3 -3
- package/dist/esm/component/BiuAForm/index.d.ts +1 -1
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.d.ts.map +1 -1
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.js +19 -48
- package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +1 -1
- package/dist/esm/component/BiuTable/index.js +2 -0
- package/dist/esm/component/BiuTableSelect/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/esm/component/BiuTable/index.d.ts.map +0 -1
|
@@ -3,16 +3,16 @@ export declare const BiuAButton: React.MemoExoticComponent<import("styled-compon
|
|
|
3
3
|
href: string;
|
|
4
4
|
target?: string | undefined;
|
|
5
5
|
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
6
|
-
} & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "
|
|
6
|
+
} & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
|
7
7
|
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
8
8
|
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
9
|
-
} & Omit<React.ButtonHTMLAttributes<any>, "
|
|
9
|
+
} & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & React.RefAttributes<HTMLElement>, never>> & Omit<React.ForwardRefExoticComponent<Partial<{
|
|
10
10
|
href: string;
|
|
11
11
|
target?: string | undefined;
|
|
12
12
|
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
13
|
-
} & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "
|
|
13
|
+
} & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
|
14
14
|
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
15
15
|
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
16
|
-
} & Omit<React.ButtonHTMLAttributes<any>, "
|
|
16
|
+
} & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
|
|
17
17
|
Group: React.FC<import("antd/lib/button").ButtonGroupProps>;
|
|
18
18
|
}, keyof React.Component<any, {}, any>>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const BiuADatePicker: React.NamedExoticComponent<import("styled-components/dist/types").Substitute<(import("antd/lib/date-picker/generatePicker").PickerProps<import("moment").Moment> & {
|
|
3
|
-
status?: "" | "
|
|
3
|
+
status?: "" | "error" | "warning" | undefined;
|
|
4
4
|
dropdownClassName?: string | undefined;
|
|
5
5
|
popupClassName?: string | undefined;
|
|
6
6
|
}) & React.RefAttributes<React.Component<import("antd/lib/date-picker/generatePicker").PickerProps<import("moment").Moment> & {
|
|
7
|
-
status?: "" | "
|
|
7
|
+
status?: "" | "error" | "warning" | undefined;
|
|
8
8
|
dropdownClassName?: string | undefined;
|
|
9
9
|
popupClassName?: string | undefined;
|
|
10
10
|
}, unknown, any>>, import("styled-components/dist/types").BaseObject>>;
|
|
11
11
|
export declare const BiuAMouthPicker: React.MemoExoticComponent<import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerProps<import("moment").Moment> & {
|
|
12
|
-
status?: "" | "
|
|
12
|
+
status?: "" | "error" | "warning" | undefined;
|
|
13
13
|
dropdownClassName?: string | undefined;
|
|
14
14
|
popupClassName?: string | undefined;
|
|
15
15
|
}, "picker">, unknown>>;
|
|
@@ -2,6 +2,6 @@ import React from 'react';
|
|
|
2
2
|
export { Form as BiuAForm } from 'antd';
|
|
3
3
|
export declare const BiuAFormItem: React.MemoExoticComponent<(<Values = any>(props: import("antd").FormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
4
4
|
useStatus: () => {
|
|
5
|
-
status?: "" | "
|
|
5
|
+
status?: "" | "success" | "error" | "warning" | "validating" | undefined;
|
|
6
6
|
};
|
|
7
7
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warehouseAreaSelect.d.ts","sourceRoot":"","sources":["warehouseAreaSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+D,MAAM,OAAO,CAAA;;AAyBnF,
|
|
1
|
+
{"version":3,"file":"warehouseAreaSelect.d.ts","sourceRoot":"","sources":["warehouseAreaSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+D,MAAM,OAAO,CAAA;;AAyBnF,wBA4EC"}
|
|
@@ -26,7 +26,7 @@ import { request } from "../../../../package";
|
|
|
26
26
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
27
|
var getWarehouseAreaList = function getWarehouseAreaList(queryData) {
|
|
28
28
|
return request({
|
|
29
|
-
apiName: '/wms/base/warehouseArea/
|
|
29
|
+
apiName: '/wms/base/warehouseArea/querySimple',
|
|
30
30
|
dubbo: true,
|
|
31
31
|
data: queryData,
|
|
32
32
|
requestConfig: {
|
|
@@ -69,49 +69,22 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
|
69
69
|
setInitSelectValue = _useState6[1];
|
|
70
70
|
var timerRef = useRef();
|
|
71
71
|
useEffect(function () {
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
} else {
|
|
89
|
-
setAreaList([]);
|
|
90
|
-
}
|
|
91
|
-
}).finally(function () {
|
|
92
|
-
setLoading(false);
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
} else {
|
|
96
|
-
if (initialValue && !props.initSelectValue && (props.value === initialValue || props.value === undefined || props.value === null)) {
|
|
97
|
-
setLoading(true);
|
|
98
|
-
getWarehouseAreaList({
|
|
99
|
-
id: initialValue,
|
|
100
|
-
warehouseId: warehouseId,
|
|
101
|
-
isAutoGenerate: isAutoGenerate,
|
|
102
|
-
page: 1,
|
|
103
|
-
size: 1000
|
|
104
|
-
}).then(function (res) {
|
|
105
|
-
if (res !== null && res !== void 0 && res.rows.length && res.rows[0].id) {
|
|
106
|
-
setAreaList(res.rows);
|
|
107
|
-
setInitSelectValue(res.rows[0][rowLabel]);
|
|
108
|
-
} else {
|
|
109
|
-
setAreaList([]);
|
|
110
|
-
}
|
|
111
|
-
}).finally(function () {
|
|
112
|
-
setLoading(false);
|
|
113
|
-
});
|
|
114
|
-
}
|
|
72
|
+
if (initialValue && !props.initSelectValue && (props.value === initialValue || props.value === undefined || props.value === null)) {
|
|
73
|
+
setLoading(true);
|
|
74
|
+
getWarehouseAreaList({
|
|
75
|
+
id: initialValue,
|
|
76
|
+
warehouseId: warehouseId,
|
|
77
|
+
isAutoGenerate: isAutoGenerate
|
|
78
|
+
}).then(function (res) {
|
|
79
|
+
if (res !== null && res !== void 0 && res.length && res[0].id) {
|
|
80
|
+
setAreaList(res);
|
|
81
|
+
setInitSelectValue(res[0][rowLabel]);
|
|
82
|
+
} else {
|
|
83
|
+
setAreaList([]);
|
|
84
|
+
}
|
|
85
|
+
}).finally(function () {
|
|
86
|
+
setLoading(false);
|
|
87
|
+
});
|
|
115
88
|
}
|
|
116
89
|
}, [initialValue, isAutoGenerate, props.initSelectValue, props.value, rowLabel, warehouseId]);
|
|
117
90
|
var onSearch = useCallback(function (sValue) {
|
|
@@ -121,11 +94,9 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
|
121
94
|
getWarehouseAreaList({
|
|
122
95
|
warehouseId: warehouseId,
|
|
123
96
|
warehouseAreaCode: trim(sValue),
|
|
124
|
-
isAutoGenerate: isAutoGenerate
|
|
125
|
-
page: 1,
|
|
126
|
-
size: 1000
|
|
97
|
+
isAutoGenerate: isAutoGenerate
|
|
127
98
|
}).then(function (res) {
|
|
128
|
-
setAreaList(
|
|
99
|
+
setAreaList(res);
|
|
129
100
|
}).finally(function () {
|
|
130
101
|
setLoading(false);
|
|
131
102
|
});
|
|
@@ -9,7 +9,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
|
|
|
9
9
|
/**
|
|
10
10
|
* 0:入库 1:出库 2:移库 3:冻结 4:调整 5:属性变更
|
|
11
11
|
*/
|
|
12
|
-
orderType: 0 |
|
|
12
|
+
orderType: 0 | 2 | 1 | 3 | 5 | 4;
|
|
13
13
|
isFirstLoad: boolean;
|
|
14
14
|
onFetchData?: ((res: any) => any) | undefined;
|
|
15
15
|
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
|
@@ -501,6 +501,8 @@ export var BiuTable = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function
|
|
|
501
501
|
});
|
|
502
502
|
var currentColumns = [];
|
|
503
503
|
baseColumns.forEach(function (baseColumn) {
|
|
504
|
+
// 列定义的 noShow: true 优先于用户布局配置,始终不在表格中显示
|
|
505
|
+
if (baseColumn.noShow) return;
|
|
504
506
|
if (columnHashMap.has(baseColumn.dataIndex)) {
|
|
505
507
|
currentColumns.push(_objectSpread(_objectSpread({}, baseColumn), columnHashMap.get(baseColumn.dataIndex)));
|
|
506
508
|
}
|
|
@@ -51,4 +51,4 @@ export declare const BiuTableSelect: React.MemoExoticComponent<React.ForwardRefE
|
|
|
51
51
|
*/
|
|
52
52
|
mode?: string | undefined;
|
|
53
53
|
ownflag?: boolean | undefined;
|
|
54
|
-
} & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "
|
|
54
|
+
} & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "allowClear" | "showSearch"> & Pick<TableProps<any>, "onRow" | "dataSource"> & React.RefAttributes<unknown>>>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAQN,MAAM,OAAO,CAAA;AAMd,OAAO,KAAK,EACV,kBAAkB,EAGlB,aAAa,EACd,WAAmB;AAmKpB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+FAiVzB,CAAA;AAMD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+FAiIpB,CAAA;AAGD,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA"}
|