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

'use strict';

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

var VueCompositionAPI = require('@vue/composition-api');
var components_datePicker_base_Footer = require('../base/Footer.js');
require('../../../hooks/use-config.js');
require('../../config-provider/useConfig.js');
require('../../config-provider/context.js');
require('lodash');
require('../../../chunks/zh_CN.js');
require('../../button/index.js');
require('../../button/button.js');
require('@ldesign/icons-vue');
require('../../loading/index.js');
require('../../loading/loading.js');
require('../../loading/icon/gradient.js');
require('vue');
require('../../../chunks/defineProperty-56324511.js');
require('../../../chunks/set-style.js');
require('../../../chunks/helper2.js');
require('../../../config.js');
require('../../../utils/dom.js');
require('raf');
require('lodash/isString');
require('../../../utils/easing.js');
require('../../../utils/render-node.js');
require('lodash/camelCase');
require('lodash/kebabCase');
require('../../../utils/transfer-dom.js');
require('../../loading/props.js');
require('../../config-provider/config-receiver.js');
require('lodash/mergeWith');
require('../../../utils/mixins.js');
require('../../../utils/with-install.js');
require('../../loading/plugin.js');
require('../../button/props.js');
require('../../../utils/ripple.js');

var TExtraContent = VueCompositionAPI.defineComponent({
  name: "LExtraContent",
  props: {
    presets: Object,
    enableTimePicker: Boolean,
    presetsPlacement: String,
    onPresetClick: Function,
    onConfirmClick: Function,
    selectedValue: String
  },

  setup(props) {
    const showPanelFooter = VueCompositionAPI.computed(() => props.enableTimePicker || props.presets);
    return {
      showPanelFooter
    };
  },

  render() {
    const h = arguments[0];
    const {
      showPanelFooter
    } = this;
    return showPanelFooter ? h(components_datePicker_base_Footer["default"], {
      "props": { ...{
          presets: this.presets,
          onPresetClick: this.onPresetClick,
          enableTimePicker: this.enableTimePicker,
          onConfirmClick: this.onConfirmClick,
          presetsPlacement: this.presetsPlacement,
          selectedValue: this.selectedValue
        }
      }
    }) : null;
  }

});

exports["default"] = TExtraContent;
//# sourceMappingURL=extra-content.js.map
