Kayson Wu
Kayson Wu
GIF can increase the difficulty of recognition.
Does mockery support mock protected properties? What should I do if I can?
[validateRules](https://github.com/react-component/field-form/blob/master/src/utils/validateUtil.ts#L126) 函数会对自定义校验函数进行包装,这导致无法全面接收由 `async-validator` 传递过来的参数,比如 `source` 和 `options` **全面接收参数的好处** 1. 验证出错时,通过响应 `options.messages.[customRule]` 消息即可消费 [messageVariables](https://ant.design/components/form-cn/#Form.Item) 2. 对于通过使用 `ConfigProvider` 做全局表单 `validateMessages` 提供了一致的地区语言方案 3. 更简洁的代码 **目前的解决方案** 通过使用 [asyncValidator](https://github.com/yiminghe/async-validator/blob/v3.0.3/src/index.js#L236) 属性来避开包装器 ```ts import type { FormInstance,...
[BelongsToMany.php#L105 传递参数错误](https://github.com/top-think/think-orm/blob/v1.2.17/src/model/relation/BelongsToMany.php#L105) ```error TypeError: Argument 1 passed to think\model\Pivot::__construct() must be an instance of think\Model or null, array given ```
```go unidecode.Unidecode("بسم الله") ``` The above characters were not correctly translated to `bsm allh`
I defined an alias type `DateTime` for `time.Time`, It mainly implements the `time.DateTime` format `string` and `time.Time` interchange ```go type DateTime time.Time func (d DateTime) MarshalJSON() ([]byte, error) { t...