// components/input-cell/index.js Component({ /** * 组件的属性列表 */ properties: { item: { type: Object, value: {}, }, }, /** * 组件的初始数据 */ data: {}, /** * 组件的方法列表 */ methods: { handleChange(e) { let value = e.detail.value; let data = this.data.item; data.value = value; data.status = 'success'; this.setData({ item: data, }); this.triggerEvent('passValue', { params: data }); }, }, });