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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "layers-design-system",
3
3
  "main": "src/main.js",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "scripts": {
6
6
  "start": "vue-cli-service serve ./src/main-docs.js",
7
7
  "build": "vue-cli-service build --target lib ./src/main.js",
@@ -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,