@czxingyu/xycomponents 0.1.4 → 0.1.6

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/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var e = "0.1.4";
2
+ var e = "0.1.5";
3
3
  //#endregion
4
4
  export { e as version };
@@ -2,6 +2,6 @@ import e from "../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./table.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region components/table/table.vue
5
- var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-e1a0865c"]]);
5
+ var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-1e60de17"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -341,7 +341,7 @@ var Ae = ["aria-busy"], je = { key: 0 }, Me = { key: 0 }, Ne = ["colspan"], Pe =
341
341
  }))), R = s(() => se(Wt.value, w.rowKey, Tt.value ? w.tree : void 0, Vt.value)), Kt = s(() => Math.max(1, Math.ceil(I.value.total / I.value.pageSize))), z = s(() => new Set(Bt.value)), qt = s(() => R.value.filter((e) => !xn(e.record)).map((e) => e.key)), Jt = s(() => qt.value.length > 0 && qt.value.every((e) => z.value.has(e))), Yt = s(() => qt.value.some((e) => z.value.has(e))), Xt = s(() => !!w.pagination && (!w.pagination || !w.pagination.hideOnSinglePage || I.value.total > I.value.pageSize)), Zt = s(() => (M.value ? gt : 0) + O.value.reduce((e, t) => e + U(t), 0)), Qt = s(() => W(S) + Gt.value.reduce((e, t) => e + W(t.key), 0)), $t = s(() => [M.value ? `${gt}px` : "", ...O.value.map((e) => `${U(e)}px`)].filter(Boolean).join(" ")), en = s(() => ({
342
342
  maxHeight: w.autoHeight ? void 0 : a(w.scroll?.y),
343
343
  overflowX: j.value ? "hidden" : w.scroll?.x ? "auto" : void 0,
344
- overflowY: w.autoHeight || !w.scroll?.y ? void 0 : "auto",
344
+ overflowY: w.autoHeight || w.scroll?.y ? "auto" : void 0,
345
345
  ...V.value.container
346
346
  })), tn = s(() => Ct.value ? {
347
347
  minWidth: `${Qt.value}px`,
@@ -352,6 +352,7 @@ var Ae = ["aria-busy"], je = { key: 0 }, Me = { key: 0 }, Ne = ["colspan"], Pe =
352
352
  width: Et.value ? `${Zt.value}px` : w.scroll?.x ? void 0 : "100%",
353
353
  ...V.value.table
354
354
  }), nn = s(() => ({
355
+ "xy-table--auto-height": w.autoHeight,
355
356
  "xy-table--bordered": w.bordered,
356
357
  "xy-table--loading": w.loading,
357
358
  "xy-table--striped": w.striped,