mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
[feat] improve embed event dialog
This commit is contained in:
parent
89b8a7a9c8
commit
3c7914a115
1 changed files with 12 additions and 3 deletions
|
@ -1,11 +1,15 @@
|
|||
<template lang='pug'>
|
||||
el-row
|
||||
el-col(:span='12')
|
||||
el-row(:gutter='10')
|
||||
el-col(:span='12' :xs='24')
|
||||
el-alert.mb-1.mt-1(type='info' show-icon) {{$t('common.embed_help')}}
|
||||
el-input(v-model='code')
|
||||
el-col(:span='12' v-html='code')
|
||||
el-button(slot='append' v-clipboard:copy='code' v-clipboard:success='copyLink'
|
||||
plain type="primary" icon='el-icon-document') {{$t("common.copy")}}
|
||||
el-col.mt-2(:span='12' :xs='24' v-html='code')
|
||||
</template>
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
import { Message } from 'element-ui'
|
||||
|
||||
export default {
|
||||
name: 'embedEvent',
|
||||
|
@ -18,6 +22,11 @@ export default {
|
|||
const code = `<iframe ${style} src="${src}"></iframe>`
|
||||
return code
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
copyLink () {
|
||||
Message({ message: this.$t('common.copied'), type: 'success' })
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue