mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
fix: Improve bisector again
This commit is contained in:
parent
6ad8b3e27b
commit
33faf3d421
@ -1,13 +1,17 @@
|
||||
<template>
|
||||
<div class="bisector-dialog-content-container">
|
||||
<div class="bisector-dialog-content-text">
|
||||
组件二等分进行中,预计剩余{{ rouge }}轮次,请确认当前情况:
|
||||
组件二等分进行中,预计剩余
|
||||
<b style="color: var(--theme-color)">{{ rouge }} </b>轮次,请确认当前情况:
|
||||
</div>
|
||||
<div class="bisector-dialog-button-group">
|
||||
<VButton @click="onGood">正常</VButton>
|
||||
<VButton @click="onBad">不正常</VButton>
|
||||
<VButton type="primary" @click="onAbort">终止</VButton>
|
||||
</div>
|
||||
<div class="bisector-dialog-content-text weak">
|
||||
*可以点击×号关闭对话框,刷新页面后,会再次询问
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -40,10 +44,19 @@ export default Vue.extend({
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.bisector-dialog-content-container {
|
||||
padding: 12px;
|
||||
padding: 0 16px;
|
||||
|
||||
.bisector-dialog-content-text {
|
||||
&.weak {
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
.bisector-dialog-content-text,
|
||||
.bisector-dialog-button-group {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.bisector-dialog-button-group {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
|
||||
@ -33,7 +33,7 @@ export function* bisectLeft<O>(
|
||||
high,
|
||||
mid,
|
||||
slice: data.slice(low, mid),
|
||||
rouge: ~~Math.log2(high - low),
|
||||
rouge: Math.trunc(Math.log2(high - low)),
|
||||
}
|
||||
|
||||
if (seeingBad) {
|
||||
@ -48,7 +48,7 @@ export function* bisectLeft<O>(
|
||||
high,
|
||||
mid,
|
||||
slice: data.slice(low, mid),
|
||||
rouge: ~~Math.log2(high - low),
|
||||
rouge: Math.trunc(Math.log2(high - low)),
|
||||
target: data[low],
|
||||
}
|
||||
}
|
||||
@ -69,7 +69,7 @@ export function* bisectRight<O>(
|
||||
high,
|
||||
mid,
|
||||
slice: data.slice(mid, high),
|
||||
rouge: ~~Math.log2(high - low),
|
||||
rouge: Math.trunc(Math.log2(high - low)),
|
||||
}
|
||||
|
||||
if (seeingBad) {
|
||||
@ -84,7 +84,7 @@ export function* bisectRight<O>(
|
||||
high,
|
||||
mid,
|
||||
slice: data.slice(low, mid),
|
||||
rouge: ~~Math.log2(high - low),
|
||||
rouge: Math.trunc(Math.log2(high - low)),
|
||||
target: data[low],
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user