@pisell/materials 3.2.6 → 3.2.8
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/meta.js +1 -1
- package/es/components/appVersionControl/types.d.ts +24 -0
- package/es/components/appVersionControl/utils.d.ts +13 -0
- package/es/components/badge/index.d.ts +7 -0
- package/es/components/browserSelect/index.d.ts +21 -0
- package/es/components/buttonGroupPreview/index.d.ts +19 -0
- package/es/components/cardPro/index.d.ts +3 -0
- package/es/components/checkbox/index.d.ts +2 -0
- package/es/components/colorPicker/index.d.ts +3 -0
- package/es/components/config-provider/index.d.ts +7 -0
- package/es/components/cropPhoto/index.d.ts +3 -0
- package/es/components/customSelect/index.d.ts +17 -0
- package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +20 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +15 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.d.ts +5 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/hooks/useJsonPrefixPath.d.ts +5 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperContext.d.ts +6 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +149 -0
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +31 -0
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/usePagination.d.ts +16 -0
- package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.d.ts +7 -0
- package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +7 -0
- package/es/components/dataSourceComponents/fields/Checkbox/type.d.ts +9 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/DatePicker/type.d.ts +6 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/type.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/IconSelect/type.d.ts +8 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Input/type.d.ts +8 -0
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Input.Email/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Json/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Password/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/serve.d.ts +11 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Url/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/InputNumber/type.d.ts +7 -0
- package/es/components/dataSourceComponents/fields/InputNumber/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Radio/type.d.ts +8 -0
- package/es/components/dataSourceComponents/fields/Select/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/TimePicker/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +16 -0
- package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
- package/es/components/dataSourceComponents/fields/Upload/types.d.ts +48 -0
- package/es/components/dataSourceComponents/hooks/useComponentId.d.ts +2 -0
- package/es/components/dataSourceComponents/hooks/useCtxActions.d.ts +8 -0
- package/es/components/dataSourceComponents/hooks/useDataSource.d.ts +5 -0
- package/es/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +6 -0
- package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
- package/es/components/dataSourceComponents/hooks/useVariables.d.ts +2 -0
- package/es/components/dataSourceComponents/provider/actions/ActionsContext.d.ts +11 -0
- package/es/components/dataSourceComponents/provider/actions/ActionsProvider.d.ts +12 -0
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +119 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
- package/es/components/dataSourceComponents/provider/variables/utils.d.ts +12 -0
- package/es/components/dataSourceComponents/utils/index.d.ts +0 -0
- package/es/components/date-picker/constants.d.ts +39 -0
- package/es/components/date-picker/hooks/useMediaQuery.d.ts +2 -0
- package/es/components/iconSelect/utils.d.ts +14 -0
- package/es/components/iconfont/index.d.ts +8 -0
- package/es/components/image/index.d.ts +10 -0
- package/es/components/login-and-register/index.d.ts +82 -0
- package/es/components/organizationTenantSwitcher/index.d.ts +17 -0
- package/es/components/page-header/index.d.ts +14 -0
- package/es/components/pisellAnchor/index.d.ts +23 -0
- package/es/components/pisellAppCard/index.d.ts +3 -0
- package/es/components/pisellAppCard/types.d.ts +34 -0
- package/es/components/pisellDraggable/components/Action/Action.d.ts +10 -0
- package/es/components/pisellDraggable/components/Action/index.d.ts +2 -0
- package/es/components/pisellDraggable/components/Handle/Handle.d.ts +3 -0
- package/es/components/pisellDraggable/components/Handle/index.d.ts +1 -0
- package/es/components/pisellDraggable/components/Remove/Remove.d.ts +3 -0
- package/es/components/pisellDraggable/components/Remove/index.d.ts +1 -0
- package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
- package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +23 -0
- package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
- package/es/components/pisellDraggable/components/index.d.ts +4 -0
- package/es/components/pisellDraggable/index.d.ts +32 -0
- package/es/components/pisellDraggable/types.d.ts +19 -0
- package/es/components/pisellDraggable/utilities.d.ts +17 -0
- package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
- package/es/components/pisellDropSort/components/SortableItem/index.d.ts +25 -0
- package/es/components/pisellDropSort/index.d.ts +3 -0
- package/es/components/pisellDropSort/types.d.ts +52 -0
- package/es/components/pisellLayout/content.d.ts +10 -0
- package/es/components/pisellLayout/footer.d.ts +8 -0
- package/es/components/pisellLayout/header.d.ts +10 -0
- package/es/components/pisellLayout/index.d.ts +14 -0
- package/es/components/pisellLayout/sider.d.ts +8 -0
- package/es/components/pisellMenu/PisellMenu.d.ts +9 -0
- package/es/components/pisellMenu/index.d.ts +3 -0
- package/es/components/pisellMenu/types.d.ts +26 -0
- package/es/components/pisellModal/components/Information/index.d.ts +21 -0
- package/es/components/pisellNavigationMenu/index.d.ts +3 -0
- package/es/components/pisellNavigationMenu/types.d.ts +64 -0
- package/es/components/pisellNavigationMenu/utils.d.ts +15 -0
- package/es/components/pisellQRScanner/index.d.ts +37 -0
- package/es/components/pisellQrcode/index.d.ts +10 -0
- package/es/components/pisellStatisticList/index.d.ts +21 -0
- package/es/components/pisellTags/index.d.ts +13 -0
- package/es/components/pisellTags/utils.d.ts +1 -0
- package/es/components/pisellUpload/index.d.ts +10 -0
- package/es/components/pisellViewGrid/index.d.ts +16 -0
- package/es/components/profileMenu/index.d.ts +26 -0
- package/es/components/radio/index.d.ts +2 -0
- package/es/components/select/index.d.ts +9 -0
- package/es/components/table/Tabs/index.d.ts +14 -0
- package/es/components/table/utils.d.ts +14 -0
- package/es/components/tabs/index.d.ts +16 -0
- package/es/components/typography/index.d.ts +2 -0
- package/es/components/versionModal/index.d.ts +23 -0
- package/es/hooks/useEngineContext.d.ts +9 -0
- package/es/hooks/useSetRequest.d.ts +2 -0
- package/es/utils/mergeWith.d.ts +1 -0
- package/lib/components/appVersionControl/types.d.ts +24 -0
- package/lib/components/appVersionControl/utils.d.ts +13 -0
- package/lib/components/badge/index.d.ts +7 -0
- package/lib/components/browserSelect/index.d.ts +21 -0
- package/lib/components/buttonGroupPreview/index.d.ts +19 -0
- package/lib/components/cardPro/index.d.ts +3 -0
- package/lib/components/checkbox/index.d.ts +2 -0
- package/lib/components/colorPicker/index.d.ts +3 -0
- package/lib/components/config-provider/index.d.ts +7 -0
- package/lib/components/cropPhoto/index.d.ts +3 -0
- package/lib/components/customSelect/index.d.ts +17 -0
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +20 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +15 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.d.ts +5 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/hooks/useJsonPrefixPath.d.ts +5 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperContext.d.ts +6 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +149 -0
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +31 -0
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/usePagination.d.ts +16 -0
- package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.d.ts +7 -0
- package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +7 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/type.d.ts +9 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/type.d.ts +6 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/type.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/IconSelect/type.d.ts +8 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Input/type.d.ts +8 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/serve.d.ts +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/type.d.ts +7 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Radio/type.d.ts +8 -0
- package/lib/components/dataSourceComponents/fields/Select/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +16 -0
- package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
- package/lib/components/dataSourceComponents/fields/Upload/types.d.ts +48 -0
- package/lib/components/dataSourceComponents/hooks/useComponentId.d.ts +2 -0
- package/lib/components/dataSourceComponents/hooks/useCtxActions.d.ts +8 -0
- package/lib/components/dataSourceComponents/hooks/useDataSource.d.ts +5 -0
- package/lib/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +6 -0
- package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
- package/lib/components/dataSourceComponents/hooks/useVariables.d.ts +2 -0
- package/lib/components/dataSourceComponents/provider/actions/ActionsContext.d.ts +11 -0
- package/lib/components/dataSourceComponents/provider/actions/ActionsProvider.d.ts +12 -0
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +119 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
- package/lib/components/dataSourceComponents/provider/variables/utils.d.ts +12 -0
- package/lib/components/dataSourceComponents/utils/index.d.ts +0 -0
- package/lib/components/date-picker/constants.d.ts +39 -0
- package/lib/components/date-picker/hooks/useMediaQuery.d.ts +2 -0
- package/lib/components/iconSelect/utils.d.ts +14 -0
- package/lib/components/iconfont/index.d.ts +8 -0
- package/lib/components/image/index.d.ts +10 -0
- package/lib/components/login-and-register/index.d.ts +82 -0
- package/lib/components/organizationTenantSwitcher/index.d.ts +17 -0
- package/lib/components/page-header/index.d.ts +14 -0
- package/lib/components/pisellAnchor/index.d.ts +23 -0
- package/lib/components/pisellAppCard/index.d.ts +3 -0
- package/lib/components/pisellAppCard/types.d.ts +34 -0
- package/lib/components/pisellDraggable/components/Action/Action.d.ts +10 -0
- package/lib/components/pisellDraggable/components/Action/index.d.ts +2 -0
- package/lib/components/pisellDraggable/components/Handle/Handle.d.ts +3 -0
- package/lib/components/pisellDraggable/components/Handle/index.d.ts +1 -0
- package/lib/components/pisellDraggable/components/Remove/Remove.d.ts +3 -0
- package/lib/components/pisellDraggable/components/Remove/index.d.ts +1 -0
- package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
- package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +23 -0
- package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
- package/lib/components/pisellDraggable/components/index.d.ts +4 -0
- package/lib/components/pisellDraggable/index.d.ts +32 -0
- package/lib/components/pisellDraggable/types.d.ts +19 -0
- package/lib/components/pisellDraggable/utilities.d.ts +17 -0
- package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
- package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +25 -0
- package/lib/components/pisellDropSort/index.d.ts +3 -0
- package/lib/components/pisellDropSort/types.d.ts +52 -0
- package/lib/components/pisellLayout/content.d.ts +10 -0
- package/lib/components/pisellLayout/footer.d.ts +8 -0
- package/lib/components/pisellLayout/header.d.ts +10 -0
- package/lib/components/pisellLayout/index.d.ts +14 -0
- package/lib/components/pisellLayout/sider.d.ts +8 -0
- package/lib/components/pisellMenu/PisellMenu.d.ts +9 -0
- package/lib/components/pisellMenu/index.d.ts +3 -0
- package/lib/components/pisellMenu/types.d.ts +26 -0
- package/lib/components/pisellModal/components/Information/index.d.ts +21 -0
- package/lib/components/pisellNavigationMenu/index.d.ts +3 -0
- package/lib/components/pisellNavigationMenu/types.d.ts +64 -0
- package/lib/components/pisellNavigationMenu/utils.d.ts +15 -0
- package/lib/components/pisellQRScanner/index.d.ts +37 -0
- package/lib/components/pisellQrcode/index.d.ts +10 -0
- package/lib/components/pisellStatisticList/index.d.ts +21 -0
- package/lib/components/pisellTags/index.d.ts +13 -0
- package/lib/components/pisellTags/utils.d.ts +1 -0
- package/lib/components/pisellUpload/index.d.ts +10 -0
- package/lib/components/pisellViewGrid/index.d.ts +16 -0
- package/lib/components/profileMenu/index.d.ts +26 -0
- package/lib/components/radio/index.d.ts +2 -0
- package/lib/components/select/index.d.ts +9 -0
- package/lib/components/table/Tabs/index.d.ts +14 -0
- package/lib/components/table/utils.d.ts +14 -0
- package/lib/components/tabs/index.d.ts +16 -0
- package/lib/components/typography/index.d.ts +2 -0
- package/lib/components/versionModal/index.d.ts +23 -0
- package/lib/hooks/useEngineContext.d.ts +9 -0
- package/lib/hooks/useSetRequest.d.ts +2 -0
- package/lib/utils/mergeWith.d.ts +1 -0
- package/lowcode/button-group/meta.ts +1 -4
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputNumberProps as AntInputNumberProps } from "antd/es/input-number";
|
|
2
|
+
import { ModeType } from "../../dataSourceForm/type";
|
|
3
|
+
export interface InputNumberProps extends AntInputNumberProps {
|
|
4
|
+
renderMode: ModeType;
|
|
5
|
+
useThousandsSeparator: boolean;
|
|
6
|
+
previewFormatter?: 'none' | 'thousand' | 'million' | 'billion';
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatNumberWithUnit: (value: number, precision?: number, previewFormatter?: 'none' | 'thousand' | 'million' | 'billion') => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RadioProps as AntRadioProps, RadioGroupProps as AntRadioGroupProps } from 'antd';
|
|
2
|
+
import { ModeType } from "../../dataSourceForm/type";
|
|
3
|
+
export interface RadioProps extends AntRadioProps {
|
|
4
|
+
renderMode: ModeType;
|
|
5
|
+
}
|
|
6
|
+
export interface RadioGroupProps extends AntRadioGroupProps {
|
|
7
|
+
renderMode: ModeType;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ModeType } from "../../dataSourceForm/type";
|
|
2
|
+
export interface TranslationValue {
|
|
3
|
+
en: string;
|
|
4
|
+
'zh-CN': string;
|
|
5
|
+
'zh-HK': string;
|
|
6
|
+
original: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TranslationProps {
|
|
9
|
+
renderMode: ModeType;
|
|
10
|
+
value?: TranslationValue;
|
|
11
|
+
onChange?: (value: TranslationValue) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
type?: 'text' | 'textarea';
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SUPPORTED_LANGUAGES: readonly ["original", "en", "zh-CN", "zh-HK"];
|
|
2
|
+
export declare const DEFAULT_MAX_COUNT = 9;
|
|
3
|
+
export declare const DEFAULT_UID = "-1";
|
|
4
|
+
export declare const MEDIA_TYPES: {
|
|
5
|
+
readonly VIDEO: "video/";
|
|
6
|
+
readonly AUDIO: "audio/";
|
|
7
|
+
};
|
|
8
|
+
export declare const IMAGE_QUALITY = 0.8;
|
|
9
|
+
export declare const IMAGE_TYPE = "image/jpeg";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
|
|
2
|
+
import type { UploadValue, UploadChangeHandler } from './types';
|
|
3
|
+
export interface UploadFile extends AntdUploadFile {
|
|
4
|
+
metadata?: {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
duration?: number;
|
|
8
|
+
bitrate?: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface UploadProps {
|
|
12
|
+
renderMode?: string;
|
|
13
|
+
fieldKey: string;
|
|
14
|
+
maxSize?: number;
|
|
15
|
+
minCount?: number;
|
|
16
|
+
maxCount?: number;
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
presetType?: string[];
|
|
19
|
+
presetTypeString?: string[];
|
|
20
|
+
customType?: string[];
|
|
21
|
+
enablePresetType?: boolean;
|
|
22
|
+
enableCustomType?: boolean;
|
|
23
|
+
allowPreview?: boolean;
|
|
24
|
+
value?: UploadValue;
|
|
25
|
+
typeMaxSizeMap?: Record<string, number>;
|
|
26
|
+
enableMultilingual?: boolean;
|
|
27
|
+
onChange?: UploadChangeHandler;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
mediaUploadUrl?: string;
|
|
30
|
+
getHeaders?: () => Record<string, string>;
|
|
31
|
+
mediaConfig?: {
|
|
32
|
+
data: {
|
|
33
|
+
upload_onetime_limit: number;
|
|
34
|
+
upload_maxsize: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { UploadFile } from 'antd/es/upload/interface';
|
|
2
|
+
import { SUPPORTED_LANGUAGES } from './constants';
|
|
3
|
+
export declare type Language = typeof SUPPORTED_LANGUAGES[number];
|
|
4
|
+
export interface MediaMetadata {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
duration?: number;
|
|
8
|
+
bitrate?: number;
|
|
9
|
+
cover?: File;
|
|
10
|
+
}
|
|
11
|
+
export interface FileCountValidation {
|
|
12
|
+
multiple: boolean;
|
|
13
|
+
minCount: number;
|
|
14
|
+
maxCount: number;
|
|
15
|
+
valueLength: number;
|
|
16
|
+
}
|
|
17
|
+
export interface ValidationResult {
|
|
18
|
+
success: boolean;
|
|
19
|
+
message?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface MultilingualFile extends UploadFile {
|
|
22
|
+
multilingual?: SingleMultilingualValue;
|
|
23
|
+
multilingualFileList?: Record<Language, UploadFile[]>;
|
|
24
|
+
response?: {
|
|
25
|
+
status: boolean;
|
|
26
|
+
data: {
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export interface FileListOptions {
|
|
32
|
+
enableMultilingual: boolean;
|
|
33
|
+
multiple: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare type SingleUploadValue = string;
|
|
36
|
+
export declare type MultipleUploadValue = string[];
|
|
37
|
+
export declare type SingleMultilingualValue = Record<Language, string>;
|
|
38
|
+
export declare type MultipleMultilingualValue = SingleMultilingualValue[];
|
|
39
|
+
export declare type UploadValue = SingleUploadValue | MultipleUploadValue | SingleMultilingualValue | MultipleMultilingualValue;
|
|
40
|
+
export interface MultilingualUploadResponse {
|
|
41
|
+
status: boolean;
|
|
42
|
+
data: {
|
|
43
|
+
url: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export declare type UploadChangeHandler = (value: UploadValue) => void;
|
|
47
|
+
export declare type NonNullMultilingualValue = NonNullable<SingleMultilingualValue>;
|
|
48
|
+
export declare type NonNullMultilingualArray = NonNullMultilingualValue[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Collection } from '../dataSourceForm/serve';
|
|
2
|
+
declare type Actions = Collection['actions'];
|
|
3
|
+
declare const useParseActionsVariable: () => {
|
|
4
|
+
parseActions: (actions: Actions, localVariables: Record<string, any>) => Record<string, any>;
|
|
5
|
+
};
|
|
6
|
+
export default useParseActionsVariable;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ActionsContextType {
|
|
3
|
+
visible?: boolean;
|
|
4
|
+
setVisible?: (visible: boolean) => void;
|
|
5
|
+
refreshTableData?: () => void;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
beforeClose?: () => boolean | Promise<boolean>;
|
|
8
|
+
setBeforeClose?: (beforeClose: () => boolean | Promise<boolean>) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const ActionsContext: import("react").Context<ActionsContextType>;
|
|
11
|
+
export default ActionsContext;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ActionsContextType } from './ActionsContext';
|
|
3
|
+
interface ActionsProviderProps extends ActionsContextType {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* 自定义请求的provider
|
|
8
|
+
* @param props
|
|
9
|
+
* @constructor
|
|
10
|
+
*/
|
|
11
|
+
declare const ActionsProvider: React.FC<ActionsProviderProps>;
|
|
12
|
+
export default ActionsProvider;
|
|
@@ -0,0 +1,119 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const genComponentValueVariable: (componentId: string, value: Record<string, any>) => {
|
|
2
|
+
[x: string]: {
|
|
3
|
+
value: Record<string, any>;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
export declare const genComponentFunctionVariable: (componentId: string, value: Record<string, any>) => {
|
|
7
|
+
[x: string]: {
|
|
8
|
+
functions: Record<string, any>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const isVariableKey: (key: string) => boolean;
|
|
12
|
+
export declare const getVariableKey: (str: string) => string | undefined;
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
export declare const presetDetailMap: {
|
|
3
|
+
today: {
|
|
4
|
+
getValue: () => dayjs.Dayjs;
|
|
5
|
+
label: () => any;
|
|
6
|
+
};
|
|
7
|
+
yesterday: {
|
|
8
|
+
getValue: () => dayjs.Dayjs;
|
|
9
|
+
label: () => any;
|
|
10
|
+
};
|
|
11
|
+
tomorrow: {
|
|
12
|
+
getValue: () => dayjs.Dayjs;
|
|
13
|
+
label: () => any;
|
|
14
|
+
};
|
|
15
|
+
next_monday: {
|
|
16
|
+
getValue: () => dayjs.Dayjs;
|
|
17
|
+
label: () => any;
|
|
18
|
+
};
|
|
19
|
+
last_friday: {
|
|
20
|
+
getValue: () => dayjs.Dayjs;
|
|
21
|
+
label: () => any;
|
|
22
|
+
};
|
|
23
|
+
first_day_of_this_month: {
|
|
24
|
+
getValue: () => dayjs.Dayjs;
|
|
25
|
+
label: () => any;
|
|
26
|
+
};
|
|
27
|
+
last_day_of_this_month: {
|
|
28
|
+
getValue: () => dayjs.Dayjs;
|
|
29
|
+
label: () => any;
|
|
30
|
+
};
|
|
31
|
+
first_day_of_next_month: {
|
|
32
|
+
getValue: () => dayjs.Dayjs;
|
|
33
|
+
label: () => any;
|
|
34
|
+
};
|
|
35
|
+
last_day_of_last_month: {
|
|
36
|
+
getValue: () => dayjs.Dayjs;
|
|
37
|
+
label: () => any;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare type IconGroup = 'outlined' | 'filled' | 'two-tone' | 'iconfont';
|
|
2
|
+
export declare function get(obj: any, path: string, defaultValue?: any): any;
|
|
3
|
+
export declare function getAntdIconList(): ({
|
|
4
|
+
name: any;
|
|
5
|
+
group: "filled" | "outlined" | "two-tone";
|
|
6
|
+
icon: any;
|
|
7
|
+
} | null)[];
|
|
8
|
+
interface IconItem {
|
|
9
|
+
name: string;
|
|
10
|
+
group: IconGroup;
|
|
11
|
+
icon: any;
|
|
12
|
+
}
|
|
13
|
+
export declare function getIconList(): IconItem[];
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface IconFontProps extends IconComponentProps {
|
|
4
|
+
type: string;
|
|
5
|
+
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
6
|
+
}
|
|
7
|
+
declare const IconFont: React.FC<IconFontProps>;
|
|
8
|
+
export default IconFont;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImageProps as AntdImageProps } from 'antd';
|
|
3
|
+
export interface ImageProps extends Omit<AntdImageProps, 'placeholder'> {
|
|
4
|
+
/**
|
|
5
|
+
* 占位图类型
|
|
6
|
+
*/
|
|
7
|
+
fallbackType?: 'image' | 'avatar' | 'product';
|
|
8
|
+
}
|
|
9
|
+
declare const Image: React.FC<ImageProps>;
|
|
10
|
+
export default Image;
|
|
@@ -0,0 +1,82 @@
|
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface OrganizationTenantSwitcherProps {
|
|
4
|
+
onChange?: (value: string, option: any) => void;
|
|
5
|
+
value: string;
|
|
6
|
+
options: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
logo?: string;
|
|
10
|
+
}[];
|
|
11
|
+
showLogo?: boolean;
|
|
12
|
+
showName?: boolean;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
15
|
+
}
|
|
16
|
+
declare const OrganizationTenantSwitcher: React.FC<OrganizationTenantSwitcherProps>;
|
|
17
|
+
export default OrganizationTenantSwitcher;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface PageHeaderProps {
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
showTitle?: boolean;
|
|
6
|
+
subTitle?: React.ReactNode;
|
|
7
|
+
showSubTitle?: boolean;
|
|
8
|
+
showDivider?: boolean;
|
|
9
|
+
extra?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
declare const PageHeader: (props: PageHeaderProps) => JSX.Element | null;
|
|
14
|
+
export default PageHeader;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface Option {
|
|
4
|
+
id: string | number;
|
|
5
|
+
name: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface PisellAnchorProps {
|
|
8
|
+
options?: Option[];
|
|
9
|
+
tab?: string | number;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
onChange?: (key: string | number) => void;
|
|
13
|
+
onTabClick?: () => void;
|
|
14
|
+
containerRef?: React.RefObject<HTMLElement>;
|
|
15
|
+
/**
|
|
16
|
+
* 平台类型,仅用于样式调整,不再影响锚点滚动功能
|
|
17
|
+
* 无论pc还是h5模式,点击锚点都会自动滚动到对应内容
|
|
18
|
+
* @default 'pc'
|
|
19
|
+
*/
|
|
20
|
+
platform?: 'pc' | 'h5';
|
|
21
|
+
}
|
|
22
|
+
declare const PisellAnchor: React.ForwardRefExoticComponent<PisellAnchorProps & React.RefAttributes<any>>;
|
|
23
|
+
export default PisellAnchor;
|