diff --git a/nano.save b/nano.save deleted file mode 100644 index b68025345..000000000 --- a/nano.save +++ /dev/null @@ -1 +0,0 @@ -z diff --git a/src/Typography/src/a.vue b/src/Typography/src/a.vue index 3e47f16ac..141b507d7 100644 --- a/src/Typography/src/a.vue +++ b/src/Typography/src/a.vue @@ -1,34 +1,35 @@ + + diff --git a/src/Typography/src/blockquote.vue b/src/Typography/src/blockquote.vue index 5c1f91e02..b0ba6e9b2 100644 --- a/src/Typography/src/blockquote.vue +++ b/src/Typography/src/blockquote.vue @@ -1,28 +1,27 @@ + + diff --git a/src/Typography/src/getTheme.js b/src/Typography/src/getTheme.js deleted file mode 100644 index 2d6ab45e8..000000000 --- a/src/Typography/src/getTheme.js +++ /dev/null @@ -1,11 +0,0 @@ -function getTheme (cursor) { - while (cursor) { - if (cursor.syntheticTheme) { - return cursor.syntheticTheme - } - cursor = cursor.$parent - } - return null -} - -export default getTheme diff --git a/src/Typography/src/header.js b/src/Typography/src/header.js index 0a0c35b4b..3bdb05e4c 100644 --- a/src/Typography/src/header.js +++ b/src/Typography/src/header.js @@ -1,8 +1,8 @@ -import getTheme from './getTheme' +import withapp from '../../_mixins/withapp' +import themeable from '../../_mixins/themeable' export default level => ({ name: 'NH' + level, - functional: true, props: { type: { type: String, @@ -17,21 +17,18 @@ export default level => ({ default: false } }, - render (h, context) { - const props = context.props - const on = context.listeners - const theme = getTheme(context.parent) - const defaultSlot = context.slots.default || (context.scopedSlots.default && context.scopedSlots.default()) + mixins: [withapp, themeable], + render (h) { + const props = this.$props + const defaultSlot = this.$slots.default return h(`h${level}`, { class: { [`n-h${level}`]: true, - [`n-${theme}-theme`]: theme, + [`n-${this.syntheticTheme}-theme`]: this.syntheticTheme, [`n-h${level}--${props.type}-type`]: props.type, [`n-h${level}--prefix-bar`]: props.prefix, [`n-h${level}--align-text`]: props.alignText - }, - ...context.data, - on + } }, defaultSlot) } }) diff --git a/src/Typography/src/hr.vue b/src/Typography/src/hr.vue index 5e9e286dc..ba46d7d23 100644 --- a/src/Typography/src/hr.vue +++ b/src/Typography/src/hr.vue @@ -1,21 +1,20 @@ + + diff --git a/src/Typography/src/li.vue b/src/Typography/src/li.vue index fcf195185..4eaa6d7d9 100644 --- a/src/Typography/src/li.vue +++ b/src/Typography/src/li.vue @@ -1,21 +1,27 @@ + + diff --git a/src/Typography/src/ol.vue b/src/Typography/src/ol.vue index fc5aa4445..f5e824aba 100644 --- a/src/Typography/src/ol.vue +++ b/src/Typography/src/ol.vue @@ -1,28 +1,28 @@ + + diff --git a/src/Typography/src/p.vue b/src/Typography/src/p.vue index a0dc21303..3e1853ffa 100644 --- a/src/Typography/src/p.vue +++ b/src/Typography/src/p.vue @@ -1,9 +1,22 @@ + + diff --git a/src/Typography/src/text.vue b/src/Typography/src/text.vue index bfb41045e..23312ad85 100644 --- a/src/Typography/src/text.vue +++ b/src/Typography/src/text.vue @@ -1,9 +1,60 @@ + + diff --git a/src/Typography/src/ul.vue b/src/Typography/src/ul.vue index 8ac1c093e..a86cc151d 100644 --- a/src/Typography/src/ul.vue +++ b/src/Typography/src/ul.vue @@ -1,28 +1,27 @@ + +