@vtj/ui 0.12.29 → 0.12.30

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/index.mjs CHANGED
@@ -9,10 +9,10 @@ import { VXETable as jt, VxeTableFilterModule as yl, VxeTableEditModule as bl, V
9
9
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
10
10
  * @name @vtj/ui
11
11
  * @author CHC chenhuachun1549@dingtalk.com
12
- * @version 0.12.29
12
+ * @version 0.12.30
13
13
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
14
14
  */
15
- const t2 = "0.12.29", Dl = {
15
+ const t2 = "0.12.30", Dl = {
16
16
  default: 14,
17
17
  small: 12,
18
18
  large: 18
@@ -179,7 +179,7 @@ const Bl = ["src"], Ue = /* @__PURE__ */ G({
179
179
  props: {
180
180
  item: {},
181
181
  subMenu: {},
182
- defaultIcon: {}
182
+ defaultIcon: { type: [Object, Function] }
183
183
  },
184
184
  setup(o) {
185
185
  const t = o, n = Ge(), e = (l) => {
@@ -664,9 +664,8 @@ const Xl = { key: 0 }, ql = /* @__PURE__ */ G({
664
664
  background: n.background,
665
665
  button: n.button,
666
666
  dropdown: n.dropdown,
667
- disabled: u(Lo)(n.disabled, c).value,
668
- ref_for: !0
669
- }, c, {
667
+ disabled: u(Lo)(n.disabled, c).value
668
+ }, { ref_for: !0 }, c, {
670
669
  onClick: a,
671
670
  onCommand: (d) => l(c, d)
672
671
  }), null, 16, ["mode", "size", "type", "circle", "background", "button", "dropdown", "disabled", "onCommand"]))
@@ -2911,9 +2910,8 @@ const Uo = /* @__PURE__ */ G({
2911
2910
  return (a, l) => (v(), k(u($o), q(a.$attrs, { onChange: r }), {
2912
2911
  default: b(() => [
2913
2912
  (v(!0), F(de, null, he(n.options, (i, s) => (v(), k(u(Bo), q({
2914
- key: `item_${s}_${i.value}`,
2915
- ref_for: !0
2916
- }, i), He({ _: 2 }, [
2913
+ key: `item_${s}_${i.value}`
2914
+ }, { ref_for: !0 }, i), He({ _: 2 }, [
2917
2915
  a.$slots.option ? {
2918
2916
  name: "default",
2919
2917
  fn: b(() => [
@@ -2939,9 +2937,8 @@ const Uo = /* @__PURE__ */ G({
2939
2937
  return (e, r) => (v(), k(u(bi), At($t(e.$attrs)), {
2940
2938
  default: b(() => [
2941
2939
  (v(!0), F(de, null, he(t.options, (a, l) => (v(), k(Ee(n.value), q({
2942
- key: `item_${l}_${a.value}`,
2943
- ref_for: !0
2944
- }, a), {
2940
+ key: `item_${l}_${a.value}`
2941
+ }, { ref_for: !0 }, a), {
2945
2942
  default: b(() => [
2946
2943
  W(te(a.label), 1)
2947
2944
  ]),
@@ -2964,9 +2961,8 @@ const Uo = /* @__PURE__ */ G({
2964
2961
  return (e, r) => (v(), k(u(Ci), At($t(e.$attrs)), {
2965
2962
  default: b(() => [
2966
2963
  (v(!0), F(de, null, he(t.options, (a, l) => (v(), k(Ee(n.value), q({
2967
- key: `item_${l}_${a.value}`,
2968
- ref_for: !0
2969
- }, a), {
2964
+ key: `item_${l}_${a.value}`
2965
+ }, { ref_for: !0 }, a), {
2970
2966
  default: b(() => [
2971
2967
  W(te(a.label), 1)
2972
2968
  ]),
@@ -5779,9 +5775,8 @@ const iu = {
5779
5775
  (v(!0), F(de, null, he(e.items, (x) => (v(), F(de, null, [
5780
5776
  h(x) ? N(_.$slots, x, { key: 0 }) : (v(), k(u(Ja), q({
5781
5777
  key: 1,
5782
- disabled: _.disabled,
5783
- ref_for: !0
5784
- }, x, {
5778
+ disabled: _.disabled
5779
+ }, { ref_for: !0 }, x, {
5785
5780
  key: `field_${x.name}`
5786
5781
  }), null, 16, ["disabled"]))
5787
5782
  ], 64))), 256))
@@ -6949,9 +6944,8 @@ const vu = {
6949
6944
  }, m.$attrs), {
6950
6945
  default: b(() => [
6951
6946
  (v(!0), F(de, null, he(e.items, (p) => (v(), k(u(bo), q({
6952
- key: p.value ?? p.name,
6953
- ref_for: !0
6954
- }, i(p)), {
6947
+ key: p.value ?? p.name
6948
+ }, { ref_for: !0 }, i(p)), {
6955
6949
  label: b(() => [
6956
6950
  N(m.$slots, "label", q({ ref_for: !0 }, p), () => [
6957
6951
  p.icon ? (v(), k(Ee(u(Mt)(p.icon)), {
@@ -6965,9 +6959,8 @@ const vu = {
6965
6959
  mode: "icon",
6966
6960
  type: "primary",
6967
6961
  size: "small",
6968
- circle: "",
6969
- ref_for: !0
6970
- }, h, {
6962
+ circle: ""
6963
+ }, { ref_for: !0 }, h, {
6971
6964
  onClick: c,
6972
6965
  onCommand: d
6973
6966
  }), null, 16))), 256))