update with AttributeValue
This commit is contained in:
1 parent
f9713b2fe9
commit
04807a1ef7
1 file changed
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
use dioxus_core::{Attribute, NodeFactory, VNode};
|
use dioxus_core::{Attribute, AttributeValue, NodeFactory, VNode};
|
||||||
use dioxus_rsx::{BodyNode, CallBody, ElementAttr};
|
use dioxus_rsx::{BodyNode, CallBody, ElementAttr};
|
||||||
use quote::ToTokens;
|
use quote::ToTokens;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
@@ -127,7 +127,7 @@ fn build_node<'a>(
|
|||||||
let value = bump.alloc(value.resolve(&ctx.captured));
|
let value = bump.alloc(value.resolve(&ctx.captured));
|
||||||
attributes.push(Attribute {
|
attributes.push(Attribute {
|
||||||
name,
|
name,
|
||||||
value,
|
value: AttributeValue::Text(value),
|
||||||
is_static: true,
|
is_static: true,
|
||||||
is_volatile: false,
|
is_volatile: false,
|
||||||
namespace,
|
namespace,
|
||||||
@@ -158,7 +158,7 @@ fn build_node<'a>(
|
|||||||
let value = bump.alloc(resulting_value.clone());
|
let value = bump.alloc(resulting_value.clone());
|
||||||
attributes.push(Attribute {
|
attributes.push(Attribute {
|
||||||
name,
|
name,
|
||||||
value,
|
value: AttributeValue::Text(value),
|
||||||
is_static: true,
|
is_static: true,
|
||||||
is_volatile: false,
|
is_volatile: false,
|
||||||
namespace,
|
namespace,
|
||||||
|
|||||||
Reference in new issue
Block a user