From 18aff53b82cf5c3929e14648c2e45db989634c1d Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Tue, 25 Apr 2023 13:50:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/XyDialog/index.vue | 56 ++++++++++++++++++- .../activity/component/showActiveOrder.vue | 22 +++++++- 2 files changed, 74 insertions(+), 4 deletions(-) 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 ( +
+ {this.title} + + +
+ ) + }, 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 (
- +
+
+ {{name+'订单列表'}} + +
+
+