/**
 * ldesign v0.4.6
 * (c) 2023 ldesign
 * @license MIT
 */

'use strict';

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

var utils_renderTnode = require('../utils/render-tnode.js');
var configProvider_configReceiver = require('../config-provider/config-receiver.js');
var utils_mixins = require('../utils/mixins.js');
var list_listItemProps = require('./list-item-props.js');
require('@babel/runtime/helpers/defineProperty');
require('@babel/runtime/helpers/typeof');
require('vue');
require('@vue/composition-api');
require('lodash/camelCase');
require('lodash/kebabCase');
require('lodash/mergeWith');
require('../config-provider/context.js');
require('lodash/merge');
require('../_common/js/global-config/default-config.js');
require('../_common/js/global-config/locale/zh_CN.js');
require('../_chunks/dep-7c884501.js');
require('dayjs');

var classPrefixMixins = configProvider_configReceiver.getClassPrefixMixins("list-item");
var _ListItem = utils_mixins["default"](classPrefixMixins).extend({
  name: "TListItem",
  props: list_listItemProps["default"],
  methods: {
    handleClick: function handleClick(e) {
      var _this$onClick;
      this.$emit("click", {
        e: e
      });
      (_this$onClick = this.onClick) === null || _this$onClick === void 0 ? void 0 : _this$onClick.call(this, {
        e: e
      });
    }
  },
  render: function render() {
    var h = arguments[0];
    var content = utils_renderTnode.renderContent(this, "default", "content");
    var propsActionContent = utils_renderTnode.renderTNodeJSX(this, "action");
    return h("li", {
      "class": this.componentName,
      "on": {
        "click": this.handleClick
      }
    }, [h("div", {
      "class": "".concat(this.componentName, "-main")
    }, [h("div", {
      "class": "".concat(this.componentName, "__content")
    }, [content]), propsActionContent && h("li", {
      "class": "".concat(this.componentName, "__action")
    }, [propsActionContent])])]);
  }
});

exports["default"] = _ListItem;
//# sourceMappingURL=list-item.js.map
