@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,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;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
|
|
3
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
-
import { PisellWalletPassCardProps, FormatOption } from '../pisellWalletPassCard';
|
|
5
|
-
import './index.less';
|
|
6
|
-
export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
|
|
7
|
-
platform?: PisellContextType['platform'];
|
|
8
|
-
/** 当用户查看完所有记录时,底部会显示此消息 */
|
|
9
|
-
endMessage?: React.ReactNode;
|
|
10
|
-
/** 加载下次数据时的加载站位 */
|
|
11
|
-
loader?: React.ReactNode;
|
|
12
|
-
/** 是否有更多数据 */
|
|
13
|
-
hasMore: boolean;
|
|
14
|
-
/** 加载更多数据回调 */
|
|
15
|
-
loadMoreData?: () => Promise<void>;
|
|
16
|
-
/** 当前list数据 */
|
|
17
|
-
data: PisellWalletPassCardProps[];
|
|
18
|
-
/** list空数据时展示内容 */
|
|
19
|
-
empty?: React.ReactNode;
|
|
20
|
-
/** 是否展示空状态 */
|
|
21
|
-
showEmpty?: boolean;
|
|
22
|
-
/** 是否展示卡片名称 */
|
|
23
|
-
showName?: boolean;
|
|
24
|
-
/** 是否展示店铺名称 */
|
|
25
|
-
showStoreName?: boolean;
|
|
26
|
-
/** 是否展示核销金额 */
|
|
27
|
-
showRedeem?: boolean;
|
|
28
|
-
/** 是否展示余额 */
|
|
29
|
-
showBalance?: boolean;
|
|
30
|
-
/** 是否展示编码 */
|
|
31
|
-
showCode?: boolean;
|
|
32
|
-
/** 是否展示到期时间 */
|
|
33
|
-
showValidDate?: boolean;
|
|
34
|
-
/** 是否展示详情按钮 */
|
|
35
|
-
showDetail?: boolean;
|
|
36
|
-
/** 是否展示二维码 */
|
|
37
|
-
showQrCode?: boolean;
|
|
38
|
-
/** 是否展示封面图 */
|
|
39
|
-
showCover?: boolean;
|
|
40
|
-
/** 是否余额货币单位 */
|
|
41
|
-
showBalanceSymbol?: boolean;
|
|
42
|
-
/** 卡片大小 */
|
|
43
|
-
type?: 'default' | 'mini';
|
|
44
|
-
/** 展示操作按钮 */
|
|
45
|
-
showActions?: boolean;
|
|
46
|
-
/** 操作按钮配置 */
|
|
47
|
-
actions?: {
|
|
48
|
-
/** 按钮展示方式 */
|
|
49
|
-
layout: 'expanded' | 'collapsed';
|
|
50
|
-
/** detail 按钮配置 */
|
|
51
|
-
detail?: {
|
|
52
|
-
visible: boolean;
|
|
53
|
-
iconColor: string;
|
|
54
|
-
};
|
|
55
|
-
/** edit按钮配置 */
|
|
56
|
-
edit?: {
|
|
57
|
-
visible: boolean;
|
|
58
|
-
iconColor: string;
|
|
59
|
-
dialogTitle: string;
|
|
60
|
-
enableDialog: boolean;
|
|
61
|
-
fields: {
|
|
62
|
-
name: string;
|
|
63
|
-
label: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
68
|
-
beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
|
|
69
|
-
/** 编辑弹窗点击提交 */
|
|
70
|
-
onConfirmEdit?: (value: any, index: number, data: any) => void;
|
|
71
|
-
/** 是否展示状态标识 */
|
|
72
|
-
showStatus?: boolean;
|
|
73
|
-
/** 名称标题字号字重颜色配置 */
|
|
74
|
-
nameTitleStyle?: {
|
|
75
|
-
fontSize: number;
|
|
76
|
-
fontWeight: number;
|
|
77
|
-
color: string;
|
|
78
|
-
};
|
|
79
|
-
/** 开启编辑金额 */
|
|
80
|
-
enableEditAmount?: boolean;
|
|
81
|
-
/** 编辑金额事件 */
|
|
82
|
-
onConfirmEditAmount?: (value: number, index: number, data: any) => void;
|
|
83
|
-
/** 是否使用外部详情处理 */
|
|
84
|
-
useExternalDetail?: boolean;
|
|
85
|
-
/** 详情事件 */
|
|
86
|
-
onDetail?: (value: any, index: number) => void;
|
|
87
|
-
/** 自定义余额格式化函数,如果提供则优先使用 */
|
|
88
|
-
formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
|
|
89
|
-
/** 自定义余额标题格式化函数,如果提供则优先使用 */
|
|
90
|
-
formatBalanceTitle?: (balanceTitle?: string, option?: FormatOption) => React.ReactNode;
|
|
91
|
-
/** 自定义使用金额格式化函数,如果提供则优先使用 */
|
|
92
|
-
formatRedeem?: (redeem?: number, option?: FormatOption) => React.ReactNode;
|
|
93
|
-
/** 自定义使用金额标题格式化函数,如果提供则优先使用 */
|
|
94
|
-
formatRedeemTitle?: (redeemTitle?: string, option?: FormatOption) => React.ReactNode;
|
|
95
|
-
/** 编辑金额前事件 */
|
|
96
|
-
onBeforeEditAmount?: (value: any, index: number, data: any) => Promise<any> | boolean | void;
|
|
97
|
-
/** 选项点击事件 */
|
|
98
|
-
onItemClick?: (e: React.MouseEvent<HTMLDivElement>, option: any) => void;
|
|
99
|
-
/** 是否展示选中状态的背景色 */
|
|
100
|
-
showActiveBackground?: boolean;
|
|
101
|
-
}
|
|
102
|
-
declare const _default: React.NamedExoticComponent<PisellCardListProps>;
|
|
103
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface PisellQrcodeProps {
|
|
4
|
-
size?: number;
|
|
5
|
-
platform: 'pc' | 'h5' | 'ipad';
|
|
6
|
-
value: string;
|
|
7
|
-
className: string;
|
|
8
|
-
}
|
|
9
|
-
declare const PisellQrcode: React.FC<PisellQrcodeProps>;
|
|
10
|
-
export default PisellQrcode;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface PisellTextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
-
}
|
|
4
|
-
declare const PisellText: {
|
|
5
|
-
(props: PisellTextProps): JSX.Element;
|
|
6
|
-
Amount: (props: import("./components/Amount").AmountProps) => JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default PisellText;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface FormatOption {
|
|
4
|
-
/** 原始 DOM 元素 */
|
|
5
|
-
originDom: React.ReactNode;
|
|
6
|
-
/** 是否选中状态 */
|
|
7
|
-
active: boolean;
|
|
8
|
-
/** 完整的组件数据 */
|
|
9
|
-
data: PisellWalletPassCardProps;
|
|
10
|
-
}
|
|
11
|
-
export interface PisellWalletPassCardProps {
|
|
12
|
-
id: number;
|
|
13
|
-
/** 卡片样式 */
|
|
14
|
-
type: 'default' | 'mini';
|
|
15
|
-
/** 商品名称 */
|
|
16
|
-
name: string;
|
|
17
|
-
/** 二维码 */
|
|
18
|
-
qrCode: string;
|
|
19
|
-
/** 共享店铺名称 */
|
|
20
|
-
storeName: string;
|
|
21
|
-
/** 余额 */
|
|
22
|
-
balance?: number;
|
|
23
|
-
/** 识别码编号 */
|
|
24
|
-
code: string;
|
|
25
|
-
/** 有效期 */
|
|
26
|
-
validDate: string;
|
|
27
|
-
/** 使用金额 */
|
|
28
|
-
redeem?: number;
|
|
29
|
-
/** 是否禁用 */
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
/** 禁用原因 */
|
|
32
|
-
disabledReason?: string;
|
|
33
|
-
/** 是否展示禁用原因 */
|
|
34
|
-
showDisabledReason?: boolean;
|
|
35
|
-
/** 封面图 */
|
|
36
|
-
cover?: string;
|
|
37
|
-
/** 余额标题文案 */
|
|
38
|
-
balanceTitle?: string;
|
|
39
|
-
/** 使用金额标题文案 */
|
|
40
|
-
redeemTitle?: string;
|
|
41
|
-
/** 是否选中 */
|
|
42
|
-
active?: boolean;
|
|
43
|
-
/** 是否展示商品名称 */
|
|
44
|
-
showName?: boolean;
|
|
45
|
-
/** 是否展示共享店铺名称 */
|
|
46
|
-
showStoreName?: boolean | ((data: any) => boolean);
|
|
47
|
-
/** 是否展示使用金额 */
|
|
48
|
-
showRedeem?: boolean;
|
|
49
|
-
/** 是否展示余额 */
|
|
50
|
-
showBalance?: boolean;
|
|
51
|
-
/** 是否展示识别码编号 */
|
|
52
|
-
showCode?: boolean;
|
|
53
|
-
/** 是否展示有效期 */
|
|
54
|
-
showValidDate?: boolean;
|
|
55
|
-
/** 是否展示右上角详情按钮 */
|
|
56
|
-
showDetail?: boolean;
|
|
57
|
-
/** 是否展示qrCode */
|
|
58
|
-
showQrCode?: boolean;
|
|
59
|
-
/** 是否展示封面 */
|
|
60
|
-
showCover?: boolean;
|
|
61
|
-
/** 是否展示余额货币符号 */
|
|
62
|
-
showBalanceSymbol?: boolean;
|
|
63
|
-
/** 展示操作按钮 */
|
|
64
|
-
showActions?: boolean;
|
|
65
|
-
/** 操作按钮配置 */
|
|
66
|
-
actions?: {
|
|
67
|
-
/** 按钮展示方式 */
|
|
68
|
-
layout: 'expanded' | 'collapsed';
|
|
69
|
-
/** detail 按钮配置 */
|
|
70
|
-
detail?: {
|
|
71
|
-
visible: boolean;
|
|
72
|
-
iconColor: string;
|
|
73
|
-
};
|
|
74
|
-
/** edit按钮配置 */
|
|
75
|
-
edit?: {
|
|
76
|
-
visible: boolean;
|
|
77
|
-
iconColor: string;
|
|
78
|
-
dialogTitle: string;
|
|
79
|
-
enableDialog: boolean;
|
|
80
|
-
fields: {
|
|
81
|
-
name: string;
|
|
82
|
-
label: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
87
|
-
beforeEdit?: (value: any) => Promise<any> | boolean | void;
|
|
88
|
-
/** 编辑弹窗点击提交 */
|
|
89
|
-
onConfirmEdit?: (value: any) => void;
|
|
90
|
-
/** 编辑金额事件 */
|
|
91
|
-
onConfirmEditAmount?: (value: number) => void;
|
|
92
|
-
/** 详情按钮点击事件 */
|
|
93
|
-
onDetail?: (data: {
|
|
94
|
-
id: number;
|
|
95
|
-
name: string;
|
|
96
|
-
storeName: string;
|
|
97
|
-
balance?: number;
|
|
98
|
-
redeem?: number;
|
|
99
|
-
code: string;
|
|
100
|
-
validDate: string;
|
|
101
|
-
originData?: any;
|
|
102
|
-
}) => void;
|
|
103
|
-
/** 是否使用外部详情处理(当为 true 且提供了 onDetail 时,不显示内部模态框) */
|
|
104
|
-
useExternalDetail?: boolean;
|
|
105
|
-
/** 单选或者多选 */
|
|
106
|
-
mode?: 'multiple' | 'single';
|
|
107
|
-
/** 是否展示选中图标 */
|
|
108
|
-
showActiveIcon?: boolean;
|
|
109
|
-
/** 开启编辑金额 */
|
|
110
|
-
enableEditAmount?: boolean;
|
|
111
|
-
/** 显示状态标识 */
|
|
112
|
-
showStatus?: boolean;
|
|
113
|
-
/** 名称标题字号字重颜色配置 */
|
|
114
|
-
nameTitleStyle?: {
|
|
115
|
-
fontSize: number;
|
|
116
|
-
fontWeight: number;
|
|
117
|
-
color: string;
|
|
118
|
-
};
|
|
119
|
-
/** 卡片状态 */
|
|
120
|
-
cardStatus?: 'used' | 'expired' | 'disabled' | 'conflict' | 'lastPayment';
|
|
121
|
-
/** 自定义余额格式化函数,如果提供则优先使用 */
|
|
122
|
-
formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
|
|
123
|
-
/** 自定义余额标题格式化函数,如果提供则优先使用 */
|
|
124
|
-
formatBalanceTitle?: (balanceTitle?: string, option?: FormatOption) => React.ReactNode;
|
|
125
|
-
/** 自定义使用金额格式化函数,如果提供则优先使用 */
|
|
126
|
-
formatRedeem?: (redeem?: number, option?: FormatOption) => React.ReactNode;
|
|
127
|
-
/** 自定义使用金额标题格式化函数,如果提供则优先使用 */
|
|
128
|
-
formatRedeemTitle?: (redeemTitle?: string, option?: FormatOption) => React.ReactNode;
|
|
129
|
-
/** 最大使用金额 */
|
|
130
|
-
maxRedeem?: number;
|
|
131
|
-
/** 编辑金额前事件 */
|
|
132
|
-
onBeforeEditAmount?: (value: any) => Promise<any> | boolean | void;
|
|
133
|
-
[key: string]: any;
|
|
134
|
-
}
|
|
135
|
-
declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
|
|
136
|
-
export default PisellWalletPassCard;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.less';
|
|
3
|
-
declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
|
|
4
|
-
export default SelectHolder;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.less';
|
|
3
|
-
declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
|
|
4
|
-
export default Time;
|