| 12345678910111213141516171819202122232425262728293031323334 | Component({    properties: {        list: {            type: Array        },        showAll: { //是否显示全部(包含值为空项)            type: Boolean,            value: true        },        clickItem: {            type: Function        }    },    lifetimes: {        attached: function () {            getApp().globalData.Language.getLanguagePackage(this)        }    },    methods: {        /* 单击项目 */        clickItem(e) {            const {                item            } = e.currentTarget.dataset;            this.triggerEvent("clickItem", item)        },        /* 单击补充区域 */        clickRep(e) {            const {                item            } = e.currentTarget.dataset;        }    }})
 |