/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by 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');

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",
  provide() {
    return {
      layout: this
    };
  },
  data() {
    return {
      hasSider: false
    };
  },
  computed: {
    classes() {
      return [name, {
        [`${name}--with-sider`]: this.hasSider
      }];
    }
  },
  methods: {
    renderContent() {
      return this.$scopedSlots.default ? this.$scopedSlots.default(null) : "";
    }
  },
  render() {
    const h = arguments[0];
    return h("section", {
      "class": this.classes
    }, [utils_renderNode.renderLNodeJSX(this, "default")]);
  }
});

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