/**
 * tdesign v0.41.7
 * (c) 2022 tdesign
 * @license MIT
 */

'use strict';

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

var Vue = require('vue');
var config = require('../config.js');
var list_listItemProps = require('./list-item-props.js');
var utils_renderTnode = require('../utils/render-tnode.js');
require('@babel/runtime/helpers/defineProperty');
require('@babel/runtime/helpers/typeof');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var Vue__default = /*#__PURE__*/_interopDefaultLegacy(Vue);

var name = "".concat(config.prefix, "-list-item");
var _ListItem = Vue__default["default"].extend({
  name: "TListItem",
  props: list_listItemProps["default"],
  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": name
    }, [h("div", {
      "class": "".concat(name, "-main")
    }, [h("div", {
      "class": "".concat(name, "__content")
    }, [content]), propsActionContent && h("li", {
      "class": "".concat(name, "__action")
    }, [propsActionContent])])]);
  }
});

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