@unizhen/ui 0.1.116 → 0.1.117
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,21 +7,12 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
7
7
|
type: PropType<string | any>;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
-
defaultIcon: {
|
|
11
|
-
type: PropType<any>;
|
|
12
|
-
default: undefined;
|
|
13
|
-
};
|
|
14
10
|
}>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
15
11
|
icon: {
|
|
16
12
|
required: true;
|
|
17
13
|
type: PropType<string | any>;
|
|
18
14
|
default: string;
|
|
19
15
|
};
|
|
20
|
-
defaultIcon: {
|
|
21
|
-
type: PropType<any>;
|
|
22
|
-
default: undefined;
|
|
23
|
-
};
|
|
24
16
|
}>> & Readonly<{}>, {
|
|
25
17
|
icon: any;
|
|
26
|
-
defaultIcon: any;
|
|
27
18
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -84,23 +84,14 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
84
84
|
type: PropType<string | any>;
|
|
85
85
|
default: string;
|
|
86
86
|
};
|
|
87
|
-
defaultIcon: {
|
|
88
|
-
type: PropType<any>;
|
|
89
|
-
default: undefined;
|
|
90
|
-
};
|
|
91
87
|
}>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
92
88
|
icon: {
|
|
93
89
|
required: true;
|
|
94
90
|
type: PropType<string | any>;
|
|
95
91
|
default: string;
|
|
96
92
|
};
|
|
97
|
-
defaultIcon: {
|
|
98
|
-
type: PropType<any>;
|
|
99
|
-
default: undefined;
|
|
100
|
-
};
|
|
101
93
|
}>> & Readonly<{}>, {
|
|
102
94
|
icon: any;
|
|
103
|
-
defaultIcon: any;
|
|
104
95
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
105
96
|
NSpin: DefineComponent<ExtractPropTypes<{
|
|
106
97
|
strokeWidth: NumberConstructor;
|
|
@@ -104,23 +104,14 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
104
104
|
type: PropType<string | any>;
|
|
105
105
|
default: string;
|
|
106
106
|
};
|
|
107
|
-
defaultIcon: {
|
|
108
|
-
type: PropType<any>;
|
|
109
|
-
default: undefined;
|
|
110
|
-
};
|
|
111
107
|
}>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
112
108
|
icon: {
|
|
113
109
|
required: true;
|
|
114
110
|
type: PropType<string | any>;
|
|
115
111
|
default: string;
|
|
116
112
|
};
|
|
117
|
-
defaultIcon: {
|
|
118
|
-
type: PropType<any>;
|
|
119
|
-
default: undefined;
|
|
120
|
-
};
|
|
121
113
|
}>> & Readonly<{}>, {
|
|
122
114
|
icon: any;
|
|
123
|
-
defaultIcon: any;
|
|
124
115
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
125
116
|
NDropdown: DefineComponent<ExtractPropTypes<{
|
|
126
117
|
readonly theme: PropType< DropdownTheme>;
|
package/lib/ui.js
CHANGED
|
@@ -396,30 +396,24 @@ window.addEventListener("resize", qt), qt();
|
|
|
396
396
|
//#region components/icon/index.vue
|
|
397
397
|
var Jt = d({
|
|
398
398
|
name: "UzIcon",
|
|
399
|
-
props: {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
},
|
|
405
|
-
defaultIcon: {
|
|
406
|
-
type: [Object],
|
|
407
|
-
default: void 0
|
|
408
|
-
}
|
|
409
|
-
},
|
|
399
|
+
props: { icon: {
|
|
400
|
+
required: !0,
|
|
401
|
+
type: [String, Object],
|
|
402
|
+
default: ""
|
|
403
|
+
} },
|
|
410
404
|
setup(e) {
|
|
411
|
-
let t = w(!0), n = w(), r = (
|
|
412
|
-
if (t.value = !1,
|
|
405
|
+
let t = w(!0), n = w(), r = (e) => {
|
|
406
|
+
if (t.value = !1, e && typeof e == "string") {
|
|
413
407
|
try {
|
|
414
408
|
let t = q.icons;
|
|
415
|
-
Object.keys(t).length > 0 && (t[
|
|
409
|
+
Object.keys(t).length > 0 && (t[e] ? n.value = t[e] : t[q.iconDefault] && (n.value = t[q.iconDefault]));
|
|
416
410
|
} catch {}
|
|
417
411
|
h(() => {
|
|
418
412
|
t.value = !0;
|
|
419
413
|
});
|
|
420
414
|
return;
|
|
421
415
|
}
|
|
422
|
-
n.value =
|
|
416
|
+
n.value = e;
|
|
423
417
|
};
|
|
424
418
|
return r(e.icon), j(() => e.icon, (e) => {
|
|
425
419
|
r(e);
|
|
@@ -7533,7 +7527,7 @@ function Bs(e, t, n) {
|
|
|
7533
7527
|
}
|
|
7534
7528
|
//#endregion
|
|
7535
7529
|
//#region package.json
|
|
7536
|
-
var Vs = "0.1.
|
|
7530
|
+
var Vs = "0.1.117", Hs;
|
|
7537
7531
|
async function Us() {
|
|
7538
7532
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7539
7533
|
method: "HEAD",
|