urit-qf-ui 0.2.7 → 1.0.0

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.
Files changed (68) hide show
  1. package/README.md +88 -22
  2. package/dist/components/UBaseInfo.vue.d.ts +22 -0
  3. package/dist/components/UCascader.vue.d.ts +22 -37
  4. package/dist/components/UDialog.vue.d.ts +94 -0
  5. package/dist/components/UForm.vue.d.ts +233 -0
  6. package/dist/components/UMenu.vue.d.ts +230 -11
  7. package/dist/components/UResults.vue.d.ts +23 -0
  8. package/dist/components/USearch.vue.d.ts +51 -0
  9. package/dist/components/UTable.vue.d.ts +54 -0
  10. package/dist/components/UTablePage.vue.d.ts +152 -0
  11. package/dist/index.d.ts +33 -18
  12. package/dist/index.js +2962 -3147
  13. package/dist/index.umd.cjs +1 -2
  14. package/dist/layout/UGrid.vue.d.ts +44 -0
  15. package/dist/model/base-info.d.ts +113 -0
  16. package/dist/model/cascader.d.ts +135 -0
  17. package/dist/model/form.d.ts +143 -0
  18. package/dist/model/grid.d.ts +53 -0
  19. package/dist/model/menu.d.ts +140 -0
  20. package/dist/model/results.d.ts +90 -0
  21. package/dist/model/search.d.ts +93 -0
  22. package/dist/model/table-page.d.ts +44 -0
  23. package/dist/model/table.d.ts +163 -0
  24. package/dist/parser/cascader.d.ts +35 -0
  25. package/dist/parser/form.d.ts +7 -0
  26. package/dist/parser/menu.d.ts +5 -0
  27. package/dist/parser/table-page.d.ts +15 -0
  28. package/dist/parser/yaml-parser.d.ts +41 -0
  29. package/dist/qf/interface.d.ts +22 -0
  30. package/dist/qf/qf.d.ts +23 -1
  31. package/dist/style.css +1 -1
  32. package/dist/utils/base-info.d.ts +39 -0
  33. package/dist/utils/cascader.d.ts +45 -0
  34. package/dist/utils/form.d.ts +59 -0
  35. package/dist/utils/menu.d.ts +14 -0
  36. package/dist/utils/results.d.ts +38 -0
  37. package/dist/utils/search.d.ts +8 -0
  38. package/dist/utils/table.d.ts +16 -0
  39. package/package.json +1 -1
  40. package/dist/components/UDate.vue.d.ts +0 -47
  41. package/dist/components/UDict.vue.d.ts +0 -49
  42. package/dist/components/UInput.vue.d.ts +0 -52
  43. package/dist/components/UInputNumber.vue.d.ts +0 -52
  44. package/dist/components/UToggle.vue.d.ts +0 -54
  45. package/dist/show/UCascaderShow.vue.d.ts +0 -11
  46. package/dist/show/UDateShow.vue.d.ts +0 -15
  47. package/dist/show/UDictShow.vue.d.ts +0 -9
  48. package/dist/show/UFieldView.vue.d.ts +0 -24
  49. package/dist/show/UInputShow.vue.d.ts +0 -10
  50. package/dist/show/UToggleShow.vue.d.ts +0 -12
  51. package/dist/ts/constant.d.ts +0 -24
  52. package/dist/ts/dict.d.ts +0 -105
  53. package/dist/ts/form-render.d.ts +0 -30
  54. package/dist/ts/http.d.ts +0 -13
  55. package/dist/ts/model.d.ts +0 -202
  56. package/dist/ts/notify.d.ts +0 -42
  57. package/dist/ts/table-data-service.d.ts +0 -30
  58. package/dist/ts/table-render.d.ts +0 -210
  59. package/dist/uform/FormContainer.vue.d.ts +0 -37
  60. package/dist/uform/FormField.vue.d.ts +0 -16
  61. package/dist/uform/FormGrid.vue.d.ts +0 -24
  62. package/dist/uform/FormRender.vue.d.ts +0 -104
  63. package/dist/uform/TableDetail.vue.d.ts +0 -37
  64. package/dist/uform/TableGrid.vue.d.ts +0 -51
  65. package/dist/uform/TablePagination.vue.d.ts +0 -14
  66. package/dist/uform/TableRender.vue.d.ts +0 -618
  67. package/dist/uform/TableSearch.vue.d.ts +0 -38
  68. package/dist/uform/TableToolbar.vue.d.ts +0 -31
