@dazhicheng/ui 1.5.255 → 1.5.257

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.
@@ -11,10 +11,9 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ae
11
11
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
12
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
- import { get as a, cloneDeep as Z } from "lodash-es";
15
- import { objectOmit as ee } from "@vueuse/core";
14
+ import { get as a, omit as Z, cloneDeep as ee } from "lodash-es";
16
15
  import { pinyin as te } from "pinyin-pro";
17
- function be(i) {
16
+ function ge(i) {
18
17
  const A = d(() => {
19
18
  const e = i.treeConfig || {};
20
19
  return {
@@ -26,7 +25,7 @@ function be(i) {
26
25
  parentField: e.parentField ?? "pid",
27
26
  rootParentValue: e.rootParentValue ?? null
28
27
  };
29
- }), F = T(!1), C = T([]), P = T(!1), S = T(!1), M = d(() => w(i.api) ? C.value : i.options || []), N = d(() => K(M.value)), z = d(() => !V() && i.showPinyinMode ? $(G.value) : D(N.value)), O = d(() => j(N.value)), B = d(() => O.value.filter((e) => {
28
+ }), F = T(!1), C = T([]), P = T(!1), S = T(!1), M = d(() => w(i.api) ? C.value : i.options || []), N = d(() => K(M.value)), z = d(() => !V() && i.showPinyinMode ? $(G.value) : D(N.value)), O = d(() => q(N.value)), B = d(() => O.value.filter((e) => {
30
29
  var t;
31
30
  return (t = e.children) == null ? void 0 : t.length;
32
31
  })), G = d(() => O.value.filter((e) => e.children === void 0));
@@ -40,7 +39,7 @@ function be(i) {
40
39
  try {
41
40
  F.value = !0;
42
41
  let e = X(i.params);
43
- i.beforeFetch && w(i.beforeFetch) && (e = await i.beforeFetch(Z(e)) || e);
42
+ i.beforeFetch && w(i.beforeFetch) && (e = await i.beforeFetch(ee(e)) || e);
44
43
  let t = await i.api(e);
45
44
  i.afterFetch && w(i.afterFetch) && (t = await i.afterFetch(t) || t), S.value = !0, C.value = Array.isArray(t) ? t : a(t, i.resultField || "") || [];
46
45
  } catch {
@@ -60,7 +59,7 @@ function be(i) {
60
59
  const J = a(c, n), x = a(c, t), Q = Array.isArray(x), W = [l, n, o, t].filter(
61
60
  (y) => !!y
62
61
  ), f = {
63
- ...ee(c, W),
62
+ ...Z(c, W),
64
63
  label: String(a(c, l) ?? ""),
65
64
  value: J,
66
65
  disabled: !!a(c, o),
@@ -122,7 +121,7 @@ function be(i) {
122
121
  return n.path = [n], n.children = void 0, n;
123
122
  });
124
123
  }
125
- function j(e) {
124
+ function q(e) {
126
125
  var n;
127
126
  const t = [], r = [...e];
128
127
  for (; r.length; ) {
@@ -135,9 +134,9 @@ function be(i) {
135
134
  const r = t.trim().toLowerCase();
136
135
  return r ? e.filter((n) => n.label.toLowerCase().includes(r)) : e;
137
136
  }
138
- function q(e, t) {
137
+ function I(e, t) {
139
138
  const r = E(e, t);
140
- return i.showOriginMode ? R(r) : i.showPinyinMode ? k(r) : V() ? I(r) : _(r);
139
+ return i.showOriginMode ? j(r) : i.showPinyinMode ? k(r) : V() ? R(r) : _(r);
141
140
  }
142
141
  function V() {
143
142
  const { childrenField: e, transform: t } = A.value, r = M.value.some((o) => Array.isArray(a(o, e))), n = M.value.some((o) => {
@@ -153,10 +152,10 @@ function be(i) {
153
152
  s.options.push(r), t.set(l, s);
154
153
  }), Array.from(t.values());
155
154
  }
156
- function I(e) {
155
+ function R(e) {
157
156
  return _(e);
158
157
  }
159
- function R(e) {
158
+ function j(e) {
160
159
  return e.length ? [
161
160
  {
162
161
  value: "__origin__",
@@ -186,10 +185,10 @@ function be(i) {
186
185
  navNodes: B,
187
186
  leafNodes: G,
188
187
  filterNodes: E,
189
- buildOptionGroups: q,
188
+ buildOptionGroups: I,
190
189
  isFirstLoaded: S
191
190
  };
192
191
  }
193
192
  export {
194
- be as usePanelSelectData
193
+ ge as usePanelSelectData
195
194
  };
@@ -54,7 +54,7 @@ const p = 4, Fl = /* @__PURE__ */ Te({
54
54
  showOriginMode: { type: Boolean, default: !0 },
55
55
  leftPlaceholder: { default: "支持模糊搜索" },
56
56
  middlePlaceholder: { default: "支持模糊搜索" },
57
- placeholder: { default: "请选择" }
57
+ placeholder: { default: "" }
58
58
  }, {
59
59
  modelValue: {},
60
60
  modelModifiers: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/ui",
3
- "version": "1.5.255",
3
+ "version": "1.5.257",
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.45",
71
- "@dazhicheng/hooks": "1.4.48"
70
+ "@dazhicheng/hooks": "1.4.49",
71
+ "@dazhicheng/utils": "1.3.46"
72
72
  },
73
73
  "files": [
74
74
  "dist"