File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compose-multiplatform-common/src/jsMain/kotlin/com/huanshankeji/compose/layout Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.huanshankeji.compose.layout
22
33import androidx.compose.runtime.Composable
44import com.huanshankeji.compose.ui.ModifierOrAttrs
5+ import com.huanshankeji.compose.ui.toAttrs
56import org.jetbrains.compose.web.dom.ElementScope
67import org.w3c.dom.HTMLDivElement
78
@@ -15,7 +16,6 @@ actual interface ColumnScope {
1516
1617@Composable
1718actual fun Column (modifierOrAttrs : ModifierOrAttrs <ColumnElement >, content : @Composable ColumnScope .() -> Unit ) =
18- // TODO: `modifierOrAttrs` not used yet
19- com.huanshankeji.compose.web.Column {
19+ com.huanshankeji.compose.web.Column (modifierOrAttrs.toAttrs()) {
2020 ColumnScope .Impl (this ).content()
2121 }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.huanshankeji.compose.layout
22
33import androidx.compose.runtime.Composable
44import com.huanshankeji.compose.ui.ModifierOrAttrs
5+ import com.huanshankeji.compose.ui.toAttrs
56import org.jetbrains.compose.web.dom.ElementScope
67import org.w3c.dom.HTMLDivElement
78
@@ -15,7 +16,6 @@ actual interface RowScope {
1516
1617@Composable
1718actual fun Row (modifierOrAttrs : ModifierOrAttrs <RowElement >, content : @Composable RowScope .() -> Unit ) =
18- // TODO: `modifierOrAttrs` not used yet
19- com.huanshankeji.compose.web.Row {
19+ com.huanshankeji.compose.web.Row (modifierOrAttrs.toAttrs()) {
2020 RowScope .Impl (this ).content()
2121 }
You can’t perform that action at this time.
0 commit comments