@designcrowd/fe-shared-lib 1.0.9 → 1.0.10-ml-317
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
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
>
|
|
23
23
|
<title :id="`${name}-${id}-title`" lang="en">{{ title }}</title>
|
|
24
24
|
<desc :id="`${name}-${id}-desc`" lang="en">{{ description }}</desc>
|
|
25
|
-
<component :is="`icon-${
|
|
25
|
+
<component :is="`icon-${iconName}`"></component>
|
|
26
26
|
</svg>
|
|
27
27
|
</div>
|
|
28
28
|
</template>
|
|
@@ -788,6 +788,13 @@ export default {
|
|
|
788
788
|
description() {
|
|
789
789
|
return `${this.title} Icon`;
|
|
790
790
|
},
|
|
791
|
+
iconName() {
|
|
792
|
+
if (this.name) {
|
|
793
|
+
return this.name.split(' ').join('-');
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
return this.name;
|
|
797
|
+
},
|
|
791
798
|
},
|
|
792
799
|
mounted() {
|
|
793
800
|
// eslint-disable-next-line no-underscore-dangle
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
>
|
|
21
21
|
<title :id="`${name}-${id}-title`" lang="en">{{ title }}</title>
|
|
22
22
|
<desc :id="`${name}-${id}-desc`" lang="en">{{ description }}</desc>
|
|
23
|
-
<component :is="`icon-${
|
|
23
|
+
<component :is="`icon-${iconName}`"></component>
|
|
24
24
|
</svg>
|
|
25
25
|
</div>
|
|
26
26
|
</template>
|
|
@@ -136,6 +136,13 @@ export default {
|
|
|
136
136
|
description() {
|
|
137
137
|
return `${this.title} Icon`;
|
|
138
138
|
},
|
|
139
|
+
iconName() {
|
|
140
|
+
if (this.name) {
|
|
141
|
+
return this.name.split(' ').join('-');
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
return this.name;
|
|
145
|
+
},
|
|
139
146
|
},
|
|
140
147
|
mounted() {
|
|
141
148
|
// eslint-disable-next-line no-underscore-dangle
|