import { defineComponent as t, toRefs as s, openBlock as c, createElementBlock as d, createVNode as p, unref as e, withCtx as f, createTextVNode as _, toDisplayString as u } from "vue";
import { NGradientText as l } from "naive-ui";
const m = { class: "go-text-box" }, x = t({ name: "ETextGradient" }), N = /* @__PURE__ */ t({
  ...x,
  props: {
    chartConfig: {
      type: Object,
      required: !0
    }
  },
  setup(o) {
    const r = o, { size: n, gradient: a, dataset: i } = s(r.chartConfig.option);
    return (g, h) => (c(), d("div", m, [
      p(e(l), {
        size: e(n),
        gradient: e(a)
      }, {
        default: f(() => [
          _(u(e(i)), 1)
        ]),
        _: 1
      }, 8, ["size", "gradient"])
    ]));
  }
});
export {
  N as default
};
