diff --git a/src/components/XyDialog/index.vue b/src/components/XyDialog/index.vue index 9fbfc54..d8fa998 100644 --- a/src/components/XyDialog/index.vue +++ b/src/components/XyDialog/index.vue @@ -10,6 +10,10 @@ export default { type:Number, default:55 }, + // isFullScreen:{ + // type:Boolean, + // default:false + // }, isShow:{ type:Boolean, default:false @@ -36,10 +40,19 @@ export default { }, data() { return { - + isFullScreen:false } }, methods: { + headerRender(){ + return ( +
+ ) + }, footerRender(){ if(this.type === 'form'){ return ( @@ -58,6 +71,9 @@ export default { ) } }, + closeshowChange(){ + this.$emit('update:isShow',false) + }, showChange(e){ this.$emit('update:isShow',e) }, @@ -67,6 +83,11 @@ export default { } this.$refs['elForm'].resetFields() }, + fullScreen(){ + this.isFullScreen = !this.isFullScreen + // this.width = 100 + // this.height = '100vh' + }, submit(){ if(this.type === 'normal'){ return @@ -95,16 +116,22 @@ export default { footer slot: footerContent */ - const {okText,okClick,footerRender,width,type,$scopedSlots,rules,form,showChange,isShow,title} = this + const {okText,okClick,headerRender,footerRender,width,isFullScreen,type,$scopedSlots,rules,form,showChange,isShow,title} = this return (