/**
 * ldesign v0.2.2
 * (c) 2022年9月20日 swimly
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var Vue = require('vue');
var config = require('../../config.js');
var utils_renderNode = require('../../utils/render-node.js');
require('@babel/runtime/helpers/typeof');
require('lodash/camelCase');
require('lodash/kebabCase');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
var Vue__default = /*#__PURE__*/_interopDefaultLegacy(Vue);

var name = "".concat(config.PREFIX, "-layout");
var _Layout = Vue__default["default"].extend({
  name: "LLayout",
  data: function data() {
    return {
      hasSider: false
    };
  },
  provide: function provide() {
    return {
      layout: this
    };
  },
  methods: {
    renderContent: function renderContent() {
      return this.$scopedSlots["default"] ? this.$scopedSlots["default"](null) : "";
    }
  },
  computed: {
    classes: function classes() {
      return [name, _defineProperty__default["default"]({}, "".concat(name, "--with-sider"), this.hasSider)];
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("section", {
      "class": this.classes
    }, [utils_renderNode.renderLNodeJSX(this, "default")]);
  }
});

exports["default"] = _Layout;
//# sourceMappingURL=layout.js.map
