@unizhen/ui 0.1.31 → 0.1.33
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 +169 -3
- package/lib/components/table/factory.d.ts +1 -1
- package/lib/ui.js +329 -321
- 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';
|
|
@@ -28,6 +28,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
28
28
|
default: number;
|
|
29
29
|
};
|
|
30
30
|
}>, {
|
|
31
|
+
spin: Ref<boolean, boolean>;
|
|
31
32
|
loading: Ref<boolean, boolean>;
|
|
32
33
|
formRef: Ref<any, any>;
|
|
33
34
|
tableRef: Ref<any, any>;
|
|
@@ -63,6 +64,171 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
63
64
|
status: number;
|
|
64
65
|
item: IUzFormItemSubTable;
|
|
65
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>;
|
|
66
232
|
NButton: DefineComponent<ExtractPropTypes<{
|
|
67
233
|
readonly color: StringConstructor;
|
|
68
234
|
readonly textColor: StringConstructor;
|
|
@@ -104,7 +104,7 @@ export declare function fnPrepareFormData(items: IUzFormItems, formData?: Object
|
|
|
104
104
|
fillingDefaultValue: ObjectKey;
|
|
105
105
|
fillingDefaultArray: ObjectKey[];
|
|
106
106
|
}>;
|
|
107
|
-
export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean, status?: number, formValues?: () => void, modules?: {}): Promise<{
|
|
107
|
+
export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean, status?: number, formValues?: () => void, modules?: {}, reFetch?: boolean): Promise<{
|
|
108
108
|
tableColumns: any[];
|
|
109
109
|
search: {
|
|
110
110
|
input: "number" | "color" | "group" | "input" | "select" | "time" | "date" | "auto" | "cascader" | "checkbox" | "timesPicker" | "filling";
|