@hw-component/form 1.10.92 → 1.10.93
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/index.css +3 -0
- package/lib/index.css +3 -0
- package/package.json +1 -1
- package/src/components/Input/index.less +3 -0
- package/src/pages/Form/index.tsx +11 -0
package/es/index.css
CHANGED
|
@@ -279,6 +279,9 @@
|
|
|
279
279
|
border-color: #ff4d4f !important;
|
|
280
280
|
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
|
|
281
281
|
}
|
|
282
|
+
.ant-form-item-has-error .ant-hw-input-group-addon-middle {
|
|
283
|
+
color: #ff4d4f;
|
|
284
|
+
}
|
|
282
285
|
.ant-hw-input-group-number-body {
|
|
283
286
|
background-color: #fff;
|
|
284
287
|
}
|
package/lib/index.css
CHANGED
|
@@ -279,6 +279,9 @@
|
|
|
279
279
|
border-color: #ff4d4f !important;
|
|
280
280
|
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
|
|
281
281
|
}
|
|
282
|
+
.ant-form-item-has-error .ant-hw-input-group-addon-middle {
|
|
283
|
+
color: #ff4d4f;
|
|
284
|
+
}
|
|
282
285
|
.ant-hw-input-group-number-body {
|
|
283
286
|
background-color: #fff;
|
|
284
287
|
}
|
package/package.json
CHANGED
package/src/pages/Form/index.tsx
CHANGED
|
@@ -232,6 +232,17 @@ export default () => {
|
|
|
232
232
|
return <TestItem1 />;
|
|
233
233
|
},
|
|
234
234
|
},
|
|
235
|
+
{
|
|
236
|
+
label:"数字组",
|
|
237
|
+
type: "inputNumberGroup",
|
|
238
|
+
name:"hhhhh",
|
|
239
|
+
rules:[{required:true,message:"请输入"},{validator:(rule, value, callback)=>{
|
|
240
|
+
return Promise.reject(new Error("错误"))
|
|
241
|
+
}}],
|
|
242
|
+
itemProps:{
|
|
243
|
+
addonMiddle:"发撒冯绍峰撒"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
235
246
|
]}
|
|
236
247
|
dismissOnPressEnter={false}
|
|
237
248
|
form={form}
|