12345678910111213141516171819202122232425262728293031323334353637383940 |
- Component({
-
- properties: {
- iconUrl: {
- type: String,
- value: "http://cloud.file.futurestack.cn/MldI5PBNt7/20210922/6dcc8u044135.png",
- },
- placeholder: {
- type: String,
- value: "请输入关键词",
- },
- btnBgColor: {
- type: String,
- value: "#0abf58",
- },
- btnText: {
- type: String,
- value: "搜索",
- }
- },
-
- data: {
- title:''
- },
-
- methods: {
- toSearch() {
- this.triggerEvent("search", this.data.title);
- }
- }
- })
|