@pisell/materials 2.2.52 → 2.2.54
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 +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +14 -14
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +14 -14
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/TimeResourceSelector/index.d.ts +21 -0
- package/es/components/appVersionControl/index.d.ts +1 -0
- package/es/components/collapse/index.d.ts +15 -0
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -2
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.js +13 -3
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/page/index.d.ts +1 -0
- package/es/components/pisellAnchor/index.d.ts +1 -1
- package/es/components/pisellAnchor/index.js +109 -199
- package/es/components/pisellAnchor/index.less +3 -5
- package/es/components/pisellAvatar/index.js +2 -1
- package/es/components/pisellAvatar/index.less +2 -1
- package/es/components/pisellCard/index.d.ts +20 -0
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/es/components/pisellDropdown/index.d.ts +20 -0
- package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
- package/es/components/pisellImageCarousels/index.d.ts +18 -0
- package/es/components/pisellModal/components/MobileModal/index.less +4 -0
- package/es/components/pisellSectionHeaders/index.d.ts +21 -0
- package/es/components/pisellText/components/Amount/index.d.ts +20 -0
- package/es/components/productCard/components/Action/index.d.ts +4 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/es/components/productCard/components/Divider/index.d.ts +4 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/es/components/productCard/components/Header/index.d.ts +4 -0
- package/es/components/productCard/components/MultiDay/index.d.ts +4 -0
- package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/components/Note/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/utils.d.ts +20 -0
- package/es/components/productCard/components/Sales/index.d.ts +4 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/es/components/productCard/components/Time/index.d.ts +4 -0
- package/es/components/productCard/locales.d.ts +3 -0
- package/es/components/productCard/locales.js +10 -1
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/types.d.ts +78 -0
- package/es/components/productCard/utils.js +8 -2
- package/es/components/section-footers/index.d.ts +9 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -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/ExportImport/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/index.d.ts +1 -0
- 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/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/es/components/table/View/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/es/components/walletCard/Guest/index.d.ts +4 -0
- package/es/components/walletCard/index.d.ts +65 -0
- package/es/index.d.ts +9 -11
- package/es/index.js +10 -12
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/TimeResourceSelector/index.d.ts +21 -0
- package/lib/components/appVersionControl/index.d.ts +1 -0
- package/lib/components/collapse/index.d.ts +15 -0
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -2
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.js +12 -3
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/pisellAnchor/index.d.ts +1 -1
- package/lib/components/pisellAnchor/index.js +64 -131
- package/lib/components/pisellAnchor/index.less +3 -5
- package/lib/components/pisellAvatar/index.js +1 -1
- package/lib/components/pisellAvatar/index.less +2 -1
- package/lib/components/pisellCard/index.d.ts +20 -0
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/lib/components/pisellDropdown/index.d.ts +20 -0
- package/lib/components/pisellEmpty/index.js +9 -1
- package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
- package/lib/components/pisellImageCarousels/index.d.ts +18 -0
- package/lib/components/pisellModal/components/MobileModal/index.less +4 -0
- package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
- package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
- package/lib/components/productCard/components/Action/index.d.ts +4 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/lib/components/productCard/components/Divider/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/index.d.ts +4 -0
- package/lib/components/productCard/components/MultiDay/index.d.ts +4 -0
- package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/components/Note/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
- package/lib/components/productCard/components/Sales/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/lib/components/productCard/components/Time/index.d.ts +4 -0
- package/lib/components/productCard/locales.d.ts +3 -0
- package/lib/components/productCard/locales.js +4 -1
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/types.d.ts +78 -0
- package/lib/components/productCard/utils.js +6 -2
- package/lib/components/section-footers/index.d.ts +9 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -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/ExportImport/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
- 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/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/lib/components/walletCard/Guest/index.d.ts +4 -0
- package/lib/components/walletCard/index.d.ts +65 -0
- package/lib/index.d.ts +9 -11
- package/lib/index.js +9 -15
- package/lowcode/button-group/meta.ts +1 -4
- package/package.json +3 -3
|
@@ -37,7 +37,7 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
|
|
|
37
37
|
var import_pisellMenu = __toESM(require("../../pisellMenu"));
|
|
38
38
|
var DataSourceMenu = (0, import_react.forwardRef)(
|
|
39
39
|
(props, ref) => {
|
|
40
|
-
var _a, _b, _c, _d;
|
|
40
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
41
41
|
const { appHelper } = (0, import_useEngineContext.default)();
|
|
42
42
|
const {
|
|
43
43
|
menuItems,
|
|
@@ -47,6 +47,15 @@ var DataSourceMenu = (0, import_react.forwardRef)(
|
|
|
47
47
|
getShowChildren,
|
|
48
48
|
handleClick
|
|
49
49
|
} = (_d = (_c = (_b = (_a = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _a.getApp) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.menuManager) == null ? void 0 : _d.useMenu();
|
|
50
|
+
const translation = ((_h = (_g = (_f = (_e = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _e.getApp) == null ? void 0 : _f.call(_e)) == null ? void 0 : _g.locales) == null ? void 0 : _h.translation) || ((str) => {
|
|
51
|
+
if (!str) {
|
|
52
|
+
return "";
|
|
53
|
+
}
|
|
54
|
+
if (typeof str === "string") {
|
|
55
|
+
return str;
|
|
56
|
+
}
|
|
57
|
+
return JSON.stringify(str);
|
|
58
|
+
});
|
|
50
59
|
const renderMenuItems = (items) => {
|
|
51
60
|
return items.map((item) => {
|
|
52
61
|
if (item.hide) {
|
|
@@ -58,14 +67,14 @@ var DataSourceMenu = (0, import_react.forwardRef)(
|
|
|
58
67
|
import_pisellMenu.default.SubMenu,
|
|
59
68
|
{
|
|
60
69
|
key: item.key,
|
|
61
|
-
title: item.label,
|
|
70
|
+
title: translation(item.label),
|
|
62
71
|
icon: item.icon,
|
|
63
72
|
router: item.path
|
|
64
73
|
},
|
|
65
74
|
renderMenuItems(_children)
|
|
66
75
|
);
|
|
67
76
|
}
|
|
68
|
-
return /* @__PURE__ */ import_react.default.createElement(import_pisellMenu.default.Item, { key: item.key, icon: item.icon, router: item.path }, item.label);
|
|
77
|
+
return /* @__PURE__ */ import_react.default.createElement(import_pisellMenu.default.Item, { key: item.key, icon: item.icon, router: item.path }, translation(item.label));
|
|
69
78
|
});
|
|
70
79
|
};
|
|
71
80
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellMenuProps } from '../../pisellMenu/types';
|
|
3
|
+
/**
|
|
4
|
+
* @title: 数据源表单组件
|
|
5
|
+
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
6
|
+
*/
|
|
7
|
+
declare const DataSourceMenu: (props: PisellMenuProps, ref: React.Ref<any>) => JSX.Element;
|
|
8
|
+
export default DataSourceMenu;
|
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean |
|
|
20
|
+
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean |
|
|
29
|
+
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
70
70
|
useCustomAction: boolean;
|
|
71
71
|
actionType: string;
|
|
72
72
|
openMode: "modal" | "drawer";
|
|
73
|
-
openContentSize: "
|
|
73
|
+
openContentSize: "small" | "middle" | "large";
|
|
74
74
|
openTitle: string;
|
|
75
75
|
key: string;
|
|
76
76
|
} | undefined;
|
|
@@ -20,7 +20,7 @@ declare const formFieldMap: {
|
|
|
20
20
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
21
21
|
onChange: (value: string) => void;
|
|
22
22
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
23
|
-
rootDomain: "custom" | "
|
|
23
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
24
24
|
customDomain?: string | undefined;
|
|
25
25
|
value?: string | undefined;
|
|
26
26
|
tenantId: string;
|
|
@@ -60,7 +60,13 @@ declare const formFieldMap: {
|
|
|
60
60
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
62
|
};
|
|
63
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> |
|
|
63
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
64
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
65
|
+
} & {
|
|
66
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
67
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
68
|
+
onChange: (value: string) => void;
|
|
69
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
64
70
|
JSON: import("react").FC<any>;
|
|
65
71
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
66
72
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -73,18 +79,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
73
79
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
74
80
|
onChange: (value: string) => void;
|
|
75
81
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
76
|
-
rootDomain: "custom" | "
|
|
82
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
77
83
|
customDomain?: string | undefined;
|
|
78
84
|
value?: string | undefined;
|
|
79
85
|
tenantId: string;
|
|
80
86
|
name?: string | undefined;
|
|
81
87
|
fieldKey?: string | undefined;
|
|
82
88
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
83
|
-
}) | (import("react").FC<{}> & {
|
|
84
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
85
|
-
} & {
|
|
86
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
87
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
89
|
+
}) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
88
90
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
89
91
|
} & {
|
|
90
92
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -96,7 +98,5 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
96
98
|
extraParams?: Record<string, any> | undefined;
|
|
97
99
|
} & {
|
|
98
100
|
dataSource?: any;
|
|
99
|
-
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./
|
|
100
|
-
onChange: (value: string) => void;
|
|
101
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
101
|
+
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
102
102
|
export { getFieldComponent, formFieldMap };
|
|
@@ -19,5 +19,5 @@ export interface PisellAnchorProps {
|
|
|
19
19
|
*/
|
|
20
20
|
platform?: 'pc' | 'h5';
|
|
21
21
|
}
|
|
22
|
-
declare const PisellAnchor: React.
|
|
22
|
+
declare const PisellAnchor: React.FC<PisellAnchorProps>;
|
|
23
23
|
export default PisellAnchor;
|
|
@@ -38,160 +38,109 @@ var import_ahooks = require("ahooks");
|
|
|
38
38
|
var import_ChevronLeft = __toESM(require("@pisell/icon/es/ChevronLeft"));
|
|
39
39
|
var import_ChevronRight = __toESM(require("@pisell/icon/es/ChevronRight"));
|
|
40
40
|
var import_index = require("./index.less");
|
|
41
|
-
var PisellAnchor = (
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} = props;
|
|
41
|
+
var PisellAnchor = ({
|
|
42
|
+
options = [],
|
|
43
|
+
tab,
|
|
44
|
+
className,
|
|
45
|
+
style,
|
|
46
|
+
onChange,
|
|
47
|
+
onTabClick,
|
|
48
|
+
containerRef,
|
|
49
|
+
platform = "pc"
|
|
50
|
+
}) => {
|
|
52
51
|
const contentRef = (0, import_react.useRef)(null);
|
|
53
|
-
const scrollTimeoutRef = (0, import_react.useRef)(null);
|
|
54
52
|
const isClickScrolling = (0, import_react.useRef)(false);
|
|
55
|
-
const clickedTabRef = (0, import_react.useRef)(null);
|
|
56
53
|
const [leftWidth, setLeftWidth] = (0, import_react.useState)(0);
|
|
57
54
|
const [rightWidth, setRightWidth] = (0, import_react.useState)(40);
|
|
58
55
|
const [showButtons, setShowButtons] = (0, import_react.useState)(false);
|
|
59
|
-
const [hoveredTab, setHoveredTab] = (0, import_react.useState)(null);
|
|
60
56
|
(0, import_react.useEffect)(() => {
|
|
61
57
|
if (contentRef.current) {
|
|
62
58
|
const { scrollWidth, clientWidth } = contentRef.current;
|
|
63
59
|
setShowButtons(scrollWidth > clientWidth);
|
|
64
60
|
}
|
|
65
61
|
}, [options]);
|
|
66
|
-
(0,
|
|
67
|
-
return () => {
|
|
68
|
-
if (scrollTimeoutRef.current) {
|
|
69
|
-
clearTimeout(scrollTimeoutRef.current);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
}, []);
|
|
73
|
-
const { run: onScrollDebounced } = (0, import_ahooks.useDebounceFn)(
|
|
62
|
+
const handleHorizontalScroll = (0, import_ahooks.useDebounceFn)(
|
|
74
63
|
(e) => {
|
|
75
|
-
const
|
|
64
|
+
const target = e.target;
|
|
65
|
+
const { scrollLeft, scrollWidth, clientWidth } = target;
|
|
76
66
|
setLeftWidth(scrollLeft > 0 ? 40 : 0);
|
|
77
67
|
setRightWidth(scrollLeft + clientWidth >= scrollWidth ? 0 : 40);
|
|
78
68
|
},
|
|
79
69
|
{ wait: 200 }
|
|
80
|
-
);
|
|
81
|
-
const
|
|
70
|
+
).run;
|
|
71
|
+
const handleContentScroll = (0, import_ahooks.useDebounceFn)(
|
|
82
72
|
() => {
|
|
83
|
-
if (isClickScrolling.current) return;
|
|
84
|
-
if (!(containerRef == null ? void 0 : containerRef.current)) return;
|
|
73
|
+
if (isClickScrolling.current || !(containerRef == null ? void 0 : containerRef.current)) return;
|
|
85
74
|
const container = containerRef.current;
|
|
86
|
-
const headerHeight = 65;
|
|
87
|
-
const containerRect = container.getBoundingClientRect();
|
|
88
75
|
const scrollTop = container.scrollTop;
|
|
89
|
-
const containerHeight =
|
|
76
|
+
const containerHeight = container.clientHeight;
|
|
90
77
|
const scrollHeight = container.scrollHeight;
|
|
91
|
-
const isAtBottom = scrollTop + containerHeight
|
|
78
|
+
const isAtBottom = Math.abs(scrollTop + containerHeight - scrollHeight) < 1;
|
|
92
79
|
if (isAtBottom) {
|
|
93
80
|
const lastOption = options[options.length - 1];
|
|
94
|
-
if (
|
|
81
|
+
if (lastOption && tab !== lastOption.id) {
|
|
95
82
|
onChange == null ? void 0 : onChange(lastOption.id);
|
|
96
83
|
}
|
|
97
84
|
return;
|
|
98
85
|
}
|
|
99
|
-
let
|
|
100
|
-
let
|
|
86
|
+
let maxVisibleRatio = 0;
|
|
87
|
+
let activeOption = null;
|
|
101
88
|
for (const option of options) {
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
if (distance < minDistance) {
|
|
115
|
-
minDistance = distance;
|
|
116
|
-
closestOption = option;
|
|
89
|
+
const element = document.querySelector(`[data-section="${option.id}"]`);
|
|
90
|
+
if (element instanceof HTMLElement) {
|
|
91
|
+
const elementTop = element.offsetTop;
|
|
92
|
+
const elementHeight = element.offsetHeight;
|
|
93
|
+
const elementBottom = elementTop + elementHeight;
|
|
94
|
+
const visibleTop = Math.max(elementTop, scrollTop);
|
|
95
|
+
const visibleBottom = Math.min(elementBottom, scrollTop + containerHeight);
|
|
96
|
+
const visibleHeight = Math.max(0, visibleBottom - visibleTop);
|
|
97
|
+
const visibleRatio = visibleHeight / elementHeight;
|
|
98
|
+
if (visibleRatio > maxVisibleRatio) {
|
|
99
|
+
maxVisibleRatio = visibleRatio;
|
|
100
|
+
activeOption = option;
|
|
117
101
|
}
|
|
118
102
|
}
|
|
119
103
|
}
|
|
120
|
-
if (
|
|
121
|
-
onChange == null ? void 0 : onChange(
|
|
104
|
+
if (activeOption && tab !== activeOption.id) {
|
|
105
|
+
onChange == null ? void 0 : onChange(activeOption.id);
|
|
122
106
|
}
|
|
123
107
|
},
|
|
124
|
-
{ wait:
|
|
125
|
-
);
|
|
108
|
+
{ wait: 100 }
|
|
109
|
+
).run;
|
|
126
110
|
(0, import_react.useEffect)(() => {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
};
|
|
133
|
-
const container = containerRef.current;
|
|
134
|
-
container.addEventListener("scroll", handleScroll);
|
|
135
|
-
return () => {
|
|
136
|
-
container.removeEventListener("scroll", handleScroll);
|
|
137
|
-
};
|
|
138
|
-
}, [handleScrollThrottled]);
|
|
111
|
+
const container = containerRef == null ? void 0 : containerRef.current;
|
|
112
|
+
if (!container) return;
|
|
113
|
+
container.addEventListener("scroll", handleContentScroll);
|
|
114
|
+
return () => container.removeEventListener("scroll", handleContentScroll);
|
|
115
|
+
}, [handleContentScroll]);
|
|
139
116
|
const handleOptionClick = (item) => {
|
|
140
|
-
console.log("PisellAnchor: Tab clicked", item.id);
|
|
141
|
-
if (scrollTimeoutRef.current) {
|
|
142
|
-
clearTimeout(scrollTimeoutRef.current);
|
|
143
|
-
}
|
|
144
117
|
onChange == null ? void 0 : onChange(item.id);
|
|
145
118
|
onTabClick == null ? void 0 : onTabClick();
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
const element = elementById || elementByDataAttr;
|
|
149
|
-
console.log("PisellAnchor: Target element found?", !!element);
|
|
150
|
-
console.log("PisellAnchor: Container ref exists?", !!(containerRef == null ? void 0 : containerRef.current));
|
|
151
|
-
if (element && (containerRef == null ? void 0 : containerRef.current)) {
|
|
119
|
+
const targetElement = document.querySelector(`[data-section="${item.id}"]`);
|
|
120
|
+
if (targetElement instanceof HTMLElement && (containerRef == null ? void 0 : containerRef.current)) {
|
|
152
121
|
isClickScrolling.current = true;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
top: elementOffsetTop - headerHeight,
|
|
165
|
-
behavior: "smooth"
|
|
166
|
-
});
|
|
167
|
-
setTimeout(() => {
|
|
168
|
-
if (!(containerRef == null ? void 0 : containerRef.current)) return;
|
|
169
|
-
containerRef.current.scrollTo({
|
|
170
|
-
top: elementOffsetTop - headerHeight,
|
|
171
|
-
behavior: "auto"
|
|
172
|
-
// 使用即时滚动确保位置准确
|
|
173
|
-
});
|
|
174
|
-
}, 300);
|
|
122
|
+
let scrollDistance = 0;
|
|
123
|
+
for (const option of options) {
|
|
124
|
+
if (option.id === item.id) break;
|
|
125
|
+
const element = document.querySelector(`[data-section="${option.id}"]`);
|
|
126
|
+
if (element instanceof HTMLElement) {
|
|
127
|
+
scrollDistance += element.offsetHeight;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
containerRef.current.scrollTo({
|
|
131
|
+
top: scrollDistance,
|
|
132
|
+
behavior: "smooth"
|
|
175
133
|
});
|
|
176
|
-
|
|
134
|
+
setTimeout(() => {
|
|
177
135
|
isClickScrolling.current = false;
|
|
178
|
-
clickedTabRef.current = null;
|
|
179
136
|
}, 1e3);
|
|
180
|
-
} else {
|
|
181
|
-
console.warn("PisellAnchor: Cannot scroll, element or container not found", {
|
|
182
|
-
elementId: item.id,
|
|
183
|
-
elementByIdExists: !!elementById,
|
|
184
|
-
elementByDataAttrExists: !!elementByDataAttr,
|
|
185
|
-
containerExists: !!(containerRef == null ? void 0 : containerRef.current)
|
|
186
|
-
});
|
|
187
137
|
}
|
|
188
138
|
};
|
|
189
|
-
const
|
|
139
|
+
const handlePageChange = (type) => {
|
|
190
140
|
if (contentRef.current) {
|
|
191
141
|
const { scrollLeft, clientWidth } = contentRef.current;
|
|
192
|
-
const newScrollLeft = scrollLeft + (type === "left" ? -clientWidth : clientWidth);
|
|
193
142
|
contentRef.current.scrollTo({
|
|
194
|
-
left:
|
|
143
|
+
left: scrollLeft + (type === "left" ? -clientWidth : clientWidth),
|
|
195
144
|
behavior: "smooth"
|
|
196
145
|
});
|
|
197
146
|
}
|
|
@@ -201,7 +150,7 @@ var PisellAnchor = (0, import_react.forwardRef)((props, ref) => {
|
|
|
201
150
|
{
|
|
202
151
|
className: "pisell-anchor-tabs-btn-left",
|
|
203
152
|
style: { width: leftWidth },
|
|
204
|
-
onClick: () =>
|
|
153
|
+
onClick: () => handlePageChange("left")
|
|
205
154
|
},
|
|
206
155
|
/* @__PURE__ */ import_react.default.createElement(import_ChevronLeft.default, { className: "pisell-anchor-tabs-btn-icon" })
|
|
207
156
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -209,43 +158,27 @@ var PisellAnchor = (0, import_react.forwardRef)((props, ref) => {
|
|
|
209
158
|
{
|
|
210
159
|
ref: contentRef,
|
|
211
160
|
className: "pisell-anchor-tabs-content",
|
|
212
|
-
|
|
213
|
-
onScroll: onScrollDebounced
|
|
161
|
+
onScroll: handleHorizontalScroll
|
|
214
162
|
},
|
|
215
163
|
options.map((item) => /* @__PURE__ */ import_react.default.createElement(
|
|
216
164
|
"div",
|
|
217
165
|
{
|
|
218
166
|
key: item.id,
|
|
219
|
-
id: `tab-${item.id}`,
|
|
220
167
|
className: (0, import_classnames.default)("pisell-anchor-tabs-tab", {
|
|
221
168
|
"pisell-anchor-tabs-tab-active": tab === item.id
|
|
222
169
|
}),
|
|
223
|
-
onClick: () =>
|
|
224
|
-
console.log("PisellAnchor: Tab div clicked", item.id);
|
|
225
|
-
handleOptionClick(item);
|
|
226
|
-
}
|
|
170
|
+
onClick: () => handleOptionClick(item)
|
|
227
171
|
},
|
|
228
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
229
|
-
"span",
|
|
230
|
-
{
|
|
231
|
-
className: "pisell-anchor-tabs-tab-content",
|
|
232
|
-
onClick: (e) => {
|
|
233
|
-
e.stopPropagation();
|
|
234
|
-
console.log("PisellAnchor: Tab span clicked", item.id);
|
|
235
|
-
handleOptionClick(item);
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
item.name
|
|
239
|
-
)
|
|
172
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-anchor-tabs-tab-content" }, item.name)
|
|
240
173
|
))
|
|
241
174
|
), showButtons && /* @__PURE__ */ import_react.default.createElement(
|
|
242
175
|
"div",
|
|
243
176
|
{
|
|
244
177
|
className: "pisell-anchor-tabs-btn-right",
|
|
245
178
|
style: { width: rightWidth },
|
|
246
|
-
onClick: () =>
|
|
179
|
+
onClick: () => handlePageChange("right")
|
|
247
180
|
},
|
|
248
181
|
/* @__PURE__ */ import_react.default.createElement(import_ChevronRight.default, { className: "pisell-anchor-tabs-btn-icon" })
|
|
249
182
|
));
|
|
250
|
-
}
|
|
183
|
+
};
|
|
251
184
|
var pisellAnchor_default = PisellAnchor;
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
display: flex;
|
|
115
115
|
align-items: center;
|
|
116
116
|
justify-content: center;
|
|
117
|
-
background:
|
|
117
|
+
background:none;
|
|
118
118
|
cursor: pointer;
|
|
119
119
|
transition: width 300ms ease;
|
|
120
120
|
user-select: none;
|
|
@@ -134,12 +134,10 @@
|
|
|
134
134
|
|
|
135
135
|
.pisell-anchor-tabs-btn-left {
|
|
136
136
|
left: 0;
|
|
137
|
-
background: linear-gradient(270deg, rgba(255, 255, 255, 0.8) 0%, #fff 70%);
|
|
138
137
|
}
|
|
139
138
|
|
|
140
139
|
.pisell-anchor-tabs-btn-right {
|
|
141
140
|
right: 0;
|
|
142
|
-
background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, #fff 70%);
|
|
143
141
|
}
|
|
144
142
|
|
|
145
143
|
.pisell-anchor-tabs-content {
|
|
@@ -172,7 +170,7 @@
|
|
|
172
170
|
border-radius: 100px;
|
|
173
171
|
|
|
174
172
|
&:hover:not(.pisell-anchor-tabs-tab-active) {
|
|
175
|
-
color:
|
|
173
|
+
color: inherit;
|
|
176
174
|
}
|
|
177
175
|
|
|
178
176
|
&.pisell-anchor-tabs-tab-active {
|
|
@@ -189,7 +187,7 @@
|
|
|
189
187
|
}
|
|
190
188
|
|
|
191
189
|
.pisell-anchor {
|
|
192
|
-
border-bottom: 1px solid #
|
|
190
|
+
border-bottom: 1px solid #eaecf0;
|
|
193
191
|
|
|
194
192
|
&.pisell-anchor-no-border {
|
|
195
193
|
border-bottom: none;
|
|
@@ -88,7 +88,7 @@ var PisellAvatar = ({
|
|
|
88
88
|
if (useTextAvatar && children) {
|
|
89
89
|
return children;
|
|
90
90
|
}
|
|
91
|
-
return /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-user-01" });
|
|
91
|
+
return /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-user-01", className: "pisell-avatar-icon" });
|
|
92
92
|
}, [useTextAvatar, children]);
|
|
93
93
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
94
94
|
import_antd.Avatar,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
7
7
|
background: var(--Gray-100, #f2f4f7); // 默认背景色
|
|
8
|
-
border: 1px solid #
|
|
8
|
+
border: 1px solid #d0d5dd; // 移除默认边框
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
|
|
11
11
|
img {
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
.anticon {
|
|
16
16
|
font-size: inherit !important;
|
|
17
|
+
color: var(--Gray-600, #475467) !important;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
// 文本头像样式
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardProps } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface PisellCardProps extends CardProps {
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
padding?: number;
|
|
9
|
+
borderRadius?: number;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
isClickable?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Pisell 卡片容器组件
|
|
16
|
+
* @param props
|
|
17
|
+
* @constructor
|
|
18
|
+
*/
|
|
19
|
+
declare const PisellCard: (props: PisellCardProps) => JSX.Element;
|
|
20
|
+
export default PisellCard;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PisellCustomCheckboxGroupProps {
|
|
4
|
+
dataSource?: any[];
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
allowAdd?: boolean;
|
|
7
|
+
isMultiple?: boolean;
|
|
8
|
+
id?: string | string[];
|
|
9
|
+
onClick?: (value: any) => void;
|
|
10
|
+
onAdd?: () => void;
|
|
11
|
+
renderAddItem?: (item: any) => React.ReactNode;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const PisellCustomCheckboxGroup: React.FC<PisellCustomCheckboxGroupProps>;
|
|
16
|
+
export default PisellCustomCheckboxGroup;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface MenuItemType {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
shortcut?: string;
|
|
8
|
+
divider?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface PisellDropdownProps {
|
|
11
|
+
trigger?: React.ReactNode;
|
|
12
|
+
items?: MenuItemType[];
|
|
13
|
+
showShortcut?: boolean;
|
|
14
|
+
triggerType?: ('click' | 'hover')[];
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
onSelect?: (key: string) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const PisellDropdown: React.FC<PisellDropdownProps>;
|
|
20
|
+
export default PisellDropdown;
|
|
@@ -54,7 +54,15 @@ var PisellEmpty = (props) => {
|
|
|
54
54
|
...others,
|
|
55
55
|
className: (0, import_classnames.default)("pisell-empty-wrap", className),
|
|
56
56
|
image: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-empty-icon-wrap" }, icon || /* @__PURE__ */ import_react.default.createElement(import_Inbox01.default, { style: { color: "#667085" } })),
|
|
57
|
-
description: /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
+
description: /* @__PURE__ */ import_react.default.createElement(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
className: "pisell-empty-wrap-description-wrap",
|
|
61
|
+
style: { maxWidth: maxWidth || 300 }
|
|
62
|
+
},
|
|
63
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-empty-wrap-description" }, description),
|
|
64
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-empty-wrap-extra-description" }, extraDescription)
|
|
65
|
+
)
|
|
58
66
|
},
|
|
59
67
|
footer
|
|
60
68
|
);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PisellHeaderProgressBarProps {
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
stepText?: React.ReactNode;
|
|
6
|
+
showClose?: boolean;
|
|
7
|
+
/** 是否启用投影 */
|
|
8
|
+
enableShadow?: boolean;
|
|
9
|
+
/** 是否启用描边 */
|
|
10
|
+
enableBorder?: boolean;
|
|
11
|
+
/** 描边粗细 */
|
|
12
|
+
borderWidth?: number;
|
|
13
|
+
/** 描边颜色 */
|
|
14
|
+
borderColor?: string;
|
|
15
|
+
/** 头部背景颜色 */
|
|
16
|
+
backgroundColor?: string;
|
|
17
|
+
/** 自定义类名 */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** 自定义样式 */
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
/** 是否显示返回键 */
|
|
22
|
+
showBack?: boolean;
|
|
23
|
+
/** 返回按钮点击事件 */
|
|
24
|
+
onBack?: () => void;
|
|
25
|
+
/** 关闭按钮点击事件 */
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
}
|
|
28
|
+
declare const PisellHeaderProgressBar: React.FC<PisellHeaderProgressBarProps>;
|
|
29
|
+
export default PisellHeaderProgressBar;
|