From 9ead79289cdf330766242284163efd2dfd72caff Mon Sep 17 00:00:00 2001 From: yaojn Date: Mon, 18 Dec 2023 17:28:24 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E5=8A=9F=E8=83=BD]=E3=80=90=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E7=BB=84=E4=BB=B6=E3=80=91TsContain=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=B7=A6=E5=8F=B3sider=E5=8F=AF=E4=BB=A5=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=20=20-=20[=E5=85=B3=E8=81=94]#[1049205601173?= =?UTF-8?q?504]=E3=80=90=E5=85=A8=E5=B1=80=E7=BB=84=E4=BB=B6=E3=80=91TsCon?= =?UTF-8?q?tain=E6=96=B0=E5=A2=9E=E5=B7=A6=E5=8F=B3sider=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E5=87=BA=E7=8E=B0=20http://192.168.0.96:8090?= =?UTF-8?q?/demo/rdm.html#/story-detail/939050947543040/939050947543042/10?= =?UTF-8?q?49205601173504?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/TsContain/TsContain.md | 5 +-- .../components/TsContain/TsContain.vue | 38 ++++++------------- .../pages/autoexec/detail/action-detail.vue | 4 +- .../service-catalog-manage.vue | 1 - src/views/pages/cmdb/ci/ci-detail.vue | 1 - src/views/pages/cmdb/ci/legalvalid-edit.vue | 4 +- src/views/pages/cmdb/ci/syncpolicy-edit.vue | 4 +- src/views/pages/cmdb/customview/view-data.vue | 4 +- .../pages/cmdb/sync/sync-audit-manage.vue | 1 - .../pages/framework/healthcheck/sqldump.vue | 1 - .../tacticsedit/setting/template-help.vue | 1 - .../pages/pbc/policy/policy-audit-manage.vue | 1 - .../process/catalog/catalog-overview.vue | 1 - .../process/task/processdetail/detailmixin.js | 1 - .../task/processdetail/process-autoexec.vue | 4 +- .../task/processdetail/process-automatic.vue | 4 +- .../processdetail/process-changecreate.vue | 4 +- .../processdetail/process-changehandle.vue | 4 +- .../task/processdetail/process-cmdbsync.vue | 4 +- .../task/processdetail/process-event.vue | 4 +- .../task/processdetail/process-omnipotent.vue | 4 +- .../task/processdetail/process-timer.vue | 4 +- 22 files changed, 35 insertions(+), 64 deletions(-) diff --git a/src/resources/components/TsContain/TsContain.md b/src/resources/components/TsContain/TsContain.md index 8002b3e4..b8c2e686 100644 --- a/src/resources/components/TsContain/TsContain.md +++ b/src/resources/components/TsContain/TsContain.md @@ -55,7 +55,6 @@ siderWidth|Number|200|否|sider的宽度|如果可以拖动,则拖动的范围 siderPosition|String|left|否|sider在布局的位置,主要是针对可拖动块是的插槽|left right isDrag|Boolean|false|否|sider是否可以拖动|拖动产生的宽度会存在localStorage 下次进来时通过存储的值来渲染 rightWidth|Number|200|否|如果是左中右布局的右侧宽度|需配合slot使用;在isDrag为true的前提下,如果siderWidth 和 rightWidth 同时存在,则优先使用siderWidth -leftWidth|Number|200|否|如果是左中右布局的左侧宽度|需配合slot使用;在isDrag为true的前提下,如果siderWidth 和 leftWidth 同时存在,则优先使用siderWidth mode|String|window|否|显示模式|如果是window模式,会使用100vh来计算高度,如果是弹窗中使用,则需要使用dialog模式,则高度变成100%,避免弹窗下有大量留白 >> slot卡槽说明 @@ -67,8 +66,7 @@ topLeft|头部固定格式,左侧布局内容| - topCenter|头部固定模式,中间布局内容| 尽量少用 topRight|头部固定模式,右侧布局内容| 主要是用来统一右侧搜索的宽度 content|下部正文内容| - -sider|侧边栏|尽量不用,sider 和 left是互斥的,可以的话尽量使用left ;是否隐藏同样使用 isSiderHide 来控制; -left|左边侧边栏| - +sider|左边侧边栏|; right|右边侧边栏| - @@ -86,6 +84,5 @@ config:{ siderPosition: 'left' , // left, right isDrag: false, //slider是否可以拖动 rightWidth:280,//左边侧边栏宽度 - leftWidth:230//右边侧边栏宽度 } ``` diff --git a/src/resources/components/TsContain/TsContain.vue b/src/resources/components/TsContain/TsContain.vue index c6a777da..84521171 100644 --- a/src/resources/components/TsContain/TsContain.vue +++ b/src/resources/components/TsContain/TsContain.vue @@ -37,7 +37,7 @@ :style="mode == 'dialog' ? 'height:100%;' : ''" @scroll.stop="scroll" > - + - -
- -
-