Skip to content

Commit 6ffa7c6

Browse files
committed
amis component add api Value and Schema
1 parent 91976ac commit 6ffa7c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/comp/amis.go

+8
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ func (a Amis) set(key string, value any) Amis {
1313
return a
1414
}
1515

16+
func (a Amis) Schema(value any) Amis {
17+
return a.set("schema", value)
18+
}
19+
1620
func (a Amis) Name(value string) Amis {
1721
return a.set("name", value)
1822
}
1923

2024
func (a Amis) Props(value any) Amis {
2125
return a.set("props", value)
2226
}
27+
28+
func (a Amis) Value(value any) Amis {
29+
return a.set("value", value)
30+
}

0 commit comments

Comments
 (0)