@bsgoal/common 2.30.8 → 2.31.0

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.
package/dist/index.mjs CHANGED
@@ -5092,7 +5092,7 @@ const X0 = { class: "bsgoal-base-table-content" }, q0 = { class: "base_table_con
5092
5092
  });
5093
5093
  return (c, y) => (v(), z("div", X0, [
5094
5094
  k("div", q0, [
5095
- r.value ? (v(), ae(ku, {
5095
+ r.value && _.value ? (v(), ae(ku, {
5096
5096
  key: 0,
5097
5097
  label: f.value,
5098
5098
  data: _.value
@@ -7072,7 +7072,8 @@ const j1 = { class: "bsgoal-base-tree" }, R1 = { class: "base_tree_main" }, $1 =
7072
7072
  type: [Boolean],
7073
7073
  default: !1
7074
7074
  },
7075
- fetchFilter: {
7075
+ fetchInitData: {
7076
+ type: [Function],
7076
7077
  default: null
7077
7078
  }
7078
7079
  },
@@ -7086,7 +7087,7 @@ const j1 = { class: "bsgoal-base-tree" }, R1 = { class: "base_tree_main" }, $1 =
7086
7087
  const { treeData: U = !1 } = f;
7087
7088
  c.value = U;
7088
7089
  });
7089
- const A = $(""), w = $(null), b = $(!1), E = Qt("FETCH_DATA_INJECT");
7090
+ const A = $(""), w = $(null), b = $(!1), E = f.fetchInitData || Qt("FETCH_DATA_INJECT");
7090
7091
  Ce(() => {
7091
7092
  E && E().then((U = []) => {
7092
7093
  c.value = U || [];
@@ -8920,7 +8921,11 @@ const Ev = { class: "bsgoal-base-tree-table" }, Sv = { class: "base_tree_table"
8920
8921
  type: [Array],
8921
8922
  default: () => []
8922
8923
  },
8923
- fetchFilter: {
8924
+ /**
8925
+ * 初始化树数据
8926
+ */
8927
+ fetchInitData: {
8928
+ type: [Function],
8924
8929
  default: null
8925
8930
  }
8926
8931
  },
@@ -8991,7 +8996,6 @@ const Ev = { class: "bsgoal-base-tree-table" }, Sv = { class: "base_tree_table"
8991
8996
  "tree-props": l.treeProps,
8992
8997
  initShow: l.initTreeShow,
8993
8998
  defaultExpandAll: l.treeDefaultExpandAll,
8994
- fetchFilter: l.fetchFilter,
8995
8999
  onOnSwitch: y,
8996
9000
  onOnAdd: A,
8997
9001
  onOnClick: w
@@ -9003,7 +9007,7 @@ const Ev = { class: "bsgoal-base-tree-table" }, Sv = { class: "base_tree_table"
9003
9007
  Re(S.$slots, "tree-prefix", { data: Y })
9004
9008
  ]),
9005
9009
  _: 3
9006
- }, 16, ["tree-props", "initShow", "defaultExpandAll", "fetchFilter"])
9010
+ }, 16, ["tree-props", "initShow", "defaultExpandAll"])
9007
9011
  ]),
9008
9012
  k("div", {
9009
9013
  class: "base_tree_table--table",