@syncfusion/ej2-vue-maps
Version:
The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options for Vue
64 lines (63 loc) • 1.62 kB
JavaScript
import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
import { isNullOrUndefined } from '@syncfusion/ej2-base';
export var BubblesDirective = vueDefineComponent({
inject: { custom: { default: null } },
render: function (createElement) {
if (!isExecute) {
var h = !isExecute ? gh : createElement;
var slots = null;
if (!isNullOrUndefined(this.$slots.default)) {
slots = !isExecute ? this.$slots.default() : this.$slots.default;
}
return h('div', { class: 'e-directive' }, slots);
}
return;
},
updated: function () {
if (!isExecute && this.custom) {
this.custom();
}
},
methods: {
getTag: function () {
return 'e-bubbleSettings';
}
}
});
export var BubblesPlugin = {
name: 'e-bubbleSettings',
install: function (Vue) {
Vue.component(BubblesPlugin.name, BubblesDirective);
}
};
/**
* Represents the directive to define the bubbles in the maps.
* ```vue
* <ejs-maps>
* <e-layers>
* <e-layer>
* <e-bubbleSettings>
* <e-bubbleSetting>
* </e-bubbleSetting>
* </e-bubbleSettings>
* </e-layer>
* </e-layers>
* </ejs-maps>
* ```
*/
export var BubbleDirective = vueDefineComponent({
render: function () {
return;
},
methods: {
getTag: function () {
return 'e-bubbleSetting';
}
}
});
export var BubblePlugin = {
name: 'e-bubbleSetting',
install: function (Vue) {
Vue.component(BubblePlugin.name, BubbleDirective);
}
};