component_ryl_v3 1.1.60 → 1.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/component_ryl_v3.js +23 -16
- package/package.json +1 -1
- package/src/App.vue +34 -11
- package/src/assets/styles/common.scss +6 -0
- package/src/assets/styles/dialog.scss +3 -2
- package/src/packages/handHeader/handHeader.vue +20 -12
- package/src/packages/handSeeImg/handSeeImg.vue +7 -6
package/README.md
CHANGED
|
@@ -21,7 +21,8 @@ Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://
|
|
|
21
21
|
{Object} menuList - 导航列表(包含name系统名称和list菜单列表)
|
|
22
22
|
{string} defaultActive - 默认选中的菜单路径
|
|
23
23
|
{boolean} collapse - 是否启用折叠功能
|
|
24
|
-
{number}
|
|
24
|
+
{number} asideWidth - 侧边栏宽度 - 展开时宽度
|
|
25
|
+
{number} asideCollapseWidth - 侧边栏宽度 - 收起时宽度
|
|
25
26
|
{number} contentWidth - 内容模块宽度
|
|
26
27
|
{boolean} showDefaltOpen - 是否默认展开所有菜单项
|
|
27
28
|
* 暴露方法(通过 ref 调用)
|
|
@@ -164,3 +165,5 @@ Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://
|
|
|
164
165
|
# 更新版本的信息
|
|
165
166
|
# 1.1.40 handHeader 组件布局更改,去掉了 getMainHeight 和 loadImg 方法,不需要了
|
|
166
167
|
# 1.1.60 修改了主题颜色 #06f 为 #0C73FF
|
|
168
|
+
# 1.1.70 修复了 handHeader 组件在滚动时宽度问题,菜单栏收起时宽度问题
|
|
169
|
+
# 1.1.80 修复了 handSeeImg 组件在点击图片时,图片预览组件位置问题
|
package/dist/component_ryl_v3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";*:not(svg),#app,html,body{margin:0;padding:0;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif;font-size:12px}a{text-decoration:none;color:#5a5a5a}li{list-style:none}.flex{display:-webkit-flex;display:flex;display:-moz-box;display:-ms-flexbox}.flex_row{flex-direction:row}.flex_col{flex-direction:column}.initTextarea>.el-textarea__inner{resize:none}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent;border-radius:4px}::-webkit-scrollbar-thumb{background-color:transparent;border-radius:0}::-webkit-scrollbar-thumb:hover{background:#c2c2c2}::-webkit-scrollbar-corner{background:transparent}.common_show_scroll::-webkit-scrollbar-thumb{background:#c2c2c2}.tinymce-editor-JustOne *:not(h1,h2,h3,h4,h5,h6){font-size:inherit}.tinymce-editor-JustOne h1{font-size:32px}.tinymce-editor-JustOne h2{font-size:28px}.tinymce-editor-JustOne h3{font-size:24px}.tinymce-editor-JustOne h4{font-size:20px}.tinymce-editor-JustOne h5{font-size:16px}.tinymce-editor-JustOne h6{font-size:12px}.jddsDialog.el-dialog{border-radius:4px}.jddsDialog .el-dialog__title,.jddsDialog .zbt{font-size:16px;color:#272727;line-height:normal}.jddsDialog .el-dialog__body .el-form-item:last-child{margin-bottom:0}.jddsDialog .el-dialog__headerbtn{top:5px;right:0}.jddsDialog .btn{min-width:68px;height:32px;line-height:32px;border-radius:4px;padding:0}.jddsDialog .exit{font-size:14px}.jddsDialog .header-title{display:flex;align-items:center}.jddsDialog.el-dialog--center .header-title{justify-content:center}.JD_table.el-table:before{height:0!important}.JD_table.el-table{width:100%}.JD_table.el-table th,.JD_table.el-table th.el-table__cell{background:#f8fafc;padding:0;height:40px;line-height:40px;border-bottom:none!important}.JD_table.el-table th .cell,.JD_table.el-table th.el-table__cell .cell{font-weight:400;color:#999;text-align:left;white-space:nowrap}.JD_table.el-table td,.JD_table.el-table td.el-table__cell{padding:0;height:48px;line-height:48px}.JD_table.el-table td .cell,.JD_table.el-table td.el-table__cell .cell{line-height:normal}.el-table--group,.el-table--border{border:none!important}.el-table--group:after,.el-table--border:after{width:0!important}.el-table--border .el-table__cell,.el-table--border td{border-right:none!important}.el-table--border th.el-table__cell{border-right:1px solid #ebeef5!important}.el-table__header,.el-table__empty-block,.el-table__body{width:100%!important}.el-sub-menu__title{text-align:left!important}.el-sub-menu .el-menu-item{min-width:auto!important;padding-left:46px!important;position:relative}.el-sub-menu .el-menu-item:after{content:"";width:4px;height:4px;background:#7c878e;border-radius:50%;position:absolute;top:17px;left:26px}.el-sub-menu .el-menu .el-sub-menu .el-sub-menu__title{padding-left:46px!important}.el-sub-menu .el-menu .el-menu .el-menu-item{padding-left:60px!important}.el-sub-menu .el-menu .el-menu .el-menu-item:after{left:46px!important}.el-menu{border-right:none!important}.el-menu-item,.el-sub-menu__title{height:38px!important;line-height:38px!important;margin-top:2px}.el-menu-item *,.el-sub-menu__title *{vertical-align:middle}.el-submenu__title i.el-sub-menu__icon-arrow{color:#c0c5c7;font-weight:700}.el-message-box{width:400px!important}.initMsg_in{padding:20px 0!important}.initMsg_in .el-message-box__header{padding:0!important}.initMsg_in .el-message-box__header .el-message-box__headerbtn{display:none}.initMsg_in .el-message-box__header .el-message-box__status{font-size:50px!important}.initMsg_in .el-message-box__content{padding:20px 30px!important}.initMsg_in .el-message-box__content .el-message-box__message{letter-spacing:1px}.initMsg_in .el-message-box__btns{padding:0!important}.initMsg_in .el-message-box__btns button{min-width:100px;height:40px;border-radius:4px}.initMsg_in .el-message-box__btns button:nth-child(2){margin-left:20px!important}.defaultMsg_in .el-message-box__container{align-items:flex-start}.defaultMsg_in .el-message-box__title span{font-size:14px;font-weight:700}.defaultMsg_in .el-message-box__headerbtn{top:7px}.defaultMsg_in .el-message-box__status{top:0;transform:none;font-size:24px!important}.defaultMsg_in .el-message-box__btns button{min-width:68px;height:32px;border-radius:4px;border:none}.ieBro{position:fixed;padding:10px;z-index:9999;top:0;left:0;right:0;background:#fffade;border:1px solid #f9d878;justify-content:space-between}.ieBro span,.ieBro a{font-size:12px}.ieBro .color{text-decoration:underline}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{content:""!important}.mainMenu[data-v-e79ba81c]{display:inline-block;position:relative}.mainMenu .elbadge[data-v-e79ba81c]{color:red;font-style:normal}.mainMenu .elbadge.hot[data-v-e79ba81c]:after{display:inline-block;content:"";width:8px;height:8px;background-color:red;border-radius:100%;transform:scale(.9);position:absolute;top:10px;right:-10px}.mainMenu .elbadge.new[data-v-e79ba81c]:after{display:inline-block;content:"new";background-color:red;color:#fff;padding:0 4px 1px;line-height:16px;border-radius:4px;transform:scale(.9);position:absolute;top:6px;right:-32px}.mainMenu .elbadge.run[data-v-e79ba81c]{display:inline-block;color:#fff;background-color:red;min-width:20px;padding:0 2px;text-align:center;height:16px;line-height:16px;border-radius:4px;animation:changeRun 1.5s ease-in-out 0s infinite}.mainMenu .elbadge.num[data-v-e79ba81c]{display:inline-block;background-color:red;color:#fff;width:20px;text-align:center;height:16px;line-height:16px;border-radius:4px;transform:scale(.9);position:absolute;top:6px;right:-22px}.mainMenu .elbadge.num.nine[data-v-e79ba81c]{width:26px;right:-28px}.mainMenu .elbadge.num.nine em[data-v-e79ba81c]{position:relative;top:-4px}.el-menu-item span[data-v-e79ba81c],.el-sub-menu__title span[data-v-e79ba81c]{font-size:14px}.handHeaderContent{position:relative;z-index:999;height:100vh}.handHeaderContent .el-container.is-vertical{position:relative}.handHeaderContent .inner_header{padding:0;background:#fff;justify-content:space-between;align-items:center;height:50px!important}.handHeaderContent .inner_header .colSpan{width:60px;background-color:transparent;justify-content:center;align-items:center}.handHeaderContent .inner_header .colSpan .hide{width:16px;height:16px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAA2hJREFUeF7t3Vtu5DAMRFFlZ9nZzKwsS0ugTBswGnnYLkqkVddAkC+1Q9YBrXb68dJae28cth14AYBt9p+FA8A7fwCY5w8AALAJtDbAHsA6fjaB5vEDAADcB/A2wB7AO3+eBprnDwAAcB/A2gB7AOv4eRpoHv9/AK/2XTBuQAfAYdwBABiHv70gxLwF3uUzAbzz/9wEchh3AADG4bMHMA8fAABgD+BugD2AuQAAAMC8A+blMwEAYN4B8/IrTIC/rbX+w5HQgWwAW/AASAg/+0ZQD/1Pa+0fEyAp/cfnA2ScfQu/nxsAGQk8zplxCdiHD4DE8DMuAc/hKwB4LWMAnpkT4KvwVQBvAT2wfohZAL4LHwDJ/GYA+Cl8ACwO4LfwAbAwgCPhA2BRAEfDB8CCAM6ED4DFAJwNHwALAbgSPgAWAXA1fAAsAEAJHwA3B6CGD4AbA4gIHwA3BRAVPgBuCCAyfADcDEB0+AC4EYAR4SsAklu3xumP/jt4VPgASHZ0BMDI8AFQHMDo8AFQGMCM8AFQFMCs8AFQEMDM8AFQDMDs8AFQCEBG+AAoAiArfAAUAJAZPgAAwLuDMw1sdwIzpwBvD08UsL8VnIUAAEUA9D8jAwEACgHIQACAYgBmIwBAQQAzEQCgKIBZCABQGMAMBAAoDmA0AgDcAMBIBFcB9E8J40OiRDxHXhO4P8WI+wQAEENUlp8FMGISAEBJUFx7BUA0AgCIISrLrwKIRAAAJUFxrQIgCgEAxBCV5SqACAQAUBIU10YAUBEAQAxRWR4FQEEAACVBcW0kgKsIACCGqCyPBnAFAQCUBMW1IwCcRQAAMURl+SgAZxAAQElQXDsSwFEEABBDVJaPBnAEAQCUBMW1MwD8hgAAYojK8lkAfkKgAFBqZ23CF0dGfm0cAQZ0YOYE2P7cZwRXJ0BA+TxEBoDnywEAEh1mAdgjAIApgA3B/ndiKzxPnTkB9nuCvi/gSOhABQAJZXPKrQMAMLcAAACYd8C8fCYAAMw7YF4+EwAA5h0wL58JAADzDpiXzwQAgHkHzMtnAgDAvAPm5fcJ0D9sicO0Ax3Au2ntlP14VTAAjCkwAYzD76UDAADsAZwNMAGc0+cSYJ4+AADAJcDcAAAAwLMAZwNMAOf02QSapw8AAHAJMDcAAHMAH9uzwUGCPXdSAAAAAElFTkSuQmCC) no-repeat;background-size:contain;cursor:pointer;transition:all .2s}.handHeaderContent .inner_header .colSpan .hide.rotate{transform:rotate(180deg)}.handHeaderContent .inner_header .saasInfo .img{align-items:center;justify-content:center;height:50px;margin-right:20px;cursor:pointer}.handHeaderContent .inner_header .saasInfo .img:hover .dropDown{display:block}.handHeaderContent .inner_header .saasInfo .img img{width:33px;height:33px;border-radius:50%;margin-right:5px;border:1px solid #eff2f5}.handHeaderContent .dropDown{position:absolute;right:10px;top:50px;width:170px;background:#fff;box-shadow:0 0 4px #1919191a;border-radius:2px;display:none;z-index:999}.handHeaderContent .dropDown .san{display:inline-block;width:10px;height:10px;border:1px solid #fff;border-top-style:none;border-right-style:none;transform:rotate(135deg);position:absolute;top:-4px;right:38px;background:#fff}.handHeaderContent .dropDown .user{padding:11px;align-items:center;border-bottom:1px solid #f5f5f5}.handHeaderContent .dropDown .user span{line-height:normal;font-size:14px}.handHeaderContent .dropDown .exit{font-size:14px;line-height:39px;height:39px;border-top:1px solid #EFF2F5;text-align:center;padding:0;color:#5a5a5a}.handHeaderContent .aside{height:100%;transition:all .2s;overflow:overlay;z-index:999;position:relative}.handHeaderContent .aside .init-el-menu{padding-bottom:38px}.handHeaderContent .aside.hideMenu .el-tooltip{text-align:center}.handHeaderContent .aside.hideMenu .el-submenu__title{text-align:center!important}.handHeaderContent .aside.hideMenu i.iconfont{margin-right:0}.handHeaderContent .aside.hideMenu .deldom,.handHeaderContent .aside.hideMenu .el-submenu__icon-arrow{display:none}.handHeaderContent .aside i.iconfont{font-size:18px;display:inline-block;width:18px;margin-right:8px;color:#747c81}.handHeaderContent .main{padding:0;background-color:#eff2f5}.handHeaderContent .main.scrollX{overflow-x:scroll}.handHeaderContent .main .content_mar{padding:18px 18px 0;display:flex;flex-direction:column;height:calc(100vh - 18px)}.handHeaderContent .main .contentTop{flex-shrink:0}.handHeaderContent .main .inner_content{background-color:#fff;flex:1;border-radius:4px}.handHeaderContent .main .inner_content.normal{background-color:transparent!important}.handHeaderContent .inner_footer{flex-shrink:0;color:#666;text-align:center;padding:18px 0;height:32px;justify-content:center}@keyframes changeRun{0%{transform:translateY(0) scale(.9)}25%{transform:translateY(-6px) scale(.9)}50%{transform:translateY(0) scale(.9)}75%{transform:translateY(-2px) scale(.9)}to{transform:translateY(0) scale(.9)}}.initNoData[data-v-0b0e3718]{width:100%;align-items:center;justify-content:center}.initNoData .inner[data-v-0b0e3718]{text-align:center}.initNoData .inner p[data-v-0b0e3718]{color:#666;margin-top:12px;line-height:normal}.initPaging[data-v-1d8ef8c9] .el-select__placeholder{text-align:center}.previewFix[data-v-14d38dc6]{width:100%;height:100%;position:fixed;top:0;left:0;z-index:9999;background-color:#00000080;display:flex;justify-content:center;align-items:center}.previewFix img[data-v-14d38dc6]{max-width:98%;max-height:98%}.status_search[data-v-64ce971a]{display:inline-block}.status_search span[data-v-64ce971a]{min-width:40px;height:30px;padding:0 10px;display:inline-block;text-align:center;line-height:30px;border:1px solid #d9d9d9;border-right:1px solid transparent;cursor:pointer}.status_search span[data-v-64ce971a]:first-child{border-radius:2px 0 0 2px}.status_search span[data-v-64ce971a]:last-child{border-radius:0 2px 2px 0;border-right:1px solid #d9d9d9}.status_search .active[data-v-64ce971a]{background:#0c73ff;color:#fff;border-color:#0c73ff}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
-
import { ref, watch, openBlock, createElementBlock, createVNode, unref, withCtx, renderSlot, Fragment, normalizeStyle, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, createBlock, createElementVNode, resolveComponent, renderList, computed, onMounted, nextTick } from "vue";
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";*:not(svg),#app,html,body{margin:0;padding:0;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif;font-size:12px}a{text-decoration:none;color:#5a5a5a}li{list-style:none}.flex{display:-webkit-flex;display:flex;display:-moz-box;display:-ms-flexbox}.flex_row{flex-direction:row}.flex_col{flex-direction:column}.initTextarea>.el-textarea__inner{resize:none}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent;border-radius:4px}::-webkit-scrollbar-thumb{background-color:transparent;border-radius:0}::-webkit-scrollbar-thumb:hover{background:#c2c2c2}::-webkit-scrollbar-corner{background:transparent}.common_show_scroll::-webkit-scrollbar-thumb{background:#c2c2c2}.tinymce-editor-JustOne *:not(h1,h2,h3,h4,h5,h6){font-size:inherit}.tinymce-editor-JustOne h1{font-size:32px}.tinymce-editor-JustOne h2{font-size:28px}.tinymce-editor-JustOne h3{font-size:24px}.tinymce-editor-JustOne h4{font-size:20px}.tinymce-editor-JustOne h5{font-size:16px}.tinymce-editor-JustOne h6{font-size:12px}.jddsDialog.el-dialog{border-radius:4px}.jddsDialog .el-dialog__title,.jddsDialog .zbt{font-size:14px;color:#272727;line-height:normal;font-weight:700}.jddsDialog .el-dialog__body .el-form-item:last-child{margin-bottom:0}.jddsDialog .el-dialog__headerbtn{top:5px;right:0}.jddsDialog .btn{min-width:68px;height:32px;line-height:32px;border-radius:4px;padding:0 12px}.jddsDialog .exit{font-size:14px}.jddsDialog .header-title{display:flex;align-items:center}.jddsDialog.el-dialog--center .header-title{justify-content:center}.JD_table.el-table:before{height:0!important}.JD_table.el-table{width:100%}.JD_table.el-table th,.JD_table.el-table th.el-table__cell{background:#f8fafc;padding:0;height:40px;line-height:40px;border-bottom:none!important}.JD_table.el-table th .cell,.JD_table.el-table th.el-table__cell .cell{font-weight:400;color:#999;text-align:left;white-space:nowrap}.JD_table.el-table td,.JD_table.el-table td.el-table__cell{padding:0;height:48px;line-height:48px}.JD_table.el-table td .cell,.JD_table.el-table td.el-table__cell .cell{line-height:normal}.el-table--group,.el-table--border{border:none!important}.el-table--group:after,.el-table--border:after{width:0!important}.el-table--border .el-table__cell,.el-table--border td{border-right:none!important}.el-table--border th.el-table__cell{border-right:1px solid #ebeef5!important}.el-table__header,.el-table__empty-block,.el-table__body{width:100%!important}.el-sub-menu__title{text-align:left!important}.el-sub-menu .el-menu-item{min-width:auto!important;padding-left:46px!important;position:relative}.el-sub-menu .el-menu-item:after{content:"";width:4px;height:4px;background:#7c878e;border-radius:50%;position:absolute;top:17px;left:26px}.el-sub-menu .el-menu .el-sub-menu .el-sub-menu__title{padding-left:46px!important}.el-sub-menu .el-menu .el-menu .el-menu-item{padding-left:60px!important}.el-sub-menu .el-menu .el-menu .el-menu-item:after{left:46px!important}.el-menu{border-right:none!important}.el-menu-item,.el-sub-menu__title{height:38px!important;line-height:38px!important;margin-top:2px}.el-menu-item *,.el-sub-menu__title *{vertical-align:middle}.el-submenu__title i.el-sub-menu__icon-arrow{color:#c0c5c7;font-weight:700}.el-message-box{width:400px!important}.initMsg_in{padding:20px 0!important}.initMsg_in .el-message-box__header{padding:0!important}.initMsg_in .el-message-box__header .el-message-box__headerbtn{display:none}.initMsg_in .el-message-box__header .el-message-box__status{font-size:50px!important}.initMsg_in .el-message-box__content{padding:20px 30px!important}.initMsg_in .el-message-box__content .el-message-box__message{letter-spacing:1px}.initMsg_in .el-message-box__message p{line-height:normal}.initMsg_in .el-message-box__btns{padding:0!important}.initMsg_in .el-message-box__btns button{min-width:100px;height:40px;border-radius:4px}.initMsg_in .el-message-box__btns button:nth-child(2){margin-left:20px!important}.defaultMsg_in .el-message-box__container{align-items:flex-start}.defaultMsg_in .el-message-box__title span{font-size:14px;font-weight:700}.defaultMsg_in .el-message-box__headerbtn{top:7px}.defaultMsg_in .el-message-box__status{top:0;transform:none;font-size:24px!important}.defaultMsg_in .el-message-box__message p{line-height:normal}.defaultMsg_in .el-message-box__btns button{min-width:68px;height:32px;border-radius:4px;border:none}.ieBro{position:fixed;padding:10px;z-index:9999;top:0;left:0;right:0;background:#fffade;border:1px solid #f9d878;justify-content:space-between}.ieBro span,.ieBro a{font-size:12px}.ieBro .color{text-decoration:underline}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{content:""!important}.mainMenu[data-v-e79ba81c]{display:inline-block;position:relative}.mainMenu .elbadge[data-v-e79ba81c]{color:red;font-style:normal}.mainMenu .elbadge.hot[data-v-e79ba81c]:after{display:inline-block;content:"";width:8px;height:8px;background-color:red;border-radius:100%;transform:scale(.9);position:absolute;top:10px;right:-10px}.mainMenu .elbadge.new[data-v-e79ba81c]:after{display:inline-block;content:"new";background-color:red;color:#fff;padding:0 4px 1px;line-height:16px;border-radius:4px;transform:scale(.9);position:absolute;top:6px;right:-32px}.mainMenu .elbadge.run[data-v-e79ba81c]{display:inline-block;color:#fff;background-color:red;min-width:20px;padding:0 2px;text-align:center;height:16px;line-height:16px;border-radius:4px;animation:changeRun 1.5s ease-in-out 0s infinite}.mainMenu .elbadge.num[data-v-e79ba81c]{display:inline-block;background-color:red;color:#fff;width:20px;text-align:center;height:16px;line-height:16px;border-radius:4px;transform:scale(.9);position:absolute;top:6px;right:-22px}.mainMenu .elbadge.num.nine[data-v-e79ba81c]{width:26px;right:-28px}.mainMenu .elbadge.num.nine em[data-v-e79ba81c]{position:relative;top:-4px}.el-menu-item span[data-v-e79ba81c],.el-sub-menu__title span[data-v-e79ba81c]{font-size:14px}.handHeaderContent{position:relative;z-index:999;height:100vh}.handHeaderContent .el-container.is-vertical{position:relative}.handHeaderContent .inner_header{padding:0;background:#fff;justify-content:space-between;align-items:center;height:50px!important}.handHeaderContent .inner_header .colSpan{width:60px;background-color:transparent;justify-content:center;align-items:center}.handHeaderContent .inner_header .colSpan .hide{width:16px;height:16px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAA2hJREFUeF7t3Vtu5DAMRFFlZ9nZzKwsS0ugTBswGnnYLkqkVddAkC+1Q9YBrXb68dJae28cth14AYBt9p+FA8A7fwCY5w8AALAJtDbAHsA6fjaB5vEDAADcB/A2wB7AO3+eBprnDwAAcB/A2gB7AOv4eRpoHv9/AK/2XTBuQAfAYdwBABiHv70gxLwF3uUzAbzz/9wEchh3AADG4bMHMA8fAABgD+BugD2AuQAAAMC8A+blMwEAYN4B8/IrTIC/rbX+w5HQgWwAW/AASAg/+0ZQD/1Pa+0fEyAp/cfnA2ScfQu/nxsAGQk8zplxCdiHD4DE8DMuAc/hKwB4LWMAnpkT4KvwVQBvAT2wfohZAL4LHwDJ/GYA+Cl8ACwO4LfwAbAwgCPhA2BRAEfDB8CCAM6ED4DFAJwNHwALAbgSPgAWAXA1fAAsAEAJHwA3B6CGD4AbA4gIHwA3BRAVPgBuCCAyfADcDEB0+AC4EYAR4SsAklu3xumP/jt4VPgASHZ0BMDI8AFQHMDo8AFQGMCM8AFQFMCs8AFQEMDM8AFQDMDs8AFQCEBG+AAoAiArfAAUAJAZPgAAwLuDMw1sdwIzpwBvD08UsL8VnIUAAEUA9D8jAwEACgHIQACAYgBmIwBAQQAzEQCgKIBZCABQGMAMBAAoDmA0AgDcAMBIBFcB9E8J40OiRDxHXhO4P8WI+wQAEENUlp8FMGISAEBJUFx7BUA0AgCIISrLrwKIRAAAJUFxrQIgCgEAxBCV5SqACAQAUBIU10YAUBEAQAxRWR4FQEEAACVBcW0kgKsIACCGqCyPBnAFAQCUBMW1IwCcRQAAMURl+SgAZxAAQElQXDsSwFEEABBDVJaPBnAEAQCUBMW1MwD8hgAAYojK8lkAfkKgAFBqZ23CF0dGfm0cAQZ0YOYE2P7cZwRXJ0BA+TxEBoDnywEAEh1mAdgjAIApgA3B/ndiKzxPnTkB9nuCvi/gSOhABQAJZXPKrQMAMLcAAACYd8C8fCYAAMw7YF4+EwAA5h0wL58JAADzDpiXzwQAgHkHzMtnAgDAvAPm5fcJ0D9sicO0Ax3Au2ntlP14VTAAjCkwAYzD76UDAADsAZwNMAGc0+cSYJ4+AADAJcDcAAAAwLMAZwNMAOf02QSapw8AAHAJMDcAAHMAH9uzwUGCPXdSAAAAAElFTkSuQmCC) no-repeat;background-size:contain;cursor:pointer;transition:all .2s}.handHeaderContent .inner_header .colSpan .hide.rotate{transform:rotate(180deg)}.handHeaderContent .inner_header .saasInfo .img{align-items:center;justify-content:center;height:50px;margin-right:20px;cursor:pointer}.handHeaderContent .inner_header .saasInfo .img:hover .dropDown{display:block}.handHeaderContent .inner_header .saasInfo .img img{width:33px;height:33px;border-radius:50%;margin-right:5px;border:1px solid #eff2f5}.handHeaderContent .dropDown{position:absolute;right:10px;top:50px;width:170px;background:#fff;box-shadow:0 0 4px #1919191a;border-radius:2px;display:none;z-index:999}.handHeaderContent .dropDown .san{display:inline-block;width:10px;height:10px;border:1px solid #fff;border-top-style:none;border-right-style:none;transform:rotate(135deg);position:absolute;top:-4px;right:38px;background:#fff}.handHeaderContent .dropDown .user{padding:11px;align-items:center;border-bottom:1px solid #f5f5f5}.handHeaderContent .dropDown .user span{line-height:normal;font-size:14px}.handHeaderContent .dropDown .exit{font-size:14px;line-height:39px;height:39px;border-top:1px solid #EFF2F5;text-align:center;padding:0;color:#5a5a5a}.handHeaderContent .aside{height:100%;transition:all .2s;overflow:overlay;z-index:999;position:relative}.handHeaderContent .aside .init-el-menu{padding-bottom:38px}.handHeaderContent .aside.hideMenu .el-tooltip{text-align:center}.handHeaderContent .aside.hideMenu .el-menu-item .el-menu-tooltip__trigger,.handHeaderContent .aside.hideMenu .el-sub-menu__title{justify-content:center}.handHeaderContent .aside.hideMenu i.iconfont{margin-right:0}.handHeaderContent .aside.hideMenu .deldom,.handHeaderContent .aside.hideMenu .el-submenu__icon-arrow{display:none}.handHeaderContent .aside i.iconfont{font-size:18px;display:inline-block;width:18px;margin-right:8px;color:#747c81}.handHeaderContent .main{padding:0;background-color:#eff2f5}.handHeaderContent .main.scrollX{overflow-x:scroll}.handHeaderContent .main .content_mar{display:flex;flex-direction:column;height:100vh}.handHeaderContent .main .contentTop{flex-shrink:0}.handHeaderContent .main .inner_content{background-color:#fff;flex:1;border-radius:4px}.handHeaderContent .main .inner_content.normal{background-color:transparent!important}.handHeaderContent .inner_footer{flex-shrink:0;color:#666;text-align:center;padding:18px 0;height:32px;justify-content:center}@keyframes changeRun{0%{transform:translateY(0) scale(.9)}25%{transform:translateY(-6px) scale(.9)}50%{transform:translateY(0) scale(.9)}75%{transform:translateY(-2px) scale(.9)}to{transform:translateY(0) scale(.9)}}.initNoData[data-v-0b0e3718]{width:100%;align-items:center;justify-content:center}.initNoData .inner[data-v-0b0e3718]{text-align:center}.initNoData .inner p[data-v-0b0e3718]{color:#666;margin-top:12px;line-height:normal}.initPaging[data-v-1d8ef8c9] .el-select__placeholder{text-align:center}.previewFix[data-v-535f3daf]{width:100%;height:100%;position:fixed;top:0;left:0;z-index:9999;background-color:#00000080;display:flex;justify-content:center;align-items:center}.previewFix img[data-v-535f3daf]{max-width:50%;max-height:50%}.status_search[data-v-64ce971a]{display:inline-block}.status_search span[data-v-64ce971a]{min-width:40px;height:30px;padding:0 10px;display:inline-block;text-align:center;line-height:30px;border:1px solid #d9d9d9;border-right:1px solid transparent;cursor:pointer}.status_search span[data-v-64ce971a]:first-child{border-radius:2px 0 0 2px}.status_search span[data-v-64ce971a]:last-child{border-radius:0 2px 2px 0;border-right:1px solid #d9d9d9}.status_search .active[data-v-64ce971a]{background:#0c73ff;color:#fff;border-color:#0c73ff}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
import { ref, watch, openBlock, createElementBlock, createVNode, unref, withCtx, renderSlot, Fragment, normalizeStyle, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, createBlock, createElementVNode, resolveComponent, renderList, computed, onMounted, nextTick, Teleport } from "vue";
|
|
3
3
|
import { ElDialog, ElButton, ElMenuItem, ElSubMenu, ElContainer, ElAside, ElMenu, ElMain, ElHeader, ElIcon, ElConfigProvider, ElPagination, ElMessageBox } from "element-plus";
|
|
4
4
|
import { ArrowDown } from "@element-plus/icons-vue";
|
|
5
5
|
const _hoisted_1$6 = { class: "header-title" };
|
|
@@ -371,10 +371,14 @@ const _sfc_main$4 = {
|
|
|
371
371
|
type: Boolean,
|
|
372
372
|
default: false
|
|
373
373
|
},
|
|
374
|
-
|
|
374
|
+
asideWidth: {
|
|
375
375
|
type: Number,
|
|
376
376
|
default: 180
|
|
377
377
|
},
|
|
378
|
+
asideCollapseWidth: {
|
|
379
|
+
type: Number,
|
|
380
|
+
default: 64
|
|
381
|
+
},
|
|
378
382
|
contentWidth: {
|
|
379
383
|
type: Number,
|
|
380
384
|
default: 1200
|
|
@@ -401,9 +405,9 @@ const _sfc_main$4 = {
|
|
|
401
405
|
const minWidth = ref(props.contentWidth);
|
|
402
406
|
const localDefaultActive = ref(props.defaultActive);
|
|
403
407
|
const completeWidth = computed(() => {
|
|
404
|
-
return hideMenu.value ?
|
|
408
|
+
return hideMenu.value ? `${props.asideCollapseWidth}px` : `${props.asideWidth}px`;
|
|
405
409
|
});
|
|
406
|
-
let mainDefalutWidth = document.body.clientWidth - props.
|
|
410
|
+
let mainDefalutWidth = document.body.clientWidth - props.asideWidth;
|
|
407
411
|
const debounce2 = (fn, delay = 200) => {
|
|
408
412
|
let timer = null;
|
|
409
413
|
return function() {
|
|
@@ -452,11 +456,12 @@ const _sfc_main$4 = {
|
|
|
452
456
|
innerHeader.setAttribute("style", `min-width:${minWidth.value}px;`);
|
|
453
457
|
}
|
|
454
458
|
if (contentMar) {
|
|
455
|
-
contentMar.setAttribute("style", `min-width:${minWidth.value
|
|
459
|
+
contentMar.setAttribute("style", `min-width:${minWidth.value}px;`);
|
|
456
460
|
}
|
|
457
461
|
} else {
|
|
458
462
|
if (innerHeader) {
|
|
459
463
|
innerHeader.removeAttribute("style");
|
|
464
|
+
contentMar.removeAttribute("style");
|
|
460
465
|
}
|
|
461
466
|
if (contentMar) {
|
|
462
467
|
contentMar.removeAttribute("style");
|
|
@@ -483,12 +488,12 @@ const _sfc_main$4 = {
|
|
|
483
488
|
};
|
|
484
489
|
onMounted(() => {
|
|
485
490
|
const windowWidth = window.screen.availWidth;
|
|
486
|
-
minWidth.value = windowWidth > minWidth.value ? minWidth.value - props.
|
|
491
|
+
minWidth.value = windowWidth > minWidth.value ? minWidth.value - props.asideWidth : windowWidth - props.asideWidth;
|
|
487
492
|
browser();
|
|
488
493
|
nextTick(() => {
|
|
489
494
|
setMinWidth(mainDefalutWidth);
|
|
490
495
|
window.addEventListener("resize", debounce2(() => {
|
|
491
|
-
mainDefalutWidth = document.body.clientWidth - props.
|
|
496
|
+
mainDefalutWidth = document.body.clientWidth - props.asideWidth;
|
|
492
497
|
setMinWidth(mainDefalutWidth);
|
|
493
498
|
}));
|
|
494
499
|
});
|
|
@@ -928,17 +933,19 @@ const _sfc_main$1 = {
|
|
|
928
933
|
openPreview
|
|
929
934
|
});
|
|
930
935
|
return (_ctx, _cache) => {
|
|
931
|
-
return
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
936
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
937
|
+
show.value ? (openBlock(), createElementBlock("div", {
|
|
938
|
+
key: 0,
|
|
939
|
+
class: "previewFix",
|
|
940
|
+
onClick: _cache[0] || (_cache[0] = ($event) => exitPreview($event))
|
|
941
|
+
}, [
|
|
942
|
+
createElementVNode("img", { src: src.value }, null, 8, _hoisted_1$1)
|
|
943
|
+
])) : createCommentVNode("", true)
|
|
944
|
+
]);
|
|
938
945
|
};
|
|
939
946
|
}
|
|
940
947
|
};
|
|
941
|
-
const HandSeeImg = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
948
|
+
const HandSeeImg = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-535f3daf"]]);
|
|
942
949
|
const _hoisted_1 = { class: "status_search" };
|
|
943
950
|
const _hoisted_2 = ["onClick"];
|
|
944
951
|
const _sfc_main = {
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
<hand-header
|
|
3
3
|
:userInfo="userInfo"
|
|
4
4
|
collapse
|
|
5
|
+
:asideWidth="200"
|
|
6
|
+
:asideCollapseWidth="96"
|
|
5
7
|
:defaultActive="menuActive"
|
|
6
8
|
:menuList="menuList"
|
|
7
9
|
ref="menuRef"
|
|
8
10
|
:menuColor="menuColor"
|
|
11
|
+
@exitSystem="outSystem"
|
|
9
12
|
>
|
|
10
13
|
<template #headElseTitle>
|
|
11
14
|
<div style="color:#fff;text-align:center;font-size:20px;">
|
|
@@ -15,16 +18,30 @@
|
|
|
15
18
|
<template #headElseInfo>
|
|
16
19
|
这是头部补充的内容
|
|
17
20
|
</template>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
<template #headElseInfoRight>
|
|
22
|
+
<!-- <div class="saasInfo flex"> -->
|
|
23
|
+
<li>
|
|
24
|
+
<a :href="'/'" target="_blank" class="home">
|
|
25
|
+
<svg class="icon" aria-hidden="true" style="width:24px;height: 24px;">
|
|
26
|
+
<use xlink:href="#icon-shouye2"></use></svg>首页
|
|
27
|
+
</a>
|
|
28
|
+
</li>
|
|
29
|
+
<li>
|
|
30
|
+
<a :href="'/work/index'" target="_blank" class="work">
|
|
31
|
+
<svg class="icon" aria-hidden="true" style="width:24px;height: 24px;">
|
|
32
|
+
<use xlink:href="#icon-gongdan1"></use></svg>工单
|
|
33
|
+
<div class="dropDown initWork">
|
|
34
|
+
<em class="san"></em>
|
|
35
|
+
<a
|
|
36
|
+
:href="'/work/subAdvise'"
|
|
37
|
+
class="color"
|
|
38
|
+
target="_blank"
|
|
39
|
+
>提交工单</a
|
|
40
|
+
>
|
|
41
|
+
</div>
|
|
42
|
+
</a>
|
|
43
|
+
</li>
|
|
44
|
+
<!-- </div> -->
|
|
28
45
|
</template>
|
|
29
46
|
<template #headElseHand>
|
|
30
47
|
<ul>
|
|
@@ -45,6 +62,7 @@
|
|
|
45
62
|
<hand-tab :list="[{ label: '全部', value: 'all' }, { label: '待处理是的', value: 'pending' }, { label: '已处理', value: 'processed' }]" @getStatus="getStatus" />
|
|
46
63
|
<h6>图片预览</h6>
|
|
47
64
|
<img src="https://img.alicdn.com/bao/uploaded/i3/2206588314948/O1CN01KjFgoO1mQEsQjnFbC_!!2206588314948-0-C2M.jpg" alt="" style="width:60px;height: 60px;" @click="openPreview($event.target.currentSrc)">
|
|
65
|
+
<img src="https://v2-saas-1259468876.cos.ap-shanghai.myqcloud.com/system/saas/product/中控.png" alt="" style="width:60px;height: 60px;" @click="openPreview($event.target.currentSrc)">
|
|
48
66
|
<hand-see-img ref="handSeeImgRef" />
|
|
49
67
|
<h6>分页</h6>
|
|
50
68
|
<div>
|
|
@@ -67,6 +85,7 @@
|
|
|
67
85
|
@cancel="exitDialog"
|
|
68
86
|
@confirm="saveAccess"
|
|
69
87
|
customClass="sldkslfd"
|
|
88
|
+
confirmText="保存水电费第三方"
|
|
70
89
|
>
|
|
71
90
|
<template #content>
|
|
72
91
|
111
|
|
@@ -214,7 +233,8 @@ const openConfirm = () => {
|
|
|
214
233
|
handConfirmNew({
|
|
215
234
|
text: '塑料袋建设路口封建势力扩大发啦建设<br />路口塑料袋口就蓝思科技法律思考就发了上课动静分离上课杜绝浪费收到了开发',
|
|
216
235
|
type:2,
|
|
217
|
-
title:'提示'
|
|
236
|
+
title:'提示',
|
|
237
|
+
dangerouslyUseHTMLString: true,
|
|
218
238
|
}).then(() => {
|
|
219
239
|
console.log('确认删除')
|
|
220
240
|
}).catch(() => {
|
|
@@ -252,4 +272,7 @@ onMounted(() => {
|
|
|
252
272
|
})
|
|
253
273
|
//#endregion 菜单组件
|
|
254
274
|
const inputNumber = ref('')
|
|
275
|
+
const outSystem = () => {
|
|
276
|
+
console.log('退出系统')
|
|
277
|
+
}
|
|
255
278
|
</script>
|
|
@@ -139,6 +139,9 @@
|
|
|
139
139
|
letter-spacing: 1px;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
+
.el-message-box__message p{
|
|
143
|
+
line-height: normal;
|
|
144
|
+
}
|
|
142
145
|
.el-message-box__btns {
|
|
143
146
|
padding: 0 !important;
|
|
144
147
|
button {
|
|
@@ -170,6 +173,9 @@
|
|
|
170
173
|
transform: none;
|
|
171
174
|
font-size: 24px !important;
|
|
172
175
|
}
|
|
176
|
+
.el-message-box__message p{
|
|
177
|
+
line-height: normal;
|
|
178
|
+
}
|
|
173
179
|
.el-message-box__btns {
|
|
174
180
|
button {
|
|
175
181
|
min-width: 68px;
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
border-radius: 4px;
|
|
4
4
|
}
|
|
5
5
|
.el-dialog__title,.zbt {
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 14px;
|
|
7
7
|
color: #272727;
|
|
8
8
|
line-height: normal;
|
|
9
|
+
font-weight: bold;
|
|
9
10
|
}
|
|
10
11
|
.el-dialog__body .el-form-item {
|
|
11
12
|
&:last-child {
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
height: 32px;
|
|
22
23
|
line-height: 32px;
|
|
23
24
|
border-radius: 4px;
|
|
24
|
-
padding: 0;
|
|
25
|
+
padding: 0 12px;
|
|
25
26
|
}
|
|
26
27
|
.exit {
|
|
27
28
|
font-size: 14px;
|
|
@@ -95,7 +95,8 @@ import sidebarItem from './sidebarItem.vue'
|
|
|
95
95
|
* @property {Object} menuList - 导航列表(包含name系统名称和list菜单列表)
|
|
96
96
|
* @property {string} defaultActive - 默认选中的菜单路径
|
|
97
97
|
* @property {boolean} collapse - 是否启用折叠功能
|
|
98
|
-
* @property {number}
|
|
98
|
+
* @property {number} asideWidth - 侧边栏宽度 - 展开时宽度
|
|
99
|
+
* @property {number} asideCollapseWidth - 侧边栏宽度 - 收起时宽度
|
|
99
100
|
* @property {number} contentWidth - 内容模块宽度
|
|
100
101
|
* @property {Object} userInfo - 用户信息
|
|
101
102
|
* @property {boolean} showDefaltOpen - 是否默认展开所有菜单项
|
|
@@ -113,10 +114,14 @@ const props = defineProps({
|
|
|
113
114
|
type: Boolean,
|
|
114
115
|
default: false
|
|
115
116
|
},
|
|
116
|
-
|
|
117
|
+
asideWidth: {
|
|
117
118
|
type: Number,
|
|
118
119
|
default: 180
|
|
119
120
|
},
|
|
121
|
+
asideCollapseWidth: {
|
|
122
|
+
type: Number,
|
|
123
|
+
default: 64
|
|
124
|
+
},
|
|
120
125
|
contentWidth: {
|
|
121
126
|
type: Number,
|
|
122
127
|
default: 1200
|
|
@@ -153,14 +158,14 @@ const localDefaultActive = ref(props.defaultActive) // 本地默认选中菜单
|
|
|
153
158
|
* @returns {string} 宽度值
|
|
154
159
|
*/
|
|
155
160
|
const completeWidth = computed(() => {
|
|
156
|
-
return hideMenu.value ?
|
|
161
|
+
return hideMenu.value ? `${props.asideCollapseWidth}px` : `${props.asideWidth}px`
|
|
157
162
|
})
|
|
158
163
|
|
|
159
164
|
/**
|
|
160
165
|
* 主模块默认宽度
|
|
161
166
|
* @type {number}
|
|
162
167
|
*/
|
|
163
|
-
let mainDefalutWidth = document.body.clientWidth - props.
|
|
168
|
+
let mainDefalutWidth = document.body.clientWidth - props.asideWidth
|
|
164
169
|
|
|
165
170
|
/**
|
|
166
171
|
* 函数防抖
|
|
@@ -236,17 +241,17 @@ const setMinWidth = (width) => {
|
|
|
236
241
|
|
|
237
242
|
const innerHeader = document.querySelector(".main_container .inner_header")
|
|
238
243
|
const contentMar = document.querySelector(".main_container .content_mar")
|
|
239
|
-
|
|
240
244
|
if (isScrollX.value) {
|
|
241
245
|
if (innerHeader) {
|
|
242
246
|
innerHeader.setAttribute("style", `min-width:${minWidth.value}px;`)
|
|
243
247
|
}
|
|
244
248
|
if (contentMar) {
|
|
245
|
-
contentMar.setAttribute("style", `min-width:${minWidth.value
|
|
249
|
+
contentMar.setAttribute("style", `min-width:${minWidth.value}px;`)
|
|
246
250
|
}
|
|
247
251
|
} else {
|
|
248
252
|
if (innerHeader) {
|
|
249
253
|
innerHeader.removeAttribute("style")
|
|
254
|
+
contentMar.removeAttribute("style")
|
|
250
255
|
}
|
|
251
256
|
if (contentMar) {
|
|
252
257
|
contentMar.removeAttribute("style")
|
|
@@ -298,7 +303,7 @@ const closeIETips = () => {
|
|
|
298
303
|
*/
|
|
299
304
|
onMounted(() => {
|
|
300
305
|
const windowWidth = window.screen.availWidth
|
|
301
|
-
minWidth.value = windowWidth > minWidth.value ? (minWidth.value - props.
|
|
306
|
+
minWidth.value = windowWidth > minWidth.value ? (minWidth.value - props.asideWidth) : (windowWidth - props.asideWidth)
|
|
302
307
|
|
|
303
308
|
browser()
|
|
304
309
|
|
|
@@ -306,7 +311,7 @@ onMounted(() => {
|
|
|
306
311
|
setMinWidth(mainDefalutWidth)
|
|
307
312
|
// 监听窗口大小变化
|
|
308
313
|
window.addEventListener('resize', debounce(() => {
|
|
309
|
-
mainDefalutWidth = document.body.clientWidth - props.
|
|
314
|
+
mainDefalutWidth = document.body.clientWidth - props.asideWidth
|
|
310
315
|
setMinWidth(mainDefalutWidth)
|
|
311
316
|
}))
|
|
312
317
|
})
|
|
@@ -429,8 +434,12 @@ defineExpose({
|
|
|
429
434
|
.el-tooltip{
|
|
430
435
|
text-align: center;
|
|
431
436
|
}
|
|
432
|
-
.el-
|
|
433
|
-
|
|
437
|
+
.el-menu-item .el-menu-tooltip__trigger{
|
|
438
|
+
justify-content: center;
|
|
439
|
+
}
|
|
440
|
+
.el-sub-menu__title{
|
|
441
|
+
// text-align: center !important;
|
|
442
|
+
justify-content: center;
|
|
434
443
|
}
|
|
435
444
|
i.iconfont{
|
|
436
445
|
margin-right: 0;
|
|
@@ -454,10 +463,9 @@ defineExpose({
|
|
|
454
463
|
overflow-x: scroll;
|
|
455
464
|
}
|
|
456
465
|
.content_mar{
|
|
457
|
-
padding: 18px 18px 0;
|
|
458
466
|
display: flex;
|
|
459
467
|
flex-direction: column;
|
|
460
|
-
height:
|
|
468
|
+
height: 100vh;
|
|
461
469
|
}
|
|
462
470
|
.contentTop {
|
|
463
471
|
flex-shrink: 0;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- 图片预览遮罩层 -->
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
3
|
+
<teleport to="body">
|
|
4
|
+
<div class="previewFix" v-if="show" @click="exitPreview($event)">
|
|
5
|
+
<img :src="src" />
|
|
6
|
+
</div>
|
|
7
|
+
</teleport>
|
|
6
8
|
</template>
|
|
7
9
|
|
|
8
10
|
<script setup>
|
|
@@ -71,10 +73,9 @@ defineExpose({
|
|
|
71
73
|
display: flex;
|
|
72
74
|
justify-content: center;
|
|
73
75
|
align-items: center;
|
|
74
|
-
|
|
75
76
|
img{
|
|
76
|
-
max-width:
|
|
77
|
-
max-height:
|
|
77
|
+
max-width: 50%;
|
|
78
|
+
max-height: 50%;
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
</style>
|