@opengis/bi
Version:
BI data visualization module
56 lines (55 loc) • 1.34 kB
JavaScript
import { _ as c, c as o, f as n } from "./import-file-BBYAWahU.js";
import { openBlock as i, createElementBlock as m, toDisplayString as s } from "vue";
const u = {
name: "VsNumber",
mixins: [o],
data() {
return {
number: ""
};
},
computed: {
formattedNumber() {
return n(this.number);
},
prefix() {
var e, t;
return (e = this.styleData) != null && e.prefix ? (t = this.styleData) == null ? void 0 : t.prefix : "";
}
},
watch: {
sourceData: {
async handler() {
this.getNumber();
},
deep: !0
}
},
async mounted() {
await this.getData(), this.getNumber();
},
methods: {
onChangedData() {
try {
this.sourceData && this.getNumber();
} catch (e) {
console.error(e);
}
},
async getNumber() {
var e, t;
try {
this.number = ((t = this.sourceData[0]) == null ? void 0 : t[Object.keys((e = this.sourceData) == null ? void 0 : e[0])]) || 0;
} catch (r) {
console.error(r);
}
}
}
}, h = { class: "text-lg lg:text-xl xl:text-2xl text-gray-800 h-[32px] flex items-center" };
function x(e, t, r, f, l, a) {
return i(), m("div", h, s(a.prefix) + s(a.formattedNumber), 1);
}
const b = /* @__PURE__ */ c(u, [["render", x]]);
export {
b as default
};