cleanup code and examples
This commit is contained in:
1 parent
029255c7ac
commit
bbd49bb37c
7 files changed
+120
-71
No files matched your search
@@ -42,6 +42,9 @@ pub(crate) fn Button<'a>(cx: Scope<'a, ButtonProps>) -> Element<'a> {
|
||||
width: "{width}",
|
||||
height: "{height}",
|
||||
border_style: "{border_style}",
|
||||
flex_direction: "row",
|
||||
align_items: "center",
|
||||
justify_content: "center",
|
||||
onclick: move |_| {
|
||||
update();
|
||||
},
|
||||
|
||||
@@ -206,26 +206,6 @@ pub(crate) fn NumbericInput<'a>(cx: Scope<'a, NumbericInputProps>) -> Element<'a
|
||||
}
|
||||
|
||||
"{text_after_second_cursor}"
|
||||
|
||||
div{
|
||||
background_color: "rgba(255, 255, 255, 50%)",
|
||||
color: "black",
|
||||
Input{
|
||||
r#type: "button",
|
||||
onclick: move |_| {
|
||||
decrease();
|
||||
}
|
||||
value: "<",
|
||||
}
|
||||
" "
|
||||
Input{
|
||||
r#type: "button",
|
||||
onclick: move |_| {
|
||||
increase();
|
||||
}
|
||||
value: ">",
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -88,7 +88,6 @@ pub(crate) fn Password<'a>(cx: Scope<'a, PasswordProps>) -> Element<'a> {
|
||||
width: "{width}",
|
||||
height: "{height}",
|
||||
border_style: "{border}",
|
||||
align_items: "left",
|
||||
|
||||
onkeydown: move |k| {
|
||||
if k.key()== Key::Enter {
|
||||
|
||||
@@ -84,9 +84,6 @@ pub(crate) fn TextBox<'a>(cx: Scope<'a, TextBoxProps>) -> Element<'a> {
|
||||
width: "{width}",
|
||||
height: "{height}",
|
||||
border_style: "{border}",
|
||||
flex_direction: "row",
|
||||
align_items: "center",
|
||||
justify_content: "center",
|
||||
|
||||
onkeydown: move |k| {
|
||||
if k.key() == Key::Enter {
|
||||
|
||||
Reference in new issue
Block a user