Vue.component("retail-drawer", { template: `

{{title}}

`, props: { 'title': { type: String, default: '详情' }, 'show': { type: Boolean, }, 'showModel': { type: Boolean, default: true, },//是否显示遮罩层 'showClose': { type: Boolean, default: true, },//是否显示关闭按钮 'width': { type: String, default: '40%', }, 'height': { type: String, default: 'calc(100vh - 65px)', }, 'minWidth': { type: String, default: '400px', }, 'minHeight': { type: String, default: '300px', }, "zIndex": { type: Number, default: 10000000000, }, 'closeType':{ type: String, default: 'right', } }, computed: { modelStyle() { return { 'width': this.width, 'height': this.height, 'min-width': this.minWidth, 'min-height': this.minHeight, } }, modelZIndex() { return { 'z-index': this.zIndex } } }, methods: { //关闭 closeDrawer() { this.$emit('update:show', false); this.$emit('close'); }, } });