@bsgoal/common 2.29.22 → 2.29.25

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
@@ -6461,13 +6461,21 @@ const p1 = { class: "bsgoal-base-overview" }, _1 = { class: "base_overview" }, h
6461
6461
  options: {
6462
6462
  type: [Array],
6463
6463
  default: () => []
6464
+ },
6465
+ /**
6466
+ * 模式
6467
+ */
6468
+ type: {
6469
+ type: [String],
6470
+ default: "default",
6471
+ validator: (l) => ["default", "column"].includes(l)
6464
6472
  }
6465
6473
  },
6466
6474
  emits: ["on-click-item"],
6467
6475
  setup(l, { emit: u }) {
6468
6476
  const r = l, d = U(!1), h = () => {
6469
6477
  en(() => {
6470
- window.innerWidth < 1500 ? d.value = !0 : d.value = !1;
6478
+ window.innerWidth < 1500 || r.type === "column" ? d.value = !0 : d.value = !1;
6471
6479
  });
6472
6480
  };
6473
6481
  h(), window.addEventListener("resize", h), Ls(() => {
@@ -6743,6 +6751,13 @@ const S1 = { class: "bsgoal-base-search-table" }, I1 = { class: "base_search_tab
6743
6751
  sortFields: {
6744
6752
  type: [Array],
6745
6753
  default: () => []
6754
+ },
6755
+ /**
6756
+ * 数据预览的模式
6757
+ */
6758
+ overviewType: {
6759
+ type: [String],
6760
+ default: "default"
6746
6761
  }
6747
6762
  },
6748
6763
  emits: [
@@ -6806,9 +6821,10 @@ const S1 = { class: "bsgoal-base-search-table" }, I1 = { class: "base_search_tab
6806
6821
  P("div", I1, [
6807
6822
  l.hasOverview ? (m(), re(Us, {
6808
6823
  key: 0,
6824
+ type: l.overviewType,
6809
6825
  options: l.overviewOptions,
6810
6826
  onOnClickItem: N
6811
- }, null, 8, ["options"])) : ge("", !0),
6827
+ }, null, 8, ["type", "options"])) : ge("", !0),
6812
6828
  Mt(W(Ps, {
6813
6829
  ref_key: "BSGOAL_BASE_SEARCH_REF",
6814
6830
  ref: $,