From dd784cbdf6891bcdfc4ed150970037042894f03a Mon Sep 17 00:00:00 2001 From: Coulomb_G <965145921@qq.com> Date: Sat, 31 Aug 2019 00:21:47 +0800 Subject: [PATCH] https://search.bilibili.com/bangumi --- bilibili-evolved.preview.user.js | 2 +- src/style/dark/dark-slice-8.css | 20 ++++++++++++++------ src/video/download-video/v-dropdown.vue.ts | 17 +++++++++++++++++ 3 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 src/video/download-video/v-dropdown.vue.ts diff --git a/bilibili-evolved.preview.user.js b/bilibili-evolved.preview.user.js index e17b4edbf..1707cd2c4 100644 --- a/bilibili-evolved.preview.user.js +++ b/bilibili-evolved.preview.user.js @@ -731,7 +731,7 @@ class Observer { } videoChangeCallbacks.push(callback) } -} +} class SpinQuery { constructor (query, condition, action, failed) { diff --git a/src/style/dark/dark-slice-8.css b/src/style/dark/dark-slice-8.css index 464586d6a..3b79116d4 100644 --- a/src/style/dark/dark-slice-8.css +++ b/src/style/dark/dark-slice-8.css @@ -112,7 +112,8 @@ li.danmaku-info-row.bpui-selecting, .hot-recom-module .random-change, .user-item .attention-btn.followed, .user-item .attention-btn.followed:hover, -.flow-loader .activity-item .info .type +.flow-loader .activity-item .info .type, +.bangumi-item .right-info .headline .bangumi-label { background-color: #444 !important; } @@ -224,7 +225,9 @@ li.danmaku-info-row.bpui-selecting, .rank-wrap .preview .txt span, .article-card .r-con .up, .article-card .r-con .count, -#all-list .user-item .up-info>span +#all-list .user-item .up-info>span, +.bangumi-item .right-info .intros .label, +.bangumi-item .right-info .intros .value { color: #aaa !important; } @@ -389,7 +392,9 @@ li.danmaku-info-row.bpui-selecting, .user-item .up-videos .video-more, .user-item .attention-btn.followed, .user-item .attention-btn.followed:hover, -.flow-loader .activity-item .info .type +.flow-loader .activity-item .info .type, +.bangumi-item .right-info .headline .title, +.bangumi-item .right-info .headline .bangumi-label { color: #eee !important; } @@ -458,7 +463,8 @@ li.danmaku-info-row.bpui-selecting, .flow-loader .activity-item, .flow-loader .user-item, .flow-loader .video-item.matrix, -.flow-loader .activity-item .info .type +.flow-loader .activity-item .info .type, +.bangumi-item .right-info .headline .bangumi-label { border-color: transparent !important; } @@ -480,7 +486,8 @@ li.danmaku-info-row.bpui-selecting, .round-corner .international-footer .link-box .link-item, .van-popper[x-placement^=bottom] .popper__arrow:after, .van-popper[x-placement^=top] .popper__arrow:after, -#all-list .mixin-list ul:not(:last-child) +#all-list .mixin-list ul:not(:last-child), +.bili-search .bangumi-item { border-color: #444 !important } @@ -766,7 +773,8 @@ li.danmaku-info-row.bpui-selecting, #all-list .user-item .title:hover, .user-item .up-videos .video-item .video-desc:hover, .video-item.matrix .title:hover, -.user-item .up-videos .video-more:hover +.user-item .up-videos .video-more:hover, +.bangumi-item .right-info .headline .title:hover { color: var(--theme-color) !important; } diff --git a/src/video/download-video/v-dropdown.vue.ts b/src/video/download-video/v-dropdown.vue.ts new file mode 100644 index 000000000..7ad7c0bdd --- /dev/null +++ b/src/video/download-video/v-dropdown.vue.ts @@ -0,0 +1,17 @@ +export default { + props: ['items', 'value'], + data() { + return { + dropdownOpen: false + } + }, + methods: { + toggleDropdown() { + this.dropdownOpen = !this.dropdownOpen + }, + select(item: string) { + this.$emit('update:value', item) + this.$emit('change', item) + } + } +} \ No newline at end of file