import { create } from '../common/create'; create({ classes: [ 'title-class', 'label-class', 'value-class', 'left-icon-class', 'right-icon-class' ], props: { title: null, value: null, url: String, icon: String, label: String, center: Boolean, isLink: Boolean, required: Boolean, clickable: Boolean, titleWidth: String, customStyle: String, arrowDirection: String, linkType: { type: String, value: 'navigateTo' }, border: { type: Boolean, value: true } }, methods: { onClick() { const { url } = this.data; if (url) { wx[this.data.linkType]({ url }); } this.$emit('click'); } } });