@dazhicheng/ui 1.5.257 → 1.5.258

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 ae, useSlots as se, provide as _, computed as a, useTemplateRef as ie, ref as ce, createElementBlock as L, openBlock as T, Fragment as V, createBlock as D, createCommentVNode as ue, createElementVNode as K, mergeProps as F, unref as w, withModifiers as me, normalizeClass as pe, normalizeStyle as fe, renderList as x, createSlots as ve, withCtx as de, renderSlot as ge, h as he, nextTick as R } from "vue";
1
+ import { defineComponent as ae, useSlots as se, provide as _, computed as a, useTemplateRef as ie, ref as ce, createElementBlock as L, openBlock as T, Fragment as V, createBlock as D, createCommentVNode as ue, createElementVNode as K, mergeProps as F, unref as w, withModifiers as me, normalizeClass as pe, normalizeStyle as ve, renderList as x, createSlots as fe, withCtx as de, renderSlot as ge, h as he, nextTick as R } from "vue";
2
2
  import { TtNavAnchor as Ce } from "../../../tt-nav-anchor/index.js";
3
3
  import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
4
4
  import { useDesign as Te } from "../../../../packages/hooks/src/useDesign.js";
@@ -62,8 +62,8 @@ const Le = 5, Ve = 500, po = /* @__PURE__ */ ae({
62
62
  ...r.value,
63
63
  schema: p.value.schema
64
64
  })
65
- ), { form: f } = Ae(U);
66
- Be([r, f]);
65
+ ), { form: v } = Ae(U);
66
+ Be([r, v]);
67
67
  const b = a(() => p.value.groupSchema ?? []), q = a(() => ({
68
68
  collapseStates: B,
69
69
  commonConfig: r.value.commonConfig,
@@ -72,7 +72,7 @@ const Le = 5, Ve = 500, po = /* @__PURE__ */ ae({
72
72
  compact: r.value.compact,
73
73
  virtual: r.value.virtual,
74
74
  progressive: r.value.progressive,
75
- scrollElement: v.value,
75
+ scrollElement: f.value,
76
76
  rootMargin: r.value.rootMargin,
77
77
  estimateFieldHeight: r.value.estimateFieldHeight
78
78
  }));
@@ -81,12 +81,12 @@ const Le = 5, Ve = 500, po = /* @__PURE__ */ ae({
81
81
  commonConfig: r.value.commonConfig,
82
82
  componentMap: _e,
83
83
  componentBindEventMap: Ee,
84
- form: f,
84
+ form: v,
85
85
  layout: r.value.layout,
86
86
  compact: r.value.compact,
87
87
  wrapperClass: r.value.wrapperClass
88
- }), Me(M), g.formApi.mount(f, M);
89
- const v = ie("scrollRef"), y = a(() => {
88
+ }), Me(M), g.formApi.mount(v, M);
89
+ const f = ie("scrollRef"), y = a(() => {
90
90
  const e = r.value.containerHeight;
91
91
  return e !== "100%" && e !== void 0;
92
92
  }), z = a(() => {
@@ -104,7 +104,7 @@ const Le = 5, Ve = 500, po = /* @__PURE__ */ ae({
104
104
  const o = [];
105
105
  for (const t of e)
106
106
  if (Ie(t)) {
107
- const n = t.title, l = ye(n) ? () => n(f.values, s) : n;
107
+ const n = t.title, l = ye(n) ? () => n(v.values, s) : n;
108
108
  o.push({ key: t.key, title: l });
109
109
  }
110
110
  return o;
@@ -126,13 +126,14 @@ const Le = 5, Ve = 500, po = /* @__PURE__ */ ae({
126
126
  var o;
127
127
  return ((o = h[`nav-description-${e.row.key}`]) == null ? void 0 : o.call(h, {
128
128
  row: e.row,
129
- values: f.values
129
+ values: v.values
130
130
  })) ?? [];
131
131
  }
132
132
  function Z() {
133
133
  return he(
134
134
  Ce,
135
135
  {
136
+ collapseMode: "hover",
136
137
  ...Q.value,
137
138
  modelValue: E.value,
138
139
  "onUpdate:modelValue": (e) => {
@@ -163,7 +164,7 @@ const Le = 5, Ve = 500, po = /* @__PURE__ */ ae({
163
164
  e ? e.scrollTo({ top: n, behavior: t }) : window.scrollTo({ top: n, behavior: t });
164
165
  }
165
166
  function G(e) {
166
- const o = v.value, t = p.value.scrollOffset ?? 0, n = ee(e) || o, l = n && n.scrollHeight > n.clientHeight ? n : null, i = l ?? document.documentElement, u = H(e, l, t);
167
+ const o = f.value, t = p.value.scrollOffset ?? 0, n = ee(e) || o, l = n && n.scrollHeight > n.clientHeight ? n : null, i = l ?? document.documentElement, u = H(e, l, t);
167
168
  P(l, u, "smooth");
168
169
  let d = !1;
169
170
  const m = () => {
@@ -174,7 +175,7 @@ const Le = 5, Ve = 500, po = /* @__PURE__ */ ae({
174
175
  }
175
176
  function I(e) {
176
177
  c.pause(), R(() => {
177
- const o = v.value, t = o == null ? void 0 : o.querySelector(`[data-group-key="${e}"]`);
178
+ const o = f.value, t = o == null ? void 0 : o.querySelector(`[data-group-key="${e}"]`);
178
179
  if (!t) {
179
180
  c.resume();
180
181
  return;
@@ -184,7 +185,7 @@ const Le = 5, Ve = 500, po = /* @__PURE__ */ ae({
184
185
  }
185
186
  function oe(e) {
186
187
  c.pause(), R(() => {
187
- const o = v.value, t = o == null ? void 0 : o.querySelector(`[data-field-anchor="${e}"]`);
188
+ const o = f.value, t = o == null ? void 0 : o.querySelector(`[data-field-anchor="${e}"]`);
188
189
  if (!t) {
189
190
  c.resume();
190
191
  return;
@@ -227,14 +228,14 @@ const Le = 5, Ve = 500, po = /* @__PURE__ */ ae({
227
228
  }), [
228
229
  K("div", {
229
230
  ref_key: "scrollRef",
230
- ref: v,
231
- style: fe(z.value),
231
+ ref: f,
232
+ style: ve(z.value),
232
233
  class: pe([`${w(A)}-scroll`, J.value])
233
234
  }, [
234
235
  (T(!0), L(V, null, x(b.value, (t, n) => (T(), D(be, F({
235
236
  key: w(Ge)(t, n),
236
237
  schema: t
237
- }, { ref_for: !0 }, q.value, { onToggleCollapse: W }), ve({ _: 2 }, [
238
+ }, { ref_for: !0 }, q.value, { onToggleCollapse: W }), fe({ _: 2 }, [
238
239
  x(w(h), (l, i) => ({
239
240
  name: i,
240
241
  fn: de((u) => [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/ui",
3
- "version": "1.5.257",
3
+ "version": "1.5.258",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",