@unizhen/ui 0.1.109 → 0.1.110

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.
@@ -7,12 +7,21 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
7
7
  type: PropType<string | any>;
8
8
  default: string;
9
9
  };
10
+ extendIcons: {
11
+ type: PropType<any>;
12
+ default: () => {};
13
+ };
10
14
  }>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
11
15
  icon: {
12
16
  required: true;
13
17
  type: PropType<string | any>;
14
18
  default: string;
15
19
  };
20
+ extendIcons: {
21
+ type: PropType<any>;
22
+ default: () => {};
23
+ };
16
24
  }>> & Readonly<{}>, {
17
25
  icon: any;
26
+ extendIcons: any;
18
27
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -84,14 +84,23 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
84
84
  type: PropType<string | any>;
85
85
  default: string;
86
86
  };
87
+ extendIcons: {
88
+ type: PropType<any>;
89
+ default: () => {};
90
+ };
87
91
  }>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
88
92
  icon: {
89
93
  required: true;
90
94
  type: PropType<string | any>;
91
95
  default: string;
92
96
  };
97
+ extendIcons: {
98
+ type: PropType<any>;
99
+ default: () => {};
100
+ };
93
101
  }>> & Readonly<{}>, {
94
102
  icon: any;
103
+ extendIcons: any;
95
104
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
96
105
  NSpin: DefineComponent<ExtractPropTypes<{
97
106
  strokeWidth: NumberConstructor;
@@ -104,14 +104,23 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
104
104
  type: PropType<string | any>;
105
105
  default: string;
106
106
  };
107
+ extendIcons: {
108
+ type: PropType<any>;
109
+ default: () => {};
110
+ };
107
111
  }>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
108
112
  icon: {
109
113
  required: true;
110
114
  type: PropType<string | any>;
111
115
  default: string;
112
116
  };
117
+ extendIcons: {
118
+ type: PropType<any>;
119
+ default: () => {};
120
+ };
113
121
  }>> & Readonly<{}>, {
114
122
  icon: any;
123
+ extendIcons: any;
115
124
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
116
125
  NDropdown: DefineComponent<ExtractPropTypes<{
117
126
  readonly theme: PropType< DropdownTheme>;
package/lib/ui.js CHANGED
@@ -269,20 +269,29 @@ var sn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
269
269
  "./Trash.vue": /* @__PURE__ */ W(rn, [["render", on]])
270
270
  })).map(([e, t]) => [e.slice(2, -4), t])), cn = f({
271
271
  name: "UzIcon",
272
- props: { icon: {
273
- required: !0,
274
- type: [String, Object],
275
- default: ""
276
- } },
272
+ props: {
273
+ icon: {
274
+ required: !0,
275
+ type: [String, Object],
276
+ default: ""
277
+ },
278
+ extendIcons: {
279
+ type: [Object],
280
+ default: () => ({})
281
+ }
282
+ },
277
283
  setup(e) {
278
- let t = T(!0), n = T(), r = (e) => {
279
- if (t.value = !1, e && typeof e == "string") {
280
- n.value = ln[e], g(() => {
284
+ let t = T(!0), n = T(), r = (r) => {
285
+ if (t.value = !1, r && typeof r == "string") {
286
+ try {
287
+ Object.keys(e.extendIcons).length > 0 ? n.value = e.extendIcons[r] : n.value = ln[r];
288
+ } catch {}
289
+ g(() => {
281
290
  t.value = !0;
282
291
  });
283
292
  return;
284
293
  }
285
- n.value = e;
294
+ n.value = r;
286
295
  };
287
296
  return r(e.icon), M(() => e.icon, (e) => {
288
297
  r(e);
@@ -7734,7 +7743,7 @@ function Fc(e, t, n) {
7734
7743
  }
7735
7744
  //#endregion
7736
7745
  //#region package.json
7737
- var Ic = "0.1.109", Lc;
7746
+ var Ic = "0.1.110", Lc;
7738
7747
  async function Rc() {
7739
7748
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
7740
7749
  method: "HEAD",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.109",
3
+ "version": "0.1.110",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },