chart-portlet-533d5bd9.js 1.1 KB
Newer Older
zhf's avatar
zhf committed
1 2 3
import { ChartPortletModel as s } from "@ibiz-template/model";
import { useNamespace as l } from "@ibiz-template/vue-util";
import { defineComponent as m, h as o } from "vue";
zhf's avatar
zhf committed
4
import { C as c } from "./index-7562e272.js";
zhf's avatar
zhf committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
import "@ibiz-template/runtime";
import "@ibiz-template/controller";
const f = m({
  name: "ChartPortlet",
  props: {
    modelData: {
      type: s,
      required: !0
    },
    controller: {
      type: c,
      required: !0
    }
  },
  setup() {
    return {
      ns: l("chart-portlet")
    };
  },
  render() {
    const t = this.controller;
    let r = null;
    const {
      chart: e
    } = t.model;
    t.chartProvider && (r = o(t.chartProvider.component, {
      props: {
        modelData: e,
        context: t.context,
        params: t.params
      },
      on: {
        neuronInit: (a) => {
          t.setChartNeuron(a);
        }
      }
    }));
    const n = [this.ns.b(), this.ns.m(this.modelData.modelClass)];
    return o("portlet-layout", {
      attrs: {
        controller: this.controller
      },
      class: n
    }, [r]);
  }
});
export {
  f as default
};