@@ -1,618 +0,0 @@
1
- import { TableActionPayload } from '../ts/model';
2
- type __VLS_Props = {
3
- formId?: string;
4
- /**
5
- * 详情区的 `detail-extra` 插槽与默认字段列表的关系:
6
- * replace(默认)—— **二选一**:页面给了 detail-extra 插槽,就只渲染插槽内容,
7
- * 默认字段列表一个都不渲染(想完全接管详情区时用)
8
- * append —— 追加:默认字段列表 + 插槽内容上下共存(旧行为)
9
- */
10
- detailExtraMode?: 'replace' | 'append';
11
- };
12
- declare function __VLS_template(): {
13
- attrs: Partial<{}>;
14
- slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
15
- 'search-extra'?(_: {
16
- params: Record<string, any>;
17
- update: (field: string, value: any) => void;
18
- }): any;
19
- 'search-actions'?(_: {
20
- params: Record<string, any>;
21
- search: () => void;
22
- reset: () => void;
23
- }): any;
24
- 'toolbar-left'?(_: {
25
- currentRow: any;
26
- }): any;
27
- 'toolbar-extra'?(_: {
28
- currentRow: any;
29
- }): any;
30
- };
31
- refs: {
32
- formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
33
- showForm: (formId: string, query?: string) => Promise<unknown>;
34
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
35
- formRef: ({
36
- $: import('vue').ComponentInternalInstance;
37
- $data: {};
38
- $props: {
39
- readonly model?: Record<string, any> | undefined;
40
- readonly rules?: import('element-plus').FormRules | undefined;
41
- readonly labelPosition?: "left" | "right" | "top" | undefined;
42
- readonly requireAsteriskPosition?: "left" | "right" | undefined;
43
- readonly labelWidth?: string | number | undefined;
44
- readonly labelSuffix?: string | undefined;
45
- readonly inline?: boolean | undefined;
46
- readonly inlineMessage?: boolean | undefined;
47
- readonly statusIcon?: boolean | undefined;
48
- readonly showMessage?: boolean | undefined;
49
- readonly validateOnRuleChange?: boolean | undefined;
50
- readonly hideRequiredAsterisk?: boolean | undefined;
51
- readonly scrollToError?: boolean | undefined;
52
- readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
53
- readonly size?: import('element-plus').ComponentSize | undefined;
54
- readonly disabled?: boolean | undefined;
55
- readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
56
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
57
- $attrs: import('vue').Attrs;
58
- $refs: {
59
- [x: string]: unknown;
60
- };
61
- $slots: Readonly<{
62
- [name: string]: globalThis.Slot | undefined;
63
- }>;
64
- $root: ComponentPublicInstance | null;
65
- $parent: ComponentPublicInstance | null;
66
- $host: Element | null;
67
- $emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
68
- $el: any;
69
- $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
70
- onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
71
- }>, {
72
- validate: (callback
73
- /**
74
- * 表格渲染器
75
- *
76
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
77
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
78
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
79
- *
80
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
81
- *
82
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
83
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
84
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
85
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
86
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
87
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
88
- */
89
- ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
90
- validateField: (props
91
- /**
92
- * 表格渲染器
93
- *
94
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
95
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
96
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
97
- *
98
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
99
- *
100
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
101
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
102
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
103
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
104
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
105
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
106
- */
107
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback
108
- /**
109
- * 表格渲染器
110
- *
111
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
112
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
113
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
114
- *
115
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
116
- *
117
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
118
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
119
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
120
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
121
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
122
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
123
- */
124
- ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
125
- resetFields: (props
126
- /**
127
- * 表格渲染器
128
- *
129
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
130
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
131
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
132
- *
133
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
134
- *
135
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
136
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
137
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
138
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
139
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
140
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
141
- */
142
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
143
- clearValidate: (props
144
- /**
145
- * 表格渲染器
146
- *
147
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
148
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
149
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
150
- *
151
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
152
- *
153
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
154
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
155
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
156
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
157
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
158
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
159
- */
160
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
161
- scrollToField: (prop: import('element-plus').FormItemProp) => void;
162
- getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
163
- fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
164
- setInitialValues: (initModel: Record<string, any>) => void;
165
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
166
- validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
167
- }, string, {
168
- labelWidth: string | number;
169
- labelPosition: "left" | "right" | "top";
170
- requireAsteriskPosition: "left" | "right";
171
- labelSuffix: string;
172
- showMessage: boolean;
173
- validateOnRuleChange: boolean;
174
- scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
175
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
176
- beforeCreate?: (() => void) | (() => void)[];
177
- created?: (() => void) | (() => void)[];
178
- beforeMount?: (() => void) | (() => void)[];
179
- mounted?: (() => void) | (() => void)[];
180
- beforeUpdate?: (() => void) | (() => void)[];
181
- updated?: (() => void) | (() => void)[];
182
- activated?: (() => void) | (() => void)[];
183
- deactivated?: (() => void) | (() => void)[];
184
- beforeDestroy?: (() => void) | (() => void)[];
185
- beforeUnmount?: (() => void) | (() => void)[];
186
- destroyed?: (() => void) | (() => void)[];
187
- unmounted?: (() => void) | (() => void)[];
188
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
189
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
190
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
191
- };
192
- $forceUpdate: () => void;
193
- $nextTick: typeof import('vue').nextTick;
194
- $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;
195
- } & Readonly<{
196
- labelWidth: string | number;
197
- labelPosition: "left" | "right" | "top";
198
- requireAsteriskPosition: "left" | "right";
199
- labelSuffix: string;
200
- showMessage: boolean;
201
- validateOnRuleChange: boolean;
202
- scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
203
- }> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
204
- onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
205
- }>, "labelPosition" | "labelWidth" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & {
206
- validate: (callback
207
- /**
208
- * 表格渲染器
209
- *
210
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
211
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
212
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
213
- *
214
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
215
- *
216
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
217
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
218
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
219
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
220
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
221
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
222
- */
223
- ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
224
- validateField: (props
225
- /**
226
- * 表格渲染器
227
- *
228
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
229
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
230
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
231
- *
232
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
233
- *
234
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
235
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
236
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
237
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
238
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
239
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
240
- */
241
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback
242
- /**
243
- * 表格渲染器
244
- *
245
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
246
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
247
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
248
- *
249
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
250
- *
251
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
252
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
253
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
254
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
255
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
256
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
257
- */
258
- ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
259
- resetFields: (props
260
- /**
261
- * 表格渲染器
262
- *
263
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
264
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
265
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
266
- *
267
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
268
- *
269
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
270
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
271
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
272
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
273
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
274
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
275
- */
276
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
277
- clearValidate: (props
278
- /**
279
- * 表格渲染器
280
- *
281
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
282
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
283
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
284
- *
285
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
286
- *
287
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
288
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
289
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
290
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
291
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
292
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
293
- */
294
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
295
- scrollToField: (prop: import('element-plus').FormItemProp) => void;
296
- getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
297
- fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
298
- setInitialValues: (initModel: Record<string, any>) => void;
299
- } & {} & import('vue').ComponentCustomProperties & {} & {
300
- $slots: {
301
- default?: (props: {}) => any;
302
- };
303
- }) | null;
304
- }, any, import('vue').ComponentProvideOptions, {
305
- P: {};
306
- B: {};
307
- D: {};
308
- C: {};
309
- M: {};
310
- Defaults: {};
311
- }, Readonly<{}> & Readonly<{}>, {
312
- showForm: (formId: string, query?: string) => Promise<unknown>;
313
- }, {}, {}, {}, {}> | null;
314
- };
315
- rootEl: any;
316
- };
317
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
318
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
319
- loadConfig: (tableId: string) => Promise<void>;
320
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
321
- back: (payload: TableActionPayload) => any;
322
- "toolbar-action": (payload: TableActionPayload) => any;
323
- "row-action": (payload: TableActionPayload) => any;
324
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
325
- onBack?: ((payload: TableActionPayload) => any) | undefined;
326
- "onToolbar-action"?: ((payload: TableActionPayload) => any) | undefined;
327
- "onRow-action"?: ((payload: TableActionPayload) => any) | undefined;
328
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
329
- formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
330
- showForm: (formId: string, query?: string) => Promise<unknown>;
331
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
332
- formRef: ({
333
- $: import('vue').ComponentInternalInstance;
334
- $data: {};
335
- $props: {
336
- readonly model?: Record<string, any> | undefined;
337
- readonly rules?: import('element-plus').FormRules | undefined;
338
- readonly labelPosition?: "left" | "right" | "top" | undefined;
339
- readonly requireAsteriskPosition?: "left" | "right" | undefined;
340
- readonly labelWidth?: string | number | undefined;
341
- readonly labelSuffix?: string | undefined;
342
- readonly inline?: boolean | undefined;
343
- readonly inlineMessage?: boolean | undefined;
344
- readonly statusIcon?: boolean | undefined;
345
- readonly showMessage?: boolean | undefined;
346
- readonly validateOnRuleChange?: boolean | undefined;
347
- readonly hideRequiredAsterisk?: boolean | undefined;
348
- readonly scrollToError?: boolean | undefined;
349
- readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
350
- readonly size?: import('element-plus').ComponentSize | undefined;
351
- readonly disabled?: boolean | undefined;
352
- readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
353
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
354
- $attrs: import('vue').Attrs;
355
- $refs: {
356
- [x: string]: unknown;
357
- };
358
- $slots: Readonly<{
359
- [name: string]: globalThis.Slot | undefined;
360
- }>;
361
- $root: ComponentPublicInstance | null;
362
- $parent: ComponentPublicInstance | null;
363
- $host: Element | null;
364
- $emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
365
- $el: any;
366
- $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
367
- onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
368
- }>, {
369
- validate: (callback
370
- /**
371
- * 表格渲染器
372
- *
373
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
374
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
375
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
376
- *
377
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
378
- *
379
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
380
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
381
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
382
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
383
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
384
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
385
- */
386
- ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
387
- validateField: (props
388
- /**
389
- * 表格渲染器
390
- *
391
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
392
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
393
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
394
- *
395
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
396
- *
397
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
398
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
399
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
400
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
401
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
402
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
403
- */
404
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback
405
- /**
406
- * 表格渲染器
407
- *
408
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
409
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
410
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
411
- *
412
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
413
- *
414
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
415
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
416
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
417
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
418
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
419
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
420
- */
421
- ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
422
- resetFields: (props
423
- /**
424
- * 表格渲染器
425
- *
426
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
427
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
428
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
429
- *
430
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
431
- *
432
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
433
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
434
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
435
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
436
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
437
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
438
- */
439
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
440
- clearValidate: (props
441
- /**
442
- * 表格渲染器
443
- *
444
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
445
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
446
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
447
- *
448
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
449
- *
450
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
451
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
452
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
453
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
454
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
455
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
456
- */
457
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
458
- scrollToField: (prop: import('element-plus').FormItemProp) => void;
459
- getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
460
- fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
461
- setInitialValues: (initModel: Record<string, any>) => void;
462
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
463
- validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
464
- }, string, {
465
- labelWidth: string | number;
466
- labelPosition: "left" | "right" | "top";
467
- requireAsteriskPosition: "left" | "right";
468
- labelSuffix: string;
469
- showMessage: boolean;
470
- validateOnRuleChange: boolean;
471
- scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
472
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
473
- beforeCreate?: (() => void) | (() => void)[];
474
- created?: (() => void) | (() => void)[];
475
- beforeMount?: (() => void) | (() => void)[];
476
- mounted?: (() => void) | (() => void)[];
477
- beforeUpdate?: (() => void) | (() => void)[];
478
- updated?: (() => void) | (() => void)[];
479
- activated?: (() => void) | (() => void)[];
480
- deactivated?: (() => void) | (() => void)[];
481
- beforeDestroy?: (() => void) | (() => void)[];
482
- beforeUnmount?: (() => void) | (() => void)[];
483
- destroyed?: (() => void) | (() => void)[];
484
- unmounted?: (() => void) | (() => void)[];
485
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
486
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
487
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
488
- };
489
- $forceUpdate: () => void;
490
- $nextTick: typeof import('vue').nextTick;
491
- $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;
492
- } & Readonly<{
493
- labelWidth: string | number;
494
- labelPosition: "left" | "right" | "top";
495
- requireAsteriskPosition: "left" | "right";
496
- labelSuffix: string;
497
- showMessage: boolean;
498
- validateOnRuleChange: boolean;
499
- scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
500
- }> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
501
- onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
502
- }>, "labelPosition" | "labelWidth" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & {
503
- validate: (callback
504
- /**
505
- * 表格渲染器
506
- *
507
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
508
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
509
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
510
- *
511
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
512
- *
513
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
514
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
515
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
516
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
517
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
518
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
519
- */
520
- ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
521
- validateField: (props
522
- /**
523
- * 表格渲染器
524
- *
525
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
526
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
527
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
528
- *
529
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
530
- *
531
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
532
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
533
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
534
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
535
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
536
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
537
- */
538
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback
539
- /**
540
- * 表格渲染器
541
- *
542
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
543
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
544
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
545
- *
546
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
547
- *
548
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
549
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
550
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
551
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
552
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
553
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
554
- */
555
- ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
556
- resetFields: (props
557
- /**
558
- * 表格渲染器
559
- *
560
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
561
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
562
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
563
- *
564
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
565
- *
566
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
567
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
568
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
569
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
570
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
571
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
572
- */
573
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
574
- clearValidate: (props
575
- /**
576
- * 表格渲染器
577
- *
578
- * 封装:搜索区 / 表格 / 详情区(固定侧栏或抽屉)/ 底部按钮栏 / 分页
579
- * 灵活性:el-table 的属性、事件、插槽全部透传(未识别的插槽转发给 el-table 的对应插槽,
580
- * 未识别的属性/事件($attrs)直接绑到 el-table 上);各封装组件另外提供「追加型」插槽
581
- *
582
- * 配置驱动:yaml 里没有 search / toolbar / detail / actions 节点就不渲染对应功能
583
- *
584
- * 列插槽(透传给 TableGrid,用法见 TableGrid.vue 文件头):
585
- * · `#col-<field>` 覆盖任意一列的单元格内容(作用域 { row, value, column })
586
- * · `#actions` 接管操作列(作用域 { row, actions })—— **替换** yaml 的按钮
587
- * · `#actions-extra` 在 yaml 的按钮后面**追加**按钮(作用域 { row })
588
- * 只开插槽不配 yaml actions 也能建出操作列,宽度用 yaml 的 `actionsWidth` 指定。
589
- * 这类插槽由 `methods.getTableSlots()` 一并转发(它们不在 RENDER_SLOTS 里)。
590
- */
591
- ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
592
- scrollToField: (prop: import('element-plus').FormItemProp) => void;
593
- getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
594
- fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
595
- setInitialValues: (initModel: Record<string, any>) => void;
596
- } & {} & import('vue').ComponentCustomProperties & {} & {
597
- $slots: {
598
- default?: (props: {}) => any;
599
- };
600
- }) | null;
601
- }, any, import('vue').ComponentProvideOptions, {
602
- P: {};
603
- B: {};
604
- D: {};
605
- C: {};
606
- M: {};
607
- Defaults: {};
608
- }, Readonly<{}> & Readonly<{}>, {
609
- showForm: (formId: string, query?: string) => Promise<unknown>;
610
- }, {}, {}, {}, {}> | null;
611
- }, any>;
612
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
613
- export default _default;
614
- type __VLS_WithTemplateSlots<T, S> = T & {
615
- new (): {
616
- $slots: S;
617
- };
618
- };