/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

import Vue from 'vue';
import { PREFIX } from '../../config.js';
import { renderLNodeJSX } from '../../utils/render-node.js';
import 'lodash';

const name = `${PREFIX}-layout`;
var _Layout = Vue.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
    }, [renderLNodeJSX(this, "default")]);
  }
});

export { _Layout as default };
//# sourceMappingURL=layout.js.map
