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

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

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

});

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