Ahora Block es un componente base de PageTop

This commit is contained in:
Manuel Cillero 2023-06-06 22:53:43 +02:00
parent cb735cf0fa
commit 35c221f1f8
5 changed files with 12 additions and 11 deletions

View file

@ -11,8 +11,6 @@ mod paragraph;
pub use paragraph::{Paragraph, ParagraphDisplay, COMPONENT_PARAGRAPH}; pub use paragraph::{Paragraph, ParagraphDisplay, COMPONENT_PARAGRAPH};
mod anchor; mod anchor;
pub use anchor::{Anchor, AnchorTarget, AnchorType, COMPONENT_ANCHOR}; pub use anchor::{Anchor, AnchorTarget, AnchorType, COMPONENT_ANCHOR};
mod block;
pub use block::{Block, COMPONENT_BLOCK};
mod image; mod image;
pub use image::{Image, COMPONENT_IMAGE}; pub use image::{Image, COMPONENT_IMAGE};

View file

@ -1,2 +1,5 @@
mod l10n; mod l10n;
pub use l10n::{L10n, COMPONENT_L10N}; pub use l10n::{L10n, COMPONENT_L10N};
mod block;
pub use block::{Block, COMPONENT_BLOCK};

View file

@ -1,4 +1,4 @@
use pagetop::prelude::*; use crate::prelude::*;
define_handle!(COMPONENT_BLOCK); define_handle!(COMPONENT_BLOCK);

View file

@ -1,4 +1,4 @@
use super::{ComponentTrait, ComponentsBundle}; use crate::core::component::{ComponentTrait, ComponentsBundle};
use crate::LazyStatic; use crate::LazyStatic;
use std::collections::HashMap; use std::collections::HashMap;