@hw-component/form 1.10.12 → 1.10.16

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
@@ -313,6 +313,10 @@
313
313
  .ant-hw-input-group-no-addon .ant-hw-input-group-number-body {
314
314
  border-radius: 2px;
315
315
  }
316
+ .ant-form-item-has-error .ant-hw-addon {
317
+ color: #ff4d4f;
318
+ border-color: #ff4d4f;
319
+ }
316
320
  .ant-hw-rich-editor {
317
321
  box-sizing: border-box;
318
322
  width: 100%;
package/lib/index.css CHANGED
@@ -313,6 +313,10 @@
313
313
  .ant-hw-input-group-no-addon .ant-hw-input-group-number-body {
314
314
  border-radius: 2px;
315
315
  }
316
+ .ant-form-item-has-error .ant-hw-addon {
317
+ color: #ff4d4f;
318
+ border-color: #ff4d4f;
319
+ }
316
320
  .ant-hw-rich-editor {
317
321
  box-sizing: border-box;
318
322
  width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.10.12",
3
+ "version": "1.10.16",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,3 +43,9 @@
43
43
  border-radius: @border-radius-base;
44
44
  }
45
45
  }
46
+ .@{ant-prefix}-form-item-has-error{
47
+ .@{ant-prefix}-hw-addon{
48
+ color: #ff4d4f;
49
+ border-color: #ff4d4f;
50
+ }
51
+ }
@@ -101,9 +101,11 @@ export default () => {
101
101
  {
102
102
  label: "文字1",
103
103
  name: "wz1",
104
- type:"timeRangePicker",
104
+ type:"datePicker",
105
+ rules:[{required:true}],
105
106
  itemProps:{
106
- format:"HH:mm"
107
+ format:"HH:mm",
108
+ addonAfter:"测试"
107
109
  }
108
110
  },
109
111
  // {