Skip to content

Commit

Permalink
perf: change >>> ::v-deep
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Jun 8, 2020
1 parent 534cd5b commit c5abe75
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 23 deletions.
20 changes: 12 additions & 8 deletions src/components/DragSelect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,18 @@ export default {
}
</script>

<style scoped>
.drag-select >>> .sortable-ghost {
opacity: .8;
color: #fff!important;
background: #42b983!important;
}
<style lang="scss" scoped>
.drag-select {
::v-deep {
.sortable-ghost {
opacity: .8;
color: #fff !important;
background: #42b983 !important;
}
.drag-select >>> .el-tag {
cursor: pointer;
.el-tag {
cursor: pointer;
}
}
}
</style>
29 changes: 17 additions & 12 deletions src/components/JsonEditor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,24 @@ export default {
}
</script>

<style scoped>
.json-editor{
<style lang="scss" scoped>
.json-editor {
height: 100%;
position: relative;
}
.json-editor >>> .CodeMirror {
height: auto;
min-height: 300px;
}
.json-editor >>> .CodeMirror-scroll{
min-height: 300px;
}
.json-editor >>> .cm-s-rubyblue span.cm-string {
color: #F08047;
::v-deep {
.CodeMirror {
height: auto;
min-height: 300px;
}
.CodeMirror-scroll {
min-height: 300px;
}
.cm-s-rubyblue span.cm-string {
color: #F08047;
}
}
}
</style>
15 changes: 12 additions & 3 deletions src/components/Tinymce/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,28 +213,37 @@ export default {
}
</script>

<style scoped>
<style lang="scss" scoped>
.tinymce-container {
position: relative;
line-height: normal;
}
.tinymce-container>>>.mce-fullscreen {
z-index: 10000;
.tinymce-container {
::v-deep {
.mce-fullscreen {
z-index: 10000;
}
}
}
.tinymce-textarea {
visibility: hidden;
z-index: -1;
}
.editor-custom-btn-container {
position: absolute;
right: 4px;
top: 4px;
/*z-index: 2005;*/
}
.fullscreen .editor-custom-btn-container {
z-index: 10000;
position: fixed;
}
.editor-upload-btn {
display: inline-block;
}
Expand Down

0 comments on commit c5abe75

Please sign in to comment.