|
@@ -319,9 +319,9 @@ async function processSplitConfig() {
|
|
|
// 要转变为 [[0, 0.3]] | [[0, 0.55], [0.45, 0.55]] | [[0, 0.35], [0.33, 0.35], [0.66, 0.35]]
|
|
|
const splitConfigPairs = store.setting.splitConfig
|
|
|
.map<[number, number]>((v, index, ary) =>
|
|
|
- index % 2 === 0 ? [v, ary[index + 1]] : [0, 0]
|
|
|
+ index % 2 === 0 ? [v, ary[index + 1]] : [-1, -1]
|
|
|
)
|
|
|
- .filter((v) => v[0] > 0 && v[1] > 0);
|
|
|
+ .filter((v) => v[0] > -1);
|
|
|
|
|
|
// 最大的 splitConfig 的宽度
|
|
|
const maxSplitConfig = Math.max(
|