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

'use strict';

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

var Vue = require('vue');
var config = require('../../config.js');
var utils_renderNode = require('../../utils/render-node.js');
require('lodash/camelCase');
require('lodash/kebabCase');

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

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

const name = `${config.PREFIX}-layout`;
var _Layout = Vue__default["default"].extend({
  name: "LLayout",

  data() {
    return {
      hasSider: false
    };
  },

  provide() {
    return {
      layout: this
    };
  },

  methods: {
    renderContent() {
      return this.$scopedSlots.default ? this.$scopedSlots.default(null) : "";
    }

  },
  computed: {
    classes() {
      return [name, {
        [`${name}--with-sider`]: this.hasSider
      }];
    }

  },

  render() {
    const h = arguments[0];
    return h("section", {
      "class": this.classes
    }, [utils_renderNode.renderLNodeJSX(this, "default")]);
  }

});

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