| | |
| | | <div> |
| | | <MyModal ref="myModal" /> |
| | | <MyPreviewModal ref="MyPreviewModal" /> |
| | | <MyMessage ref="MyMessage" /> |
| | | <MyMessage ref="MyMessage" v-if="openMessage" /> |
| | | <MyLink ref="MyLink" v-if="openLinkAdd" /> |
| | | |
| | | <div class="blog-drawer"> |
| | | <a-drawer placement="left" :closable="false" :visible="visibleDrawer" :getContainer="'body'" |
| | |
| | | </a-drawer> |
| | | </div> |
| | | |
| | | <div class="blog-main "> |
| | | <div class="blog-main"> |
| | | |
| | | <a-row> |
| | | <keep-alive> |
| | |
| | | |
| | | <a-col v-bind="colApiRight"> |
| | | <tool @showModal="showModal" @showPreview="showPreview" @showScreen="showScreen" |
| | | @showMessage="showMessage" /> |
| | | @showMessage="showMessage" @addLink="addLink" /> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | |
| | | import MyModal from "../group/MyModal.vue" |
| | | import MyPreviewModal from "../group/MyPreviewModal.vue" |
| | | import MyMessage from "../group/MyMessage.vue" |
| | | import MyLink from "../group/MyLink.vue" |
| | | |
| | | import screenConfig from "../../config/screenConfig.js" |
| | | |
| | |
| | | MyModal, |
| | | MyPreviewModal, |
| | | MyMessage, |
| | | MyLink, |
| | | }, |
| | | methods: { |
| | | showScreen() { |
| | |
| | | } |
| | | this.scale = !this.scale; |
| | | }, |
| | | addLink() { |
| | | this.openLinkAdd = true |
| | | this.$nextTick(function() { |
| | | this.$refs.MyLink.showModal(); |
| | | }) |
| | | }, |
| | | showModal() { |
| | | this.$refs.myModal.showModal(); |
| | | }, |
| | |
| | | this.$refs.MyPreviewModal.showModal(); |
| | | }, |
| | | showMessage() { |
| | | this.$refs.MyMessage.showModal(); |
| | | this.openMessage = true |
| | | this.$nextTick(function() { |
| | | this.$refs.MyMessage.showModal(); |
| | | }) |
| | | }, |
| | | afterVisibleChange(val) {}, |
| | | showDrawer() { |
| | |
| | | colMini: screenConfig.colMini, |
| | | colApiLeft: screenConfig.colApiLeft, |
| | | colApiRight: screenConfig.colApiRight, |
| | | colApiMain: screenConfig.colApiMain |
| | | colApiMain: screenConfig.colApiMain, |
| | | openLinkAdd: false, |
| | | openMessage: false, |
| | | } |
| | | } |
| | | }, |
| | | |
| | | } |
| | | </script> |
| | | |