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