// 显示内容
var showContentHtml = '
';
Vue.component("live-show-content", {
template: showContentHtml,
data: function () {
return {
data: this.$parent.data,
isShowAnchorInfo: this.$parent.data.isShowAnchorInfo,
isShowLiveGood: this.$parent.data.isShowLiveGood,
};
},
created: function () {
if(!this.$parent.data.verify) this.$parent.data.verify = [];
this.$parent.data.verify.push(this.verify);//加载验证方法
},
methods: {
verify :function () {
var res = { code: true, message: "" };
return res;
},
changeStatus: function(field) {
this.$parent.data[field] = this.$parent.data[field] ? 0 : 1;
}
}
});
// 显示内容
var liveSetHtml = '';
Vue.component("live-set", {
template: liveSetHtml,
data: function () {
return {};
},
created: function () {
this.$parent.data.ignore = ['marginBoth', 'textColor', 'elementAngle', 'componentAngle', 'elementBgColor', 'componentBgColor', 'pageBgColor']; //加载忽略内容 -- 其他设置中的属性设置
this.$parent.data.ignoreLoad = true; // 等待忽略数组赋值后加载
}
});