修改样式

This commit is contained in:
2025-03-03 16:54:40 +08:00
parent 5fbd34d9f8
commit d58436ef5f
15 changed files with 200 additions and 176 deletions

View File

@@ -7,14 +7,23 @@ Component({
properties: {
label: String,
placeholder: String,
text: String
text: String,
fieldType: {
type: String,
value: "text"
},
type: {
type: String,
value: "select"
}
},
/**
* 组件的初始数据
*/
data: {
keyword: "",
text: "",
},
/**
@@ -23,6 +32,17 @@ Component({
methods: {
onSearch() {
this.triggerEvent("search")
},
onChangeKeyword(e) {
this.setData({ keyword: e.detail });
},
onChangeText(e) {
this.setData({ text: e.detail });
this.triggerEvent("changeText", e.detail)
},
onSearchKeyword() {
this.triggerEvent("searchKeyword", this.data.keyword)
this.setData({ keyword: "" })
}
}
})