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

import { renderContent, renderTNodeJSX } from '../utils/render-tnode.js';
import { getClassPrefixMixins } from '../config-provider/config-receiver.js';
import mixins from '../utils/mixins.js';
import props from './list-item-props.js';
import '@babel/runtime/helpers/defineProperty';
import '@babel/runtime/helpers/typeof';
import 'vue';
import '@vue/composition-api';
import 'lodash/camelCase';
import 'lodash/kebabCase';
import 'lodash/mergeWith';
import '../config-provider/context.js';
import 'lodash/merge';
import '../_common/js/global-config/default-config.js';
import '../_common/js/global-config/locale/zh_CN.js';
import '../_chunks/dep-be599ec8.js';
import 'dayjs';
import '../_chunks/dep-67ff4010.js';
import '../config-provider/type.js';

var classPrefixMixins = getClassPrefixMixins("list-item");
var _ListItem = mixins(classPrefixMixins).extend({
  name: "TListItem",
  props: props,
  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 = renderContent(this, "default", "content");
    var propsActionContent = 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])])]);
  }
});

export { _ListItem as default };
//# sourceMappingURL=list-item.js.map
