2 files modified
1 files added
New file |
| | |
| | | <template> |
| | | <div class="myModal"> |
| | | <a-modal v-model="visible" title="编辑预览" on-ok="handleOk" width="90%" :footer="null" |
| | | :bodyStyle="{'overflow':'overlay','width': '100%','height': '100%'}"> |
| | | <div style="display: flex;"> |
| | | <a-textarea style="height: 750px;min-width: 50%" v-model="text" :rows="4" /> |
| | | <div class="markdown-body article-detail" style="min-width: 50%;"> |
| | | <vue-markdown :source="text"></vue-markdown> |
| | | </div> |
| | | </div> |
| | | </a-modal> |
| | | </div> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import VueMarkdown from 'vue-markdown' |
| | | |
| | | import md5 from 'js-md5'; |
| | | export default { |
| | | components: { |
| | | VueMarkdown |
| | | }, |
| | | data() { |
| | | return { |
| | | visible: false, |
| | | text: "### 长安古意 \r* 十里平湖霜满天 \r* 寸寸青丝愁华年 \r* 对月形单望相护 \r* 只羡鸳鸯不羡仙 ", |
| | | } |
| | | }, |
| | | methods: { |
| | | getCalendarContainer(trigger) { |
| | | return this.$refs.myModal; |
| | | }, |
| | | showModal() { |
| | | this.visible = true; |
| | | }, |
| | | handleOk(e) { |
| | | console.log(111); |
| | | }, |
| | | |
| | | handleCancel(e) { |
| | | this.visible = false; |
| | | }, |
| | | |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | |
| | | <!-- <a-button @click="showDrawer2"> |
| | | 抽屉2 |
| | | </a-button> --> |
| | | <a-button @click="showPreview"> |
| | | 预览 |
| | | <a-icon type="youtube" /> |
| | | </a-button> |
| | | <a-button @click="showModal"> |
| | | 日志 |
| | | <a-icon type="plus-circle" /> |
| | |
| | | showModal() { |
| | | this.$emit('showModal') |
| | | }, |
| | | showPreview() { |
| | | this.$emit('showPreview') |
| | | }, |
| | | showScreen() { |
| | | this.$emit('showScreen') |
| | | if (this.screen) { |
| | |
| | | <template> |
| | | <div> |
| | | <MyModal ref="myModal"></MyModal> |
| | | <MyPreviewModal ref="MyPreviewModal"></MyPreviewModal> |
| | | |
| | | <div class="blog-drawer"> |
| | | <a-drawer placement="left" :closable="false" :visible="visible1" :getContainer="'body'" |
| | |
| | | |
| | | <a-col v-bind="colApiRight" ref="myDrawer"> |
| | | <!-- <boxRight></boxRight> --> |
| | | <tool @showModal="showModal" @showDrawer1="showDrawer1" @showScreen="showScreen"></tool> |
| | | <tool @showModal="showModal" @showPreview="showPreview" @showDrawer1="showDrawer1" |
| | | @showScreen="showScreen"></tool> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | |
| | | import articleListScorll from "../group/articleListScorll.vue" |
| | | import tool from "../group/tool.vue" |
| | | import MyModal from "../group/MyModal.vue" |
| | | import MyPreviewModal from "../group/MyPreviewModal.vue" |
| | | |
| | | export default { |
| | | |
| | |
| | | articleListScorll, |
| | | tool, |
| | | MyModal, |
| | | MyPreviewModal, |
| | | }, |
| | | methods: { |
| | | showScreen() { |
| | |
| | | }, |
| | | showModal() { |
| | | this.$refs.myModal.showModal(); |
| | | }, |
| | | showPreview() { |
| | | this.$refs.MyPreviewModal.showModal(); |
| | | }, |
| | | afterVisibleChange(val) {}, |
| | | showDrawer1() { |
| | |
| | | </script> |
| | | |
| | | <style lang="less"> |
| | | |
| | | |
| | | @font-face { |
| | | font-family: 'HYTangMeiRen'; |
| | | // font-display: swap; |