Feat: solve some issues regarding listeners
This commit is contained in:
1 parent
6084fbcd11
commit
dfaf5adee1
22 files changed
+192
-168
No files matched your search
@@ -23,6 +23,7 @@ wry = "0.11.0"
|
||||
|
||||
|
||||
[dev-dependencies]
|
||||
dioxus-html = { path = "../html" }
|
||||
tide = "0.15.0"
|
||||
tide-websockets = "0.3.0"
|
||||
async-std = { version = "1.9.0", features = ["attributes"] }
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
use dioxus_core as dioxus;
|
||||
use dioxus_core::prelude::*;
|
||||
use dioxus_html as dioxus_elements;
|
||||
|
||||
fn main() {
|
||||
dioxus_desktop::launch(App, |f| f.with_maximized(true)).expect("Failed");
|
||||
@@ -13,13 +14,3 @@ static App: FC<()> = |cx| {
|
||||
}
|
||||
))
|
||||
};
|
||||
|
||||
mod dioxus_elements {
|
||||
use super::*;
|
||||
pub struct div;
|
||||
impl DioxusElement for div {
|
||||
const TAG_NAME: &'static str = "div";
|
||||
const NAME_SPACE: Option<&'static str> = None;
|
||||
}
|
||||
pub trait GlobalAttributes {}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
//! webview dom
|
||||
|
||||
use dioxus_core::{DomEdit, RealDom, RealDomNode, ScopeId};
|
||||
use DomEdit::*;
|
||||
use dioxus_core::{DomEdit, RealDom};
|
||||
|
||||
pub struct WebviewRegistry {}
|
||||
|
||||
@@ -35,9 +34,4 @@ impl<'bump> RealDom<'bump> for WebviewDom<'bump> {
|
||||
todo!()
|
||||
// self.edits.push(PushRoot { root });
|
||||
}
|
||||
|
||||
fn request_available_node(&mut self) -> RealDomNode {
|
||||
self.node_counter += 1;
|
||||
RealDomNode::from_u64(self.node_counter)
|
||||
}
|
||||
}
|
||||
@@ -8,9 +8,7 @@
|
||||
this.stack = [root];
|
||||
this.listeners = {};
|
||||
this.lastNodeWasText = false;
|
||||
this.nodes = {
|
||||
0: root
|
||||
};
|
||||
this.nodes = [];
|
||||
}
|
||||
|
||||
top() {
|
||||
|
||||
Reference in new issue
Block a user