@pisell/materials 1.0.1071 → 1.0.1072
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 +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/PisellCards/index.d.ts +6 -6
- package/es/components/PisellFields/index.d.ts +12 -12
- package/es/components/PisellMetrics/index.d.ts +4 -4
- package/es/components/checkbox/index.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +4 -1
- package/es/components/dataSourceComponents/fields/Input.Email/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Input.Url/index.d.ts +2 -2
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/input/index.d.ts +2 -2
- package/es/components/radio/index.d.ts +2 -2
- package/es/components/skeleton/index.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/components/upload/index.d.ts +2 -2
- package/lib/components/PisellFields/index.d.ts +12 -12
- package/lib/components/PisellMetrics/index.d.ts +4 -4
- package/lib/components/calendar/index.d.ts +2 -2
- package/lib/components/checkbox/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +4 -1
- package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Input.Email/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Input.Url/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +2 -2
- package/lib/components/date-picker/index.d.ts +2 -2
- package/lib/components/input/index.d.ts +2 -2
- package/lib/components/skeleton/index.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +2 -2
- package/lib/components/upload/index.d.ts +2 -2
- package/lowcode/data-source-form/meta.ts +5 -0
- package/package.json +3 -3
|
@@ -10,15 +10,15 @@ import "../pisellEntityCard/index.js";
|
|
|
10
10
|
import { BadgeConfig, TabCardProps } from "./components/TabCard/types.js";
|
|
11
11
|
import "./components/TextCard/types.js";
|
|
12
12
|
import { MultilevelCardProps } from "./components/MultilevelCard/types.js";
|
|
13
|
-
import * as
|
|
13
|
+
import * as react40 from "react";
|
|
14
14
|
|
|
15
15
|
//#region src/components/PisellCards/index.d.ts
|
|
16
16
|
declare const PisellCards: {
|
|
17
|
-
TabCard: (props: any) =>
|
|
18
|
-
TextCard: (props: any) =>
|
|
19
|
-
GraphicTextCard: (props: GraphicTextCardProps) =>
|
|
20
|
-
MultilevelCard: (props: any) =>
|
|
21
|
-
PisellImageCard: (props: PisellImageCardProps) =>
|
|
17
|
+
TabCard: (props: any) => react40.JSX.Element;
|
|
18
|
+
TextCard: (props: any) => react40.JSX.Element;
|
|
19
|
+
GraphicTextCard: (props: GraphicTextCardProps) => react40.JSX.Element;
|
|
20
|
+
MultilevelCard: (props: any) => react40.JSX.Element;
|
|
21
|
+
PisellImageCard: (props: PisellImageCardProps) => react40.JSX.Element;
|
|
22
22
|
PisellEntityCard: typeof PisellEntityCard;
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
@@ -21,7 +21,7 @@ import { PisellSingleSelectProps, SingleSelectRef } from "../pisellSingleSelect/
|
|
|
21
21
|
import "../pisellSingleSelect/index.js";
|
|
22
22
|
import { MultipleSelectRef, PisellMultipleSelectProps } from "../pisellMultipleSelect/types.js";
|
|
23
23
|
import "../pisellMultipleSelect/index.js";
|
|
24
|
-
import * as
|
|
24
|
+
import * as react0 from "react";
|
|
25
25
|
|
|
26
26
|
//#region src/components/PisellFields/index.d.ts
|
|
27
27
|
/**
|
|
@@ -36,17 +36,17 @@ import * as react2 from "react";
|
|
|
36
36
|
* <PisellFields.Currency value={1000} currencySymbol="$" />
|
|
37
37
|
*/
|
|
38
38
|
declare const PisellFields: {
|
|
39
|
-
SingleLineText:
|
|
40
|
-
LongText:
|
|
41
|
-
Number:
|
|
42
|
-
Currency:
|
|
43
|
-
Percent:
|
|
44
|
-
Phone:
|
|
45
|
-
Email:
|
|
46
|
-
Url:
|
|
47
|
-
Rating:
|
|
48
|
-
SingleSelect:
|
|
49
|
-
MultipleSelect:
|
|
39
|
+
SingleLineText: react0.NamedExoticComponent<PisellSingleLineTextProps>;
|
|
40
|
+
LongText: react0.NamedExoticComponent<PisellLongTextProps>;
|
|
41
|
+
Number: react0.NamedExoticComponent<PisellNumberProps>;
|
|
42
|
+
Currency: react0.NamedExoticComponent<PisellCurrencyProps>;
|
|
43
|
+
Percent: react0.NamedExoticComponent<PisellPercentProps>;
|
|
44
|
+
Phone: react0.NamedExoticComponent<PisellPhoneProps>;
|
|
45
|
+
Email: react0.NamedExoticComponent<PisellEmailProps>;
|
|
46
|
+
Url: react0.NamedExoticComponent<PisellUrlProps>;
|
|
47
|
+
Rating: react0.NamedExoticComponent<PisellRatingProps>;
|
|
48
|
+
SingleSelect: react0.ForwardRefExoticComponent<PisellSingleSelectProps<string | number> & react0.RefAttributes<SingleSelectRef<string | number>>>;
|
|
49
|
+
MultipleSelect: react0.ForwardRefExoticComponent<PisellMultipleSelectProps<string | number> & react0.RefAttributes<MultipleSelectRef<string | number>>>;
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
52
52
|
export { PisellFields };
|
|
@@ -3,7 +3,7 @@ import { PisellMetricCardProps } from "../pisellMetricCard/types.js";
|
|
|
3
3
|
import "../pisellMetricCard/index.js";
|
|
4
4
|
import { PisellStatisticListProps } from "../pisellStatisticList/index.js";
|
|
5
5
|
import { PisellStatisticProps } from "../cardMetricItem/index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react12 from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/components/PisellMetrics/index.d.ts
|
|
9
9
|
/**
|
|
@@ -22,9 +22,9 @@ import * as react0 from "react";
|
|
|
22
22
|
* <PisellMetrics.StatisticList data={[...]} />
|
|
23
23
|
*/
|
|
24
24
|
declare const PisellMetrics: {
|
|
25
|
-
MetricCard:
|
|
26
|
-
StatisticList: (props: PisellStatisticListProps) =>
|
|
27
|
-
MetricItem: (props: PisellStatisticProps) =>
|
|
25
|
+
MetricCard: react12.FC<PisellMetricCardProps>;
|
|
26
|
+
StatisticList: (props: PisellStatisticListProps) => react12.JSX.Element;
|
|
27
|
+
MetricItem: (props: PisellStatisticProps) => react12.JSX.Element;
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
30
30
|
export { PisellMetrics };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react28 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/checkbox/index.d.ts
|
|
5
|
-
declare const Checkbox: (props: any) =>
|
|
5
|
+
declare const Checkbox: (props: any) => react28.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Checkbox };
|
|
@@ -31,6 +31,7 @@ const _excluded = [
|
|
|
31
31
|
"currentValue",
|
|
32
32
|
"className",
|
|
33
33
|
"onDataSourceFinish",
|
|
34
|
+
"onDataSourceLoaded",
|
|
34
35
|
"formatSubmitValues",
|
|
35
36
|
"formatInitialValues",
|
|
36
37
|
"customSubmit",
|
|
@@ -43,7 +44,7 @@ const _excluded = [
|
|
|
43
44
|
*/
|
|
44
45
|
const BaseForm = forwardRef((props, ref) => {
|
|
45
46
|
var _context$appHelper;
|
|
46
|
-
const { title, description, dataSource, showTitle, showDescription, groupInfoPosition, variables, renderMode, children, currentValue, className, onDataSourceFinish, formatSubmitValues, formatInitialValues, customSubmit, beforeSubmit, leaveConfirmConfig } = props, others = _objectWithoutProperties(props, _excluded);
|
|
47
|
+
const { title, description, dataSource, showTitle, showDescription, groupInfoPosition, variables, renderMode, children, currentValue, className, onDataSourceFinish, onDataSourceLoaded, formatSubmitValues, formatInitialValues, customSubmit, beforeSubmit, leaveConfirmConfig } = props, others = _objectWithoutProperties(props, _excluded);
|
|
47
48
|
const context = useEngineContext_default();
|
|
48
49
|
const { setBeforeClose } = useCtxActions_default();
|
|
49
50
|
const { getApp } = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils;
|
|
@@ -78,6 +79,7 @@ const BaseForm = forwardRef((props, ref) => {
|
|
|
78
79
|
return acc;
|
|
79
80
|
}, {});
|
|
80
81
|
(_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 || _formRef$current2.setFields(transformFormObjToArrayWithUntouched(_objectSpread2({}, filteredValues)));
|
|
82
|
+
onDataSourceLoaded === null || onDataSourceLoaded === void 0 || onDataSourceLoaded(filteredValues, res);
|
|
81
83
|
}).catch((error) => {
|
|
82
84
|
console.error("获取formSettingMeta数据失败:", error);
|
|
83
85
|
});
|
|
@@ -96,6 +98,7 @@ const BaseForm = forwardRef((props, ref) => {
|
|
|
96
98
|
}, {});
|
|
97
99
|
}
|
|
98
100
|
(_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 || _formRef$current3.setFields(transformFormObjToArrayWithUntouched(values));
|
|
101
|
+
onDataSourceLoaded === null || onDataSourceLoaded === void 0 || onDataSourceLoaded(values, res);
|
|
99
102
|
});
|
|
100
103
|
}
|
|
101
104
|
}, [renderMode, dataSource]);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as antd23 from "antd";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dataSourceComponents/fields/Input.Email/index.d.ts
|
|
6
|
-
declare const Email: React.FC<
|
|
6
|
+
declare const Email: React.FC<antd23.InputProps & {
|
|
7
7
|
onChange: (value: string) => void;
|
|
8
8
|
} & WithModeProps & WithFormItemProps>;
|
|
9
9
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as antd21 from "antd";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dataSourceComponents/fields/Input.Url/index.d.ts
|
|
6
|
-
declare const Url: React.FC<
|
|
6
|
+
declare const Url: React.FC<antd21.InputProps & React.RefAttributes<antd21.InputRef> & WithModeProps & WithFormItemProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { Url };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react29 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/date-picker/index.d.ts
|
|
5
|
-
declare const DatePicker: (props: any) =>
|
|
5
|
+
declare const DatePicker: (props: any) => react29.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { DatePicker };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react30 from "react";
|
|
3
3
|
import { InputProps, InputRef } from "antd";
|
|
4
4
|
import * as antd_es_input0 from "antd/es/input";
|
|
5
5
|
import * as antd_es_input_TextArea0 from "antd/es/input/TextArea";
|
|
6
6
|
|
|
7
7
|
//#region src/components/input/index.d.ts
|
|
8
|
-
declare const OriginalGroup:
|
|
8
|
+
declare const OriginalGroup: react30.FC<antd_es_input0.GroupProps>, OriginalTextArea: react30.ForwardRefExoticComponent<antd_es_input0.TextAreaProps & react30.RefAttributes<antd_es_input_TextArea0.TextAreaRef>>, OriginalPassword: react30.ForwardRefExoticComponent<antd_es_input0.PasswordProps & react30.RefAttributes<InputRef>>, OriginalSearch: react30.ForwardRefExoticComponent<antd_es_input0.SearchProps & react30.RefAttributes<InputRef>>;
|
|
9
9
|
type CompoundedComponent = React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> & {
|
|
10
10
|
Group: typeof OriginalGroup;
|
|
11
11
|
Search: typeof OriginalSearch;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react38 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/radio/index.d.ts
|
|
5
|
-
declare const Radio: (props: any) =>
|
|
5
|
+
declare const Radio: (props: any) => react38.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Radio };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react45 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/skeleton/index.d.ts
|
|
5
|
-
declare const Skeleton: (props: any) =>
|
|
5
|
+
declare const Skeleton: (props: any) => react45.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Skeleton };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react37 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/time-picker/index.d.ts
|
|
5
|
-
declare const TimePicker: (props: any) =>
|
|
5
|
+
declare const TimePicker: (props: any) => react37.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { TimePicker };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react39 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/upload/index.d.ts
|
|
5
|
-
declare const Upload: (props: any) =>
|
|
5
|
+
declare const Upload: (props: any) => react39.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Upload };
|
|
@@ -21,7 +21,7 @@ import { PisellSingleSelectProps, SingleSelectRef } from "../pisellSingleSelect/
|
|
|
21
21
|
import "../pisellSingleSelect/index.js";
|
|
22
22
|
import { MultipleSelectRef, PisellMultipleSelectProps } from "../pisellMultipleSelect/types.js";
|
|
23
23
|
import "../pisellMultipleSelect/index.js";
|
|
24
|
-
import * as
|
|
24
|
+
import * as react11 from "react";
|
|
25
25
|
|
|
26
26
|
//#region src/components/PisellFields/index.d.ts
|
|
27
27
|
/**
|
|
@@ -36,17 +36,17 @@ import * as react15 from "react";
|
|
|
36
36
|
* <PisellFields.Currency value={1000} currencySymbol="$" />
|
|
37
37
|
*/
|
|
38
38
|
declare const PisellFields: {
|
|
39
|
-
SingleLineText:
|
|
40
|
-
LongText:
|
|
41
|
-
Number:
|
|
42
|
-
Currency:
|
|
43
|
-
Percent:
|
|
44
|
-
Phone:
|
|
45
|
-
Email:
|
|
46
|
-
Url:
|
|
47
|
-
Rating:
|
|
48
|
-
SingleSelect:
|
|
49
|
-
MultipleSelect:
|
|
39
|
+
SingleLineText: react11.NamedExoticComponent<PisellSingleLineTextProps>;
|
|
40
|
+
LongText: react11.NamedExoticComponent<PisellLongTextProps>;
|
|
41
|
+
Number: react11.NamedExoticComponent<PisellNumberProps>;
|
|
42
|
+
Currency: react11.NamedExoticComponent<PisellCurrencyProps>;
|
|
43
|
+
Percent: react11.NamedExoticComponent<PisellPercentProps>;
|
|
44
|
+
Phone: react11.NamedExoticComponent<PisellPhoneProps>;
|
|
45
|
+
Email: react11.NamedExoticComponent<PisellEmailProps>;
|
|
46
|
+
Url: react11.NamedExoticComponent<PisellUrlProps>;
|
|
47
|
+
Rating: react11.NamedExoticComponent<PisellRatingProps>;
|
|
48
|
+
SingleSelect: react11.ForwardRefExoticComponent<PisellSingleSelectProps<string | number> & react11.RefAttributes<SingleSelectRef<string | number>>>;
|
|
49
|
+
MultipleSelect: react11.ForwardRefExoticComponent<PisellMultipleSelectProps<string | number> & react11.RefAttributes<MultipleSelectRef<string | number>>>;
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
52
52
|
export { PisellFields };
|
|
@@ -3,7 +3,7 @@ import { PisellMetricCardProps } from "../pisellMetricCard/types.js";
|
|
|
3
3
|
import "../pisellMetricCard/index.js";
|
|
4
4
|
import { PisellStatisticListProps } from "../pisellStatisticList/index.js";
|
|
5
5
|
import { PisellStatisticProps } from "../cardMetricItem/index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react24 from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/components/PisellMetrics/index.d.ts
|
|
9
9
|
/**
|
|
@@ -22,9 +22,9 @@ import * as react11 from "react";
|
|
|
22
22
|
* <PisellMetrics.StatisticList data={[...]} />
|
|
23
23
|
*/
|
|
24
24
|
declare const PisellMetrics: {
|
|
25
|
-
MetricCard:
|
|
26
|
-
StatisticList: (props: PisellStatisticListProps) =>
|
|
27
|
-
MetricItem: (props: PisellStatisticProps) =>
|
|
25
|
+
MetricCard: react24.FC<PisellMetricCardProps>;
|
|
26
|
+
StatisticList: (props: PisellStatisticListProps) => react24.JSX.Element;
|
|
27
|
+
MetricItem: (props: PisellStatisticProps) => react24.JSX.Element;
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
30
30
|
export { PisellMetrics };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react27 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/calendar/index.d.ts
|
|
5
|
-
declare const Calendar: (props: any) =>
|
|
5
|
+
declare const Calendar: (props: any) => react27.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Calendar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react28 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/checkbox/index.d.ts
|
|
5
|
-
declare const Checkbox: (props: any) =>
|
|
5
|
+
declare const Checkbox: (props: any) => react28.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Checkbox };
|
|
@@ -34,6 +34,7 @@ const _excluded = [
|
|
|
34
34
|
"currentValue",
|
|
35
35
|
"className",
|
|
36
36
|
"onDataSourceFinish",
|
|
37
|
+
"onDataSourceLoaded",
|
|
37
38
|
"formatSubmitValues",
|
|
38
39
|
"formatInitialValues",
|
|
39
40
|
"customSubmit",
|
|
@@ -46,7 +47,7 @@ const _excluded = [
|
|
|
46
47
|
*/
|
|
47
48
|
const BaseForm = (0, react.forwardRef)((props, ref) => {
|
|
48
49
|
var _context$appHelper;
|
|
49
|
-
const { title, description, dataSource, showTitle, showDescription, groupInfoPosition, variables, renderMode, children, currentValue, className, onDataSourceFinish, formatSubmitValues, formatInitialValues, customSubmit, beforeSubmit, leaveConfirmConfig } = props, others = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
|
|
50
|
+
const { title, description, dataSource, showTitle, showDescription, groupInfoPosition, variables, renderMode, children, currentValue, className, onDataSourceFinish, onDataSourceLoaded, formatSubmitValues, formatInitialValues, customSubmit, beforeSubmit, leaveConfirmConfig } = props, others = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
|
|
50
51
|
const context = require_useEngineContext.default();
|
|
51
52
|
const { setBeforeClose } = require_useCtxActions.default();
|
|
52
53
|
const { getApp } = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils;
|
|
@@ -81,6 +82,7 @@ const BaseForm = (0, react.forwardRef)((props, ref) => {
|
|
|
81
82
|
return acc;
|
|
82
83
|
}, {});
|
|
83
84
|
(_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 || _formRef$current2.setFields(require_utils.transformFormObjToArrayWithUntouched(require_objectSpread2._objectSpread2({}, filteredValues)));
|
|
85
|
+
onDataSourceLoaded === null || onDataSourceLoaded === void 0 || onDataSourceLoaded(filteredValues, res);
|
|
84
86
|
}).catch((error) => {
|
|
85
87
|
console.error("获取formSettingMeta数据失败:", error);
|
|
86
88
|
});
|
|
@@ -99,6 +101,7 @@ const BaseForm = (0, react.forwardRef)((props, ref) => {
|
|
|
99
101
|
}, {});
|
|
100
102
|
}
|
|
101
103
|
(_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 || _formRef$current3.setFields(require_utils.transformFormObjToArrayWithUntouched(values));
|
|
104
|
+
onDataSourceLoaded === null || onDataSourceLoaded === void 0 || onDataSourceLoaded(values, res);
|
|
102
105
|
});
|
|
103
106
|
}
|
|
104
107
|
}, [renderMode, dataSource]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CheckboxGroupProps } from "./type.js";
|
|
3
3
|
import { WithModeProps } from "../../dataSourceForm/utils.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react53 from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts
|
|
7
7
|
type CheckboxComponent = React.FC & {
|
|
8
8
|
Group: typeof CheckboxGroupWithMode;
|
|
9
9
|
};
|
|
10
10
|
declare const CheckboxWithMode: CheckboxComponent;
|
|
11
|
-
declare const CheckboxGroupWithMode:
|
|
11
|
+
declare const CheckboxGroupWithMode: react53.FC<CheckboxGroupProps & WithModeProps>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { CheckboxWithMode };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as antd23 from "antd";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dataSourceComponents/fields/Input.Email/index.d.ts
|
|
6
|
-
declare const Email: React.FC<
|
|
6
|
+
declare const Email: React.FC<antd23.InputProps & {
|
|
7
7
|
onChange: (value: string) => void;
|
|
8
8
|
} & WithModeProps & WithFormItemProps>;
|
|
9
9
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as antd21 from "antd";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dataSourceComponents/fields/Input.Url/index.d.ts
|
|
6
|
-
declare const Url: React.FC<
|
|
6
|
+
declare const Url: React.FC<antd21.InputProps & React.RefAttributes<antd21.InputRef> & WithModeProps & WithFormItemProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { Url };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WithModeProps } from "../../dataSourceForm/utils.js";
|
|
3
3
|
import { RadioGroupProps } from "./type.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react52 from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/dataSourceComponents/fields/Radio/WithMode.d.ts
|
|
7
7
|
type RadioComponent = React.FC & {
|
|
8
8
|
Group: typeof RadioGroupWithMode;
|
|
9
9
|
};
|
|
10
10
|
declare const RadioWithMode: RadioComponent;
|
|
11
|
-
declare const RadioGroupWithMode:
|
|
11
|
+
declare const RadioGroupWithMode: react52.FC<RadioGroupProps & WithModeProps>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { RadioWithMode };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react29 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/date-picker/index.d.ts
|
|
5
|
-
declare const DatePicker: (props: any) =>
|
|
5
|
+
declare const DatePicker: (props: any) => react29.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { DatePicker };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react30 from "react";
|
|
3
3
|
import { InputProps, InputRef } from "antd";
|
|
4
4
|
import * as antd_es_input0 from "antd/es/input";
|
|
5
5
|
import * as antd_es_input_TextArea0 from "antd/es/input/TextArea";
|
|
6
6
|
|
|
7
7
|
//#region src/components/input/index.d.ts
|
|
8
|
-
declare const OriginalGroup:
|
|
8
|
+
declare const OriginalGroup: react30.FC<antd_es_input0.GroupProps>, OriginalTextArea: react30.ForwardRefExoticComponent<antd_es_input0.TextAreaProps & react30.RefAttributes<antd_es_input_TextArea0.TextAreaRef>>, OriginalPassword: react30.ForwardRefExoticComponent<antd_es_input0.PasswordProps & react30.RefAttributes<InputRef>>, OriginalSearch: react30.ForwardRefExoticComponent<antd_es_input0.SearchProps & react30.RefAttributes<InputRef>>;
|
|
9
9
|
type CompoundedComponent = React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> & {
|
|
10
10
|
Group: typeof OriginalGroup;
|
|
11
11
|
Search: typeof OriginalSearch;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react38 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/skeleton/index.d.ts
|
|
5
|
-
declare const Skeleton: (props: any) =>
|
|
5
|
+
declare const Skeleton: (props: any) => react38.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Skeleton };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react39 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/time-picker/index.d.ts
|
|
5
|
-
declare const TimePicker: (props: any) =>
|
|
5
|
+
declare const TimePicker: (props: any) => react39.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { TimePicker };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react40 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/upload/index.d.ts
|
|
5
|
-
declare const Upload: (props: any) =>
|
|
5
|
+
declare const Upload: (props: any) => react40.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Upload };
|
|
@@ -1056,6 +1056,11 @@ const dataSourceForm: MetaType = {
|
|
|
1056
1056
|
template:
|
|
1057
1057
|
"onDataSourceFinish(values,result,${extParams}){\n// 数据源提交成功\nconsole.log('onDataSourceFinish',values,result);}",
|
|
1058
1058
|
},
|
|
1059
|
+
{
|
|
1060
|
+
name: 'onDataSourceLoaded',
|
|
1061
|
+
template:
|
|
1062
|
+
"onDataSourceLoaded(values,rawResult,${extParams}){\n// 数据源加载完成\nconsole.log('onDataSourceLoaded',values,rawResult);}",
|
|
1063
|
+
}
|
|
1059
1064
|
],
|
|
1060
1065
|
},
|
|
1061
1066
|
advanced: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1072",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"swiper": "^8.4.7",
|
|
91
91
|
"antd-mobile": "^5.38.1",
|
|
92
92
|
"vod-js-sdk-v6": "^1.4.11",
|
|
93
|
-
"@pisell/
|
|
93
|
+
"@pisell/date-picker": "1.0.143",
|
|
94
94
|
"@pisell/icon": "0.0.10",
|
|
95
|
-
"@pisell/
|
|
95
|
+
"@pisell/utils": "1.0.70"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"react": "^18.0.0",
|