@hw-component/form 1.9.55 → 1.9.56
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/es/Form/modal.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export interface HFormInstance extends FormInstance {
|
|
|
141
141
|
removeDispatchListener: (action?: ActionModal, fn?: argsFn) => void;
|
|
142
142
|
reload: PromiseFnResult;
|
|
143
143
|
clear: VoidFunction;
|
|
144
|
-
resetFieldsInitValue:
|
|
144
|
+
resetFieldsInitValue: (values?: Record<string, any>) => void;
|
|
145
145
|
clearFormat: (name: string) => void;
|
|
146
146
|
}
|
|
147
147
|
export interface ConnectConfigModal {
|
package/lib/Form/modal.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export interface HFormInstance extends FormInstance {
|
|
|
141
141
|
removeDispatchListener: (action?: ActionModal, fn?: argsFn) => void;
|
|
142
142
|
reload: PromiseFnResult;
|
|
143
143
|
clear: VoidFunction;
|
|
144
|
-
resetFieldsInitValue:
|
|
144
|
+
resetFieldsInitValue: (values?: Record<string, any>) => void;
|
|
145
145
|
clearFormat: (name: string) => void;
|
|
146
146
|
}
|
|
147
147
|
export interface ConnectConfigModal {
|
package/package.json
CHANGED
|
@@ -199,7 +199,7 @@ export interface HFormInstance extends FormInstance {
|
|
|
199
199
|
removeDispatchListener: (action?: ActionModal, fn?: argsFn) => void;
|
|
200
200
|
reload: PromiseFnResult;
|
|
201
201
|
clear: VoidFunction;
|
|
202
|
-
resetFieldsInitValue:
|
|
202
|
+
resetFieldsInitValue:( values?: Record<string, any>)=>void;
|
|
203
203
|
clearFormat: (name: string) => void;
|
|
204
204
|
}
|
|
205
205
|
|
package/src/pages/Form/index.tsx
CHANGED
|
@@ -117,6 +117,9 @@ const data = [
|
|
|
117
117
|
label: "文字",
|
|
118
118
|
type: "text",
|
|
119
119
|
name: "text",
|
|
120
|
+
itemProps:{
|
|
121
|
+
addonBefore:"元"
|
|
122
|
+
}
|
|
120
123
|
},
|
|
121
124
|
// {
|
|
122
125
|
// label: "下拉框",
|
|
@@ -196,6 +199,9 @@ export default () => {
|
|
|
196
199
|
>
|
|
197
200
|
<HModalForm
|
|
198
201
|
configData={data}
|
|
202
|
+
formItemStyle={{
|
|
203
|
+
marginBottom:100
|
|
204
|
+
}}
|
|
199
205
|
onOk={()=>{
|
|
200
206
|
return false;
|
|
201
207
|
}}
|