layers-design-system 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
render: function(createElement, ctx) {
|
|
12
12
|
// Parse and transform icon name/pack
|
|
13
13
|
const iconText = (ctx.props.icon) || (ctx.data.domProps && ctx.data.domProps.textContent) || (ctx.children && ctx.children[0] && ctx.children[0].text)
|
|
14
|
-
const iconName = ctx.parent.$L.Icons.get(iconText);
|
|
14
|
+
const iconName = ctx.parent.$L ? ctx.parent.$L.Icons.get(iconText) : iconText;
|
|
15
15
|
const iconPack = iconName ? iconName.split('-')[0] : null;
|
|
16
16
|
|
|
17
17
|
// Empty if no icon text or name
|
|
@@ -54,6 +54,8 @@
|
|
|
54
54
|
</template>
|
|
55
55
|
|
|
56
56
|
<script>
|
|
57
|
+
import LIcon from '../LIcon'
|
|
58
|
+
|
|
57
59
|
let typeMap = {
|
|
58
60
|
success: 'success',
|
|
59
61
|
info: null,
|
|
@@ -62,6 +64,9 @@
|
|
|
62
64
|
};
|
|
63
65
|
export default {
|
|
64
66
|
tagName: "l-notification",
|
|
67
|
+
components: {
|
|
68
|
+
LIcon
|
|
69
|
+
},
|
|
65
70
|
data() {
|
|
66
71
|
return {
|
|
67
72
|
visible: false,
|