UNPKG

@progress/kendo-listview-vue-wrapper

Version:
43 lines (29 loc) 1.82 kB
'use strict'; 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 _KendoListView = require('../KendoListView'); var _KendoListView2 = _interopRequireDefault(_KendoListView); var _KendoPager = require('../KendoPager'); var _KendoPager2 = _interopRequireDefault(_KendoPager); 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 KendoListViewInstaller = function () { function KendoListViewInstaller() { _classCallCheck(this, KendoListViewInstaller); } _createClass(KendoListViewInstaller, null, [{ key: 'install', value: function install(Vue) { Vue.component(_KendoListView2.default.name, _KendoListView2.default); Vue.component(_KendoPager2.default.name, _KendoPager2.default); } }]); return KendoListViewInstaller; }(); exports.default = KendoListViewInstaller; // Automatic installation if Vue has been added to the global scope. if (typeof window !== 'undefined' && window.Vue && window.Vue.use) { window.Vue.use(KendoListViewInstaller); }