fix(typography/header): static class will be shadowed

This commit is contained in:
07akioni 2020-02-27 18:11:26 +08:00
parent 361f0cbb3a
commit 37772eb3af

View File

@ -23,8 +23,8 @@ export default level => ({
const theme = getTheme(context.parent)
const defaultSlot = context.slots.default || (context.scopedSlots.default && context.scopedSlots.default())
return h(`h${level}`, {
staticClass: `n-h${level}`,
class: {
[`n-h${level}`]: true,
[`n-${theme}-theme`]: theme,
[`n-h${level}--${props.type}-type`]: props.type,
[`n-h${level}--prefix-bar`]: props.prefix,