kopia lustrzana https://github.com/FacilMap/facilmap
18 wiersze
404 B
TypeScript
18 wiersze
404 B
TypeScript
import WithRender from "./icon.vue";
|
|
import Vue from "vue";
|
|
import { Component, Prop } from "vue-property-decorator";
|
|
import { createSymbolHtml } from "facilmap-leaflet";
|
|
|
|
@WithRender
|
|
@Component({
|
|
components: { }
|
|
})
|
|
export default class Icon extends Vue {
|
|
|
|
@Prop({ type: String, required: true }) icon!: string;
|
|
|
|
get iconCode() {
|
|
return createSymbolHtml("currentColor", "1.5em", this.icon);
|
|
}
|
|
|
|
} |