UNPKG

quick-admin-vue3-core

Version:

以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板

40 lines (39 loc) 1.15 kB
import { defineComponent as u, inject as i, useSlots as c, ref as s, onMounted as f, createElementBlock as d, openBlock as m, normalizeClass as v, renderSlot as x } from "vue"; import { z as _ } from "./platform-DsTwHxm6.js"; import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js"; const b = /* @__PURE__ */ u({ __name: "BaseText", props: { maxLine: { default: 2 }, popupType: {}, popupAttrs: {} }, setup(n) { const r = i("openPopup"), a = { title: "详情", width: "500px", // el-dialog的属性 size: 500 // el-drawer的属性 }, o = n; c(); const p = s(null), t = s(!1); f(() => { t.value = _(p.value); }); function l(e) { t.value && r({ ...a, ...o.popupAttrs }, e.target.innerText, o.popupType); } return (e, k) => (m(), d("div", { class: v(["base-text", { [`q-line-${e.maxLine}`]: !0, over: t.value }]), onClick: l, ref_key: "baseTextRef", ref: p }, [ x(e.$slots, "default", {}, void 0, !0) ], 2)); } }), y = /* @__PURE__ */ T(b, [["__scopeId", "data-v-b8d241eb"]]); export { y as default };