urit-qf-ui 0.2.0 → 0.2.3

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.
@@ -1,9 +1,266 @@
1
+ import { TableActionPayload } from '../ts/model';
1
2
  type __VLS_Props = {
2
3
  formId?: string;
3
4
  };
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: Partial<Record<string, (_: any) => any>> & {
8
+ 'search-extra'?(_: {
9
+ params: Record<string, any>;
10
+ update: (field: string, value: any) => void;
11
+ }): any;
12
+ 'search-actions'?(_: {
13
+ params: Record<string, any>;
14
+ search: () => void;
15
+ reset: () => void;
16
+ }): any;
17
+ 'detail-extra'?(_: {
18
+ rowData: Record<string, any> | undefined;
19
+ columns: import('..').TableColumn[] | undefined;
20
+ }): any;
21
+ 'detail-extra'?(_: {
22
+ rowData: Record<string, any> | undefined;
23
+ columns: import('..').TableColumn[] | undefined;
24
+ }): any;
25
+ 'detail-extra'?(_: {
26
+ rowData: Record<string, any> | undefined;
27
+ columns: import('..').TableColumn[] | undefined;
28
+ }): any;
29
+ 'toolbar-left'?(_: {
30
+ currentRow: any;
31
+ }): any;
32
+ 'toolbar-extra'?(_: {
33
+ currentRow: any;
34
+ }): any;
35
+ };
36
+ refs: {
37
+ formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
38
+ showForm: (formId: string, query?: string) => Promise<unknown>;
39
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
40
+ formRef: ({
41
+ $: import('vue').ComponentInternalInstance;
42
+ $data: {};
43
+ $props: {
44
+ readonly model?: Record<string, any> | undefined;
45
+ readonly rules?: import('element-plus').FormRules | undefined;
46
+ readonly labelPosition?: "left" | "right" | "top" | undefined;
47
+ readonly requireAsteriskPosition?: "left" | "right" | undefined;
48
+ readonly labelWidth?: string | number | undefined;
49
+ readonly labelSuffix?: string | undefined;
50
+ readonly inline?: boolean | undefined;
51
+ readonly inlineMessage?: boolean | undefined;
52
+ readonly statusIcon?: boolean | undefined;
53
+ readonly showMessage?: boolean | undefined;
54
+ readonly validateOnRuleChange?: boolean | undefined;
55
+ readonly hideRequiredAsterisk?: boolean | undefined;
56
+ readonly scrollToError?: boolean | undefined;
57
+ readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
58
+ readonly size?: import('element-plus').ComponentSize | undefined;
59
+ readonly disabled?: boolean | undefined;
60
+ readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
61
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
62
+ $attrs: import('vue').Attrs;
63
+ $refs: {
64
+ [x: string]: unknown;
65
+ };
66
+ $slots: Readonly<{
67
+ [name: string]: globalThis.Slot | undefined;
68
+ }>;
69
+ $root: ComponentPublicInstance | null;
70
+ $parent: ComponentPublicInstance | null;
71
+ $host: Element | null;
72
+ $emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
73
+ $el: any;
74
+ $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
75
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
76
+ }>, {
77
+ validate: (callback
78
+ /**
79
+ * 表格渲染器
80
+ *
81
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
82
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
83
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
84
+ *
85
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
86
+ */
87
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
88
+ validateField: (props
89
+ /**
90
+ * 表格渲染器
91
+ *
92
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
93
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
94
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
95
+ *
96
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
97
+ */
98
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback
99
+ /**
100
+ * 表格渲染器
101
+ *
102
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
103
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
104
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
105
+ *
106
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
107
+ */
108
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
109
+ resetFields: (props
110
+ /**
111
+ * 表格渲染器
112
+ *
113
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
114
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
115
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
116
+ *
117
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
118
+ */
119
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
120
+ clearValidate: (props
121
+ /**
122
+ * 表格渲染器
123
+ *
124
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
125
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
126
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
127
+ *
128
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
129
+ */
130
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
131
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
132
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
133
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
134
+ setInitialValues: (initModel: Record<string, any>) => void;
135
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
136
+ validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
137
+ }, string, {
138
+ labelWidth: string | number;
139
+ labelPosition: "left" | "right" | "top";
140
+ requireAsteriskPosition: "left" | "right";
141
+ labelSuffix: string;
142
+ showMessage: boolean;
143
+ validateOnRuleChange: boolean;
144
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
145
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
146
+ beforeCreate?: (() => void) | (() => void)[];
147
+ created?: (() => void) | (() => void)[];
148
+ beforeMount?: (() => void) | (() => void)[];
149
+ mounted?: (() => void) | (() => void)[];
150
+ beforeUpdate?: (() => void) | (() => void)[];
151
+ updated?: (() => void) | (() => void)[];
152
+ activated?: (() => void) | (() => void)[];
153
+ deactivated?: (() => void) | (() => void)[];
154
+ beforeDestroy?: (() => void) | (() => void)[];
155
+ beforeUnmount?: (() => void) | (() => void)[];
156
+ destroyed?: (() => void) | (() => void)[];
157
+ unmounted?: (() => void) | (() => void)[];
158
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
159
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
160
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
161
+ };
162
+ $forceUpdate: () => void;
163
+ $nextTick: typeof import('vue').nextTick;
164
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
165
+ } & Readonly<{
166
+ labelWidth: string | number;
167
+ labelPosition: "left" | "right" | "top";
168
+ requireAsteriskPosition: "left" | "right";
169
+ labelSuffix: string;
170
+ showMessage: boolean;
171
+ validateOnRuleChange: boolean;
172
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
173
+ }> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
174
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
175
+ }>, "labelPosition" | "labelWidth" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & {
176
+ validate: (callback
177
+ /**
178
+ * 表格渲染器
179
+ *
180
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
181
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
182
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
183
+ *
184
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
185
+ */
186
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
187
+ validateField: (props
188
+ /**
189
+ * 表格渲染器
190
+ *
191
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
192
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
193
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
194
+ *
195
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
196
+ */
197
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback
198
+ /**
199
+ * 表格渲染器
200
+ *
201
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
202
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
203
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
204
+ *
205
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
206
+ */
207
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
208
+ resetFields: (props
209
+ /**
210
+ * 表格渲染器
211
+ *
212
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
213
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
214
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
215
+ *
216
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
217
+ */
218
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
219
+ clearValidate: (props
220
+ /**
221
+ * 表格渲染器
222
+ *
223
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
224
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
225
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
226
+ *
227
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
228
+ */
229
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
230
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
231
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
232
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
233
+ setInitialValues: (initModel: Record<string, any>) => void;
234
+ } & {} & import('vue').ComponentCustomProperties & {} & {
235
+ $slots: {
236
+ default?: (props: {}) => any;
237
+ };
238
+ }) | null;
239
+ }, any, import('vue').ComponentProvideOptions, {
240
+ P: {};
241
+ B: {};
242
+ D: {};
243
+ C: {};
244
+ M: {};
245
+ Defaults: {};
246
+ }, Readonly<{}> & Readonly<{}>, {
247
+ showForm: (formId: string, query?: string) => Promise<unknown>;
248
+ }, {}, {}, {}, {}> | null;
249
+ };
250
+ rootEl: any;
251
+ };
252
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
253
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
5
254
  loadConfig: (tableId: string) => Promise<void>;
6
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
255
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
256
+ back: (payload: TableActionPayload) => any;
257
+ "toolbar-action": (payload: TableActionPayload) => any;
258
+ "row-action": (payload: TableActionPayload) => any;
259
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
260
+ onBack?: ((payload: TableActionPayload) => any) | undefined;
261
+ "onToolbar-action"?: ((payload: TableActionPayload) => any) | undefined;
262
+ "onRow-action"?: ((payload: TableActionPayload) => any) | undefined;
263
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
7
264
  formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
8
265
  showForm: (formId: string, query?: string) => Promise<unknown>;
9
266
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
@@ -44,10 +301,60 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
44
301
  $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
45
302
  onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
46
303
  }>, {
47
- validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
48
- validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
49
- resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
50
- clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
304
+ validate: (callback
305
+ /**
306
+ * 表格渲染器
307
+ *
308
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
309
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
310
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
311
+ *
312
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
313
+ */
314
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
315
+ validateField: (props
316
+ /**
317
+ * 表格渲染器
318
+ *
319
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
320
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
321
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
322
+ *
323
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
324
+ */
325
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback
326
+ /**
327
+ * 表格渲染器
328
+ *
329
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
330
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
331
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
332
+ *
333
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
334
+ */
335
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
336
+ resetFields: (props
337
+ /**
338
+ * 表格渲染器
339
+ *
340
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
341
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
342
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
343
+ *
344
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
345
+ */
346
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
347
+ clearValidate: (props
348
+ /**
349
+ * 表格渲染器
350
+ *
351
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
352
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
353
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
354
+ *
355
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
356
+ */
357
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
51
358
  scrollToField: (prop: import('element-plus').FormItemProp) => void;
52
359
  getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
53
360
  fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
@@ -93,10 +400,60 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
93
400
  }> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
94
401
  onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
95
402
  }>, "labelPosition" | "labelWidth" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & {
96
- validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
97
- validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
98
- resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
99
- clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
403
+ validate: (callback
404
+ /**
405
+ * 表格渲染器
406
+ *
407
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
408
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
409
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
410
+ *
411
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
412
+ */
413
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
414
+ validateField: (props
415
+ /**
416
+ * 表格渲染器
417
+ *
418
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
419
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
420
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
421
+ *
422
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
423
+ */
424
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback
425
+ /**
426
+ * 表格渲染器
427
+ *
428
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
429
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
430
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
431
+ *
432
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
433
+ */
434
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
435
+ resetFields: (props
436
+ /**
437
+ * 表格渲染器
438
+ *
439
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
440
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
441
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
442
+ *
443
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
444
+ */
445
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
446
+ clearValidate: (props
447
+ /**
448
+ * 表格渲染器
449
+ *
450
+ * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
451
+ * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
452
+ * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
453
+ *
454
+ * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
455
+ */
456
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
100
457
  scrollToField: (prop: import('element-plus').FormItemProp) => void;
101
458
  getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
102
459
  fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
@@ -116,5 +473,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
116
473
  }, Readonly<{}> & Readonly<{}>, {
117
474
  showForm: (formId: string, query?: string) => Promise<unknown>;
118
475
  }, {}, {}, {}, {}> | null;
119
- }, HTMLDivElement>;
476
+ }, any>;
477
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
120
478
  export default _default;
479
+ type __VLS_WithTemplateSlots<T, S> = T & {
480
+ new (): {
481
+ $slots: S;
482
+ };
483
+ };
@@ -3,7 +3,24 @@ type __VLS_Props = {
3
3
  fields: SearchField[];
4
4
  modelValue: Record<string, any>;
5
5
  };
6
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ 'search-extra'?(_: {
10
+ params: Record<string, any>;
11
+ update: (field: string, value: any) => void;
12
+ }): any;
13
+ 'search-actions'?(_: {
14
+ params: Record<string, any>;
15
+ search: () => void;
16
+ reset: () => void;
17
+ }): any;
18
+ };
19
+ refs: {};
20
+ rootEl: HTMLDivElement;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
24
  "update:modelValue": (value: Record<string, any>) => any;
8
25
  search: () => any;
9
26
  reset: () => any;
@@ -12,4 +29,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
12
29
  onSearch?: (() => any) | undefined;
13
30
  onReset?: (() => any) | undefined;
14
31
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
33
  export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -1,39 +1,31 @@
1
- import { ToolbarItem } from '../ts/model';
1
+ import { TableActionPayload, TableButton } from '../ts/model';
2
2
  type __VLS_Props = {
3
- toolbar: ToolbarItem[];
4
- actions?: {
5
- edit?: string | false;
6
- delete?: string | false;
3
+ items: TableButton[];
4
+ currentRow?: any;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ 'toolbar-left'?(_: {
10
+ currentRow: any;
11
+ }): any;
12
+ 'toolbar-extra'?(_: {
13
+ currentRow: any;
14
+ }): any;
7
15
  };
8
- formId?: string;
9
- apiDelete?: string;
10
- selectedCount: number;
16
+ refs: {};
17
+ rootEl: HTMLDivElement;
11
18
  };
12
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
- create: () => any;
14
- import: () => any;
15
- export: () => any;
16
- batchEdit: () => any;
17
- batchDelete: () => any;
18
- custom: (item: {
19
- text: string;
20
- url: string;
21
- primary?: boolean;
22
- icon?: string;
23
- confirm?: string;
24
- }) => any;
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ action: (payload: TableActionPayload) => any;
25
22
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
26
- onCreate?: (() => any) | undefined;
27
- onImport?: (() => any) | undefined;
28
- onExport?: (() => any) | undefined;
29
- onBatchEdit?: (() => any) | undefined;
30
- onBatchDelete?: (() => any) | undefined;
31
- onCustom?: ((item: {
32
- text: string;
33
- url: string;
34
- primary?: boolean;
35
- icon?: string;
36
- confirm?: string;
37
- }) => any) | undefined;
23
+ onAction?: ((payload: TableActionPayload) => any) | undefined;
38
24
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
26
  export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "urit-qf-ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
@@ -18,6 +18,9 @@
18
18
  "files": [
19
19
  "dist"
20
20
  ],
21
+ "publishConfig": {
22
+ "registry": "https://registry.npmjs.org/"
23
+ },
21
24
  "scripts": {
22
25
  "example": "cd examples && vite",
23
26
  "build": "vue-tsc --noEmit && vite build",