'use strict';

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

var vue = require('vue');
require('../../../utils/index.js');
var text = require('./text.js');
var createNamespace = require('../../../utils/create-namespace.js');

"use strict";
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{ name: "LlTextParagraph" },
  __name: "text-paragraph",
  props: text.textParagraphProps,
  setup(__props) {
    const props = __props;
    const attrs = vue.useAttrs();
    const bem = createNamespace.createNamespace("text-paragraph");
    const ellipsis = vue.computed(() => {
      if (attrs.ellipsis) {
        return attrs.ellipsis;
      } else {
        return props.isEllipsis ? {
          rows: props.rows,
          tooltip: props.showTooltip,
          expandable: props.expandable,
          symbol: props.symbol || "more"
        } : false;
      }
    });
    return (_ctx, _cache) => {
      const _component_a_typography_paragraph = vue.resolveComponent("a-typography-paragraph");
      return vue.openBlock(), vue.createBlock(_component_a_typography_paragraph, vue.mergeProps(vue.unref(attrs), {
        class: vue.unref(bem).b(),
        ellipsis: ellipsis.value
      }), vue.createSlots({
        _: 2
        /* DYNAMIC */
      }, [
        vue.renderList(Object.keys(_ctx.$slots), (item) => {
          return {
            name: item,
            fn: vue.withCtx((data) => [
              vue.renderSlot(_ctx.$slots, item, vue.normalizeProps(vue.guardReactiveProps(data || {})))
            ])
          };
        })
      ]), 1040, ["class", "ellipsis"]);
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=text-paragraph.vue2.js.map
