/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 built by swimly
 * @license MIT
 */

'use strict';

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

var VueCompositionAPI = require('@vue/composition-api');
var components_layout_index = require('../../components/layout/index.js');
var utils_renderNode = require('../../utils/render-node.js');
var modules_page_props = require('./props.js');
require('../../utils/withInstall.js');
require('vue');
require('lodash/capitalize');
require('../../config.js');
require('../../components/layout/layout.js');
require('lodash');
require('../../components/layout/header.js');
require('../../components/layout/props.js');
require('../../components/layout/footer.js');
require('../../components/layout/aside.js');
require('../../components/layout/content.js');

var _LdesignPage = VueCompositionAPI.defineComponent({
  name: "LdesignPage",
  components: {
    LAside: components_layout_index.Aside,
    LContent: components_layout_index.Content,
    LHeader: components_layout_index.Header,
    LLayout: components_layout_index.Layout
  },
  props: {
    ...modules_page_props["default"]
  },
  setup(props2, ctx) {
    return {};
  },
  methods: {
    renderHeader() {
      const content = utils_renderNode.renderLNodeJSX(this, "header");
      return content;
    },
    renderAside() {
      const content = utils_renderNode.renderLNodeJSX(this, "aside");
      return content;
    }
  },
  render() {
    const h = arguments[0];
    return h("div", {
      "class": {
        "ldesign-page": true,
        [`ldesign-page--${this.layout}`]: this.layout,
        [`ldesign-page--${this.theme}`]: this.theme
      }
    }, [this.layout === "normal" && h("l-layout", {
      "key": "normal"
    }, [h("l-header", [this.renderHeader()]), h("l-content", [h("div", {
      "class": "ldesign-page__content"
    }, [utils_renderNode.renderLNodeJSX(this, "default")])])]), this.layout === "aside" && h("l-layout", {
      "key": "aside"
    }, [h("l-aside", [this.renderAside()]), h("l-layout", [h("l-header", [this.renderHeader()]), h("l-content", [h("div", {
      "class": "ldesign-page__content"
    }, [utils_renderNode.renderLNodeJSX(this, "default")])])])]), this.layout === "mix" && h("l-layout", {
      "key": "mix"
    }, [h("l-header", [this.renderHeader()]), h("l-layout", [h("l-aside", [this.renderAside()]), h("l-content", [h("div", {
      "class": "ldesign-page__content"
    }, [utils_renderNode.renderLNodeJSX(this, "default")])])])])]);
  }
});

exports["default"] = _LdesignPage;
//# sourceMappingURL=page.js.map
