diff --git a/src/plugins/miaoDirectory/components/miaoDirectoryTop.vue b/src/plugins/miaoDirectory/components/miaoDirectoryTop.vue index 8205ce1..7aa45a8 100644 --- a/src/plugins/miaoDirectory/components/miaoDirectoryTop.vue +++ b/src/plugins/miaoDirectory/components/miaoDirectoryTop.vue @@ -8,9 +8,16 @@ class="container-top-colorfulBar" :style="{ backgroundColor: props.color }">
-
- - + +
+ @@ -23,8 +30,8 @@
{{ dir.name }}
- -
+
+
+ + diff --git a/src/plugins/miaoDirectory/miaoDirectory.vue b/src/plugins/miaoDirectory/miaoDirectory.vue index 00558a9..dc44668 100644 --- a/src/plugins/miaoDirectory/miaoDirectory.vue +++ b/src/plugins/miaoDirectory/miaoDirectory.vue @@ -7,6 +7,7 @@
('') const showDirs = ref(true) const showFiles = ref(true) const miaoDirectoryItemRef = ref() +const miaoDirectoryTopRef = ref>() const miaoAlertTip = ref>() class SelectedItem { @@ -297,6 +299,16 @@ const setCurrentDirectory = async (virtualDirectory: VirtualDirectory) => { top: 0, behavior: 'instant' }) + // miaoDirectoryTopRef.value && + // miaoDirectoryTopRef.value.scrollTo({ + // top: 0, + // behavior: 'instant' + // }) + miaoDirectoryTopRef.value?.scrollTo({ + top: 0, + left: 999, + behavior: 'instant' + }) }) } currentDirectories.value[0] = virtualDirectory diff --git a/src/styles/default.scss b/src/styles/default.scss index f4cd164..3f52eb4 100644 --- a/src/styles/default.scss +++ b/src/styles/default.scss @@ -2,91 +2,91 @@ background-color: aliceblue; } -html, -body, -div, -span, -applet, -object, -iframe, -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -a, -abbr, -acronym, -address, -big, -cite, -code, -del, -dfn, -em, -img, -ins, -kbd, -q, -s, -samp, -small, -strike, -strong, -sub, -sup, -tt, -var, -b, -u, -i, -center, -dl, -dt, -dd, -ol, -ul, -li, -fieldset, -form, -label, -legend, -table, -caption, -tbody, -tfoot, -thead, -tr, -th, -td, -article, -aside, -canvas, -details, -embed, -figure, -figcaption, -footer, -header, -hgroup, -menu, -nav, -output, -ruby, -section, -summary, -time, -mark, -audio, -video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - vertical-align: baseline; - box-sizing: border-box; -} +// html, +// body, +// div, +// span, +// applet, +// object, +// iframe, +// h1, +// h2, +// h3, +// h4, +// h5, +// h6, +// p, +// blockquote, +// pre, +// a, +// abbr, +// acronym, +// address, +// big, +// cite, +// code, +// del, +// dfn, +// em, +// img, +// ins, +// kbd, +// q, +// s, +// samp, +// small, +// strike, +// strong, +// sub, +// sup, +// tt, +// var, +// b, +// u, +// i, +// center, +// dl, +// dt, +// dd, +// ol, +// ul, +// li, +// fieldset, +// form, +// label, +// legend, +// table, +// caption, +// tbody, +// tfoot, +// thead, +// tr, +// th, +// td, +// article, +// aside, +// canvas, +// details, +// embed, +// figure, +// figcaption, +// footer, +// header, +// hgroup, +// menu, +// nav, +// output, +// ruby, +// section, +// summary, +// time, +// mark, +// audio, +// video { +// margin: 0; +// padding: 0; +// border: 0; +// font-size: 100%; +// vertical-align: baseline; +// box-sizing: border-box; +// }