@dazhicheng/ui 1.5.231 → 1.5.232

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as oe, useAttrs as ne, ref as I, inject as M, computed as p, unref as r, toRaw as W, h as re, onMounted as ie, nextTick as le, createElementBlock as u, openBlock as l, normalizeClass as B, createVNode as T, createBlock as b, createCommentVNode as f, withCtx as m, Fragment as v, renderList as P, renderSlot as se, withDirectives as z, mergeProps as ae, normalizeStyle as D, toDisplayString as j, createElementVNode as de, withModifiers as ue, createSlots as pe, createTextVNode as ce } from "vue";
1
+ import { defineComponent as oe, useAttrs as ne, ref as I, inject as M, computed as c, unref as r, toRaw as W, h as re, onMounted as ie, nextTick as le, createElementBlock as u, openBlock as l, normalizeClass as B, createVNode as T, createBlock as b, createCommentVNode as f, withCtx as m, Fragment as v, renderList as P, renderSlot as se, withDirectives as z, mergeProps as ae, normalizeStyle as D, toDisplayString as j, createElementVNode as de, withModifiers as ue, createSlots as ce, createTextVNode as pe } from "vue";
2
2
  import { propTypes as y } from "../../../../packages/hooks/src/propTypes.js";
3
3
  import { useDesign as fe } from "../../../../packages/hooks/src/useDesign.js";
4
4
  import "axios";
@@ -50,8 +50,8 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
50
50
  setup(S) {
51
51
  const i = S, x = ne(), { prefixCls: $ } = fe("table-action"), g = I(!1), L = M(
52
52
  "tableIdContext",
53
- p(() => "")
54
- ), U = M(ke, void 0), q = p(() => {
53
+ c(() => "")
54
+ ), U = M(ke, void 0), q = c(() => {
55
55
  if (i.rowIndex !== void 0 && i.rowIndex !== null)
56
56
  return i.rowIndex;
57
57
  const t = r(U);
@@ -71,7 +71,7 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
71
71
  let e = !0;
72
72
  return ge(o) && (e = o), ye(o) && (e = o(t)), e;
73
73
  }
74
- const G = p(() => (W(i.actions) || []).filter((t) => F(t)).slice(0, i.showBtnNums)), w = p(() => (W(i.actions) || []).filter((t) => F(t)).slice(i.showBtnNums)), H = p(() => r(w).length > 0), X = p(() => "left flex items-center"), Y = p(() => {
74
+ const G = c(() => (W(i.actions) || []).filter((t) => F(t)).slice(0, i.showBtnNums)), w = c(() => (W(i.actions) || []).filter((t) => F(t)).slice(i.showBtnNums)), H = c(() => r(w).length > 0), X = c(() => "left flex items-center"), Y = c(() => {
75
75
  const t = document.getElementsByTagName("body")[0], o = window.getComputedStyle(t).fontFamily, e = w.value.map((s) => we(s.label, "12px", o) + 22), n = Math.max(...e);
76
76
  return n > i.popoverWidth ? n : i.popoverWidth;
77
77
  });
@@ -104,17 +104,17 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
104
104
  t.forEach((e) => {
105
105
  const n = e.closest(".vxe-table");
106
106
  if (!n) return;
107
- const s = e.getBoundingClientRect(), a = Math.round(s.top), d = o.get(n) || /* @__PURE__ */ new Map(), c = d.get(a) || [];
108
- c.push(e), d.set(a, c), o.set(n, d);
107
+ const s = e.getBoundingClientRect(), a = Math.round(s.top), d = o.get(n) || /* @__PURE__ */ new Map(), p = d.get(a) || [];
108
+ p.push(e), d.set(a, p), o.set(n, d);
109
109
  }), o.forEach((e) => {
110
110
  e.forEach((n) => {
111
111
  const s = n.sort((a, d) => {
112
- const c = a.closest(".vxe-table"), k = d.closest(".vxe-table"), R = c != null && c.classList.contains("is--fixed-right") ? 1 : 0, _ = k != null && k.classList.contains("is--fixed-right") ? 1 : 0;
112
+ const p = a.closest(".vxe-table"), k = d.closest(".vxe-table"), R = p != null && p.classList.contains("is--fixed-right") ? 1 : 0, _ = k != null && k.classList.contains("is--fixed-right") ? 1 : 0;
113
113
  return R !== _ ? _ - R : d.getBoundingClientRect().left - a.getBoundingClientRect().left;
114
114
  })[0];
115
115
  n.forEach((a) => {
116
116
  a.querySelectorAll("[data-table-action-button]").forEach((d) => {
117
- a !== s && (d.style.visibility = "hidden"), d.tabIndex = a === s ? 0 : -1;
117
+ d.tabIndex = a === s ? 0 : -1;
118
118
  });
119
119
  });
120
120
  });
@@ -228,10 +228,10 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
228
228
  type: e.type || "primary",
229
229
  style: D({ color: e.color }),
230
230
  "data-testid": h(e.label || "")
231
- }, pe({
231
+ }, ce({
232
232
  default: m(() => [
233
233
  e.label ? (l(), u(v, { key: 0 }, [
234
- ce(j(e.label), 1)
234
+ pe(j(e.label), 1)
235
235
  ], 64)) : f("", !0)
236
236
  ]),
237
237
  _: 2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/ui",
3
- "version": "1.5.231",
3
+ "version": "1.5.232",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -67,8 +67,8 @@
67
67
  "vue-router": "^5.0.2",
68
68
  "vxe-pc-ui": "^4.12.36",
69
69
  "vxe-table": "^4.17.48",
70
- "@dazhicheng/utils": "1.3.41",
71
- "@dazhicheng/hooks": "1.4.44"
70
+ "@dazhicheng/hooks": "1.4.44",
71
+ "@dazhicheng/utils": "1.3.41"
72
72
  },
73
73
  "files": [
74
74
  "dist"