@pisell/materials 6.4.16 → 6.4.18
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 +4 -4
- package/build/lowcode/preview.js +146 -160
- package/build/lowcode/render/default/view.js +27 -41
- package/build/lowcode/view.js +32 -46
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
- package/es/components/auto-resize-text/index.d.ts +6 -0
- package/es/components/cardPro/index.d.ts +4 -0
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +12 -11
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/es/components/filter/index.d.ts +1 -0
- package/es/components/keyboard/index.d.ts +22 -0
- package/es/components/list/index.d.ts +1 -0
- package/es/components/pisell-config-provider/context.d.ts +22 -0
- package/es/components/pisellAdjustPrice/index.d.ts +5 -0
- package/es/components/pisellAdjustPrice/status.d.ts +32 -0
- package/es/components/pisellAdjustPrice/type.d.ts +22 -0
- package/es/components/pisellCheckboxGroup/index.d.ts +40 -0
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/es/components/pisellInput/index.d.ts +1 -0
- package/es/components/pisellQRScanner/index.d.ts +24 -0
- package/es/components/pisellText/components/Amount/index.d.ts +20 -0
- package/es/components/pisellToast/index.d.ts +17 -0
- package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
- package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/es/components/pisellTooltip/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +4 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +4 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +4 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +13 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +4 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
- package/es/components/productCard/components/Action/index.d.ts +4 -0
- package/es/components/productCard/components/Header/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.d.ts +4 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +14 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
- package/es/components/productCard/locales.d.ts +84 -0
- package/es/components/productCard/utils.js +8 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +2 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
- package/es/components/table/Actions/index.d.ts +1 -0
- package/es/components/table/BasicTable/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +3 -2
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
- package/es/components/table/View/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +6 -0
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +6 -0
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/es/components/virtual-keyboard/index.d.ts +25 -0
- package/es/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
- package/lib/components/auto-resize-text/index.d.ts +6 -0
- package/lib/components/cardPro/index.d.ts +4 -0
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +12 -11
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/keyboard/index.d.ts +22 -0
- package/lib/components/list/index.d.ts +1 -0
- package/lib/components/pisell-config-provider/context.d.ts +22 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +5 -0
- package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
- package/lib/components/pisellCheckboxGroup/index.d.ts +40 -0
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/lib/components/pisellInput/index.d.ts +1 -0
- package/lib/components/pisellQRScanner/index.d.ts +24 -0
- package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
- package/lib/components/pisellToast/index.d.ts +17 -0
- package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
- package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/lib/components/pisellTooltip/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +4 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +4 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +4 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +13 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +4 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
- package/lib/components/productCard/components/Action/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +14 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
- package/lib/components/productCard/locales.d.ts +84 -0
- package/lib/components/productCard/utils.js +8 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +2 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
- package/lib/components/table/Actions/index.d.ts +1 -0
- package/lib/components/table/BasicTable/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +3 -2
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +6 -0
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +6 -0
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/lib/components/virtual-keyboard/index.d.ts +25 -0
- package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +11 -11
- package/es/components/appVersionControl/index.d.ts +0 -5
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -149
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -100
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/es/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -119
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/es/components/drag-sort-tree/index.d.ts +0 -5
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/page/index.d.ts +0 -5
- package/es/components/pisellCardList/index.d.ts +0 -103
- package/es/components/pisellQrcode/index.d.ts +0 -10
- package/es/components/pisellText/index.d.ts +0 -8
- package/es/components/pisellWalletPassCard/index.d.ts +0 -136
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/es/components/productCard/components/Time/index.d.ts +0 -4
- package/es/components/productCard/index.d.ts +0 -7
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -84
- package/es/components/productCard/utils.d.ts +0 -31
- package/es/components/select/index.d.ts +0 -9
- package/es/components/sortableList/index.d.ts +0 -11
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -161
- package/es/components/table/hooks/useTableSetting.d.ts +0 -21
- package/es/components/table/hooks/useTransColumns.d.ts +0 -14
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/es/components/table/index.d.ts +0 -4
- package/es/components/table/serve.d.ts +0 -13
- package/es/components/table/types.d.ts +0 -268
- package/es/components/tabs/index.d.ts +0 -16
- package/es/components/translation/index.d.ts +0 -14
- package/es/components/versionModal/index.d.ts +0 -23
- package/es/index.d.ts +0 -145
- package/lib/components/appVersionControl/index.d.ts +0 -5
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -149
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -100
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -119
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/lib/components/drag-sort-tree/index.d.ts +0 -5
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/page/index.d.ts +0 -5
- package/lib/components/pisellCardList/index.d.ts +0 -103
- package/lib/components/pisellQrcode/index.d.ts +0 -10
- package/lib/components/pisellText/index.d.ts +0 -8
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -136
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/index.d.ts +0 -4
- package/lib/components/productCard/index.d.ts +0 -7
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -84
- package/lib/components/productCard/utils.d.ts +0 -31
- package/lib/components/select/index.d.ts +0 -9
- package/lib/components/sortableList/index.d.ts +0 -11
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -161
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
- package/lib/components/table/hooks/useTransColumns.d.ts +0 -14
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/lib/components/table/index.d.ts +0 -4
- package/lib/components/table/serve.d.ts +0 -13
- package/lib/components/table/types.d.ts +0 -268
- package/lib/components/tabs/index.d.ts +0 -16
- package/lib/components/translation/index.d.ts +0 -14
- package/lib/components/versionModal/index.d.ts +0 -23
- package/lib/index.d.ts +0 -145
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ButtonProps } from 'antd';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface SubmitButtonProps extends ButtonProps {
|
|
5
|
-
status: 'normal' | 'disabled' | 'hidden';
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
childrenString?: string;
|
|
8
|
-
confirmConfig?: {
|
|
9
|
-
enable: boolean;
|
|
10
|
-
title: string;
|
|
11
|
-
content: string;
|
|
12
|
-
icon: React.ReactNode;
|
|
13
|
-
okText: string;
|
|
14
|
-
cancelText: string;
|
|
15
|
-
};
|
|
16
|
-
toastConfig?: {
|
|
17
|
-
enable: boolean;
|
|
18
|
-
icon: React.ReactNode;
|
|
19
|
-
title: string;
|
|
20
|
-
showAfterSubmit?: boolean;
|
|
21
|
-
};
|
|
22
|
-
refreshData?: boolean;
|
|
23
|
-
afterSubmitType?: 'none' | 'close' | 'showModal' | 'showNotification';
|
|
24
|
-
afterSubmitModalConfig?: {
|
|
25
|
-
title: string;
|
|
26
|
-
content: string;
|
|
27
|
-
okText: string;
|
|
28
|
-
onOk?: () => void;
|
|
29
|
-
};
|
|
30
|
-
afterSubmitNotificationConfig?: {
|
|
31
|
-
title: string;
|
|
32
|
-
content: string;
|
|
33
|
-
icon: React.ReactNode;
|
|
34
|
-
duration: number;
|
|
35
|
-
placement: 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight';
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
declare const SubmitButton: (props: SubmitButtonProps) => JSX.Element | null;
|
|
39
|
-
export default SubmitButton;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceType } from "../provider/dataSource/DataSourceContext";
|
|
3
|
-
export declare type ModeType = 'edit' | 'add' | 'view' | 'disabled' | 'hidden' | 'tableView';
|
|
4
|
-
export interface DataSourceFormProps {
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
dataSource: DataSourceType;
|
|
8
|
-
extraParams?: Record<string, any>;
|
|
9
|
-
showTitle: boolean;
|
|
10
|
-
showDescription: boolean;
|
|
11
|
-
groupInfoPosition: 'top' | 'side';
|
|
12
|
-
variables: any[];
|
|
13
|
-
renderMode?: ModeType;
|
|
14
|
-
currentValue?: 'server' | 'local';
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
className?: string;
|
|
17
|
-
size?: 'small' | 'middle' | 'large';
|
|
18
|
-
onDataSourceFinish?: (values: any, result: any) => void;
|
|
19
|
-
__designMode?: string;
|
|
20
|
-
formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
|
|
21
|
-
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
22
|
-
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
23
|
-
leaveConfirmConfig?: {
|
|
24
|
-
enable: boolean;
|
|
25
|
-
title: string;
|
|
26
|
-
content: string;
|
|
27
|
-
icon: React.ReactNode;
|
|
28
|
-
okText: string;
|
|
29
|
-
cancelText: string;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import { ModeType } from './type';
|
|
4
|
-
import './style.less';
|
|
5
|
-
export interface WithModeProps {
|
|
6
|
-
renderMode?: ModeType;
|
|
7
|
-
value?: any;
|
|
8
|
-
onChange?: (value: any) => void;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @title: 增加renderMode属性
|
|
13
|
-
* @description: 基于renderMode属性控制渲染模式
|
|
14
|
-
* @return: *
|
|
15
|
-
* @Author: shengjie.zuo
|
|
16
|
-
* @Date: 2024-11-23 17:13:18
|
|
17
|
-
*/
|
|
18
|
-
export declare const withMode: <P extends object>(FieldComponent: React.ComponentType<P>, ReadPrettyComponent?: React.ComponentType<P & {
|
|
19
|
-
renderMode: ModeType;
|
|
20
|
-
}> | undefined, transformProps?: ((props: P, renderMode: ModeType) => P) | undefined) => React.FC<P & WithModeProps>;
|
|
21
|
-
export interface WithFormItemProps {
|
|
22
|
-
name: string;
|
|
23
|
-
label?: string;
|
|
24
|
-
mode?: ModeType;
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
27
|
-
export declare const formItemNameReplace: (name: string) => string;
|
|
28
|
-
export declare const formItemNameReverse: (name: string) => string;
|
|
29
|
-
export declare const isValidDomain: (value: string) => boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @title: 追加formItem层
|
|
32
|
-
* @description:
|
|
33
|
-
* @return: *
|
|
34
|
-
* @Author: shengjie.zuo
|
|
35
|
-
* @Date: 2024-11-23 17:14:25
|
|
36
|
-
*/
|
|
37
|
-
export declare const withFormItem: <P extends object>(WrappedComponent: React.ComponentType<P>, overlayProps?: {
|
|
38
|
-
otherFormItemProps?: Record<string, any> | ((props: Record<string, any>, others?: Record<string, any>) => Record<string, any>) | undefined;
|
|
39
|
-
innerProps?: Record<string, any> | undefined;
|
|
40
|
-
} | undefined) => React.FC<P & WithFormItemProps>;
|
|
41
|
-
export declare const withDataSource: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
42
|
-
dataSource?: any;
|
|
43
|
-
}) => JSX.Element;
|
|
44
|
-
export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
45
|
-
options?: any;
|
|
46
|
-
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
47
|
-
labelField: string;
|
|
48
|
-
valueField: string;
|
|
49
|
-
extraParams?: Record<string, any> | undefined;
|
|
50
|
-
}) => JSX.Element;
|
|
51
|
-
export declare const getNestedValue: (obj: Record<string, any>, path: string) => Record<string, any>;
|
|
52
|
-
export declare const renderValueWithMap: (value: any, valueMap?: Record<string, string>, renderMode?: ModeType) => JSX.Element | null;
|
|
53
|
-
export declare function toArr(str: string | number | (string | number)[]): (string | number)[];
|
|
54
|
-
export declare const filterSystemFields: (params: Record<string, any>) => Record<string, any>;
|
|
55
|
-
export declare const transformFormObjToArrayWithUntouched: (obj: Record<string, any>) => any[];
|
|
56
|
-
export declare const setFormFieldsUntouched: (form: FormInstance) => void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceTableProps } from './type';
|
|
3
|
-
export interface TableRef {
|
|
4
|
-
refreshCurrentPage: () => void;
|
|
5
|
-
refreshData: () => void;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: React.ForwardRefExoticComponent<DataSourceTableProps & React.RefAttributes<TableRef>>;
|
|
8
|
-
export default _default;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Drawer } from 'antd';
|
|
2
|
-
import { OperationItem } from '../type';
|
|
3
|
-
declare const useDrawerState: (operationContent?: {
|
|
4
|
-
[key: string]: import("react").ReactNode;
|
|
5
|
-
} | undefined) => {
|
|
6
|
-
drawerVisible: boolean;
|
|
7
|
-
setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
|
-
openDrawer: (item: OperationItem) => void;
|
|
9
|
-
closeDrawer: () => void;
|
|
10
|
-
drawerContent: import("react").ReactNode;
|
|
11
|
-
Container: {
|
|
12
|
-
(props: import("../../../pisellModal").PisellModalProps): JSX.Element;
|
|
13
|
-
confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
14
|
-
destroy: () => void;
|
|
15
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
16
|
-
};
|
|
17
|
-
info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
18
|
-
destroy: () => void;
|
|
19
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
20
|
-
};
|
|
21
|
-
error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
22
|
-
destroy: () => void;
|
|
23
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
24
|
-
};
|
|
25
|
-
warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
|
|
26
|
-
warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
27
|
-
destroy: () => void;
|
|
28
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
29
|
-
};
|
|
30
|
-
success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
31
|
-
destroy: () => void;
|
|
32
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
33
|
-
};
|
|
34
|
-
Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
|
|
35
|
-
} | typeof Drawer;
|
|
36
|
-
containerProps: {};
|
|
37
|
-
};
|
|
38
|
-
export default useDrawerState;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceTableProps } from '../type';
|
|
3
|
-
import { OperationItem } from '../type';
|
|
4
|
-
interface UseTablePropsProps {
|
|
5
|
-
data: any;
|
|
6
|
-
originProps: DataSourceTableProps;
|
|
7
|
-
openDrawer: (type: OperationItem) => void;
|
|
8
|
-
closeDrawer: () => void;
|
|
9
|
-
refreshData: () => void;
|
|
10
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
11
|
-
tableRef: any;
|
|
12
|
-
getInitialValues: () => Record<string, any>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 处理table的props
|
|
16
|
-
* 转换title
|
|
17
|
-
* @param props
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
21
|
-
currentComponentId: any;
|
|
22
|
-
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
23
|
-
pagination: {
|
|
24
|
-
total: number;
|
|
25
|
-
current: number;
|
|
26
|
-
pageSize: number;
|
|
27
|
-
size: string;
|
|
28
|
-
showSizeChanger: boolean;
|
|
29
|
-
};
|
|
30
|
-
columns: import("./useColumns").Column[];
|
|
31
|
-
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
32
|
-
buttons: any[] | null;
|
|
33
|
-
filter: {
|
|
34
|
-
dom: any;
|
|
35
|
-
items: any;
|
|
36
|
-
} | null;
|
|
37
|
-
onRow: (record: any) => any;
|
|
38
|
-
actionButtons: any[] | null;
|
|
39
|
-
__id?: string | undefined;
|
|
40
|
-
currentSettingKey?: string | undefined;
|
|
41
|
-
titleButtons?: {
|
|
42
|
-
show: boolean;
|
|
43
|
-
maxCount: number;
|
|
44
|
-
items: OperationItem[];
|
|
45
|
-
} | undefined;
|
|
46
|
-
tableButtons?: {
|
|
47
|
-
show: boolean;
|
|
48
|
-
maxCount: number;
|
|
49
|
-
items: OperationItem[];
|
|
50
|
-
} | undefined;
|
|
51
|
-
operation?: {
|
|
52
|
-
show: boolean;
|
|
53
|
-
title: string;
|
|
54
|
-
width: number;
|
|
55
|
-
align: "center" | "left" | "right";
|
|
56
|
-
fixed: false | "left" | "right";
|
|
57
|
-
type: "button" | "link";
|
|
58
|
-
items: OperationItem[];
|
|
59
|
-
} | undefined;
|
|
60
|
-
operationContent?: {
|
|
61
|
-
[key: string]: React.ReactNode;
|
|
62
|
-
} | undefined;
|
|
63
|
-
dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
|
|
64
|
-
search?: {
|
|
65
|
-
show: boolean;
|
|
66
|
-
placeholder: string;
|
|
67
|
-
} | undefined;
|
|
68
|
-
__designMode: string;
|
|
69
|
-
componentId: string;
|
|
70
|
-
clickToDetail?: {
|
|
71
|
-
show: boolean;
|
|
72
|
-
useCustomAction: boolean;
|
|
73
|
-
actionType: string;
|
|
74
|
-
openMode: "modal" | "drawer";
|
|
75
|
-
openContentSize: "large" | "small" | "middle";
|
|
76
|
-
openTitle: string;
|
|
77
|
-
key: string;
|
|
78
|
-
} | undefined;
|
|
79
|
-
filterBy?: Record<string, any> | undefined;
|
|
80
|
-
sortBy: string;
|
|
81
|
-
tabs?: {
|
|
82
|
-
show: boolean;
|
|
83
|
-
type: string;
|
|
84
|
-
items: {
|
|
85
|
-
name: string;
|
|
86
|
-
filterBy: Record<string, any>;
|
|
87
|
-
sortBy: string;
|
|
88
|
-
}[];
|
|
89
|
-
} | undefined;
|
|
90
|
-
onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
|
|
91
|
-
extraParams?: {
|
|
92
|
-
list?: Record<string, any> | undefined;
|
|
93
|
-
get?: Record<string, any> | undefined;
|
|
94
|
-
update?: Record<string, any> | undefined;
|
|
95
|
-
create?: Record<string, any> | undefined;
|
|
96
|
-
destroy?: Record<string, any> | undefined;
|
|
97
|
-
} | undefined;
|
|
98
|
-
localSettings?: import("../../../table/types").LocalSettingsType | undefined;
|
|
99
|
-
};
|
|
100
|
-
export default useTableProps;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { LocalSettingsType } from '../../table/types';
|
|
4
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
5
|
-
export declare type OperationItem = {
|
|
6
|
-
label?: string;
|
|
7
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
8
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
9
|
-
openTitle: string;
|
|
10
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
11
|
-
key: string;
|
|
12
|
-
buttonProps?: any;
|
|
13
|
-
onClick?: (record: any) => void;
|
|
14
|
-
afterClose?: () => void;
|
|
15
|
-
};
|
|
16
|
-
export interface DataSourceTableProps {
|
|
17
|
-
__id?: string;
|
|
18
|
-
currentComponentId?: string;
|
|
19
|
-
currentSettingKey?: string;
|
|
20
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
21
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
22
|
-
titleButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
tableButtons?: {
|
|
28
|
-
show: boolean;
|
|
29
|
-
maxCount: number;
|
|
30
|
-
items: OperationItem[];
|
|
31
|
-
};
|
|
32
|
-
buttons?: any[];
|
|
33
|
-
operation?: {
|
|
34
|
-
show: boolean;
|
|
35
|
-
title: string;
|
|
36
|
-
width: number;
|
|
37
|
-
align: 'left' | 'center' | 'right';
|
|
38
|
-
fixed: 'left' | 'right' | false;
|
|
39
|
-
type: 'link' | 'button';
|
|
40
|
-
items: OperationItem[];
|
|
41
|
-
};
|
|
42
|
-
operationContent?: {
|
|
43
|
-
[key: string]: React.ReactNode;
|
|
44
|
-
};
|
|
45
|
-
dataSource: DataSourceType;
|
|
46
|
-
columns: ColumnType<any>[];
|
|
47
|
-
filter: any;
|
|
48
|
-
search?: {
|
|
49
|
-
show: boolean;
|
|
50
|
-
placeholder: string;
|
|
51
|
-
};
|
|
52
|
-
__designMode: string;
|
|
53
|
-
componentId: string;
|
|
54
|
-
clickToDetail?: {
|
|
55
|
-
show: boolean;
|
|
56
|
-
useCustomAction: boolean;
|
|
57
|
-
actionType: string;
|
|
58
|
-
openMode: 'modal' | 'drawer';
|
|
59
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
60
|
-
openTitle: string;
|
|
61
|
-
key: string;
|
|
62
|
-
};
|
|
63
|
-
onRow?: any;
|
|
64
|
-
filterBy?: Record<string, any>;
|
|
65
|
-
sortBy: string;
|
|
66
|
-
tabs?: {
|
|
67
|
-
show: boolean;
|
|
68
|
-
type: string;
|
|
69
|
-
items: {
|
|
70
|
-
name: string;
|
|
71
|
-
filterBy: Record<string, any>;
|
|
72
|
-
sortBy: string;
|
|
73
|
-
}[];
|
|
74
|
-
};
|
|
75
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
76
|
-
extraParams?: {
|
|
77
|
-
list?: Record<string, any>;
|
|
78
|
-
get?: Record<string, any>;
|
|
79
|
-
update?: Record<string, any>;
|
|
80
|
-
create?: Record<string, any>;
|
|
81
|
-
destroy?: Record<string, any>;
|
|
82
|
-
};
|
|
83
|
-
localSettings?: LocalSettingsType;
|
|
84
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取nocobase数据列表
|
|
3
|
-
*/
|
|
4
|
-
export declare const getCountryDataList: () => Promise<any>;
|
|
5
|
-
export interface Country {
|
|
6
|
-
id: number;
|
|
7
|
-
name: {
|
|
8
|
-
en: string;
|
|
9
|
-
'zh-CN': string;
|
|
10
|
-
'zh-HK': string;
|
|
11
|
-
original: string;
|
|
12
|
-
};
|
|
13
|
-
code: string;
|
|
14
|
-
calling_code: string;
|
|
15
|
-
currency_code: string;
|
|
16
|
-
sort: number;
|
|
17
|
-
status: string;
|
|
18
|
-
created_at: string;
|
|
19
|
-
updated_at: string;
|
|
20
|
-
prefix: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const useCountries: () => {
|
|
23
|
-
data: Country[];
|
|
24
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
2
|
-
export interface UseActionsParams {
|
|
3
|
-
dataSource?: DataSourceType;
|
|
4
|
-
currentValue?: 'server' | 'local';
|
|
5
|
-
__designMode?: string;
|
|
6
|
-
extraParams?: Record<string, any>;
|
|
7
|
-
}
|
|
8
|
-
declare const useActions: ({ dataSource: propsDataSource, currentValue: propsCurrentValue, __designMode, extraParams: propsExtraParams, }?: UseActionsParams) => {
|
|
9
|
-
create: (values: Record<string, any>) => Promise<any>;
|
|
10
|
-
get: () => Promise<any>;
|
|
11
|
-
update: (values: Record<string, any>) => Promise<any>;
|
|
12
|
-
list: (params: {
|
|
13
|
-
page: number;
|
|
14
|
-
pageSize: number;
|
|
15
|
-
}) => Promise<any>;
|
|
16
|
-
destroy: (id: string) => Promise<any>;
|
|
17
|
-
};
|
|
18
|
-
export default useActions;
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Result } from 'ahooks/es/useRequest/src/types';
|
|
3
|
-
import { ActionsItem } from '../../dataSourceForm/serve';
|
|
4
|
-
export interface Field {
|
|
5
|
-
name: string;
|
|
6
|
-
type: string;
|
|
7
|
-
allowNull: boolean;
|
|
8
|
-
primaryKey: boolean;
|
|
9
|
-
unique: boolean;
|
|
10
|
-
autoIncrement: boolean;
|
|
11
|
-
description?: (null | string)[];
|
|
12
|
-
possibleTypes?: string[];
|
|
13
|
-
rawType: string;
|
|
14
|
-
interface: string;
|
|
15
|
-
uiSchema: UiSchema;
|
|
16
|
-
key?: string;
|
|
17
|
-
collectionName?: string;
|
|
18
|
-
collectionKey?: any;
|
|
19
|
-
dataSourceKey?: string;
|
|
20
|
-
defaultValue?: any;
|
|
21
|
-
}
|
|
22
|
-
interface UiSchema {
|
|
23
|
-
type?: string;
|
|
24
|
-
'x-component': string;
|
|
25
|
-
'x-component-props'?: Xcomponentprops;
|
|
26
|
-
'x-validator'?: string;
|
|
27
|
-
title: string;
|
|
28
|
-
default?: any;
|
|
29
|
-
enum?: any[];
|
|
30
|
-
}
|
|
31
|
-
interface Xcomponentprops {
|
|
32
|
-
style?: Style;
|
|
33
|
-
autoSize?: AutoSize;
|
|
34
|
-
stringMode?: boolean;
|
|
35
|
-
step?: string;
|
|
36
|
-
dateFormat?: string;
|
|
37
|
-
showTime?: boolean;
|
|
38
|
-
}
|
|
39
|
-
interface AutoSize {
|
|
40
|
-
minRows: number;
|
|
41
|
-
}
|
|
42
|
-
interface Style {
|
|
43
|
-
width: string;
|
|
44
|
-
}
|
|
45
|
-
export declare type ActionTypes = 'list' | 'get' | 'update' | 'create' | 'destroy';
|
|
46
|
-
export declare type DataSourceType = {
|
|
47
|
-
actions: {
|
|
48
|
-
get: ActionsItem;
|
|
49
|
-
update: ActionsItem;
|
|
50
|
-
create: ActionsItem;
|
|
51
|
-
delete: ActionsItem;
|
|
52
|
-
list: ActionsItem;
|
|
53
|
-
};
|
|
54
|
-
headerDataSource: string;
|
|
55
|
-
dataSourceKey: string;
|
|
56
|
-
filterTargetKey: string;
|
|
57
|
-
introspected: boolean;
|
|
58
|
-
isCustomApi: boolean;
|
|
59
|
-
key: string;
|
|
60
|
-
tableName: string;
|
|
61
|
-
logging: boolean;
|
|
62
|
-
name: string;
|
|
63
|
-
title: string;
|
|
64
|
-
titleField: string;
|
|
65
|
-
types: ActionTypes[];
|
|
66
|
-
fields: Field[];
|
|
67
|
-
options: {
|
|
68
|
-
apiType: string;
|
|
69
|
-
baseUrl: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export declare type DataSourceContextProps = {
|
|
73
|
-
dataSource: DataSourceType;
|
|
74
|
-
children?: React.ReactNode;
|
|
75
|
-
currentValue?: string;
|
|
76
|
-
actions?: {
|
|
77
|
-
list?: () => Promise<any>;
|
|
78
|
-
get?: () => Promise<any>;
|
|
79
|
-
update?: () => Promise<any>;
|
|
80
|
-
create?: () => Promise<any>;
|
|
81
|
-
destroy?: () => Promise<any>;
|
|
82
|
-
};
|
|
83
|
-
requestOptions?: {
|
|
84
|
-
list?: any;
|
|
85
|
-
get?: any;
|
|
86
|
-
update?: any;
|
|
87
|
-
create?: any;
|
|
88
|
-
destroy?: any;
|
|
89
|
-
};
|
|
90
|
-
overrideData?: {
|
|
91
|
-
list?: any;
|
|
92
|
-
get?: any;
|
|
93
|
-
};
|
|
94
|
-
autoRun?: {
|
|
95
|
-
list?: boolean;
|
|
96
|
-
get?: boolean;
|
|
97
|
-
};
|
|
98
|
-
extraParams?: {
|
|
99
|
-
list?: Record<string, any>;
|
|
100
|
-
get?: Record<string, any>;
|
|
101
|
-
update?: Record<string, any>;
|
|
102
|
-
create?: Record<string, any>;
|
|
103
|
-
destroy?: Record<string, any>;
|
|
104
|
-
};
|
|
105
|
-
__id?: string;
|
|
106
|
-
__designMode?: string;
|
|
107
|
-
};
|
|
108
|
-
export interface DataSourceContextType {
|
|
109
|
-
dataSource?: DataSourceType;
|
|
110
|
-
list: Result<any, any>;
|
|
111
|
-
destroy: Result<any, any>;
|
|
112
|
-
get: Result<any, any>;
|
|
113
|
-
update: Result<any, any>;
|
|
114
|
-
create: Result<any, any>;
|
|
115
|
-
__designMode?: string;
|
|
116
|
-
getCurrentRecord: () => any;
|
|
117
|
-
}
|
|
118
|
-
export declare const DataSourceContext: import("react").Context<DataSourceContextType>;
|
|
119
|
-
export default DataSourceContext;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface VariablesContextType {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
variables?: Record<string, any>;
|
|
5
|
-
registerVariable?: (value: Record<string, any>) => void;
|
|
6
|
-
parseVariable?: (str: string, localVariables?: Record<string, any>) => any;
|
|
7
|
-
registerValueVariable?: (componentId: string, value: Record<string, any>) => void;
|
|
8
|
-
registerFunctionVariable?: (componentId: string, value: Record<string, any>) => void;
|
|
9
|
-
subscribeVariables?: (listener: (allVariables: Record<string, any>, updateVariables: Record<string, any>) => void) => () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const VariablesContext: import("react").Context<VariablesContextType>;
|
|
12
|
-
export default VariablesContext;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
/**
|
|
4
|
-
* loginAndRegister组件的属性接口
|
|
5
|
-
*/
|
|
6
|
-
export interface loginAndRegisterProps {
|
|
7
|
-
/** Logo相关配置 */
|
|
8
|
-
showLogo?: boolean;
|
|
9
|
-
logo?: string;
|
|
10
|
-
logoPosition?: 'left' | 'center' | 'right';
|
|
11
|
-
logoSize?: {
|
|
12
|
-
width?: number;
|
|
13
|
-
height?: number;
|
|
14
|
-
};
|
|
15
|
-
/** 标题相关配置 */
|
|
16
|
-
title?: string;
|
|
17
|
-
showTitle?: boolean;
|
|
18
|
-
titleAlign?: 'left' | 'center' | 'right';
|
|
19
|
-
/** 副标题相关配置 */
|
|
20
|
-
subtitle?: string;
|
|
21
|
-
showSubtitle?: boolean;
|
|
22
|
-
subtitleAlign?: 'left' | 'center' | 'right';
|
|
23
|
-
/** 登录方式配置 */
|
|
24
|
-
loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
|
|
25
|
-
defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
|
|
26
|
-
/** 表单配置 */
|
|
27
|
-
emailLabel?: string;
|
|
28
|
-
passwordLabel?: string;
|
|
29
|
-
emailPlaceholder?: string;
|
|
30
|
-
passwordPlaceholder?: string;
|
|
31
|
-
emailRules?: any[];
|
|
32
|
-
buttonText?: string;
|
|
33
|
-
rememberMeText?: string;
|
|
34
|
-
forgotPasswordText?: string;
|
|
35
|
-
showRememberMe?: boolean;
|
|
36
|
-
showForgotPassword?: boolean;
|
|
37
|
-
/** 社交登录配置 */
|
|
38
|
-
socialLoginTexts?: {
|
|
39
|
-
google?: string;
|
|
40
|
-
facebook?: string;
|
|
41
|
-
apple?: string;
|
|
42
|
-
};
|
|
43
|
-
/** 底部配置 */
|
|
44
|
-
showFooter?: boolean;
|
|
45
|
-
showSignUp?: boolean;
|
|
46
|
-
signUpText?: string;
|
|
47
|
-
signUpLink?: string;
|
|
48
|
-
signUpPosition?: 'left' | 'center' | 'right';
|
|
49
|
-
otherLinks?: Array<{
|
|
50
|
-
text: string;
|
|
51
|
-
url: string;
|
|
52
|
-
}>;
|
|
53
|
-
otherLinksPosition?: 'left' | 'center' | 'right';
|
|
54
|
-
/** 登录/注册切换配置 */
|
|
55
|
-
showTabs?: boolean;
|
|
56
|
-
loginTabText?: string;
|
|
57
|
-
registerTabText?: string;
|
|
58
|
-
/** 注册表单配置 */
|
|
59
|
-
registerEmailPlaceholder?: string;
|
|
60
|
-
registerPasswordPlaceholder?: string;
|
|
61
|
-
registerButtonText?: string;
|
|
62
|
-
/** 事件回调 */
|
|
63
|
-
onLogin?: (values: {
|
|
64
|
-
email: string;
|
|
65
|
-
loginMethod: string;
|
|
66
|
-
}) => void;
|
|
67
|
-
onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
|
|
68
|
-
onSignUp?: () => void;
|
|
69
|
-
onRegister?: (values: {
|
|
70
|
-
email: string;
|
|
71
|
-
password: string;
|
|
72
|
-
}) => void;
|
|
73
|
-
/** 新增背景图片属性 */
|
|
74
|
-
backgroundImage?: string;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Saas登录组件
|
|
78
|
-
* @param props - 组件属性
|
|
79
|
-
* @returns React组件
|
|
80
|
-
*/
|
|
81
|
-
declare const loginAndRegister: React.FC<loginAndRegisterProps>;
|
|
82
|
-
export default loginAndRegister;
|