-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b55fa8
commit dfb4681
Showing
2 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<template> | ||
<div class="contextmenu" :style="contextmenuStyle"> | ||
<a-card> | ||
<a-card-grid class="grid" @click="up"> | ||
上移一层 | ||
</a-card-grid> | ||
<a-card-grid class="grid" @click="down"> | ||
下移一层 | ||
</a-card-grid> | ||
<a-card-grid class="grid" @click="setData"> | ||
数据设置 | ||
</a-card-grid> | ||
</a-card> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "index", | ||
props: { | ||
contextmenuStyle: { | ||
type: Object, | ||
default: null | ||
} | ||
}, | ||
data() { | ||
return { | ||
} | ||
}, | ||
methods: { | ||
up(e) { | ||
e.stopPropagation(); | ||
e.preventDefault(); | ||
}, | ||
down(e) { | ||
e.stopPropagation(); | ||
e.preventDefault(); | ||
}, | ||
setData(e) { | ||
e.stopPropagation(); | ||
e.preventDefault(); | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style scoped lang="less"> | ||
.contextmenu { | ||
position: fixed; | ||
left: -99999px; | ||
width: 150px; | ||
box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, 0.15) !important; | ||
.grid { | ||
width: 100%; | ||
padding: 8px 8px 8px 20px; | ||
cursor: pointer; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<a-modal v-model="editorVisible" title="Basic Modal"> | ||
<p>Some contents...</p> | ||
<p>Some contents...</p> | ||
<p>Some contents...</p> | ||
</a-modal> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "MonacoEditor", | ||
props: { | ||
editorVisible: { | ||
type: Boolean, | ||
default: false | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
</style> |