@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.10.92",
3
+ "version": "1.10.93",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -64,6 +64,9 @@
64
64
  border-color: #ff4d4f !important;
65
65
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
66
66
  }
67
+ .@{all-input-group}-addon-middle {
68
+ color: #ff4d4f;
69
+ }
67
70
  }
68
71
  .@{all-input-group}-number-body {
69
72
  background-color: #fff;
@@ -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}