@unizhen/ui 0.1.113 → 0.1.114
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,6 +11,10 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
11
11
|
type: PropType<any>;
|
|
12
12
|
default: () => {};
|
|
13
13
|
};
|
|
14
|
+
defaultIcon: {
|
|
15
|
+
type: PropType<any>;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
14
18
|
}>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
15
19
|
icon: {
|
|
16
20
|
required: true;
|
|
@@ -21,7 +25,12 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
21
25
|
type: PropType<any>;
|
|
22
26
|
default: () => {};
|
|
23
27
|
};
|
|
28
|
+
defaultIcon: {
|
|
29
|
+
type: PropType<any>;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
24
32
|
}>> & Readonly<{}>, {
|
|
25
33
|
icon: any;
|
|
26
34
|
extendIcons: any;
|
|
35
|
+
defaultIcon: any;
|
|
27
36
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -88,6 +88,10 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
88
88
|
type: PropType<any>;
|
|
89
89
|
default: () => {};
|
|
90
90
|
};
|
|
91
|
+
defaultIcon: {
|
|
92
|
+
type: PropType<any>;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
91
95
|
}>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
92
96
|
icon: {
|
|
93
97
|
required: true;
|
|
@@ -98,9 +102,14 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
98
102
|
type: PropType<any>;
|
|
99
103
|
default: () => {};
|
|
100
104
|
};
|
|
105
|
+
defaultIcon: {
|
|
106
|
+
type: PropType<any>;
|
|
107
|
+
default: undefined;
|
|
108
|
+
};
|
|
101
109
|
}>> & Readonly<{}>, {
|
|
102
110
|
icon: any;
|
|
103
111
|
extendIcons: any;
|
|
112
|
+
defaultIcon: any;
|
|
104
113
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
105
114
|
NSpin: DefineComponent<ExtractPropTypes<{
|
|
106
115
|
strokeWidth: NumberConstructor;
|
|
@@ -108,6 +108,10 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
108
108
|
type: PropType<any>;
|
|
109
109
|
default: () => {};
|
|
110
110
|
};
|
|
111
|
+
defaultIcon: {
|
|
112
|
+
type: PropType<any>;
|
|
113
|
+
default: undefined;
|
|
114
|
+
};
|
|
111
115
|
}>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
112
116
|
icon: {
|
|
113
117
|
required: true;
|
|
@@ -118,9 +122,14 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
118
122
|
type: PropType<any>;
|
|
119
123
|
default: () => {};
|
|
120
124
|
};
|
|
125
|
+
defaultIcon: {
|
|
126
|
+
type: PropType<any>;
|
|
127
|
+
default: undefined;
|
|
128
|
+
};
|
|
121
129
|
}>> & Readonly<{}>, {
|
|
122
130
|
icon: any;
|
|
123
131
|
extendIcons: any;
|
|
132
|
+
defaultIcon: any;
|
|
124
133
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
125
134
|
NDropdown: DefineComponent<ExtractPropTypes<{
|
|
126
135
|
readonly theme: PropType< DropdownTheme>;
|
package/lib/ui.js
CHANGED
|
@@ -407,13 +407,17 @@ var zn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
407
407
|
extendIcons: {
|
|
408
408
|
type: [Object],
|
|
409
409
|
default: () => ({})
|
|
410
|
+
},
|
|
411
|
+
defaultIcon: {
|
|
412
|
+
type: [Object],
|
|
413
|
+
default: void 0
|
|
410
414
|
}
|
|
411
415
|
},
|
|
412
416
|
setup(e) {
|
|
413
417
|
let t = T(!0), n = T(), r = (r) => {
|
|
414
418
|
if (t.value = !1, r && typeof r == "string") {
|
|
415
419
|
try {
|
|
416
|
-
Object.keys(e.extendIcons).length > 0 ? n.value = e.extendIcons[r] : n.value = Vn[r];
|
|
420
|
+
Object.keys(e.extendIcons).length > 0 ? e.extendIcons[r] ? n.value = e.extendIcons[r] : n.value = e.extendIcons[e.defaultIcon] : n.value = Vn[r];
|
|
417
421
|
} catch {}
|
|
418
422
|
g(() => {
|
|
419
423
|
t.value = !0;
|
|
@@ -7872,7 +7876,7 @@ function pl(e, t, n) {
|
|
|
7872
7876
|
}
|
|
7873
7877
|
//#endregion
|
|
7874
7878
|
//#region package.json
|
|
7875
|
-
var ml = "0.1.
|
|
7879
|
+
var ml = "0.1.114", hl;
|
|
7876
7880
|
async function gl() {
|
|
7877
7881
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7878
7882
|
method: "HEAD",
|