mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #4211 - For Badge Directive
This commit is contained in:
parent
97a5310d28
commit
f8bffa473d
2 changed files with 34 additions and 2 deletions
|
@ -10,7 +10,9 @@ const BadgeDirective = BaseBadgeDirective.extend('badge', {
|
|||
const badge = DomHandler.createElement('span', {
|
||||
id,
|
||||
class: !el.unstyled && this.cx('root'),
|
||||
'p-bind': this.ptm('root')
|
||||
'p-bind': this.ptm('root', {
|
||||
context: binding.modifiers
|
||||
})
|
||||
});
|
||||
|
||||
el.$_pbadgeId = badge.getAttribute('id');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue