Fixed: #140 || drag the image to app will be opened by Chrome & gallery close button

This commit is contained in:
PiEgg
2018-11-25 23:53:26 +08:00
parent 8a8b97a937
commit 9c12fb6ede
6 changed files with 20 additions and 3 deletions

View File

@@ -22,8 +22,10 @@
</div>
</template>
<script>
import mixin from './mixin'
export default {
name: 'rename-page',
mixins: [mixin],
data () {
return {
fileName: '',

View File

@@ -136,9 +136,11 @@ import pkg from '../../../package.json'
import keyDetect from 'utils/key-binding'
import { remote } from 'electron'
import db from '../../datastore'
import mixin from './mixin'
const { Menu, dialog, BrowserWindow } = remote
export default {
name: 'setting-page',
mixins: [mixin],
data () {
const customLinkRule = (rule, value, callback) => {
if (!/\$url/.test(value)) {

View File

@@ -76,8 +76,10 @@
<script>
import gallerys from 'vue-gallery'
import pasteStyle from '../../../main/utils/pasteTemplate'
import mixin from '../mixin'
export default {
name: 'gallery',
mixins: [mixin],
components: {
gallerys
},
@@ -150,9 +152,18 @@ export default {
},
zoomImage (index) {
this.idx = index
this.changeZIndexForGallery(true)
},
changeZIndexForGallery (isOpen) {
if (isOpen) {
document.querySelector('.main-content.el-row').style.zIndex = 101
} else {
document.querySelector('.main-content.el-row').style.zIndex = 10
}
},
handleClose () {
this.idx = null
this.changeZIndexForGallery(false)
},
copy (url) {
const style = this.$db.read().get('settings.pasteStyle').value() || 'markdown'
@@ -371,9 +382,6 @@ export default {
&.el-icon-delete
&:hover
color #F15140
.blueimp-gallery
.title
top 30px
.handle-bar
color #ddd
.pic-bed-item

View File

@@ -81,8 +81,10 @@
<script>
import ConfigForm from '../ConfigForm'
import { debounce } from 'lodash'
import mixin from '../mixin'
export default {
name: 'plugin',
mixins: [mixin],
components: {
ConfigForm
},

View File

@@ -23,9 +23,11 @@
</template>
<script>
import mixin from './mixin'
import pasteTemplate from '../../main/utils/pasteTemplate'
export default {
name: 'tray-page',
mixins: [mixin],
data () {
return {
files: [],