@hw-component/form 1.9.60 → 1.9.62
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/.eslintcache +1 -1
- package/es/Form/config.d.ts +1 -1
- package/es/Form/modal.d.ts +1 -1
- package/es/Input/InputNumberGroup.js +72 -104
- package/es/InputGroup/index.d.ts +10 -0
- package/es/InputGroup/index.js +67 -0
- package/es/Text/index.d.ts +1 -1
- package/es/TextArea/index.d.ts +1 -1
- package/es/hooks/index.js +1 -1
- package/es/index.css +23 -25
- package/es/index.d.ts +2 -1
- package/es/index.js +1 -0
- package/lib/Form/config.d.ts +1 -1
- package/lib/Form/modal.d.ts +1 -1
- package/lib/Input/InputNumberGroup.js +76 -108
- package/lib/InputGroup/index.d.ts +10 -0
- package/lib/InputGroup/index.js +70 -0
- package/lib/Text/index.d.ts +1 -1
- package/lib/TextArea/index.d.ts +1 -1
- package/lib/index.css +23 -25
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -4
- package/package.json +1 -1
- package/src/components/DialogForm/DrawerForm/index.tsx +6 -6
- package/src/components/DialogForm/hooks.tsx +3 -3
- package/src/components/Form/hooks/useHForm.ts +2 -2
- package/src/components/Form/modal.ts +2 -2
- package/src/components/Input/InputNumberGroup.tsx +57 -73
- package/src/components/Input/index.less +4 -17
- package/src/components/InputGroup/index.less +26 -0
- package/src/components/InputGroup/index.tsx +53 -0
- package/src/components/Text/index.tsx +9 -7
- package/src/components/TextArea/index.less +6 -6
- package/src/components/TextArea/index.tsx +14 -8
- package/src/components/index.tsx +1 -0
- package/src/components/styles/index.less +1 -14
- package/src/pages/DrawerForm/index.tsx +9 -3
- package/src/pages/Form/index.tsx +10 -126
- package/src/pages/Input/index.tsx +2 -2
- package/src/pages/InputNumberGroup/index.tsx +7 -1
- package/src/pages/ModalForm/index.tsx +22 -11
|
@@ -117,9 +117,9 @@ const data = [
|
|
|
117
117
|
label: "文字",
|
|
118
118
|
type: "text",
|
|
119
119
|
name: "text",
|
|
120
|
-
itemProps:{
|
|
121
|
-
|
|
122
|
-
}
|
|
120
|
+
itemProps: {
|
|
121
|
+
addonBefore: "元",
|
|
122
|
+
},
|
|
123
123
|
},
|
|
124
124
|
// {
|
|
125
125
|
// label: "下拉框",
|
|
@@ -200,22 +200,33 @@ export default () => {
|
|
|
200
200
|
<HModalForm
|
|
201
201
|
configData={data}
|
|
202
202
|
formItemStyle={{
|
|
203
|
-
|
|
203
|
+
marginBottom: 100,
|
|
204
204
|
}}
|
|
205
|
-
onOk={()=>{
|
|
206
|
-
|
|
205
|
+
onOk={() => {
|
|
206
|
+
return false;
|
|
207
207
|
}}
|
|
208
208
|
infoRequest={() => {
|
|
209
|
-
return Promise.resolve(
|
|
210
|
-
|
|
211
|
-
})
|
|
209
|
+
return Promise.resolve({
|
|
210
|
+
text: "你好",
|
|
211
|
+
});
|
|
212
212
|
}}
|
|
213
213
|
labelAlign={"left"}
|
|
214
214
|
request={(values, params) => {
|
|
215
|
-
|
|
215
|
+
return Promise.resolve();
|
|
216
216
|
}}
|
|
217
217
|
dialogForm={modalForm}
|
|
218
|
-
title={
|
|
218
|
+
title={
|
|
219
|
+
<div>
|
|
220
|
+
fff
|
|
221
|
+
<div
|
|
222
|
+
onClick={() => {
|
|
223
|
+
modalForm.hide();
|
|
224
|
+
}}
|
|
225
|
+
>
|
|
226
|
+
关闭
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
}
|
|
219
230
|
/>
|
|
220
231
|
</HFormConfigProvider>
|
|
221
232
|
</>
|