import { defineComponent as n, computed as o, openBlock as a, createElementBlock as l, createVNode as s, unref as r, normalizeStyle as m } from "vue";
import h from "../../../NComponents/echartsContainer/EchartsContainer.mjs";
const p = n({ name: "EBarCommon" }), g = /* @__PURE__ */ n({
  ...p,
  props: {
    themeColor: {
      type: Object,
      required: !1
    },
    themeSetting: {
      type: Object,
      required: !1
    },
    chartConfig: {
      type: Object,
      required: !0
    }
  },
  setup(t) {
    const e = t, c = o(() => e.chartConfig.option), i = o(() => (console.log(e.chartConfig), {
      height: e.chartConfig.attr.h,
      width: e.chartConfig.attr.w
    }));
    return (u, f) => (a(), l("div", null, [
      s(h, {
        options: r(c),
        theme: t.themeColor,
        style: m(r(i))
      }, null, 8, ["options", "theme", "style"])
    ]));
  }
});
export {
  g as default
};
