Skip to content

Commit d99e241

Browse files
committed
fix
1 parent 5bd7caa commit d99e241

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.0.1
2+
* fix
13
## 1.0.0
24
* release
35
## 0.9.6

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Add this to your package's pubspec.yaml file:
77

88
```yaml
99
dependencies:
10-
tform: ^1.0.0
10+
tform: ^1.0.1
1111
```
1212
1313
## Example

lib/form/form_validation.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ List formValidationErrors(List<TFormRow> rows) {
66
if (row.validator != null) {
77
bool isSuccess = row.validator(row);
88
if (!isSuccess) {
9-
errors.add(row.requireMsg ?? "${row.title} 不能为空");
9+
errors.add(row.requireMsg ?? "${row.title.replaceAll("*", "")} 不能为空");
1010
}
1111
} else {
1212
if (row.require ?? false) {
1313
if (row.value == null || row.value.length == 0) {
14-
errors.add(row.requireMsg ?? "${row.title} 不能为空");
14+
errors.add(row.requireMsg ?? "${row.title.replaceAll("*", "")} 不能为空");
1515
}
1616
}
1717
}

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: tform
22
description: A easy, extensible and dynamic flutter form framework. Support for custom selectors, validators and widgets. Support form verification, insert, delete and so on.
3-
version: 1.0.0
3+
version: 1.0.1
44
homepage: https://github.com/yichahucha/tform
55

66
environment:

0 commit comments

Comments
 (0)