/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 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
