owl-carousel.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. (function (global, factory) {
  2. if (typeof define === "function" && define.amd) {
  3. define("/Plugin/owl-carousel", ["exports", "Plugin"], factory);
  4. } else if (typeof exports !== "undefined") {
  5. factory(exports, require("Plugin"));
  6. } else {
  7. var mod = {
  8. exports: {}
  9. };
  10. factory(mod.exports, global.Plugin);
  11. global.PluginOwlCarousel = mod.exports;
  12. }
  13. })(this, function (_exports, _Plugin2) {
  14. "use strict";
  15. Object.defineProperty(_exports, "__esModule", {
  16. value: true
  17. });
  18. _exports.default = void 0;
  19. _Plugin2 = babelHelpers.interopRequireDefault(_Plugin2);
  20. var NAME = 'owlCarousel';
  21. var OwlCarousel =
  22. /*#__PURE__*/
  23. function (_Plugin) {
  24. babelHelpers.inherits(OwlCarousel, _Plugin);
  25. function OwlCarousel() {
  26. babelHelpers.classCallCheck(this, OwlCarousel);
  27. return babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(OwlCarousel).apply(this, arguments));
  28. }
  29. babelHelpers.createClass(OwlCarousel, [{
  30. key: "getName",
  31. value: function getName() {
  32. return NAME;
  33. }
  34. }], [{
  35. key: "getDefaults",
  36. value: function getDefaults() {
  37. return {
  38. // autoWidth: true,
  39. loop: true,
  40. nav: true,
  41. dots: false,
  42. dotsClass: 'owl-dots owl-dots-fall',
  43. responsive: {
  44. 0: {
  45. items: 1
  46. },
  47. 600: {
  48. items: 3
  49. }
  50. }
  51. };
  52. }
  53. }]);
  54. return OwlCarousel;
  55. }(_Plugin2.default);
  56. _Plugin2.default.register(NAME, OwlCarousel);
  57. var _default = OwlCarousel;
  58. _exports.default = _default;
  59. });