Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41c210e

Browse files
committed
perf: change >>> ::v-deep
1 parent 9b7e60c commit 41c210e

File tree

3 files changed

+41
-23
lines changed

3 files changed

+41
-23
lines changed

src/components/DragSelect/index.vue

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,18 @@ export default {
4848
}
4949
</script>
5050

51-
<style scoped>
52-
.drag-select >>> .sortable-ghost {
53-
opacity: .8;
54-
color: #fff!important;
55-
background: #42b983!important;
56-
}
51+
<style lang="scss" scoped>
52+
.drag-select {
53+
::v-deep {
54+
.sortable-ghost {
55+
opacity: .8;
56+
color: #fff !important;
57+
background: #42b983 !important;
58+
}
5759
58-
.drag-select >>> .el-tag {
59-
cursor: pointer;
60+
.el-tag {
61+
cursor: pointer;
62+
}
63+
}
6064
}
6165
</style>

src/components/JsonEditor/index.vue

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,24 @@ export default {
5454
}
5555
</script>
5656

57-
<style scoped>
58-
.json-editor{
57+
<style lang="scss" scoped>
58+
.json-editor {
5959
height: 100%;
6060
position: relative;
61-
}
62-
.json-editor >>> .CodeMirror {
63-
height: auto;
64-
min-height: 300px;
65-
}
66-
.json-editor >>> .CodeMirror-scroll{
67-
min-height: 300px;
68-
}
69-
.json-editor >>> .cm-s-rubyblue span.cm-string {
70-
color: #F08047;
61+
62+
::v-deep {
63+
.CodeMirror {
64+
height: auto;
65+
min-height: 300px;
66+
}
67+
68+
.CodeMirror-scroll {
69+
min-height: 300px;
70+
}
71+
72+
.cm-s-rubyblue span.cm-string {
73+
color: #F08047;
74+
}
75+
}
7176
}
7277
</style>

src/components/Tinymce/index.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,28 +220,37 @@ export default {
220220
}
221221
</script>
222222

223-
<style scoped>
223+
<style lang="scss" scoped>
224224
.tinymce-container {
225225
position: relative;
226226
line-height: normal;
227227
}
228-
.tinymce-container>>>.mce-fullscreen {
229-
z-index: 10000;
228+
229+
.tinymce-container {
230+
::v-deep {
231+
.mce-fullscreen {
232+
z-index: 10000;
233+
}
234+
}
230235
}
236+
231237
.tinymce-textarea {
232238
visibility: hidden;
233239
z-index: -1;
234240
}
241+
235242
.editor-custom-btn-container {
236243
position: absolute;
237244
right: 4px;
238245
top: 4px;
239246
/*z-index: 2005;*/
240247
}
248+
241249
.fullscreen .editor-custom-btn-container {
242250
z-index: 10000;
243251
position: fixed;
244252
}
253+
245254
.editor-upload-btn {
246255
display: inline-block;
247256
}

0 commit comments

Comments
 (0)