@pisell/materials 6.11.54 → 6.11.55
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/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.js +4 -4
- package/es/components/PisellCards/index.d.ts +0 -1
- package/es/components/PisellFields/index.d.ts +0 -1
- package/es/components/PisellLayouts/index.d.ts +0 -1
- package/es/components/PisellMetrics/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +32 -21
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +2 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +7 -3
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +23 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.js +99 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +35 -20
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -2
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +14 -15
- package/es/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +1 -0
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/pisellDatePicker/index.d.ts +0 -1
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +4 -4
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +2 -2
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +3 -3
- package/es/components/pisellFloorMapLayout/types.d.ts +1 -1
- package/es/components/pisellModal/components/index.d.ts +0 -1
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/table/Table/fields/date/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/locales/en-US.d.ts +1 -0
- package/es/locales/en-US.js +1 -0
- package/es/locales/zh-CN.d.ts +1 -0
- package/es/locales/zh-CN.js +1 -0
- package/es/locales/zh-TW.d.ts +1 -0
- package/es/locales/zh-TW.js +1 -0
- package/lib/components/PisellCards/index.d.ts +0 -1
- package/lib/components/PisellFields/index.d.ts +0 -1
- package/lib/components/PisellLayouts/index.d.ts +0 -1
- package/lib/components/PisellMetrics/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +30 -14
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +2 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +7 -3
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +23 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.js +69 -1
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +8 -1
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -2
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +14 -15
- package/lib/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +1 -0
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/pisellDatePicker/index.d.ts +0 -1
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +3 -3
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +2 -2
- package/lib/components/pisellFloorMapLayout/types.d.ts +1 -1
- package/lib/components/pisellModal/components/index.d.ts +0 -1
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/table/Table/fields/date/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/locales/en-US.d.ts +1 -0
- package/lib/locales/en-US.js +1 -0
- package/lib/locales/zh-CN.d.ts +1 -0
- package/lib/locales/zh-CN.js +1 -0
- package/lib/locales/zh-TW.d.ts +1 -0
- package/lib/locales/zh-TW.js +1 -0
- package/lowcode/data-source-form/meta.ts +53 -4
- package/lowcode/data-source-form/utils.ts +43 -5
- package/lowcode/data-source-table/meta.ts +51 -45
- package/lowcode/pisell-record-board-calendar-view/meta.ts +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const formFieldMap: {
|
|
3
2
|
FormItemCheckbox: import("react").FC<{}> & {
|
|
4
3
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -20,7 +19,7 @@ declare const formFieldMap: {
|
|
|
20
19
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
21
20
|
onChange: (value: string) => void;
|
|
22
21
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
23
|
-
rootDomain: "
|
|
22
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
24
23
|
customDomain?: string | undefined;
|
|
25
24
|
value?: string | undefined;
|
|
26
25
|
tenantId: string;
|
|
@@ -35,7 +34,7 @@ declare const formFieldMap: {
|
|
|
35
34
|
};
|
|
36
35
|
FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
37
36
|
options?: any;
|
|
38
|
-
optionSourceType?: "default" | "
|
|
37
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
39
38
|
labelField: string;
|
|
40
39
|
valueField: string;
|
|
41
40
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -62,7 +61,7 @@ declare const formFieldMap: {
|
|
|
62
61
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
63
62
|
FormItemRecordListWrapper: (props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
64
63
|
options?: any;
|
|
65
|
-
optionSourceType?: "default" | "
|
|
64
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
66
65
|
labelField: string;
|
|
67
66
|
valueField: string;
|
|
68
67
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -72,7 +71,7 @@ declare const formFieldMap: {
|
|
|
72
71
|
}) => import("react").JSX.Element;
|
|
73
72
|
FormItemTabs: (props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
74
73
|
options?: any;
|
|
75
|
-
optionSourceType?: "default" | "
|
|
74
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
76
75
|
labelField: string;
|
|
77
76
|
valueField: string;
|
|
78
77
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -81,11 +80,13 @@ declare const formFieldMap: {
|
|
|
81
80
|
extraParams?: Record<string, any> | undefined;
|
|
82
81
|
}) => import("react").JSX.Element;
|
|
83
82
|
};
|
|
84
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./
|
|
83
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
85
84
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
86
85
|
} & {
|
|
87
86
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
88
|
-
}) | 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> |
|
|
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<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 & {
|
|
88
|
+
onChange: (value: string) => void;
|
|
89
|
+
} & 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> & {
|
|
89
90
|
JSON: import("react").FC<any>;
|
|
90
91
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
91
92
|
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>;
|
|
@@ -98,31 +99,29 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
98
99
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
99
100
|
onChange: (value: string) => void;
|
|
100
101
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
101
|
-
rootDomain: "
|
|
102
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
102
103
|
customDomain?: string | undefined;
|
|
103
104
|
value?: string | undefined;
|
|
104
105
|
tenantId: string;
|
|
105
106
|
name?: string | undefined;
|
|
106
107
|
fieldKey?: string | undefined;
|
|
107
108
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
108
|
-
}) | (import("react").FC<{}> & {
|
|
109
|
+
}) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
109
110
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
110
111
|
} & {
|
|
111
112
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
112
113
|
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
113
114
|
options?: any;
|
|
114
|
-
optionSourceType?: "default" | "
|
|
115
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
115
116
|
labelField: string;
|
|
116
117
|
valueField: string;
|
|
117
118
|
extraParams?: Record<string, any> | undefined;
|
|
118
119
|
} & {
|
|
119
120
|
dataSource?: any;
|
|
120
121
|
extraParams?: Record<string, any> | undefined;
|
|
121
|
-
}) => import("react").JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./
|
|
122
|
-
onChange: (value: string) => void;
|
|
123
|
-
} & 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("./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> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
122
|
+
}) => import("react").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> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
124
123
|
options?: any;
|
|
125
|
-
optionSourceType?: "default" | "
|
|
124
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
126
125
|
labelField: string;
|
|
127
126
|
valueField: string;
|
|
128
127
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -131,7 +130,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
131
130
|
extraParams?: Record<string, any> | undefined;
|
|
132
131
|
}) => import("react").JSX.Element) | ((props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
133
132
|
options?: any;
|
|
134
|
-
optionSourceType?: "default" | "
|
|
133
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
135
134
|
labelField: string;
|
|
136
135
|
valueField: string;
|
|
137
136
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -259,7 +259,7 @@ var useActions = function useActions() {
|
|
|
259
259
|
designModeToast();
|
|
260
260
|
return _context4.abrupt("return", Promise.reject());
|
|
261
261
|
case 3:
|
|
262
|
-
if (!(currentDataSource !== null && currentDataSource !== void 0 && currentDataSource.fromSettingMeta)) {
|
|
262
|
+
if (!(currentDataSource !== null && currentDataSource !== void 0 && currentDataSource.fromSettingMeta || currentDataSource !== null && currentDataSource !== void 0 && currentDataSource.fromDeviceSettingMeta)) {
|
|
263
263
|
_context4.next = 5;
|
|
264
264
|
break;
|
|
265
265
|
}
|
|
@@ -45,6 +45,7 @@ interface Style {
|
|
|
45
45
|
export declare type ActionTypes = 'list' | 'get' | 'update' | 'create' | 'destroy';
|
|
46
46
|
export declare type DataSourceType = {
|
|
47
47
|
fromSettingMeta: boolean;
|
|
48
|
+
fromDeviceSettingMeta?: boolean;
|
|
48
49
|
actions: {
|
|
49
50
|
get: ActionsItem;
|
|
50
51
|
update: ActionsItem;
|
|
@@ -343,16 +343,16 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
343
343
|
|
|
344
344
|
/**
|
|
345
345
|
* 右下角视口控件:平面图下默认带出全屏按钮(若当前策略允许 toggle),
|
|
346
|
-
*
|
|
346
|
+
* 并默认带出「视口锁定」按钮(与是否将视口保存到本地解耦;无持久化 key 时仅内存态,默认未锁定)。
|
|
347
347
|
*/
|
|
348
348
|
var viewControlsConfig = useMemo(function () {
|
|
349
349
|
var _controls$showFullscr, _controls$showViewpor;
|
|
350
350
|
if (!isFloorMapView) return controls;
|
|
351
351
|
return _objectSpread(_objectSpread({}, controls), {}, {
|
|
352
352
|
showFullscreen: (_controls$showFullscr = controls.showFullscreen) !== null && _controls$showFullscr !== void 0 ? _controls$showFullscr : Boolean(dockToggleFullscreen),
|
|
353
|
-
showViewportLock: (_controls$showViewpor = controls.showViewportLock) !== null && _controls$showViewpor !== void 0 ? _controls$showViewpor :
|
|
353
|
+
showViewportLock: (_controls$showViewpor = controls.showViewportLock) !== null && _controls$showViewpor !== void 0 ? _controls$showViewpor : true
|
|
354
354
|
});
|
|
355
|
-
}, [isFloorMapView, controls, dockToggleFullscreen
|
|
355
|
+
}, [isFloorMapView, controls, dockToggleFullscreen]);
|
|
356
356
|
var topBarExtraActions = null;
|
|
357
357
|
|
|
358
358
|
/** 从侧栏/调色板拖入画布时,地图区高亮态(用于 dragleave/over 判定) */
|
|
@@ -829,7 +829,7 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
829
829
|
mapGridVisible: Boolean(effectiveMapLayer === null || effectiveMapLayer === void 0 ? void 0 : effectiveMapLayer.showGrid),
|
|
830
830
|
onToggleMapGrid: isFloorMapView ? toggleDraftCanvasShowGrid : undefined,
|
|
831
831
|
viewportLocked: viewportLocked,
|
|
832
|
-
onToggleViewportLock: isFloorMapView
|
|
832
|
+
onToggleViewportLock: isFloorMapView ? toggleViewportLocked : undefined,
|
|
833
833
|
dockChrome: isFloorMapView,
|
|
834
834
|
dockExpandedTrailing: viewportDockTrailing,
|
|
835
835
|
autoCollapseDockMs: 10000
|
|
@@ -130,7 +130,7 @@ export function ViewControls(props) {
|
|
|
130
130
|
"aria-label": locales.getText("".concat(I18N_VC, ".reset-aria"))
|
|
131
131
|
}, /*#__PURE__*/React.createElement(ReloadOutlined, null)) : null, showFitBounds && api.fitBounds && !omitFit ? /*#__PURE__*/React.createElement("button", {
|
|
132
132
|
type: "button",
|
|
133
|
-
className: classNames("".concat(PREFIX, "-view-controls-tool-btn"), _defineProperty({}, "".concat(PREFIX, "-view-controls-tool-btn--active"), fitBoundsActive
|
|
133
|
+
className: classNames("".concat(PREFIX, "-view-controls-tool-btn"), _defineProperty({}, "".concat(PREFIX, "-view-controls-tool-btn--active"), fitBoundsActive)),
|
|
134
134
|
onClick: function onClick() {
|
|
135
135
|
return api.fitBounds();
|
|
136
136
|
},
|
|
@@ -243,7 +243,7 @@ export function ViewControls(props) {
|
|
|
243
243
|
title: locales.getText(viewportLocked ? "".concat(I18N_VC, ".viewport-unlock-aria") : "".concat(I18N_VC, ".viewport-lock-aria"))
|
|
244
244
|
}, viewportLocked ? /*#__PURE__*/React.createElement(LockOutlined, null) : /*#__PURE__*/React.createElement(UnlockOutlined, null)) : null, showFitChip ? /*#__PURE__*/React.createElement("button", {
|
|
245
245
|
type: "button",
|
|
246
|
-
className: classNames("".concat(PREFIX, "-view-controls-tool-btn"), "".concat(PREFIX, "-view-controls-dock-collapsed-extras-btn"), _defineProperty({}, "".concat(PREFIX, "-view-controls-tool-btn--active"), fitBoundsActive
|
|
246
|
+
className: classNames("".concat(PREFIX, "-view-controls-tool-btn"), "".concat(PREFIX, "-view-controls-dock-collapsed-extras-btn"), _defineProperty({}, "".concat(PREFIX, "-view-controls-tool-btn--active"), fitBoundsActive)),
|
|
247
247
|
onClick: function onClick() {
|
|
248
248
|
return api.fitBounds();
|
|
249
249
|
},
|
|
@@ -137,9 +137,9 @@ export function useFloorMapTransformMetrics(params) {
|
|
|
137
137
|
}, []);
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
141
|
-
* - 切 /
|
|
142
|
-
* -
|
|
140
|
+
* 视口锁定态:有 viewportPersistKey 时按 key 读写到 localStorage;无 key 时仅组件内存态(不写本地)。
|
|
141
|
+
* - 切 / 挂载时:有 key 则读持久化初值;无 key 则默认未锁定;
|
|
142
|
+
* - 用户切换时:有 key 则写回 localStorage;
|
|
143
143
|
* - 锁定后 fitBounds / 程序化 zoom 入口与 PisellFloorMapLayout 透传到 TransformWrapper 的
|
|
144
144
|
* panning/wheel/pinch.disabled 共同把所有视角写入路径关闭。
|
|
145
145
|
* 切 canvas(key 变化)时跟随新 key 重新初始化,互不影响。
|
|
@@ -116,7 +116,7 @@ export interface FloorMapControlsConfig {
|
|
|
116
116
|
showGridToggle?: boolean;
|
|
117
117
|
/**
|
|
118
118
|
* 是否显示「视口锁定」按钮:锁定后画布的位置 / 缩放不允许通过任何用户交互(拖拽、滚轮、触摸缩放、缩放按钮、适配视口)改变,
|
|
119
|
-
* 防止误触改变视图。默认 false
|
|
119
|
+
* 防止误触改变视图。默认 false;平面图模式下由 PisellFloorMapLayout 默认置 true(与是否持久化视口到本地无关)。显式传 false 可隐藏。
|
|
120
120
|
*/
|
|
121
121
|
showViewportLock?: boolean;
|
|
122
122
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type CalendarBookingSegmentInput } from './bookingCalendarDateUtils';
|
|
2
2
|
export declare function getDrawerStatusTheme(item: CalendarBookingSegmentInput, dateKey: string): "bg-red-700/88 border-b-4 border-red-300/55" | "bg-zinc-700/88 border-b-4 border-zinc-400/45" | "bg-zinc-700/88 border-b-4 border-red-400/75" | "bg-violet-700/92 border-b-4 border-amber-400/95" | "bg-violet-700/92 border-b-4 border-zinc-300/45" | "bg-violet-700/92 border-b-4 border-violet-300/30";
|
|
3
3
|
export declare function paymentTagClass(label: string, isLight?: boolean): "theme-success-chip border" | "bg-emerald-500 text-white" | "theme-warning-chip border" | "bg-amber-500 text-white" | "theme-info-chip border" | "bg-sky-500 text-white" | "theme-danger-chip border" | "bg-red-500 text-white";
|
|
4
|
-
export declare function fulfillmentTagClass(label: string, isLight?: boolean): "theme-success-chip border" | "theme-warning-chip border" | "bg-amber-500 text-white" | "theme-info-chip border" | "theme-danger-chip border" | "bg-emerald-600 text-white" | "bg-cyan-500 text-white" | "bg-red-600 text-white" | "border border-[var(--border-strong)] bg-[var(--bg-input)] theme-text-soft" | "bg-zinc-600 text-white" | "border border-[var(--brand-light)] bg-[var(--brand-surface)] theme-brand-text"
|
|
4
|
+
export declare function fulfillmentTagClass(label: string, isLight?: boolean): "bg-violet-600 text-white" | "theme-success-chip border" | "theme-warning-chip border" | "bg-amber-500 text-white" | "theme-info-chip border" | "theme-danger-chip border" | "bg-emerald-600 text-white" | "bg-cyan-500 text-white" | "bg-red-600 text-white" | "border border-[var(--border-strong)] bg-[var(--bg-input)] theme-text-soft" | "bg-zinc-600 text-white" | "border border-[var(--brand-light)] bg-[var(--brand-surface)] theme-brand-text";
|
|
5
5
|
export declare function getBookingStateClasses(item: CalendarBookingSegmentInput, dateKey: string): "bg-red-700/70 text-red-100" | "bg-violet-700/90 text-violet-50" | "bg-zinc-700/55 border border-zinc-500/70 text-zinc-100 grayscale-[0.2]" | "bg-zinc-700/55 border border-red-500/70 text-zinc-200 grayscale-[0.15]" | "bg-violet-700/90 border border-amber-400/80 text-violet-50";
|
|
6
6
|
/**
|
|
7
7
|
* 月 / 周紧凑格:不按签到/取消/迟到等状态变色,仅区分 booking(默认紫)与 block(红)。
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("
|
|
158
|
+
}) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "filters" | "view_mode" | "filter_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
package/es/locales/en-US.d.ts
CHANGED
|
@@ -385,6 +385,7 @@ declare const _default: {
|
|
|
385
385
|
'pisell-record-view-unavailable': string;
|
|
386
386
|
'pisell-data-source-form-required-message': string;
|
|
387
387
|
'pisell-data-source-form-scope-message': string;
|
|
388
|
+
'pisell-data-source-form-scene-request-id-message': string;
|
|
388
389
|
'pisell-data-source-form-email-message': string;
|
|
389
390
|
'pisell-data-source-form-domain-message': string;
|
|
390
391
|
'pisell-data-source-form-url-message': string;
|
package/es/locales/en-US.js
CHANGED
|
@@ -435,6 +435,7 @@ export default {
|
|
|
435
435
|
'pisell-record-view-unavailable': 'No available',
|
|
436
436
|
'pisell-data-source-form-required-message': 'This field is required',
|
|
437
437
|
'pisell-data-source-form-scope-message': 'Scope not specified for settings in URL params',
|
|
438
|
+
'pisell-data-source-form-scene-request-id-message': 'sceneRequestId is required for device settings',
|
|
438
439
|
'pisell-data-source-form-email-message': 'Please enter a valid email address',
|
|
439
440
|
'pisell-data-source-form-domain-message': 'Please enter a valid domain',
|
|
440
441
|
'pisell-data-source-form-url-message': 'Please enter a valid URL',
|
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -385,6 +385,7 @@ declare const _default: {
|
|
|
385
385
|
'pisell-record-view-unavailable': string;
|
|
386
386
|
'pisell-data-source-form-required-message': string;
|
|
387
387
|
'pisell-data-source-form-scope-message': string;
|
|
388
|
+
'pisell-data-source-form-scene-request-id-message': string;
|
|
388
389
|
'pisell-data-source-form-email-message': string;
|
|
389
390
|
'pisell-data-source-form-domain-message': string;
|
|
390
391
|
'pisell-data-source-form-url-message': string;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -434,6 +434,7 @@ export default {
|
|
|
434
434
|
'pisell-record-view-unavailable': '不可用',
|
|
435
435
|
'pisell-data-source-form-required-message': '该字段为必填项',
|
|
436
436
|
'pisell-data-source-form-scope-message': '未指定设置的scope参数',
|
|
437
|
+
'pisell-data-source-form-scene-request-id-message': '未指定设备设置的 sceneRequestId',
|
|
437
438
|
'pisell-data-source-form-email-message': '请输入有效的电子邮件地址',
|
|
438
439
|
'pisell-data-source-form-domain-message': '请输入有效的域名',
|
|
439
440
|
'pisell-data-source-form-url-message': '请输入正确的网址',
|
package/es/locales/zh-TW.d.ts
CHANGED
|
@@ -385,6 +385,7 @@ declare const _default: {
|
|
|
385
385
|
'pisell-record-view-unavailable': string;
|
|
386
386
|
'pisell-data-source-form-required-message': string;
|
|
387
387
|
'pisell-data-source-form-scope-message': string;
|
|
388
|
+
'pisell-data-source-form-scene-request-id-message': string;
|
|
388
389
|
'pisell-data-source-form-email-message': string;
|
|
389
390
|
'pisell-data-source-form-domain-message': string;
|
|
390
391
|
'pisell-data-source-form-url-message': string;
|
package/es/locales/zh-TW.js
CHANGED
|
@@ -435,6 +435,7 @@ export default {
|
|
|
435
435
|
'pisell-record-view-unavailable': '不可用',
|
|
436
436
|
'pisell-data-source-form-required-message': '該字段為必填項',
|
|
437
437
|
'pisell-data-source-form-scope-message': '未指定設置的scope參數',
|
|
438
|
+
'pisell-data-source-form-scene-request-id-message': '未指定設備設置的 sceneRequestId',
|
|
438
439
|
'pisell-data-source-form-email-message': '請輸入有效的電子郵件地址',
|
|
439
440
|
'pisell-data-source-form-domain-message': '請輸入有效的域名',
|
|
440
441
|
'pisell-data-source-form-url-message': '請輸入正確的網址',
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* <PisellFields.Number value={123} viewMode="readonly" />
|
|
10
10
|
* <PisellFields.Currency value={1000} currencySymbol="$" />
|
|
11
11
|
*/
|
|
12
|
-
/// <reference types="react" />
|
|
13
12
|
declare const PisellFields: {
|
|
14
13
|
SingleLineText: import("react").NamedExoticComponent<import("../pisellSingleLineText").PisellSingleLineTextProps>;
|
|
15
14
|
LongText: import("react").NamedExoticComponent<import("../pisellLongText").PisellLongTextProps>;
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* <Content />
|
|
14
14
|
* </PisellLayouts.ScrollView>
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="react" />
|
|
17
16
|
declare const PisellLayouts: {
|
|
18
17
|
BasicGrid: <T>(props: import("../PisellBasicGrid").PisellBasicGridProps<T>) => import("react").JSX.Element;
|
|
19
18
|
ScrollView: import("react").ForwardRefExoticComponent<Omit<import("../PisellScrollView").PisellScrollViewProps, "ref"> & import("react").RefAttributes<import("../PisellScrollView").PisellScrollViewRef>>;
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* />
|
|
14
14
|
* <PisellMetrics.StatisticList data={[...]} />
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="react" />
|
|
17
16
|
declare const PisellMetrics: {
|
|
18
17
|
MetricCard: import("react").FC<import("../pisellMetricCard").PisellMetricCardProps>;
|
|
19
18
|
StatisticList: (props: import("../pisellStatisticList").PisellStatisticListProps) => import("react").JSX.Element;
|
|
@@ -49,7 +49,7 @@ var import_index = require("./index.less");
|
|
|
49
49
|
var import_utils2 = require("@pisell/utils");
|
|
50
50
|
var BaseForm = (0, import_react.forwardRef)(
|
|
51
51
|
(props, ref) => {
|
|
52
|
-
var _a;
|
|
52
|
+
var _a, _b;
|
|
53
53
|
const {
|
|
54
54
|
title,
|
|
55
55
|
description,
|
|
@@ -63,16 +63,20 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
63
63
|
currentValue,
|
|
64
64
|
className,
|
|
65
65
|
onDataSourceFinish,
|
|
66
|
+
onDataSourceLoaded,
|
|
66
67
|
formatSubmitValues,
|
|
67
68
|
formatInitialValues,
|
|
68
69
|
customSubmit,
|
|
69
70
|
beforeSubmit,
|
|
70
71
|
leaveConfirmConfig,
|
|
72
|
+
scene,
|
|
73
|
+
sceneRequestId,
|
|
71
74
|
...others
|
|
72
75
|
} = props;
|
|
73
76
|
const context = (0, import_useEngineContext.default)();
|
|
77
|
+
console.log("context_pageProps", (_a = context == null ? void 0 : context.pageContext) == null ? void 0 : _a.props);
|
|
74
78
|
const { setBeforeClose } = (0, import_useCtxActions.default)();
|
|
75
|
-
const { getApp } = (
|
|
79
|
+
const { getApp } = (_b = context.appHelper) == null ? void 0 : _b.utils;
|
|
76
80
|
const { scope, target } = (0, import_useFormSettingParams.default)();
|
|
77
81
|
const formRef = (0, import_react.useRef)(null);
|
|
78
82
|
const { get } = (0, import_useDataSource.default)();
|
|
@@ -87,14 +91,22 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
87
91
|
document.body.id = "body";
|
|
88
92
|
}, []);
|
|
89
93
|
(0, import_react.useImperativeHandle)(ref, () => formRef.current);
|
|
90
|
-
(0,
|
|
91
|
-
var _a2;
|
|
94
|
+
(0, import_ahooks.useDeepCompareEffect)(() => {
|
|
95
|
+
var _a2, _b2;
|
|
92
96
|
if (["edit", "view"].includes(renderMode || "") && dataSource) {
|
|
93
|
-
if (dataSource == null ? void 0 : dataSource.fromSettingMeta) {
|
|
97
|
+
if ((dataSource == null ? void 0 : dataSource.fromSettingMeta) || (dataSource == null ? void 0 : dataSource.fromDeviceSettingMeta)) {
|
|
94
98
|
if (props.__designMode === "design") return;
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
const fetchMetaData = (dataSource == null ? void 0 : dataSource.fromDeviceSettingMeta) ? (0, import_serve.getDeviceSettingMetaData)({
|
|
100
|
+
scene,
|
|
101
|
+
sceneRequestId: sceneRequestId || "",
|
|
102
|
+
items: ((_a2 = dataSource == null ? void 0 : dataSource.fields) == null ? void 0 : _a2.map((field) => field.name)) || []
|
|
103
|
+
}) : (0, import_serve.getFormSettingMetaData)({
|
|
104
|
+
sectionCodes: Array.from(new Set((_b2 = dataSource == null ? void 0 : dataSource.fields) == null ? void 0 : _b2.map((field) => field.name.split(".").shift()))),
|
|
105
|
+
scope,
|
|
106
|
+
target
|
|
107
|
+
});
|
|
108
|
+
fetchMetaData.then((res) => {
|
|
109
|
+
var _a3, _b3;
|
|
98
110
|
const formattedValues = formatInitialValues ? formatInitialValues(res.data) : res.data || {};
|
|
99
111
|
const fieldNames = new Set(((_a3 = dataSource == null ? void 0 : dataSource.fields) == null ? void 0 : _a3.map((field) => field.name)) || []);
|
|
100
112
|
const filteredValues = Object.keys(formattedValues).reduce((acc, key) => {
|
|
@@ -103,16 +115,17 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
103
115
|
}
|
|
104
116
|
return acc;
|
|
105
117
|
}, {});
|
|
106
|
-
(
|
|
118
|
+
(_b3 = formRef.current) == null ? void 0 : _b3.setFields((0, import_utils.transformFormObjToArrayWithUntouched)({
|
|
107
119
|
...filteredValues
|
|
108
120
|
}));
|
|
121
|
+
onDataSourceLoaded == null ? void 0 : onDataSourceLoaded(filteredValues, res);
|
|
109
122
|
}).catch((error) => {
|
|
110
123
|
console.error("获取formSettingMeta数据失败:", error);
|
|
111
124
|
});
|
|
112
125
|
return;
|
|
113
126
|
}
|
|
114
127
|
get == null ? void 0 : get.runAsync().then((res) => {
|
|
115
|
-
var _a3,
|
|
128
|
+
var _a3, _b3;
|
|
116
129
|
const formattedValues = formatInitialValues ? formatInitialValues(res) : res;
|
|
117
130
|
let values = formattedValues;
|
|
118
131
|
if ((0, import_utils2.isArr)(dataSource == null ? void 0 : dataSource.fields)) {
|
|
@@ -124,7 +137,8 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
124
137
|
return acc;
|
|
125
138
|
}, {});
|
|
126
139
|
}
|
|
127
|
-
(
|
|
140
|
+
(_b3 = formRef.current) == null ? void 0 : _b3.setFields((0, import_utils.transformFormObjToArrayWithUntouched)(values));
|
|
141
|
+
onDataSourceLoaded == null ? void 0 : onDataSourceLoaded(values, res);
|
|
128
142
|
});
|
|
129
143
|
}
|
|
130
144
|
}, [renderMode, dataSource]);
|
|
@@ -157,9 +171,9 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
157
171
|
}
|
|
158
172
|
}, [leaveConfirmConfig]);
|
|
159
173
|
(0, import_react.useEffect)(() => {
|
|
160
|
-
var _a2,
|
|
174
|
+
var _a2, _b2;
|
|
161
175
|
if (leaveConfirmConfig == null ? void 0 : leaveConfirmConfig.enable) {
|
|
162
|
-
const history = (
|
|
176
|
+
const history = (_b2 = (_a2 = getApp == null ? void 0 : getApp()) == null ? void 0 : _a2.history) == null ? void 0 : _b2.instance;
|
|
163
177
|
let unblock = history == null ? void 0 : history.block((location, action) => {
|
|
164
178
|
var _a3;
|
|
165
179
|
const isFormChanged = (_a3 = formRef.current) == null ? void 0 : _a3.isFieldsTouched();
|
|
@@ -202,7 +216,9 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
202
216
|
formatSubmitValues,
|
|
203
217
|
formatInitialValues,
|
|
204
218
|
customSubmit,
|
|
205
|
-
beforeSubmit
|
|
219
|
+
beforeSubmit,
|
|
220
|
+
scene,
|
|
221
|
+
sceneRequestId
|
|
206
222
|
},
|
|
207
223
|
/* @__PURE__ */ import_react.default.createElement(
|
|
208
224
|
import_form.default,
|
|
@@ -11,6 +11,8 @@ export interface FormSettingContextType {
|
|
|
11
11
|
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
12
12
|
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
13
13
|
beforeSubmit?: (values: Record<string, any>) => Promise<boolean> | boolean;
|
|
14
|
+
scene?: 'template' | 'profile' | 'instance';
|
|
15
|
+
sceneRequestId?: string;
|
|
14
16
|
}
|
|
15
17
|
export declare const FormSettingContext: import("react").Context<FormSettingContextType>;
|
|
16
18
|
export default FormSettingContext;
|
|
@@ -45,7 +45,9 @@ var FormSettingProvider = (props) => {
|
|
|
45
45
|
formatSubmitValues,
|
|
46
46
|
formatInitialValues,
|
|
47
47
|
customSubmit,
|
|
48
|
-
beforeSubmit
|
|
48
|
+
beforeSubmit,
|
|
49
|
+
scene,
|
|
50
|
+
sceneRequestId
|
|
49
51
|
} = props;
|
|
50
52
|
const value = import_react.default.useMemo(() => {
|
|
51
53
|
return {
|
|
@@ -57,9 +59,11 @@ var FormSettingProvider = (props) => {
|
|
|
57
59
|
formatSubmitValues,
|
|
58
60
|
formatInitialValues,
|
|
59
61
|
customSubmit,
|
|
60
|
-
beforeSubmit
|
|
62
|
+
beforeSubmit,
|
|
63
|
+
scene,
|
|
64
|
+
sceneRequestId
|
|
61
65
|
};
|
|
62
|
-
}, [renderMode, groupInfoPosition, currentValue, size, beforeSubmit]);
|
|
66
|
+
}, [renderMode, groupInfoPosition, currentValue, size, beforeSubmit, scene, sceneRequestId]);
|
|
63
67
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
64
68
|
import_FormSettingContext.default.Provider,
|
|
65
69
|
{
|