@ued_fpi/data-visual 1.4.29 → 1.4.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,7 +58,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  props: {
59
59
  showParkStatistics: { type: Boolean, default: true },
60
60
  showParkInData: { type: Boolean, default: true },
61
- showAbnormalData: { type: Boolean, default: true }
61
+ showAbnormalData: { type: Boolean, default: true },
62
+ commitmentInfos: { default: () => [
63
+ { title: "固定车", key: "fixCar" },
64
+ { title: "特殊车", key: "specialCar" },
65
+ { title: "预约车", key: "appointCar" },
66
+ { title: "其他车", key: "other" }
67
+ ] }
62
68
  },
63
69
  setup(__props) {
64
70
  const props = __props;
@@ -86,12 +92,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
92
  other: null
87
93
  // 其他车
88
94
  });
89
- const commitmentInfos = ref([
90
- { title: "固定车", key: "fixCar" },
91
- { title: "特殊车", key: "specialCar" },
92
- { title: "预约车", key: "appointCar" },
93
- { title: "其他车", key: "other" }
94
- ]);
95
95
  let isInit = false;
96
96
  async function getData() {
97
97
  try {
@@ -131,7 +131,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
131
131
  ]),
132
132
  _hoisted_13,
133
133
  createElementVNode("div", _hoisted_14, [
134
- (openBlock(true), createElementBlock(Fragment, null, renderList(commitmentInfos.value, (item) => {
134
+ (openBlock(true), createElementBlock(Fragment, null, renderList(props.commitmentInfos, (item) => {
135
135
  return openBlock(), createElementBlock("div", {
136
136
  key: item.key,
137
137
  class: normalizeClass(["row", item.key])