Skip to content

Commit c5abe75

Browse files
committed
perf: change >>> ::v-deep
1 parent 534cd5b commit c5abe75

File tree

3 files changed

+41
-23
lines changed

3 files changed

+41
-23
lines changed

src/components/DragSelect/index.vue

+12-8
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

+17-12
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

+12-3
Original file line numberDiff line numberDiff line change
@@ -213,28 +213,37 @@ export default {
213213
}
214214
</script>
215215

216-
<style scoped>
216+
<style lang="scss" scoped>
217217
.tinymce-container {
218218
position: relative;
219219
line-height: normal;
220220
}
221-
.tinymce-container>>>.mce-fullscreen {
222-
z-index: 10000;
221+
222+
.tinymce-container {
223+
::v-deep {
224+
.mce-fullscreen {
225+
z-index: 10000;
226+
}
227+
}
223228
}
229+
224230
.tinymce-textarea {
225231
visibility: hidden;
226232
z-index: -1;
227233
}
234+
228235
.editor-custom-btn-container {
229236
position: absolute;
230237
right: 4px;
231238
top: 4px;
232239
/*z-index: 2005;*/
233240
}
241+
234242
.fullscreen .editor-custom-btn-container {
235243
z-index: 10000;
236244
position: fixed;
237245
}
246+
238247
.editor-upload-btn {
239248
display: inline-block;
240249
}

0 commit comments

Comments
 (0)