Vue.component('cc-studio-component', { template: `
`, props: { target: { twoWay: true, type: Object, }, }, methods: { _isCheckbox() { let type = this.target.type.value; return type === cc.StudioComponent.ComponentType.CHECKBOX; }, _isTextAtlas() { let type = this.target.type.value; return type === cc.StudioComponent.ComponentType.TEXT_ATLAS; }, _isSliderBar() { let type = this.target.type.value; return type === cc.StudioComponent.ComponentType.SLIDER_BAR; }, _isListView() { let type = this.target.type.value; return type === cc.StudioComponent.ComponentType.LIST_VIEW; }, _isHList() { let dir = this.target.listDirection.value; return dir === cc.StudioComponent.ListDirection.HORIZONTAL; }, _isVList() { let dir = this.target.listDirection.value; return dir === cc.StudioComponent.ListDirection.VERTICAL; }, } });