mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 20:04:09 +00:00
feat: add tests && fix bugs
This commit is contained in:
@@ -50,14 +50,14 @@ export default {
|
||||
type: {
|
||||
type: String,
|
||||
default: 'text',
|
||||
validate(value) {
|
||||
validator(value) {
|
||||
return TOAST_TYPES.indexOf(value) > -1;
|
||||
}
|
||||
},
|
||||
message: {
|
||||
type: String,
|
||||
default: '',
|
||||
validate(value) {
|
||||
validator(value) {
|
||||
if (this.type === 'success' || this.type === 'fail') {
|
||||
return value.length <= 16;
|
||||
}
|
||||
|
Reference in New Issue
Block a user