UNPKG

@opengis/bi

Version:

BI data visualization module

52 lines (51 loc) 1.2 kB
import { _ as s, c as a, m as d } from "./import-file-BBYAWahU.js"; import { openBlock as n, createElementBlock as o, createCommentVNode as c } from "vue"; const u = { name: "VsText", mixins: [a], props: { widget: { type: String, required: !0 }, widgetData: { type: Object, required: !0 } }, data() { return { markedText: null, uniqueID: null }; }, async mounted() { var e, t; this.uniqueID = this.widget; try { await this.getData(), this.markedText = d(((e = this.widgetData) == null ? void 0 : e.text) || ((t = this.widgetData) == null ? void 0 : t.source)); } catch (i) { console.error(i); } }, methods: { onChangedData() { return null; } } }, l = ["id"], m = ["innerHTML"]; function x(e, t, i, h, r, p) { return n(), o("div", { id: r.uniqueID, class: "relative select-auto h-full rounded-xl text-[12px] box-border bg-white custom-scrollbar text-widget" }, [ r.markedText ? (n(), o("div", { key: 0, innerHTML: r.markedText }, null, 8, m)) : c("", !0) ], 8, l); } const f = /* @__PURE__ */ s(u, [["render", x]]); export { f as default };