-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: set default stackblitz url * test: add form test * fix: getComputedStyle error * chore: remove useless log * test: add form test * test: add grid test * test: add layout test * test: message plugin test * test: add rate test * test: add space test * test: add steps test * feat: update common
- Loading branch information
1 parent
47f36ad
commit a7cd89f
Showing
11 changed files
with
1,202 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
// Vitest Snapshot v1 | ||
|
||
exports[`Form > @event > validate 1`] = ` | ||
{ | ||
"firstError": "姓名必填", | ||
"validateResult": { | ||
"age": [ | ||
{ | ||
"message": "age必填", | ||
"required": true, | ||
"result": false, | ||
}, | ||
], | ||
"name": [ | ||
{ | ||
"message": "姓名必填", | ||
"required": true, | ||
"result": false, | ||
}, | ||
], | ||
}, | ||
} | ||
`; | ||
|
||
exports[`Form > @event > validate 2`] = ` | ||
{ | ||
"firstError": "姓名必填", | ||
"validateResult": { | ||
"age": [ | ||
{ | ||
"message": "age必填", | ||
"required": true, | ||
"result": false, | ||
}, | ||
], | ||
"name": [ | ||
{ | ||
"message": "姓名必填", | ||
"required": true, | ||
"result": false, | ||
}, | ||
], | ||
}, | ||
} | ||
`; | ||
|
||
exports[`Form > @event > validate 3`] = ` | ||
{ | ||
"firstError": "姓名必填", | ||
"validateResult": { | ||
"age": [ | ||
{ | ||
"message": "age必填", | ||
"required": true, | ||
"result": false, | ||
}, | ||
], | ||
"name": [ | ||
{ | ||
"message": "姓名必填", | ||
"required": true, | ||
"result": false, | ||
}, | ||
], | ||
}, | ||
} | ||
`; | ||
|
||
exports[`Form > @event > validate 4`] = ` | ||
{ | ||
"firstError": "姓名必填", | ||
"validateResult": { | ||
"age": [ | ||
{ | ||
"message": "age必填", | ||
"required": true, | ||
"result": false, | ||
}, | ||
], | ||
"name": [ | ||
{ | ||
"message": "姓名必填", | ||
"required": true, | ||
"result": false, | ||
}, | ||
], | ||
}, | ||
} | ||
`; | ||
|
||
exports[`Form > function > validate 1`] = ` | ||
{ | ||
"age": [ | ||
{ | ||
"message": "age必填", | ||
"required": true, | ||
"result": false, | ||
"trigger": "blur", | ||
}, | ||
], | ||
"name": [ | ||
{ | ||
"message": "姓名必填", | ||
"required": true, | ||
"result": false, | ||
"trigger": "blur", | ||
}, | ||
], | ||
} | ||
`; | ||
|
||
exports[`Form > function > validate 2`] = ` | ||
WrapperArray { | ||
"selector": ".t-input__extra", | ||
} | ||
`; | ||
|
||
exports[`Form > function > validate 3`] = `true`; |
Oops, something went wrong.