@unizhen/ui 0.1.32 → 0.1.34
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/lib/components/table/child.vue.d.ts +168 -3
- package/lib/ui.js +13 -10
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PropType, DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps,
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, CSSProperties, ComputedRef, SlotsType, ComponentProvideOptions, VNodeChild, Component } from 'vue';
|
|
2
2
|
import { ObjectKey } from '../interface';
|
|
3
3
|
import { IUzFormItemSubTable } from '../form';
|
|
4
|
-
import { ButtonSize, ButtonType, ButtonSpinProps, ButtonSlots, TableBaseColumn, ColumnKey, PaginationProps, TableColumns, CreateRowClassName, CreateRowProps, CreateRowKey, CreateSummary, RowData, DataTableRowKey, DataTableSize, PopoverProps, ScrollbarProps, DataTableSpinProps, DataTableGetCsvCell, DataTableGetCsvHeader, FilterState, SortOrder, ThemeCommonVars, DataTableSlots, FormRules, FormSize, FormInst } from 'naive-ui';
|
|
5
|
-
import { MaybeArray } from 'naive-ui/es/_utils';
|
|
6
4
|
import { Theme } from 'naive-ui/es/_mixins';
|
|
7
5
|
import { ExtractThemeOverrides } from 'naive-ui/es/_mixins/use-theme';
|
|
6
|
+
import { SpinSlots, ButtonSize, ButtonType, ButtonSpinProps, ButtonSlots, TableBaseColumn, ColumnKey, PaginationProps, TableColumns, CreateRowClassName, CreateRowProps, CreateRowKey, CreateSummary, RowData, DataTableRowKey, DataTableSize, PopoverProps, ScrollbarProps, DataTableSpinProps, DataTableGetCsvCell, DataTableGetCsvHeader, FilterState, SortOrder, ThemeCommonVars, DataTableSlots, FormRules, FormSize, FormInst } from 'naive-ui';
|
|
7
|
+
import { MaybeArray } from 'naive-ui/es/_utils';
|
|
8
8
|
import { BaseWaveRef } from 'naive-ui/es/_internal';
|
|
9
9
|
import { RtlItem } from 'naive-ui/es/config-provider/src/internal-interface';
|
|
10
10
|
import { Depth } from 'naive-ui/es/icon/src/Icon';
|
|
@@ -64,6 +64,171 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
64
64
|
status: number;
|
|
65
65
|
item: IUzFormItemSubTable;
|
|
66
66
|
}, {}, {
|
|
67
|
+
NSpin: DefineComponent<ExtractPropTypes<{
|
|
68
|
+
strokeWidth: {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
default: number;
|
|
71
|
+
};
|
|
72
|
+
stroke: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: undefined;
|
|
75
|
+
};
|
|
76
|
+
scale: {
|
|
77
|
+
type: NumberConstructor;
|
|
78
|
+
default: number;
|
|
79
|
+
};
|
|
80
|
+
radius: {
|
|
81
|
+
type: NumberConstructor;
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
84
|
+
contentClass: StringConstructor;
|
|
85
|
+
contentStyle: PropType< CSSProperties | string>;
|
|
86
|
+
description: StringConstructor;
|
|
87
|
+
size: {
|
|
88
|
+
type: PropType<"small" | "medium" | "large" | number>;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
show: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
rotate: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
spinning: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
validator: () => boolean;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
104
|
+
delay: NumberConstructor;
|
|
105
|
+
theme: PropType< Theme<"Spin", {
|
|
106
|
+
fontSize: string;
|
|
107
|
+
textColor: string;
|
|
108
|
+
sizeTiny: string;
|
|
109
|
+
sizeSmall: string;
|
|
110
|
+
sizeMedium: string;
|
|
111
|
+
sizeLarge: string;
|
|
112
|
+
sizeHuge: string;
|
|
113
|
+
color: string;
|
|
114
|
+
opacitySpinning: string;
|
|
115
|
+
}, any>>;
|
|
116
|
+
themeOverrides: PropType< ExtractThemeOverrides<Theme<"Spin", {
|
|
117
|
+
fontSize: string;
|
|
118
|
+
textColor: string;
|
|
119
|
+
sizeTiny: string;
|
|
120
|
+
sizeSmall: string;
|
|
121
|
+
sizeMedium: string;
|
|
122
|
+
sizeLarge: string;
|
|
123
|
+
sizeHuge: string;
|
|
124
|
+
color: string;
|
|
125
|
+
opacitySpinning: string;
|
|
126
|
+
}, any>>>;
|
|
127
|
+
builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Spin", {
|
|
128
|
+
fontSize: string;
|
|
129
|
+
textColor: string;
|
|
130
|
+
sizeTiny: string;
|
|
131
|
+
sizeSmall: string;
|
|
132
|
+
sizeMedium: string;
|
|
133
|
+
sizeLarge: string;
|
|
134
|
+
sizeHuge: string;
|
|
135
|
+
color: string;
|
|
136
|
+
opacitySpinning: string;
|
|
137
|
+
}, any>>>;
|
|
138
|
+
}>, {
|
|
139
|
+
mergedClsPrefix: Ref<string, string>;
|
|
140
|
+
active: Ref<boolean, boolean>;
|
|
141
|
+
mergedStrokeWidth: ComputedRef<number>;
|
|
142
|
+
cssVars: ComputedRef<{
|
|
143
|
+
"--n-bezier": string;
|
|
144
|
+
"--n-opacity-spinning": string;
|
|
145
|
+
"--n-size": string;
|
|
146
|
+
"--n-color": string;
|
|
147
|
+
"--n-text-color": string;
|
|
148
|
+
}> | undefined;
|
|
149
|
+
themeClass: Ref<string, string> | undefined;
|
|
150
|
+
onRender: (() => void) | undefined;
|
|
151
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
152
|
+
strokeWidth: {
|
|
153
|
+
type: NumberConstructor;
|
|
154
|
+
default: number;
|
|
155
|
+
};
|
|
156
|
+
stroke: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: undefined;
|
|
159
|
+
};
|
|
160
|
+
scale: {
|
|
161
|
+
type: NumberConstructor;
|
|
162
|
+
default: number;
|
|
163
|
+
};
|
|
164
|
+
radius: {
|
|
165
|
+
type: NumberConstructor;
|
|
166
|
+
default: number;
|
|
167
|
+
};
|
|
168
|
+
contentClass: StringConstructor;
|
|
169
|
+
contentStyle: PropType< CSSProperties | string>;
|
|
170
|
+
description: StringConstructor;
|
|
171
|
+
size: {
|
|
172
|
+
type: PropType<"small" | "medium" | "large" | number>;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
show: {
|
|
176
|
+
type: BooleanConstructor;
|
|
177
|
+
default: boolean;
|
|
178
|
+
};
|
|
179
|
+
rotate: {
|
|
180
|
+
type: BooleanConstructor;
|
|
181
|
+
default: boolean;
|
|
182
|
+
};
|
|
183
|
+
spinning: {
|
|
184
|
+
type: BooleanConstructor;
|
|
185
|
+
validator: () => boolean;
|
|
186
|
+
default: undefined;
|
|
187
|
+
};
|
|
188
|
+
delay: NumberConstructor;
|
|
189
|
+
theme: PropType< Theme<"Spin", {
|
|
190
|
+
fontSize: string;
|
|
191
|
+
textColor: string;
|
|
192
|
+
sizeTiny: string;
|
|
193
|
+
sizeSmall: string;
|
|
194
|
+
sizeMedium: string;
|
|
195
|
+
sizeLarge: string;
|
|
196
|
+
sizeHuge: string;
|
|
197
|
+
color: string;
|
|
198
|
+
opacitySpinning: string;
|
|
199
|
+
}, any>>;
|
|
200
|
+
themeOverrides: PropType< ExtractThemeOverrides<Theme<"Spin", {
|
|
201
|
+
fontSize: string;
|
|
202
|
+
textColor: string;
|
|
203
|
+
sizeTiny: string;
|
|
204
|
+
sizeSmall: string;
|
|
205
|
+
sizeMedium: string;
|
|
206
|
+
sizeLarge: string;
|
|
207
|
+
sizeHuge: string;
|
|
208
|
+
color: string;
|
|
209
|
+
opacitySpinning: string;
|
|
210
|
+
}, any>>>;
|
|
211
|
+
builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Spin", {
|
|
212
|
+
fontSize: string;
|
|
213
|
+
textColor: string;
|
|
214
|
+
sizeTiny: string;
|
|
215
|
+
sizeSmall: string;
|
|
216
|
+
sizeMedium: string;
|
|
217
|
+
sizeLarge: string;
|
|
218
|
+
sizeHuge: string;
|
|
219
|
+
color: string;
|
|
220
|
+
opacitySpinning: string;
|
|
221
|
+
}, any>>>;
|
|
222
|
+
}>> & Readonly<{}>, {
|
|
223
|
+
size: number | "small" | "medium" | "large";
|
|
224
|
+
show: boolean;
|
|
225
|
+
stroke: string;
|
|
226
|
+
strokeWidth: number;
|
|
227
|
+
scale: number;
|
|
228
|
+
radius: number;
|
|
229
|
+
rotate: boolean;
|
|
230
|
+
spinning: boolean;
|
|
231
|
+
}, SlotsType<SpinSlots>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
67
232
|
NButton: DefineComponent<ExtractPropTypes<{
|
|
68
233
|
readonly color: StringConstructor;
|
|
69
234
|
readonly textColor: StringConstructor;
|
package/lib/ui.js
CHANGED
|
@@ -2989,15 +2989,17 @@ var gf = /*#__PURE__*/ U(Yd, [["render", hf]]), _f = d({
|
|
|
2989
2989
|
},
|
|
2990
2990
|
handleFocus: (t) => {
|
|
2991
2991
|
let n = H(e.item.params.options);
|
|
2992
|
-
if (
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2992
|
+
if (n) {
|
|
2993
|
+
if (e.formValue && e.formValue[t]) {
|
|
2994
|
+
let r = e.formValue[t].toLocaleLowerCase();
|
|
2995
|
+
n.forEach((e) => {
|
|
2996
|
+
e.label && e.label.toLocaleLowerCase().indexOf(r) > -1 ? e.show = !0 : e.show = !1;
|
|
2997
|
+
});
|
|
2998
|
+
} else n.forEach((e) => {
|
|
2999
|
+
e.show = !0;
|
|
2996
3000
|
});
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
});
|
|
3000
|
-
n.find((e) => e.show === !0) ? r.value = !0 : r.value = !1, i.value = n;
|
|
3001
|
+
n.find((e) => e.show === !0) ? r.value = !0 : r.value = !1, i.value = n;
|
|
3002
|
+
}
|
|
3001
3003
|
},
|
|
3002
3004
|
renderDropdown: (t) => f("div", {
|
|
3003
3005
|
class: "uz-form-item-auto",
|
|
@@ -6486,6 +6488,7 @@ function Rp(t, s, u, d, f, p) {
|
|
|
6486
6488
|
var zp = /*#__PURE__*/ U(Ap, [["render", Rp]]), Bp = d({
|
|
6487
6489
|
name: "UzTableChild",
|
|
6488
6490
|
components: {
|
|
6491
|
+
NSpin: je,
|
|
6489
6492
|
NButton: L,
|
|
6490
6493
|
NIcon: B,
|
|
6491
6494
|
NDataTable: oe,
|
|
@@ -6725,7 +6728,7 @@ var zp = /*#__PURE__*/ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6725
6728
|
class: "uz-table-asterisk"
|
|
6726
6729
|
}, Wp = { class: "uz-flex uz-gap-2" }, Gp = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
6727
6730
|
function Kp(t, s, u, d, f, p) {
|
|
6728
|
-
let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm"), S = D("
|
|
6731
|
+
let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm"), S = D("NSpin");
|
|
6729
6732
|
return x(), n(S, {
|
|
6730
6733
|
show: t.spin,
|
|
6731
6734
|
class: "uz-flex-1 uz-w-full"
|
|
@@ -7986,7 +7989,7 @@ function Xm(e, t, n) {
|
|
|
7986
7989
|
}
|
|
7987
7990
|
//#endregion
|
|
7988
7991
|
//#region package.json
|
|
7989
|
-
var Zm = "0.1.
|
|
7992
|
+
var Zm = "0.1.34", Qm;
|
|
7990
7993
|
async function $m() {
|
|
7991
7994
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7992
7995
|
method: "HEAD",
|