@dazhicheng/ui 1.6.51 → 1.6.53

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 je, mergeModels as I, useModel as qe, computed as u, watch as M, ref as v, useTemplateRef as E, unref as r, onMounted as He, createElementBlock as z, openBlock as A, normalizeClass as j, createVNode as q, mergeProps as Je, withCtx as Qe, withDirectives as Xe, normalizeStyle as Ye, createBlock as H, createCommentVNode as J, nextTick as F } from "vue";
1
+ import { defineComponent as je, mergeModels as z, useModel as qe, computed as u, watch as M, ref as v, useTemplateRef as E, unref as r, onMounted as He, createElementBlock as _, openBlock as A, normalizeClass as j, createVNode as q, mergeProps as Je, withCtx as Qe, withDirectives as Xe, normalizeStyle as Ye, createBlock as H, createCommentVNode as J, nextTick as F } from "vue";
2
2
  import "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.34_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
3
3
  import { useDesign as Ze } from "../../../packages/hooks/src/useDesign.js";
4
4
  import "axios";
@@ -27,7 +27,7 @@ import { usePanelSelectSelection as cl } from "./hooks/usePanelSelection.js";
27
27
  const m = 4, Gl = /* @__PURE__ */ je({
28
28
  name: "TtPanelSelect",
29
29
  __name: "index",
30
- props: /* @__PURE__ */ I({
30
+ props: /* @__PURE__ */ z({
31
31
  disabled: { type: Boolean, default: !1 },
32
32
  showNav: { type: Boolean, default: !0 },
33
33
  multiple: { type: Boolean, default: !0 },
@@ -62,7 +62,7 @@ const m = 4, Gl = /* @__PURE__ */ je({
62
62
  modelValue: {},
63
63
  modelModifiers: {}
64
64
  }),
65
- emits: /* @__PURE__ */ I(["visible-change", "change", "focus"], ["update:modelValue"]),
65
+ emits: /* @__PURE__ */ z(["visible-change", "change", "focus"], ["update:modelValue"]),
66
66
  setup(s, { expose: Q, emit: X }) {
67
67
  const Y = ll, Z = el, t = s, C = X, { prefixCls: p } = Ze("panel-select"), {
68
68
  loading: ee,
@@ -123,8 +123,8 @@ const m = 4, Gl = /* @__PURE__ */ je({
123
123
  const l = (a) => {
124
124
  const o = [];
125
125
  return a.forEach((i) => {
126
- var _;
127
- const c = (_ = i.children) != null && _.length ? l(i.children) : void 0;
126
+ var I;
127
+ const c = (I = i.children) != null && I.length ? l(i.children) : void 0;
128
128
  (String(i.label).toLowerCase().includes(e) || c && c.length) && o.push({ ...i, children: c != null && c.length ? c : void 0 });
129
129
  }), o;
130
130
  };
@@ -288,17 +288,17 @@ const m = 4, Gl = /* @__PURE__ */ je({
288
288
  ke(e, l);
289
289
  });
290
290
  }
291
- function _e(e) {
291
+ function Ie(e) {
292
292
  d(() => {
293
293
  xe(e);
294
294
  });
295
295
  }
296
- function Ie() {
296
+ function ze() {
297
297
  d(() => {
298
298
  Ce();
299
299
  });
300
300
  }
301
- function ze(e) {
301
+ function _e(e) {
302
302
  C("focus", e);
303
303
  }
304
304
  return M(
@@ -323,7 +323,7 @@ const m = 4, Gl = /* @__PURE__ */ je({
323
323
  getOptions: () => r(le),
324
324
  /** 获取当前v-model值 */
325
325
  getValue: () => r(n)
326
- }), (e, l) => (A(), z("div", {
326
+ }), (e, l) => (A(), _("div", {
327
327
  ref_key: "selectWrapRef",
328
328
  ref: g,
329
329
  class: j(r(p))
@@ -334,20 +334,19 @@ const m = 4, Gl = /* @__PURE__ */ je({
334
334
  modelValue: W.value,
335
335
  "onUpdate:modelValue": l[0] || (l[0] = (a) => W.value = a)
336
336
  }, r(ue), {
337
+ multiple: s.multiple,
338
+ filterable: !1,
337
339
  placeholder: s.placeholder,
338
340
  persistent: !1,
339
- multiple: "",
340
341
  "fallback-placements": ["bottom-start", "bottom-end", "bottom", "top-start", "top-end", "top", "right", "left"],
341
342
  disabled: s.disabled,
342
- "allow-create": "",
343
- "default-first-option": "",
344
343
  "popper-class": `${r(p)}__popper vxe-table--ignore-clear`,
345
344
  onVisibleChange: $e,
346
345
  onChange: Be,
347
- onFocus: ze
346
+ onFocus: _e
348
347
  }), {
349
348
  empty: Qe(() => [
350
- Xe((A(), z("div", {
349
+ Xe((A(), _("div", {
351
350
  "element-loading-text": "加载中",
352
351
  class: j(`${r(p)}__panel`),
353
352
  style: Ye({
@@ -401,15 +400,15 @@ const m = 4, Gl = /* @__PURE__ */ je({
401
400
  multiple: s.multiple,
402
401
  disabled: P.value,
403
402
  "selected-options": r(me),
404
- onClearAll: Ie,
405
- onRemove: _e
403
+ onClearAll: ze,
404
+ onRemove: Ie
406
405
  }, null, 8, ["prefix-cls", "multiple", "disabled", "selected-options"])) : J("", !0)
407
406
  ], 6)), [
408
407
  [r(Y), r(ee)]
409
408
  ])
410
409
  ]),
411
410
  _: 1
412
- }, 16, ["modelValue", "placeholder", "disabled", "popper-class"])
411
+ }, 16, ["modelValue", "multiple", "placeholder", "disabled", "popper-class"])
413
412
  ], 2));
414
413
  }
415
414
  });
@@ -111,8 +111,9 @@ const ot = { key: 1 }, _t = /* @__PURE__ */ F({
111
111
  link: "",
112
112
  type: t.type || "primary",
113
113
  disabled: N(t.disabledTip, t.disabled),
114
- style: V({ color: t.color, visibility: t.isTextHide ? "hidden" : "visible" }),
114
+ style: V({ visibility: t.isTextHide ? "hidden" : "visible" }),
115
115
  loading: t.loading,
116
+ color: t.color,
116
117
  "data-index": r,
117
118
  "data-table-action-button": "",
118
119
  "data-testid": B(t.label || ""),
@@ -129,7 +130,7 @@ const ot = { key: 1 }, _t = /* @__PURE__ */ F({
129
130
  t.label ? (i(), l("span", ot, H(t.label), 1)) : c("", !0)
130
131
  ]),
131
132
  _: 2
132
- }, 1032, ["type", "disabled", "style", "loading", "data-index", "data-testid", "onClick"])), [
133
+ }, 1032, ["type", "disabled", "style", "loading", "color", "data-index", "data-testid", "onClick"])), [
133
134
  [n(Z), t.disabledTip]
134
135
  ])
135
136
  ], 64))), 128))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/ui",
3
- "version": "1.6.51",
3
+ "version": "1.6.53",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",