let TextTag = `
`; Vue.component('my-texttag', { template: TextTag, props: { options: { type: Array, default: null, }, // 指定列 column: { type: [String], default: null, }, // 指定文本 label: { type: [String], default: null, }, // 当前的值 value: [Number, String, Array], // 文本显示 text: { type: [Boolean], default: false, } }, computed: { values: function(){ if (this.value !== null && typeof this.value !== "undefined") { return Array.isArray(this.value) ? this.value : [String(this.value)]; } else { return []; } } }, data: function() { return { } }, created:function(){ _this = this; }, methods:{ } })