♻️ Migra #[builder_fn] a #[builder_impl]
Sustituye las ~400 anotaciones `#[builder_fn]` método a método por un único `#[builder_impl]` por `impl`/`trait`, en 74 ficheros de pagetop y sus extensiones (admin, bootsier, menu, user).
This commit is contained in:
parent
c34dc02357
commit
1be3d88888
74 changed files with 104 additions and 394 deletions
|
|
@ -48,18 +48,17 @@ impl Component for PasswordConfirm {
|
|||
}
|
||||
}
|
||||
|
||||
#[builder_impl]
|
||||
impl PasswordConfirm {
|
||||
// **< PasswordConfirm BUILDER >********************************************************************
|
||||
|
||||
/// Establece la etiqueta del campo de contraseña (por defecto, "field-password").
|
||||
#[builder_fn]
|
||||
pub(crate) fn with_password_label(mut self, label: Lc) -> Self {
|
||||
self.password_label = label;
|
||||
self
|
||||
}
|
||||
|
||||
/// Establece la etiqueta del campo de confirmación (por defecto, "field-confirm-password").
|
||||
#[builder_fn]
|
||||
pub(crate) fn with_confirm_label(mut self, label: Lc) -> Self {
|
||||
self.confirm_label = label;
|
||||
self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue