const app = getApp(); Component({ properties: { treeList: { type: Array, value: [], }, bookInfo: { type: Object, value: {}, }, tab: { type: String, value: "", }, openIds: { type: Array, value: [], }, }, data: {}, ready() {}, onLoad() { console.log(this.properties.openIds, "1111") }, methods: { // 节点展开 handleChange(e) { console.log(e, 123) this.setData({ openIds: e.detail.value, }); }, goTest(e) { const value = e.currentTarget.dataset; var myEventDetail = { value, }; this.triggerEvent("goTest", myEventDetail); }, }, });