使⽤⾃定义组件实现头部搜索框
1. 创建自定义组件
在⽂件夹components/SearchInput内,右键新建Component
名为SearchInput
在组件的json
⽂件中进⾏⾃定义组件声明
components/SearchInput.json
{
"component": true,
"usingComponents": {
}
}
在组件的w
使⽤⾃定义组件实现头部搜索框
1. 创建自定义组件
在⽂件夹components/SearchInput内,右键新建Component
名为SearchInput
在组件的json
⽂件中进⾏⾃定义组件声明
components/SearchInput.json
{
"component": true,
"usingComponents": {
}
}
在组件的w