export const link = {
    props: {
        url: String,
        linkType: {
            type: String,
            value: 'navigateTo'
        }
    },
    methods: {
        jumpLink(urlKey = 'url') {
            const url = this[urlKey];
            if (url) {
                uni[this.linkType]({
                    url
                });
            }
        }
    }
};
