mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 20:49:14 +08:00
fix typos in messages (#21594)
This commit is contained in:
parent
4584a62d54
commit
b617b41dcb
@ -81,14 +81,14 @@ const PriceInput: React.FC<PriceInputProps> = ({ value = {}, onChange }) => {
|
|||||||
|
|
||||||
const Demo = () => {
|
const Demo = () => {
|
||||||
const onFinish = values => {
|
const onFinish = values => {
|
||||||
console.log('Received values of form: ', values);
|
console.log('Received values from form: ', values);
|
||||||
};
|
};
|
||||||
|
|
||||||
const checkPrice = (rule, value) => {
|
const checkPrice = (rule, value) => {
|
||||||
if (value.number > 0) {
|
if (value.number > 0) {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
return Promise.reject('Price must greater than zero!');
|
return Promise.reject('Price must be greater than zero!');
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user