Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vue] prop验证的type类型有哪几种? #429

Open
haizhilin2013 opened this issue Jun 22, 2019 · 4 comments
Open

[vue] prop验证的type类型有哪几种? #429

haizhilin2013 opened this issue Jun 22, 2019 · 4 comments
Labels
vue vue

Comments

@haizhilin2013
Copy link
Collaborator

[vue] prop验证的type类型有哪几种?

@haizhilin2013 haizhilin2013 added the vue vue label Jun 22, 2019
@wenyejie
Copy link

js中的数据类型

@maozhuo123
Copy link

Number, String, Boolean, Array, Function, Object

@Ricemonster
Copy link

Ricemonster commented Jul 26, 2019

七种:

props:{
	title:String,
	likes: Number,
	isPublished: Boolean,
	commentIds: Array,
	author: Object,
	callback: Function,
	contactsPromise: Promise
}

@space-tu
Copy link

space-tu commented Apr 7, 2021

官方文档:类型检查

8种:String、Number、Boolean、Array、Object、Date、Function、Symbol、自定义构造函数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vue vue
Projects
None yet
Development

No branches or pull requests

5 participants