kts-component-invoice-operate 3.2.181 → 3.2.182

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/dist/index.esm.js CHANGED
@@ -24309,6 +24309,11 @@ var Architecture = decorator(Form.create())(function (props) {
24309
24309
  rules: readOnly ? [] : [{
24310
24310
  max: 200,
24311
24311
  message: '详细地址最多200个字符'
24312
+ }, {
24313
+ validator: function validator(_, value) {
24314
+ var pattern = /街|路|村|乡|镇|道|巷|号/;
24315
+ return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
24316
+ }
24312
24317
  }]
24313
24318
  })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$4, null) : /*#__PURE__*/React.createElement(Input$2, {
24314
24319
  autoComplete: 'off',
package/dist/index.js CHANGED
@@ -24319,6 +24319,11 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
24319
24319
  rules: readOnly ? [] : [{
24320
24320
  max: 200,
24321
24321
  message: '详细地址最多200个字符'
24322
+ }, {
24323
+ validator: function validator(_, value) {
24324
+ var pattern = /街|路|村|乡|镇|道|巷|号/;
24325
+ return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
24326
+ }
24322
24327
  }]
24323
24328
  })(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$4, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
24324
24329
  autoComplete: 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.181",
3
+ "version": "3.2.182",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -93,6 +93,12 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
93
93
  {getFieldDecorator('constructDetailAddress', {
94
94
  rules: readOnly ? [] : [
95
95
  { max: 200, message: '详细地址最多200个字符' },
96
+ {
97
+ validator: (_, value) => {
98
+ const pattern = /街|路|村|乡|镇|道|巷|号/;
99
+ return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
100
+ }
101
+ }
96
102
  ]
97
103
  })(
98
104
  readOnly