@donglegeyu/company-ui 1.2.0 → 1.2.2
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/dist/cjs/template-components/FormPageTemplate/index.d.ts +3 -1
- package/dist/cjs/template-components/FormPageTemplate/index.js +6 -0
- package/dist/cjs/template-components/FormPageTemplate/index.scss +1 -1
- package/dist/es/template-components/FormPageTemplate/index.d.ts +3 -1
- package/dist/es/template-components/FormPageTemplate/index.js +6 -0
- package/dist/es/template-components/FormPageTemplate/index.scss +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,8 @@ interface FormPageTemplateProps {
|
|
|
5
5
|
showBack?: boolean;
|
|
6
6
|
onBack?: () => void;
|
|
7
7
|
submitLoading?: boolean;
|
|
8
|
+
submitText?: string;
|
|
9
|
+
cancelText?: string;
|
|
8
10
|
showFooter?: boolean;
|
|
9
11
|
footerPosition?: 'fixed' | 'static';
|
|
10
12
|
onSubmit?: () => void;
|
|
@@ -12,5 +14,5 @@ interface FormPageTemplateProps {
|
|
|
12
14
|
titleActions?: ReactNode;
|
|
13
15
|
children?: ReactNode;
|
|
14
16
|
}
|
|
15
|
-
export default function FormPageTemplate({ title, showBack, onBack, submitLoading, showFooter, footerPosition, onSubmit, onCancel, titleActions, children, }: FormPageTemplateProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default function FormPageTemplate({ title, showBack, onBack, submitLoading, submitText, cancelText, showFooter, footerPosition, onSubmit, onCancel, titleActions, children, }: FormPageTemplateProps): import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
export {};
|
|
@@ -43,6 +43,8 @@ function FormPageTemplate({
|
|
|
43
43
|
showBack = false,
|
|
44
44
|
onBack,
|
|
45
45
|
submitLoading = false,
|
|
46
|
+
submitText,
|
|
47
|
+
cancelText,
|
|
46
48
|
showFooter = true,
|
|
47
49
|
footerPosition = "fixed",
|
|
48
50
|
onSubmit,
|
|
@@ -91,6 +93,8 @@ function FormPageTemplate({
|
|
|
91
93
|
import_FormFooterActions.default,
|
|
92
94
|
{
|
|
93
95
|
submitLoading,
|
|
96
|
+
submitText,
|
|
97
|
+
cancelText,
|
|
94
98
|
onSubmit,
|
|
95
99
|
onCancel
|
|
96
100
|
}
|
|
@@ -102,6 +106,8 @@ function FormPageTemplate({
|
|
|
102
106
|
import_FormFooterActions.default,
|
|
103
107
|
{
|
|
104
108
|
submitLoading,
|
|
109
|
+
submitText,
|
|
110
|
+
cancelText,
|
|
105
111
|
onSubmit,
|
|
106
112
|
onCancel
|
|
107
113
|
}
|
|
@@ -5,6 +5,8 @@ interface FormPageTemplateProps {
|
|
|
5
5
|
showBack?: boolean;
|
|
6
6
|
onBack?: () => void;
|
|
7
7
|
submitLoading?: boolean;
|
|
8
|
+
submitText?: string;
|
|
9
|
+
cancelText?: string;
|
|
8
10
|
showFooter?: boolean;
|
|
9
11
|
footerPosition?: 'fixed' | 'static';
|
|
10
12
|
onSubmit?: () => void;
|
|
@@ -12,5 +14,5 @@ interface FormPageTemplateProps {
|
|
|
12
14
|
titleActions?: ReactNode;
|
|
13
15
|
children?: ReactNode;
|
|
14
16
|
}
|
|
15
|
-
export default function FormPageTemplate({ title, showBack, onBack, submitLoading, showFooter, footerPosition, onSubmit, onCancel, titleActions, children, }: FormPageTemplateProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default function FormPageTemplate({ title, showBack, onBack, submitLoading, submitText, cancelText, showFooter, footerPosition, onSubmit, onCancel, titleActions, children, }: FormPageTemplateProps): import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
export {};
|
|
@@ -18,6 +18,8 @@ export default function FormPageTemplate(_ref) {
|
|
|
18
18
|
onBack = _ref.onBack,
|
|
19
19
|
_ref$submitLoading = _ref.submitLoading,
|
|
20
20
|
submitLoading = _ref$submitLoading === void 0 ? false : _ref$submitLoading,
|
|
21
|
+
submitText = _ref.submitText,
|
|
22
|
+
cancelText = _ref.cancelText,
|
|
21
23
|
_ref$showFooter = _ref.showFooter,
|
|
22
24
|
showFooter = _ref$showFooter === void 0 ? true : _ref$showFooter,
|
|
23
25
|
_ref$footerPosition = _ref.footerPosition,
|
|
@@ -67,6 +69,8 @@ export default function FormPageTemplate(_ref) {
|
|
|
67
69
|
className: "form-page-footer static",
|
|
68
70
|
children: /*#__PURE__*/_jsx(FormFooterActions, {
|
|
69
71
|
submitLoading: submitLoading,
|
|
72
|
+
submitText: submitText,
|
|
73
|
+
cancelText: cancelText,
|
|
70
74
|
onSubmit: onSubmit,
|
|
71
75
|
onCancel: onCancel
|
|
72
76
|
})
|
|
@@ -75,6 +79,8 @@ export default function FormPageTemplate(_ref) {
|
|
|
75
79
|
className: "form-page-footer fixed",
|
|
76
80
|
children: /*#__PURE__*/_jsx(FormFooterActions, {
|
|
77
81
|
submitLoading: submitLoading,
|
|
82
|
+
submitText: submitText,
|
|
83
|
+
cancelText: cancelText,
|
|
78
84
|
onSubmit: onSubmit,
|
|
79
85
|
onCancel: onCancel
|
|
80
86
|
})
|