mirror of
https://github.com/flarum/core.git
synced 2025-08-06 00:17:31 +02:00
fix: debug
This commit is contained in:
@@ -26,7 +26,6 @@ export interface IBadgeAttrs extends ComponentAttrs {
|
|||||||
*/
|
*/
|
||||||
export default class Badge<CustomAttrs extends IBadgeAttrs = IBadgeAttrs> extends Component<CustomAttrs> {
|
export default class Badge<CustomAttrs extends IBadgeAttrs = IBadgeAttrs> extends Component<CustomAttrs> {
|
||||||
view() {
|
view() {
|
||||||
console.log(this.attrs);
|
|
||||||
const { type, icon: iconName, label, color, style = {}, ...attrs } = this.attrs;
|
const { type, icon: iconName, label, color, style = {}, ...attrs } = this.attrs;
|
||||||
|
|
||||||
const className = classList('Badge', [type && `Badge--${type}`], attrs.className, textContrastClass(color));
|
const className = classList('Badge', [type && `Badge--${type}`], attrs.className, textContrastClass(color));
|
||||||
|
Reference in New Issue
Block a user