@progress/kendo-treemap-vue-wrapper
Version:
Kendo UI TreeMap wrapper for Vue.js
38 lines (26 loc) • 1.63 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _KendoTreeMap = require('../KendoTreeMap');
var _KendoTreeMap2 = _interopRequireDefault(_KendoTreeMap);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var KendoTreeMapInstaller = function () {
function KendoTreeMapInstaller() {
_classCallCheck(this, KendoTreeMapInstaller);
}
_createClass(KendoTreeMapInstaller, null, [{
key: 'install',
value: function install(Vue) {
Vue.component(_KendoTreeMap2.default.name, _KendoTreeMap2.default);
}
}]);
return KendoTreeMapInstaller;
}();
exports.default = KendoTreeMapInstaller;
// Automatic installation if Vue has been added to the global scope.
if (typeof window !== 'undefined' && window.Vue && window.Vue.use) {
window.Vue.use(KendoTreeMapInstaller);
}