wt-enjoy-link-antd-repack 4.1.17
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +26 -0
- package/dist/esm/assets/location.png +0 -0
- package/dist/esm/component/BiuAButton/index.d.ts +18 -0
- package/dist/esm/component/BiuAButton/index.js +8 -0
- package/dist/esm/component/BiuACard/index.d.ts +2 -0
- package/dist/esm/component/BiuACard/index.js +9 -0
- package/dist/esm/component/BiuACascader/index.d.ts +10 -0
- package/dist/esm/component/BiuACascader/index.js +8 -0
- package/dist/esm/component/BiuADatePicker/index.d.ts +19 -0
- package/dist/esm/component/BiuADatePicker/index.js +18 -0
- package/dist/esm/component/BiuAForm/index.d.ts +7 -0
- package/dist/esm/component/BiuAForm/index.js +10 -0
- package/dist/esm/component/BiuAInput/index.d.ts +14 -0
- package/dist/esm/component/BiuAInput/index.js +32 -0
- package/dist/esm/component/BiuASelect/index.d.ts +6 -0
- package/dist/esm/component/BiuASelect/index.js +14 -0
- package/dist/esm/component/BiuASwitch/index.d.ts +2 -0
- package/dist/esm/component/BiuASwitch/index.js +9 -0
- package/dist/esm/component/BiuATimePicker/index.d.ts +4 -0
- package/dist/esm/component/BiuATimePicker/index.js +8 -0
- package/dist/esm/component/BiuATreeSelect/index.d.ts +2 -0
- package/dist/esm/component/BiuATreeSelect/index.js +8 -0
- package/dist/esm/component/BiuBar/index.d.ts +13 -0
- package/dist/esm/component/BiuBar/index.js +42 -0
- package/dist/esm/component/BiuComSelect/index.d.ts +24 -0
- package/dist/esm/component/BiuComSelect/index.js +104 -0
- package/dist/esm/component/BiuCue/index.d.ts +18 -0
- package/dist/esm/component/BiuCue/index.js +44 -0
- package/dist/esm/component/BiuCustomSelect/index.d.ts +19 -0
- package/dist/esm/component/BiuCustomSelect/index.js +153 -0
- package/dist/esm/component/BiuCustomTable/index.d.ts +14 -0
- package/dist/esm/component/BiuCustomTable/index.js +76 -0
- package/dist/esm/component/BiuCustomerOperCard/component/editTable.d.ts +8 -0
- package/dist/esm/component/BiuCustomerOperCard/component/editTable.js +264 -0
- package/dist/esm/component/BiuCustomerOperCard/component/index.d.ts +1 -0
- package/dist/esm/component/BiuCustomerOperCard/component/index.js +1 -0
- package/dist/esm/component/BiuCustomerOperCard/index.d.ts +20 -0
- package/dist/esm/component/BiuCustomerOperCard/index.js +56 -0
- package/dist/esm/component/BiuCustomerOperCard/type.d.ts +117 -0
- package/dist/esm/component/BiuCustomerOperCard/type.js +1 -0
- package/dist/esm/component/BiuCustomerOperCard/utils.d.ts +48 -0
- package/dist/esm/component/BiuCustomerOperCard/utils.js +236 -0
- package/dist/esm/component/BiuDescriptions/index.d.ts +9 -0
- package/dist/esm/component/BiuDescriptions/index.js +39 -0
- package/dist/esm/component/BiuDetailDrawer/index.d.ts +15 -0
- package/dist/esm/component/BiuDetailDrawer/index.js +54 -0
- package/dist/esm/component/BiuDivider/index.d.ts +4 -0
- package/dist/esm/component/BiuDivider/index.js +29 -0
- package/dist/esm/component/BiuField/component/AddressTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/AddressTableSelect.js +150 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.d.ts +3 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.js +3 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.d.ts +2 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.js +49 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.d.ts +2 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.js +98 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.d.ts +5 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.js +82 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/index.d.ts +14 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/index.js +393 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/type.d.ts +123 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/type.js +1 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.d.ts +5 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.js +59 -0
- package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.d.ts +12 -0
- package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.js +130 -0
- package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.d.ts +7 -0
- package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.js +80 -0
- package/dist/esm/component/BiuField/component/SNInput.d.ts +13 -0
- package/dist/esm/component/BiuField/component/SNInput.js +622 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.d.ts +23 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.js +187 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/base.d.ts +13 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/base.js +153 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.d.ts +21 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.js +238 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/index.d.ts +3 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/index.js +66 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/interface.d.ts +16 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/interface.js +1 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.d.ts +24 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.js +164 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/package.d.ts +3 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/package.js +149 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.d.ts +18 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.js +145 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.js +113 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.d.ts +18 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.js +100 -0
- package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.js +75 -0
- package/dist/esm/component/BiuField/component/autoComplete.d.ts +8 -0
- package/dist/esm/component/BiuField/component/autoComplete.js +82 -0
- package/dist/esm/component/BiuField/component/boxTypeSelect.d.ts +11 -0
- package/dist/esm/component/BiuField/component/boxTypeSelect.js +139 -0
- package/dist/esm/component/BiuField/component/businessdistrictselect.d.ts +55 -0
- package/dist/esm/component/BiuField/component/businessdistrictselect.js +414 -0
- package/dist/esm/component/BiuField/component/carrierInfoSelect.d.ts +13 -0
- package/dist/esm/component/BiuField/component/carrierInfoSelect.js +145 -0
- package/dist/esm/component/BiuField/component/channelSelect.d.ts +8 -0
- package/dist/esm/component/BiuField/component/channelSelect.js +94 -0
- package/dist/esm/component/BiuField/component/cityAreaCascader.d.ts +11 -0
- package/dist/esm/component/BiuField/component/cityAreaCascader.js +86 -0
- package/dist/esm/component/BiuField/component/clientInfoTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/clientInfoTableSelect.js +175 -0
- package/dist/esm/component/BiuField/component/customMenu.d.ts +3 -0
- package/dist/esm/component/BiuField/component/customMenu.js +110 -0
- package/dist/esm/component/BiuField/component/databaseSelect.d.ts +6 -0
- package/dist/esm/component/BiuField/component/databaseSelect.js +42 -0
- package/dist/esm/component/BiuField/component/departmentTreeSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/departmentTreeSelect.js +107 -0
- package/dist/esm/component/BiuField/component/dicNameSelect.d.ts +12 -0
- package/dist/esm/component/BiuField/component/dicNameSelect.js +53 -0
- package/dist/esm/component/BiuField/component/dicTypeSelect.d.ts +41 -0
- package/dist/esm/component/BiuField/component/dicTypeSelect.js +84 -0
- package/dist/esm/component/BiuField/component/dockingPartySelect.d.ts +8 -0
- package/dist/esm/component/BiuField/component/dockingPartySelect.js +63 -0
- package/dist/esm/component/BiuField/component/editLocationSelect.d.ts +18 -0
- package/dist/esm/component/BiuField/component/editLocationSelect.js +119 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.js +36 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.d.ts +14 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.js +97 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.d.ts +7 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.js +73 -0
- package/dist/esm/component/BiuField/component/goodsTypeSelect.d.ts +10 -0
- package/dist/esm/component/BiuField/component/goodsTypeSelect.js +92 -0
- package/dist/esm/component/BiuField/component/index.d.ts +37 -0
- package/dist/esm/component/BiuField/component/index.js +37 -0
- package/dist/esm/component/BiuField/component/interfaceNameSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/interfaceNameSelect.js +65 -0
- package/dist/esm/component/BiuField/component/lpnSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/lpnSelect.js +88 -0
- package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +15 -0
- package/dist/esm/component/BiuField/component/orderTypeSelect.js +79 -0
- package/dist/esm/component/BiuField/component/orderTypeTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/orderTypeTableSelect.js +45 -0
- package/dist/esm/component/BiuField/component/parkSelect.d.ts +12 -0
- package/dist/esm/component/BiuField/component/parkSelect.js +88 -0
- package/dist/esm/component/BiuField/component/personnelinfoselect.d.ts +57 -0
- package/dist/esm/component/BiuField/component/personnelinfoselect.js +431 -0
- package/dist/esm/component/BiuField/component/propertNameSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/propertNameSelect.js +114 -0
- package/dist/esm/component/BiuField/component/shipperTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/shipperTableSelect.js +94 -0
- package/dist/esm/component/BiuField/component/userSelect.d.ts +8 -0
- package/dist/esm/component/BiuField/component/userSelect.js +163 -0
- package/dist/esm/component/BiuField/component/warehouseAreaSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/warehouseAreaSelect.js +103 -0
- package/dist/esm/component/BiuField/component/warehouseInfoSelect.d.ts +13 -0
- package/dist/esm/component/BiuField/component/warehouseInfoSelect.js +92 -0
- package/dist/esm/component/BiuField/component/warehouseLoctionSelect.d.ts +14 -0
- package/dist/esm/component/BiuField/component/warehouseLoctionSelect.js +124 -0
- package/dist/esm/component/BiuField/index.d.ts +8 -0
- package/dist/esm/component/BiuField/index.js +607 -0
- package/dist/esm/component/BiuFileInput/index.d.ts +11 -0
- package/dist/esm/component/BiuFileInput/index.js +53 -0
- package/dist/esm/component/BiuForm/index.d.ts +12 -0
- package/dist/esm/component/BiuForm/index.js +241 -0
- package/dist/esm/component/BiuForm/type.d.ts +45 -0
- package/dist/esm/component/BiuForm/type.js +1 -0
- package/dist/esm/component/BiuForm/utils.d.ts +2 -0
- package/dist/esm/component/BiuForm/utils.js +46 -0
- package/dist/esm/component/BiuIcon/index.d.ts +3 -0
- package/dist/esm/component/BiuIcon/index.js +15 -0
- package/dist/esm/component/BiuMapSelectSite/index.d.ts +48 -0
- package/dist/esm/component/BiuMapSelectSite/index.js +453 -0
- package/dist/esm/component/BiuModal/index.d.ts +24 -0
- package/dist/esm/component/BiuModal/index.js +239 -0
- package/dist/esm/component/BiuOperForm/index.d.ts +15 -0
- package/dist/esm/component/BiuOperForm/index.js +375 -0
- package/dist/esm/component/BiuOperForm/type.d.ts +23 -0
- package/dist/esm/component/BiuOperForm/type.js +1 -0
- package/dist/esm/component/BiuOperTable/index.d.ts +15 -0
- package/dist/esm/component/BiuOperTable/index.js +349 -0
- package/dist/esm/component/BiuOperTable/type.d.ts +142 -0
- package/dist/esm/component/BiuOperTable/type.js +1 -0
- package/dist/esm/component/BiuOperTable/utils.d.ts +6 -0
- package/dist/esm/component/BiuOperTable/utils.js +13 -0
- package/dist/esm/component/BiuPagination/index.d.ts +14 -0
- package/dist/esm/component/BiuPagination/index.js +34 -0
- package/dist/esm/component/BiuResizeTable/component/biuTableCell.d.ts +1 -0
- package/dist/esm/component/BiuResizeTable/component/biuTableCell.js +74 -0
- package/dist/esm/component/BiuResizeTable/component/index.d.ts +1 -0
- package/dist/esm/component/BiuResizeTable/component/index.js +1 -0
- package/dist/esm/component/BiuResizeTable/index.d.ts +2 -0
- package/dist/esm/component/BiuResizeTable/index.js +71 -0
- package/dist/esm/component/BiuResizeTable/index.less +19 -0
- package/dist/esm/component/BiuSplit/index.d.ts +32 -0
- package/dist/esm/component/BiuSplit/index.js +57 -0
- package/dist/esm/component/BiuTable/component/index.d.ts +3 -0
- package/dist/esm/component/BiuTable/component/index.js +3 -0
- package/dist/esm/component/BiuTable/component/tableActionBarRender.d.ts +9 -0
- package/dist/esm/component/BiuTable/component/tableActionBarRender.js +88 -0
- package/dist/esm/component/BiuTable/component/tableCellRender.d.ts +14 -0
- package/dist/esm/component/BiuTable/component/tableCellRender.js +108 -0
- package/dist/esm/component/BiuTable/component/tableSettingRender.d.ts +2 -0
- package/dist/esm/component/BiuTable/component/tableSettingRender.js +345 -0
- package/dist/esm/component/BiuTable/context.d.ts +2 -0
- package/dist/esm/component/BiuTable/context.js +2 -0
- package/dist/esm/component/BiuTable/hooks/index.d.ts +1 -0
- package/dist/esm/component/BiuTable/hooks/index.js +1 -0
- package/dist/esm/component/BiuTable/hooks/useFetchData.d.ts +4 -0
- package/dist/esm/component/BiuTable/hooks/useFetchData.js +64 -0
- package/dist/esm/component/BiuTable/index.d.ts +42 -0
- package/dist/esm/component/BiuTable/index.js +484 -0
- package/dist/esm/component/BiuTable/type.d.ts +168 -0
- package/dist/esm/component/BiuTable/type.js +1 -0
- package/dist/esm/component/BiuTable/utils.d.ts +10 -0
- package/dist/esm/component/BiuTable/utils.js +117 -0
- package/dist/esm/component/BiuTableLink/index.d.ts +11 -0
- package/dist/esm/component/BiuTableLink/index.js +54 -0
- package/dist/esm/component/BiuTableSelect/index.d.ts +49 -0
- package/dist/esm/component/BiuTableSelect/index.js +209 -0
- package/dist/esm/component/BiuTabs/index.d.ts +4 -0
- package/dist/esm/component/BiuTabs/index.js +18 -0
- package/dist/esm/component/BiuVirtualTable/index.d.ts +21 -0
- package/dist/esm/component/BiuVirtualTable/index.js +161 -0
- package/dist/esm/component/index.d.ts +35 -0
- package/dist/esm/component/index.js +35 -0
- package/dist/esm/constant/Cache_Key.d.ts +28 -0
- package/dist/esm/constant/Cache_Key.js +28 -0
- package/dist/esm/constant/DateTime.d.ts +12 -0
- package/dist/esm/constant/DateTime.js +15 -0
- package/dist/esm/constant/External.d.ts +64 -0
- package/dist/esm/constant/External.js +260 -0
- package/dist/esm/constant/Gateway_Path.d.ts +5 -0
- package/dist/esm/constant/Gateway_Path.js +5 -0
- package/dist/esm/constant/Layout.d.ts +210 -0
- package/dist/esm/constant/Layout.js +215 -0
- package/dist/esm/constant/Regexp.d.ts +109 -0
- package/dist/esm/constant/Regexp.js +130 -0
- package/dist/esm/constant/index.d.ts +6 -0
- package/dist/esm/constant/index.js +6 -0
- package/dist/esm/hooks/index.d.ts +6 -0
- package/dist/esm/hooks/index.js +6 -0
- package/dist/esm/hooks/useAuth.d.ts +4 -0
- package/dist/esm/hooks/useAuth.js +22 -0
- package/dist/esm/hooks/useCurrentSystem.d.ts +6 -0
- package/dist/esm/hooks/useCurrentSystem.js +15 -0
- package/dist/esm/hooks/useLayoutInfo.d.ts +10 -0
- package/dist/esm/hooks/useLayoutInfo.js +14 -0
- package/dist/esm/hooks/useReducerState.d.ts +16 -0
- package/dist/esm/hooks/useReducerState.js +43 -0
- package/dist/esm/hooks/useUserInfo.d.ts +4 -0
- package/dist/esm/hooks/useUserInfo.js +15 -0
- package/dist/esm/hooks/useWareInfo.d.ts +4 -0
- package/dist/esm/hooks/useWareInfo.js +15 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/package/index.d.ts +1 -0
- package/dist/esm/package/index.js +1 -0
- package/dist/esm/package/requestWrapper/baseRequest.d.ts +3 -0
- package/dist/esm/package/requestWrapper/baseRequest.js +47 -0
- package/dist/esm/package/requestWrapper/index.d.ts +4 -0
- package/dist/esm/package/requestWrapper/index.js +402 -0
- package/dist/esm/package/requestWrapper/type.d.ts +36 -0
- package/dist/esm/package/requestWrapper/type.js +1 -0
- package/dist/esm/package/requestWrapper/utils.d.ts +10 -0
- package/dist/esm/package/requestWrapper/utils.js +35 -0
- package/dist/esm/utils/authUtils.d.ts +18 -0
- package/dist/esm/utils/authUtils.js +36 -0
- package/dist/esm/utils/cacheUtils.d.ts +4 -0
- package/dist/esm/utils/cacheUtils.js +24 -0
- package/dist/esm/utils/chainUtils.d.ts +26 -0
- package/dist/esm/utils/chainUtils.js +54 -0
- package/dist/esm/utils/dateUtils.d.ts +23 -0
- package/dist/esm/utils/dateUtils.js +55 -0
- package/dist/esm/utils/decimalUtils.d.ts +5 -0
- package/dist/esm/utils/decimalUtils.js +7 -0
- package/dist/esm/utils/excelUtils.d.ts +22 -0
- package/dist/esm/utils/excelUtils.js +153 -0
- package/dist/esm/utils/index.d.ts +11 -0
- package/dist/esm/utils/index.js +11 -0
- package/dist/esm/utils/layoutUtils.d.ts +1 -0
- package/dist/esm/utils/layoutUtils.js +13 -0
- package/dist/esm/utils/objectUtils.d.ts +1 -0
- package/dist/esm/utils/objectUtils.js +3 -0
- package/dist/esm/utils/soundUtils.d.ts +5 -0
- package/dist/esm/utils/soundUtils.js +29 -0
- package/dist/esm/utils/stringUtils.d.ts +24 -0
- package/dist/esm/utils/stringUtils.js +39 -0
- package/dist/esm/utils/sysUtils.d.ts +4 -0
- package/dist/esm/utils/sysUtils.js +4 -0
- package/package.json +59 -0
package/README.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
### 如何本地运行调试组件
|
2
|
+
|
3
|
+
1、运行npm run start
|
4
|
+
2、在docs/的文件中直接引入组件即可
|
5
|
+
例如
|
6
|
+
```md
|
7
|
+
将这串代码放入md文件中可以正常解析
|
8
|
+
```jsx
|
9
|
+
import React from 'react';
|
10
|
+
import {
|
11
|
+
BiuField
|
12
|
+
} from '@/';
|
13
|
+
import 'antd/dist/antd.css';
|
14
|
+
|
15
|
+
|
16
|
+
export default () => <h1>
|
17
|
+
<BiuField valueType="personnelinfoselect" mode="multiple"></BiuField>
|
18
|
+
</h1>;
|
19
|
+
```
|
20
|
+
|
21
|
+
```
|
22
|
+
|
23
|
+
### 如何更新包,发布到npm
|
24
|
+
1、更改package.json中的版本号(version)
|
25
|
+
2、使用npm run build打包
|
26
|
+
3、使用npm publish推送到npm仓库
|
Binary file
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const BiuAButton: React.MemoExoticComponent<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Partial<{
|
3
|
+
href: string;
|
4
|
+
target?: string | undefined;
|
5
|
+
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
6
|
+
} & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
7
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
8
|
+
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
9
|
+
} & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & React.RefAttributes<HTMLElement>, never>> & Omit<React.ForwardRefExoticComponent<Partial<{
|
10
|
+
href: string;
|
11
|
+
target?: string | undefined;
|
12
|
+
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
13
|
+
} & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
14
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
15
|
+
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
16
|
+
} & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
|
17
|
+
Group: React.FC<import("antd/lib/button").ButtonGroupProps>;
|
18
|
+
}, keyof React.Component<any, {}, any>>>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Button } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
import { styled } from 'styled-components';
|
4
|
+
var StyledAButton = styled(Button).withConfig({
|
5
|
+
displayName: "StyledAButton",
|
6
|
+
componentId: "enjoy-link-antd-repack__sc-x0nsue-0"
|
7
|
+
})(["height:26px !important;&:not(.ant-btn-circle){border-radius:3px !important;padding:0 15px !important;}"]);
|
8
|
+
export var BiuAButton = /*#__PURE__*/React.memo(StyledAButton);
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const BiuACard: React.MemoExoticComponent<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("antd").CardProps & React.RefAttributes<HTMLDivElement>, never>> & Omit<import("antd/lib/card").CardInterface, keyof React.Component<any, {}, any>>>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Card } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
import { styled } from 'styled-components';
|
4
|
+
var StyledCard = styled(Card).withConfig({
|
5
|
+
displayName: "StyledCard",
|
6
|
+
componentId: "enjoy-link-antd-repack__sc-wi6mz7-0"
|
7
|
+
})(["height:100% !important;.ant-card-head{padding:0 12px !important;}.ant-card-head-title{padding:12px 0 !important;}.ant-card-body{padding:12px !important;}"]);
|
8
|
+
export var BiuACard = /*#__PURE__*/React.memo(StyledCard);
|
9
|
+
BiuACard.displayName = 'BiuACard';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const BiuACascader: React.MemoExoticComponent<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.PropsWithChildren<import("antd").CascaderProps<import("antd/lib/cascader").DefaultOptionType | import("antd/lib/cascader").BaseOptionType>> & {
|
3
|
+
ref?: React.Ref<import("antd/lib/cascader").CascaderRef> | undefined;
|
4
|
+
}, import("styled-components/dist/types").BaseObject>> & Omit<(<OptionType extends import("antd/lib/cascader").DefaultOptionType | import("antd/lib/cascader").BaseOptionType = import("antd/lib/cascader").DefaultOptionType>(props: React.PropsWithChildren<import("antd").CascaderProps<OptionType>> & {
|
5
|
+
ref?: React.Ref<import("antd/lib/cascader").CascaderRef> | undefined;
|
6
|
+
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
7
|
+
displayName: string;
|
8
|
+
SHOW_PARENT: "SHOW_PARENT";
|
9
|
+
SHOW_CHILD: "SHOW_CHILD";
|
10
|
+
}, keyof React.Component<any, {}, any>>>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Cascader } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
import { styled } from 'styled-components';
|
4
|
+
var StyledCascader = styled(Cascader).withConfig({
|
5
|
+
displayName: "StyledCascader",
|
6
|
+
componentId: "enjoy-link-antd-repack__sc-lzm8za-0"
|
7
|
+
})([".ant-select-selector{height:26px !important;}.ant-select-selection-search-input{height:26px !important;}.ant-select-selection-item{line-height:26px !important;}"]);
|
8
|
+
export var BiuACascader = /*#__PURE__*/React.memo(StyledCascader);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import React from 'react';
|
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?: "" | "warning" | "error" | undefined;
|
4
|
+
dropdownClassName?: string | undefined;
|
5
|
+
popupClassName?: string | undefined;
|
6
|
+
}) & React.RefAttributes<React.Component<import("antd/lib/date-picker/generatePicker").PickerProps<import("moment").Moment> & {
|
7
|
+
status?: "" | "warning" | "error" | undefined;
|
8
|
+
dropdownClassName?: string | undefined;
|
9
|
+
popupClassName?: string | undefined;
|
10
|
+
}, unknown, any>>, import("styled-components/dist/types").BaseObject>>;
|
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?: "" | "warning" | "error" | undefined;
|
13
|
+
dropdownClassName?: string | undefined;
|
14
|
+
popupClassName?: string | undefined;
|
15
|
+
}, "picker">, unknown>>;
|
16
|
+
export declare const BiuARangePicker: React.MemoExoticComponent<import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<import("antd/lib/date-picker/generatePicker").RangePickerProps<import("moment").Moment> & {
|
17
|
+
dropdownClassName?: string | undefined;
|
18
|
+
popupClassName?: string | undefined;
|
19
|
+
}, unknown>>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { DatePicker } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
import { styled } from 'styled-components';
|
4
|
+
var StyledDatePicker = styled(DatePicker).withConfig({
|
5
|
+
displayName: "StyledDatePicker",
|
6
|
+
componentId: "enjoy-link-antd-repack__sc-o8yhr1-0"
|
7
|
+
})(["height:28px !important;"]);
|
8
|
+
var StyledMonthPicker = styled(DatePicker.MonthPicker).withConfig({
|
9
|
+
displayName: "StyledMonthPicker",
|
10
|
+
componentId: "enjoy-link-antd-repack__sc-o8yhr1-1"
|
11
|
+
})(["height:28px !important;"]);
|
12
|
+
var StyledRangePicker = styled(DatePicker.RangePicker).withConfig({
|
13
|
+
displayName: "StyledRangePicker",
|
14
|
+
componentId: "enjoy-link-antd-repack__sc-o8yhr1-2"
|
15
|
+
})(["height:28px !important;"]);
|
16
|
+
export var BiuADatePicker = /*#__PURE__*/React.memo(StyledDatePicker);
|
17
|
+
export var BiuAMouthPicker = /*#__PURE__*/React.memo(StyledMonthPicker);
|
18
|
+
export var BiuARangePicker = /*#__PURE__*/React.memo(StyledRangePicker);
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export { Form as BiuAForm } from 'antd';
|
3
|
+
export declare const BiuAFormItem: React.MemoExoticComponent<(<Values = any>(props: import("antd").FormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
4
|
+
useStatus: () => {
|
5
|
+
status?: "" | "validating" | "success" | "warning" | "error" | undefined;
|
6
|
+
};
|
7
|
+
}>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Form } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
import { styled } from 'styled-components';
|
4
|
+
export { Form as BiuAForm } from 'antd';
|
5
|
+
var StyledFormItem = styled(Form.Item).withConfig({
|
6
|
+
displayName: "StyledFormItem",
|
7
|
+
componentId: "enjoy-link-antd-repack__sc-1ura5sk-0"
|
8
|
+
})(["margin:5px 0 !important;padding:0 4px !important;.ant-form-item-no-colon{height:28px !important;}.ant-form-item-explain{display:none !important;}.ant-select-disabled .ant-select-selection-item{color:#000 !important;}.ant-input-disabled{color:#000 !important;}.ant-picker-input > input[disabled]{color:#000 !important;}.ant-input-affix-wrapper-disabled .ant-input[disabled]{color:#000 !important;}"]);
|
9
|
+
export var BiuAFormItem = /*#__PURE__*/React.memo(StyledFormItem);
|
10
|
+
BiuAFormItem.displayName = 'BiuAFormItem';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const BiuAInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd").InputProps & React.RefAttributes<import("antd").InputRef>> & {
|
3
|
+
Group: React.FC<import("antd/lib/input").GroupProps>;
|
4
|
+
Search: React.ForwardRefExoticComponent<import("antd/lib/input").SearchProps & React.RefAttributes<import("antd").InputRef>>;
|
5
|
+
TextArea: React.ForwardRefExoticComponent<import("antd/lib/input").TextAreaProps & React.RefAttributes<import("antd/lib/input/TextArea").TextAreaRef>>;
|
6
|
+
Password: React.ForwardRefExoticComponent<import("antd/lib/input").PasswordProps & React.RefAttributes<import("antd").InputRef>>;
|
7
|
+
}>;
|
8
|
+
export declare const BiuATextArea: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd/lib/input").TextAreaProps & React.RefAttributes<import("antd/lib/input/TextArea").TextAreaRef>>>;
|
9
|
+
export declare const BiuAPassword: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd/lib/input").PasswordProps & React.RefAttributes<import("antd").InputRef>>>;
|
10
|
+
export declare const BiuAInputGroup: React.NamedExoticComponent<import("antd/lib/input").GroupProps>;
|
11
|
+
export declare const BiuASearch: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd/lib/input").SearchProps & React.RefAttributes<import("antd").InputRef>>>;
|
12
|
+
export declare const BiuAInputNumber: any;
|
13
|
+
export declare const BiuAAutoComplete: any;
|
14
|
+
export declare const BiuAAutoCompleteOption: React.NamedExoticComponent<import("antd/lib/select").OptionProps>;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { AutoComplete, Input, InputNumber } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
import { styled } from 'styled-components';
|
4
|
+
var StyledInput = styled(Input).withConfig({
|
5
|
+
displayName: "StyledInput",
|
6
|
+
componentId: "enjoy-link-antd-repack__sc-1gwswzd-0"
|
7
|
+
})(["height:28px !important;.ant-input-wrapper{height:26px !important;.ant-input{height:26px !important;}.ant-input-suffix{height:26px !important;}}"]);
|
8
|
+
var StyledInputNumber = styled(InputNumber).withConfig({
|
9
|
+
displayName: "StyledInputNumber",
|
10
|
+
componentId: "enjoy-link-antd-repack__sc-1gwswzd-1"
|
11
|
+
})(["height:28px !important;.ant-input-number-input-wrap{height:26px !important;}.ant-input-number-input{height:26px !important;}"]);
|
12
|
+
var StyledInputPassword = styled(Input.Password).withConfig({
|
13
|
+
displayName: "StyledInputPassword",
|
14
|
+
componentId: "enjoy-link-antd-repack__sc-1gwswzd-2"
|
15
|
+
})(["height:28px !important;.ant-input-number-input-wrap{height:26px !important;}.ant-input-number-input{height:26px !important;}"]);
|
16
|
+
var StyledInputSearch = styled(Input.Search).withConfig({
|
17
|
+
displayName: "StyledInputSearch",
|
18
|
+
componentId: "enjoy-link-antd-repack__sc-1gwswzd-3"
|
19
|
+
})(["height:28px !important;.ant-input-wrapper{height:28px !important;.ant-input{height:28px !important;}}.ant-input-search-button{height:28px !important;}"]);
|
20
|
+
var StyledAutoComplete = styled(AutoComplete).withConfig({
|
21
|
+
displayName: "StyledAutoComplete",
|
22
|
+
componentId: "enjoy-link-antd-repack__sc-1gwswzd-4"
|
23
|
+
})([".ant-select-selector{height:28px !important;}.ant-select-selection-search-input{height:26px !important;}"]);
|
24
|
+
export var BiuAInput = /*#__PURE__*/React.memo(StyledInput);
|
25
|
+
BiuAInput.displayName = 'BiuAInput';
|
26
|
+
export var BiuATextArea = /*#__PURE__*/React.memo(Input.TextArea);
|
27
|
+
export var BiuAPassword = /*#__PURE__*/React.memo(StyledInputPassword);
|
28
|
+
export var BiuAInputGroup = /*#__PURE__*/React.memo(Input.Group);
|
29
|
+
export var BiuASearch = /*#__PURE__*/React.memo(StyledInputSearch);
|
30
|
+
export var BiuAInputNumber = /*#__PURE__*/React.memo(StyledInputNumber);
|
31
|
+
export var BiuAAutoComplete = /*#__PURE__*/React.memo(StyledAutoComplete);
|
32
|
+
export var BiuAAutoCompleteOption = /*#__PURE__*/React.memo(AutoComplete.Option);
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Select } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
import { styled } from 'styled-components';
|
4
|
+
var StyledSelect = styled(Select).withConfig({
|
5
|
+
displayName: "StyledSelect",
|
6
|
+
componentId: "enjoy-link-antd-repack__sc-144xri5-0"
|
7
|
+
})([".ant-select-selector{height:28px !important;.ant-select-selection-overflow{.ant-select-selection-overflow-item{.ant-select-selection-item{height:16px !important;line-height:16px !important;}.ant-select-selection-search-input{height:16px !important;line-height:16px !important;}}}}.ant-select-selection-search-input{height:26px !important;}.ant-select-selection-placeholder{line-height:26px !important;}.ant-select-selection-item{height:26px !important;line-height:26px !important;}.ant-select-selection-overflow-item{height:100% !important;}.ant-select-selection-search{height:100% !important;}"]);
|
8
|
+
|
9
|
+
/**
|
10
|
+
* @description: 为了统一样式,对antd的Select组件进行了封装
|
11
|
+
*/
|
12
|
+
export var BiuASelect = /*#__PURE__*/React.memo(StyledSelect);
|
13
|
+
BiuASelect.displayName = 'BiuASelect';
|
14
|
+
export var BiuASelectOption = /*#__PURE__*/React.memo(Select.Option);
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const BiuASwitch: React.MemoExoticComponent<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("antd").SwitchProps & React.RefAttributes<HTMLElement>, never>> & Omit<React.ForwardRefExoticComponent<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, keyof React.Component<any, {}, any>>>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Switch } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
import { styled } from 'styled-components';
|
4
|
+
var StyledSwitch = styled(Switch).withConfig({
|
5
|
+
displayName: "StyledSwitch",
|
6
|
+
componentId: "enjoy-link-antd-repack__sc-a84yqt-0"
|
7
|
+
})(["margin:6px 0 !important;"]);
|
8
|
+
export var BiuASwitch = /*#__PURE__*/React.memo(StyledSwitch);
|
9
|
+
BiuASwitch.displayName = 'BiuASwitch';
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const BiuATimePicker: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd").TimePickerProps & React.RefAttributes<any>> & {
|
3
|
+
RangePicker: React.ForwardRefExoticComponent<import("antd").TimeRangePickerProps & React.RefAttributes<any>>;
|
4
|
+
}>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { TimePicker } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
import { styled } from 'styled-components';
|
4
|
+
var StyledTimePicker = styled(TimePicker).withConfig({
|
5
|
+
displayName: "StyledTimePicker",
|
6
|
+
componentId: "enjoy-link-antd-repack__sc-kukhg4-0"
|
7
|
+
})(["height:28px !important;"]);
|
8
|
+
export var BiuATimePicker = /*#__PURE__*/React.memo(StyledTimePicker);
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const BiuATreeSelect: React.MemoExoticComponent<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof React.Component<any, {}, any>>)>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { TreeSelect } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
import { styled } from 'styled-components';
|
4
|
+
var StyledTreeSelect = styled(TreeSelect).withConfig({
|
5
|
+
displayName: "StyledTreeSelect",
|
6
|
+
componentId: "enjoy-link-antd-repack__sc-1hoq833-0"
|
7
|
+
})([".ant-select-selector{height:28px !important;.ant-select-selection-overflow{.ant-select-selection-overflow-item{.ant-select-selection-item{height:16px !important;line-height:16px !important;}.ant-select-selection-search-input{height:16px !important;line-height:16px !important;}}}}.ant-select-selection-search-input{height:26px !important;}.ant-select-selection-placeholder{line-height:26px !important;}.ant-select-selection-item{line-height:26px !important;}"]);
|
8
|
+
export var BiuATreeSelect = /*#__PURE__*/React.memo(StyledTreeSelect);
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { CSSProperties } from 'react';
|
2
|
+
import React from 'react';
|
3
|
+
export type BiuBarPropsType = {
|
4
|
+
style?: CSSProperties;
|
5
|
+
value?: any;
|
6
|
+
} & Record<string, string>;
|
7
|
+
/**
|
8
|
+
* 条形码封装组件
|
9
|
+
* 提取 WMS 组件
|
10
|
+
* @param props 定义条形码样式以及值
|
11
|
+
* @returns
|
12
|
+
*/
|
13
|
+
export declare const BiuBar: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<BiuBarPropsType, "ref"> & React.RefAttributes<unknown>>>;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
var _excluded = ["value", "style"];
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5
|
+
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; }
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
|
+
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; }
|
9
|
+
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; }
|
10
|
+
import JsBarcode from 'jsbarcode';
|
11
|
+
import React, { forwardRef, useCallback } from 'react';
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
+
/**
|
14
|
+
* 条形码封装组件
|
15
|
+
* 提取 WMS 组件
|
16
|
+
* @param props 定义条形码样式以及值
|
17
|
+
* @returns
|
18
|
+
*/
|
19
|
+
export var BiuBar = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
20
|
+
var value = props.value,
|
21
|
+
style = props.style,
|
22
|
+
codeOptions = _objectWithoutProperties(props, _excluded);
|
23
|
+
var toJsBarcode = useCallback(function (barcode) {
|
24
|
+
JsBarcode(barcode, value, _objectSpread({
|
25
|
+
displayValue: false,
|
26
|
+
width: 1.5,
|
27
|
+
height: 50,
|
28
|
+
margin: 10
|
29
|
+
}, codeOptions));
|
30
|
+
}, [codeOptions, value]);
|
31
|
+
return /*#__PURE__*/_jsx("div", {
|
32
|
+
style: style,
|
33
|
+
ref: ref,
|
34
|
+
children: /*#__PURE__*/_jsx("svg", {
|
35
|
+
ref: function ref(barcode) {
|
36
|
+
if (barcode) {
|
37
|
+
toJsBarcode(barcode);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
})
|
41
|
+
});
|
42
|
+
}));
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
/**
|
4
|
+
* 字典传入类型定义
|
5
|
+
*/
|
6
|
+
export type BiuComSelectPropsType = {
|
7
|
+
value?: string | string[] | number | number[];
|
8
|
+
loginCode?: string;
|
9
|
+
isForce?: boolean;
|
10
|
+
isVaild?: boolean;
|
11
|
+
} & SelectProps<any>;
|
12
|
+
/**
|
13
|
+
* WMS 货主选择组件
|
14
|
+
* 在系统为 WMS 时,需要强制进行货主选择
|
15
|
+
* 查询出来的货主只有一条时,默认直接选中该货主
|
16
|
+
* @param props 设置是否页面级提示,绑定值
|
17
|
+
* @returns
|
18
|
+
*/
|
19
|
+
export declare const BiuComSelect: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
20
|
+
value?: string | number | string[] | number[] | undefined;
|
21
|
+
loginCode?: string | undefined;
|
22
|
+
isForce?: boolean | undefined;
|
23
|
+
isVaild?: boolean | undefined;
|
24
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
@@ -0,0 +1,104 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
var _excluded = ["loginCode", "value", "onChange", "isForce", "isVaild"];
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5
|
+
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; }
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
9
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
10
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
11
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
12
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
13
|
+
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."); }
|
14
|
+
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); }
|
15
|
+
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; }
|
16
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
17
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
18
|
+
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; }
|
19
|
+
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; }
|
20
|
+
import React, { forwardRef, useCallback, useEffect, useMemo, useState } from 'react';
|
21
|
+
import { BiuASelect, BiuASelectOption } from "./..";
|
22
|
+
import { GATEWAY_ROUTE_MDM } from "../../constant";
|
23
|
+
import { request } from "../../package";
|
24
|
+
|
25
|
+
/**
|
26
|
+
* 字典传入类型定义
|
27
|
+
*/
|
28
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
29
|
+
/**
|
30
|
+
* WMS 货主选择组件
|
31
|
+
* 在系统为 WMS 时,需要强制进行货主选择
|
32
|
+
* 查询出来的货主只有一条时,默认直接选中该货主
|
33
|
+
* @param props 设置是否页面级提示,绑定值
|
34
|
+
* @returns
|
35
|
+
*/
|
36
|
+
export var BiuComSelect = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
37
|
+
var loginCode = props.loginCode,
|
38
|
+
value = props.value,
|
39
|
+
onChange = props.onChange,
|
40
|
+
_props$isForce = props.isForce,
|
41
|
+
isForce = _props$isForce === void 0 ? false : _props$isForce,
|
42
|
+
_props$isVaild = props.isVaild,
|
43
|
+
isVaild = _props$isVaild === void 0 ? false : _props$isVaild,
|
44
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
45
|
+
var _useState = useState([]),
|
46
|
+
_useState2 = _slicedToArray(_useState, 2),
|
47
|
+
warehouseList = _useState2[0],
|
48
|
+
setWarehouseList = _useState2[1];
|
49
|
+
useEffect(function () {
|
50
|
+
if (loginCode) request({
|
51
|
+
apiName: 'wms.mdm.warhouseSimpleList',
|
52
|
+
data: {
|
53
|
+
loginCode: loginCode
|
54
|
+
},
|
55
|
+
requestConfig: {
|
56
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
57
|
+
},
|
58
|
+
showNotification: isVaild
|
59
|
+
}).then(function (res) {
|
60
|
+
setWarehouseList(_toConsumableArray(res || []));
|
61
|
+
});
|
62
|
+
}, [isVaild, loginCode]);
|
63
|
+
useEffect(function () {
|
64
|
+
if (warehouseList && Array.isArray(warehouseList) && warehouseList.length === 1) {
|
65
|
+
if (onChange) {
|
66
|
+
onChange(warehouseList[0].id, warehouseList[0]);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}, [onChange, warehouseList]);
|
70
|
+
var selectOptions = useMemo(function () {
|
71
|
+
return warehouseList === null || warehouseList === void 0 ? void 0 : warehouseList.map(function (item) {
|
72
|
+
return {
|
73
|
+
label: item.warehouseName,
|
74
|
+
value: item.id
|
75
|
+
};
|
76
|
+
});
|
77
|
+
}, [warehouseList]);
|
78
|
+
var isDarwOpen = useMemo(function () {
|
79
|
+
if (value) return undefined;
|
80
|
+
if (isForce && !value) return true;
|
81
|
+
return undefined;
|
82
|
+
}, [isForce, value]);
|
83
|
+
var onSelectChange = useCallback(function (valueOption) {
|
84
|
+
var option = warehouseList.filter(function (item) {
|
85
|
+
return "".concat(item.id) === "".concat(valueOption);
|
86
|
+
})[0];
|
87
|
+
if (onChange) onChange(valueOption, option);
|
88
|
+
}, [onChange, warehouseList]);
|
89
|
+
return /*#__PURE__*/_jsx(BiuASelect, _objectSpread(_objectSpread({
|
90
|
+
ref: ref,
|
91
|
+
value: value,
|
92
|
+
options: selectOptions,
|
93
|
+
open: isDarwOpen,
|
94
|
+
onChange: onSelectChange
|
95
|
+
}, restProps), {}, {
|
96
|
+
children: warehouseList.map(function (warehouse) {
|
97
|
+
return /*#__PURE__*/_jsx(BiuASelectOption, {
|
98
|
+
value: warehouse.id,
|
99
|
+
label: warehouse.warehouseName,
|
100
|
+
children: warehouse.warehouseName
|
101
|
+
}, warehouse.id);
|
102
|
+
})
|
103
|
+
}));
|
104
|
+
}));
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { ArgsProps as NoticeArgsProps } from 'antd/es/notification';
|
2
|
+
import type { SoundAudioType } from "../../utils";
|
3
|
+
export type notificationPropsType = {
|
4
|
+
/**
|
5
|
+
* 播放声音
|
6
|
+
*/
|
7
|
+
soundAudioType?: SoundAudioType;
|
8
|
+
} & NoticeArgsProps;
|
9
|
+
export type CueType = 'success' | 'error' | 'info' | 'warning';
|
10
|
+
export type ConfigNoticeInstanceBaseType = {
|
11
|
+
(message: string, descriptionOrProps?: string | Omit<notificationPropsType, 'message'>, props?: Omit<notificationPropsType, 'message'>): void;
|
12
|
+
};
|
13
|
+
export declare const BiuCue: ConfigNoticeInstanceBaseType & {
|
14
|
+
Success: ConfigNoticeInstanceBaseType;
|
15
|
+
Error: ConfigNoticeInstanceBaseType;
|
16
|
+
Warning: ConfigNoticeInstanceBaseType;
|
17
|
+
Info: ConfigNoticeInstanceBaseType;
|
18
|
+
};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
4
|
+
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; }
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
7
|
+
import { notification } from 'antd';
|
8
|
+
import { omit } from 'lodash';
|
9
|
+
import { Sound } from "../../utils";
|
10
|
+
var ConfigOverLoadArgs = function ConfigOverLoadArgs(name) {
|
11
|
+
function ConfigNoticeInstanceBase(message, descriptionOrProps, props) {
|
12
|
+
var _baseConfig;
|
13
|
+
var baseConfig = {
|
14
|
+
message: message,
|
15
|
+
style: {
|
16
|
+
zIndex: 9999
|
17
|
+
},
|
18
|
+
duration: 3
|
19
|
+
};
|
20
|
+
var arg2 = descriptionOrProps !== null && descriptionOrProps !== void 0 ? descriptionOrProps : {};
|
21
|
+
if (typeof arg2 === 'string') {
|
22
|
+
baseConfig = _objectSpread(_objectSpread({}, baseConfig), {}, {
|
23
|
+
description: arg2
|
24
|
+
});
|
25
|
+
} else {
|
26
|
+
baseConfig = _objectSpread(_objectSpread({}, baseConfig), arg2);
|
27
|
+
}
|
28
|
+
if (props) {
|
29
|
+
baseConfig = _objectSpread(_objectSpread({}, baseConfig), props);
|
30
|
+
}
|
31
|
+
if ((_baseConfig = baseConfig) !== null && _baseConfig !== void 0 && _baseConfig.soundAudioType) {
|
32
|
+
var _baseConfig2;
|
33
|
+
Sound.playAudio((_baseConfig2 = baseConfig) === null || _baseConfig2 === void 0 ? void 0 : _baseConfig2.soundAudioType);
|
34
|
+
}
|
35
|
+
notification[name](omit(baseConfig, 'soundAudioType'));
|
36
|
+
}
|
37
|
+
return ConfigNoticeInstanceBase;
|
38
|
+
};
|
39
|
+
export var BiuCue = Object.assign(ConfigOverLoadArgs('info'), {
|
40
|
+
Success: ConfigOverLoadArgs('success'),
|
41
|
+
Error: ConfigOverLoadArgs('error'),
|
42
|
+
Warning: ConfigOverLoadArgs('warning'),
|
43
|
+
Info: ConfigOverLoadArgs('info')
|
44
|
+
});
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
import type { RequestConfig } from "../../package";
|
4
|
+
type ValueType = string | string[] | number | number[];
|
5
|
+
export type SelectOption = {
|
6
|
+
label: string;
|
7
|
+
value: string | number;
|
8
|
+
};
|
9
|
+
export declare const BiuCustomSelect: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
10
|
+
requestName?: string | undefined;
|
11
|
+
requestParams?: Record<string, any> | undefined;
|
12
|
+
requestConfig?: RequestConfig | undefined;
|
13
|
+
onReady?: ((requestParams?: Record<string, any>, loading?: boolean) => boolean) | undefined;
|
14
|
+
value?: ValueType | undefined;
|
15
|
+
onFetchData?: ((res: any) => any) | undefined;
|
16
|
+
formatValue?: ((value: ValueType) => ValueType) | undefined;
|
17
|
+
optionList?: ((filterRes?: any) => SelectOption[]) | undefined;
|
18
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
19
|
+
export {};
|