Skip to content

Commit b02467f

Browse files
committed
refactor: 增加默认值
1 parent 087d1fe commit b02467f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/Layout/LayoutSplitebar.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function init(id) {
88

99
const min = parseFloat(el.getAttribute("data-bb-min") ?? "0");
1010
const max = parseFloat(el.getAttribute("data-bb-max") ?? "0");
11-
const selector = el.getAttribute("data-bb-selector");
11+
const selector = el.getAttribute("data-bb-selector") ?? ".layout";
1212
const section = document.querySelector(selector);
1313
const bar = el.querySelector(".layout-splitebar-body");
1414
let originX = 0;

0 commit comments

Comments
 (0)