@robot-admin/naive-ui-components 0.29.1 → 0.29.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.
Files changed (102) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +1 -1
  3. package/README_EN.md +1 -1
  4. package/dist/C_ActionBar.css +49 -49
  5. package/dist/C_ActionBar2.cjs +1 -1
  6. package/dist/C_ActionBar2.js +1 -1
  7. package/dist/C_BatchResult.css +11 -7
  8. package/dist/C_BatchResult2.cjs +1 -1
  9. package/dist/C_BatchResult2.js +1 -1
  10. package/dist/C_DataPicker.css +29 -21
  11. package/dist/C_DataPicker.d.cts +2 -2
  12. package/dist/C_DataPicker.d.ts +2 -2
  13. package/dist/C_DataPicker2.cjs +1 -1
  14. package/dist/C_DataPicker2.js +1 -1
  15. package/dist/C_FormModal.css +49 -49
  16. package/dist/C_Table.base.css +49 -49
  17. package/dist/C_Table.css +49 -49
  18. package/dist/C_Table.d.cts +1 -1
  19. package/dist/C_Table.d.ts +1 -1
  20. package/dist/constants.d.cts +1 -1
  21. package/dist/constants.d.ts +1 -1
  22. package/dist/constants2.d.cts +1 -1
  23. package/dist/constants2.d.ts +1 -1
  24. package/dist/constants3.d.cts +3 -3
  25. package/dist/constants3.d.ts +3 -3
  26. package/dist/constants4.d.cts +10 -10
  27. package/dist/constants4.d.ts +10 -10
  28. package/dist/constants5.d.cts +2 -2
  29. package/dist/constants5.d.ts +2 -2
  30. package/dist/data2.d.cts +9 -9
  31. package/dist/data2.d.ts +9 -9
  32. package/dist/dateRange.d.cts +7 -2
  33. package/dist/dateRange.d.ts +7 -2
  34. package/dist/index.d.cts +2 -2
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.vue.d.cts +4 -4
  37. package/dist/index.vue.d.ts +4 -4
  38. package/dist/index10.vue.d.cts +4 -4
  39. package/dist/index10.vue.d.ts +4 -4
  40. package/dist/index11.vue.d.cts +4 -4
  41. package/dist/index11.vue.d.ts +9 -4
  42. package/dist/index12.vue.d.cts +9 -4
  43. package/dist/index13.vue.d.ts +3 -3
  44. package/dist/index14.vue.d.cts +3 -3
  45. package/dist/index16.vue.d.ts +1 -1
  46. package/dist/index17.vue.d.cts +1 -1
  47. package/dist/index17.vue.d.ts +6 -6
  48. package/dist/index18.vue.d.cts +6 -6
  49. package/dist/index2.vue.d.cts +2 -2
  50. package/dist/index2.vue.d.ts +2 -2
  51. package/dist/index20.vue.d.ts +1 -1
  52. package/dist/index21.vue.d.cts +1 -1
  53. package/dist/index21.vue.d.ts +2 -2
  54. package/dist/index22.vue.d.cts +2 -2
  55. package/dist/index22.vue.d.ts +2 -2
  56. package/dist/index23.vue.d.cts +1 -1
  57. package/dist/index23.vue.d.ts +1 -1
  58. package/dist/index24.vue.d.cts +1 -1
  59. package/dist/index24.vue.d.ts +1 -1
  60. package/dist/index26.vue.d.cts +2 -2
  61. package/dist/index26.vue.d.ts +2 -2
  62. package/dist/index27.vue.d.cts +1 -1
  63. package/dist/index27.vue.d.ts +1 -1
  64. package/dist/index3.vue.d.cts +4 -4
  65. package/dist/index3.vue.d.ts +4 -4
  66. package/dist/index30.vue.d.cts +2 -2
  67. package/dist/index30.vue.d.ts +2 -2
  68. package/dist/index31.vue.d.cts +2 -2
  69. package/dist/index31.vue.d.ts +2 -2
  70. package/dist/index5.vue.d.cts +2 -2
  71. package/dist/index9.vue.d.ts +4 -4
  72. package/dist/mapUtils.d.cts +2 -2
  73. package/dist/mapUtils.d.ts +2 -2
  74. package/dist/style.css +89 -77
  75. package/dist/useCalendarEvents.d.cts +1 -1
  76. package/dist/useCalendarEvents.d.ts +1 -1
  77. package/dist/useCollapsePanel.d.cts +3 -3
  78. package/dist/useCollapsePanel.d.ts +3 -3
  79. package/dist/useCropperCore.d.cts +7 -7
  80. package/dist/useCropperCore.d.ts +7 -7
  81. package/dist/useEdgeInteraction.d.cts +3 -3
  82. package/dist/useEdgeInteraction.d.ts +3 -3
  83. package/dist/useFullscreen.d.cts +2 -2
  84. package/dist/useFullscreen.d.ts +2 -2
  85. package/dist/useInfiniteScroll.d.cts +2 -2
  86. package/dist/useInfiniteScroll.d.ts +2 -2
  87. package/dist/useQRCode.d.cts +3 -3
  88. package/dist/useQRCode.d.ts +3 -3
  89. package/dist/useSignatureHistory.d.cts +5 -5
  90. package/dist/useSignatureHistory.d.ts +5 -5
  91. package/dist/useSplitResize.d.cts +7 -7
  92. package/dist/useSplitResize.d.ts +7 -7
  93. package/dist/useTableQuery.d.cts +12 -12
  94. package/dist/useTableQuery.d.ts +12 -12
  95. package/dist/useWorkflowValidation.d.cts +99 -99
  96. package/dist/useWorkflowValidation.d.ts +99 -99
  97. package/dist/verification.d.cts +5 -5
  98. package/dist/verification.d.ts +5 -5
  99. package/docs/guides/data-picker.md +8 -8
  100. package/docs/guides/usage.en.md +16 -15
  101. package/docs/guides/usage.md +16 -15
  102. package/package.json +1 -1
package/dist/C_Table.css CHANGED
@@ -66,7 +66,7 @@
66
66
 
67
67
  /* 通用操作按钮组件样式 */
68
68
  /* ================= 主容器 ================= */
69
- .c-action-bar[data-v-48eb3073] {
69
+ .c-action-bar[data-v-144e59ae] {
70
70
  display: flex;
71
71
  min-width: 0;
72
72
  align-items: center;
@@ -78,26 +78,26 @@
78
78
  border: 1px solid var(--c-border);
79
79
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
80
80
  }
81
- .c-action-bar.is-align-left[data-v-48eb3073] {
81
+ .c-action-bar.is-align-left[data-v-144e59ae] {
82
82
  justify-content: flex-start;
83
83
  }
84
- .c-action-bar.is-align-center[data-v-48eb3073] {
84
+ .c-action-bar.is-align-center[data-v-144e59ae] {
85
85
  justify-content: center;
86
86
  }
87
- .c-action-bar.is-align-right[data-v-48eb3073] {
87
+ .c-action-bar.is-align-right[data-v-144e59ae] {
88
88
  justify-content: flex-end;
89
89
  }
90
- .c-action-bar.is-align-space-between[data-v-48eb3073] {
90
+ .c-action-bar.is-align-space-between[data-v-144e59ae] {
91
91
  justify-content: space-between;
92
92
  }
93
- .c-action-bar.is-align-space-around[data-v-48eb3073] {
93
+ .c-action-bar.is-align-space-around[data-v-144e59ae] {
94
94
  justify-content: space-around;
95
95
  }
96
- .c-action-bar.is-compact[data-v-48eb3073] {
96
+ .c-action-bar.is-compact[data-v-144e59ae] {
97
97
  padding: 8px;
98
98
  margin-bottom: 8px;
99
99
  }
100
- .c-action-bar.is-inline[data-v-48eb3073] {
100
+ .c-action-bar.is-inline[data-v-144e59ae] {
101
101
  padding: 0;
102
102
  margin-bottom: 0;
103
103
  background: transparent;
@@ -105,104 +105,104 @@
105
105
  border-radius: 0;
106
106
  box-shadow: none;
107
107
  }
108
- .c-action-bar.is-wrap[data-v-48eb3073] {
108
+ .c-action-bar.is-wrap[data-v-144e59ae] {
109
109
  flex-wrap: wrap;
110
110
  gap: 8px;
111
111
  }
112
- .c-action-bar.is-wrap .actions-group[data-v-48eb3073] {
112
+ .c-action-bar.is-wrap .actions-group[data-v-144e59ae] {
113
113
  flex-wrap: wrap;
114
114
  min-width: 0;
115
115
  max-width: 100%;
116
116
  }
117
117
  @media (max-width: 768px) {
118
- .c-action-bar[data-v-48eb3073] {
118
+ .c-action-bar[data-v-144e59ae] {
119
119
  flex-direction: column;
120
120
  gap: 12px;
121
121
  }
122
- .c-action-bar .actions-group[data-v-48eb3073] {
122
+ .c-action-bar .actions-group[data-v-144e59ae] {
123
123
  width: 100%;
124
124
  justify-content: center;
125
125
  }
126
126
  }
127
127
 
128
128
  /* ================= 按钮组 ================= */
129
- .actions-group[data-v-48eb3073] {
129
+ .actions-group[data-v-144e59ae] {
130
130
  display: flex;
131
131
  align-items: center;
132
132
  gap: 12px;
133
133
  flex-wrap: nowrap;
134
134
  flex-shrink: 0;
135
135
  }
136
- .actions-group.actions-left[data-v-48eb3073] {
136
+ .actions-group.actions-left[data-v-144e59ae] {
137
137
  justify-content: flex-start;
138
138
  }
139
- .actions-group.actions-right[data-v-48eb3073] {
139
+ .actions-group.actions-right[data-v-144e59ae] {
140
140
  justify-content: flex-end;
141
141
  }
142
- .c-action-bar.has-only-left.is-align-center .actions-group.actions-left[data-v-48eb3073], .c-action-bar.has-only-right.is-align-center .actions-group.actions-right[data-v-48eb3073] {
142
+ .c-action-bar.has-only-left.is-align-center .actions-group.actions-left[data-v-144e59ae], .c-action-bar.has-only-right.is-align-center .actions-group.actions-right[data-v-144e59ae] {
143
143
  width: 100%;
144
144
  justify-content: center;
145
145
  }
146
- .c-action-bar.has-only-left.is-align-space-between .actions-group.actions-left[data-v-48eb3073], .c-action-bar.has-only-right.is-align-space-between .actions-group.actions-right[data-v-48eb3073] {
146
+ .c-action-bar.has-only-left.is-align-space-between .actions-group.actions-left[data-v-144e59ae], .c-action-bar.has-only-right.is-align-space-between .actions-group.actions-right[data-v-144e59ae] {
147
147
  width: 100%;
148
148
  justify-content: space-between;
149
149
  }
150
- .c-action-bar.has-only-left.is-align-space-around .actions-group.actions-left[data-v-48eb3073], .c-action-bar.has-only-right.is-align-space-around .actions-group.actions-right[data-v-48eb3073] {
150
+ .c-action-bar.has-only-left.is-align-space-around .actions-group.actions-left[data-v-144e59ae], .c-action-bar.has-only-right.is-align-space-around .actions-group.actions-right[data-v-144e59ae] {
151
151
  width: 100%;
152
152
  justify-content: space-around;
153
153
  }
154
- .c-action-bar.has-only-left.is-align-right .actions-group.actions-left[data-v-48eb3073] {
154
+ .c-action-bar.has-only-left.is-align-right .actions-group.actions-left[data-v-144e59ae] {
155
155
  width: 100%;
156
156
  justify-content: flex-end;
157
157
  }
158
- .c-action-bar.has-only-right.is-align-left .actions-group.actions-right[data-v-48eb3073] {
158
+ .c-action-bar.has-only-right.is-align-left .actions-group.actions-right[data-v-144e59ae] {
159
159
  width: 100%;
160
160
  justify-content: flex-start;
161
161
  }
162
- .actions-group[data-v-48eb3073] .n-button {
162
+ .actions-group[data-v-144e59ae] .n-button {
163
163
  flex-shrink: 0;
164
164
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
165
165
  font-weight: 500;
166
166
  }
167
- .actions-group[data-v-48eb3073] .n-button .n-icon {
167
+ .actions-group[data-v-144e59ae] .n-button .n-icon {
168
168
  transition: transform 0.3s ease;
169
169
  }
170
- .actions-group[data-v-48eb3073] .n-button:hover:not(:disabled) {
170
+ .actions-group[data-v-144e59ae] .n-button:hover:not(:disabled) {
171
171
  transform: translateY(-1px);
172
172
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
173
173
  }
174
- .actions-group[data-v-48eb3073] .n-button:hover:not(:disabled) .n-icon {
174
+ .actions-group[data-v-144e59ae] .n-button:hover:not(:disabled) .n-icon {
175
175
  transform: scale(1.1);
176
176
  }
177
- .actions-group[data-v-48eb3073] .n-button:active:not(:disabled) {
177
+ .actions-group[data-v-144e59ae] .n-button:active:not(:disabled) {
178
178
  transform: translateY(0);
179
179
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
180
180
  }
181
- .actions-group[data-v-48eb3073] .n-button:disabled {
181
+ .actions-group[data-v-144e59ae] .n-button:disabled {
182
182
  cursor: not-allowed;
183
183
  opacity: 0.5;
184
184
  }
185
- .actions-group[data-v-48eb3073] .n-button.n-button--loading {
185
+ .actions-group[data-v-144e59ae] .n-button.n-button--loading {
186
186
  pointer-events: none;
187
187
  }
188
- .actions-group[data-v-48eb3073] .n-button--primary-type:hover:not(:disabled) {
188
+ .actions-group[data-v-144e59ae] .n-button--primary-type:hover:not(:disabled) {
189
189
  box-shadow: 0 4px 12px rgba(24, 160, 88, 0.3);
190
190
  }
191
- .actions-group[data-v-48eb3073] .n-button--info-type:hover:not(:disabled) {
191
+ .actions-group[data-v-144e59ae] .n-button--info-type:hover:not(:disabled) {
192
192
  box-shadow: 0 4px 12px rgba(42, 148, 125, 0.3);
193
193
  }
194
- .actions-group[data-v-48eb3073] .n-button--success-type:hover:not(:disabled) {
194
+ .actions-group[data-v-144e59ae] .n-button--success-type:hover:not(:disabled) {
195
195
  box-shadow: 0 4px 12px rgba(99, 226, 183, 0.3);
196
196
  }
197
- .actions-group[data-v-48eb3073] .n-button--warning-type:hover:not(:disabled) {
197
+ .actions-group[data-v-144e59ae] .n-button--warning-type:hover:not(:disabled) {
198
198
  box-shadow: 0 4px 12px rgba(240, 138, 0, 0.3);
199
199
  }
200
- .actions-group[data-v-48eb3073] .n-button--error-type:hover:not(:disabled) {
200
+ .actions-group[data-v-144e59ae] .n-button--error-type:hover:not(:disabled) {
201
201
  box-shadow: 0 4px 12px rgba(208, 48, 80, 0.3);
202
202
  }
203
203
 
204
204
  /* ================= 中间插槽区域 ================= */
205
- .actions-center[data-v-48eb3073] {
205
+ .actions-center[data-v-144e59ae] {
206
206
  display: flex;
207
207
  align-items: center;
208
208
  justify-content: center;
@@ -212,32 +212,32 @@
212
212
  }
213
213
 
214
214
  /* ================= 分隔线 ================= */
215
- .action-divider[data-v-48eb3073] {
215
+ .action-divider[data-v-144e59ae] {
216
216
  margin: 0 8px !important;
217
217
  height: 20px;
218
218
  opacity: 0.3;
219
219
  transition: opacity 0.3s ease;
220
220
  }
221
- .action-divider[data-v-48eb3073]:hover {
221
+ .action-divider[data-v-144e59ae]:hover {
222
222
  opacity: 0.6;
223
223
  }
224
224
 
225
225
  /* ================= 下拉菜单优化 ================= */
226
- [data-v-48eb3073] .n-dropdown-option {
226
+ [data-v-144e59ae] .n-dropdown-option {
227
227
  transition: all 0.2s ease;
228
228
  }
229
- [data-v-48eb3073] .n-dropdown-option:hover {
229
+ [data-v-144e59ae] .n-dropdown-option:hover {
230
230
  transform: translateX(4px);
231
231
  }
232
- [data-v-48eb3073] .n-dropdown-option .n-icon {
232
+ [data-v-144e59ae] .n-dropdown-option .n-icon {
233
233
  transition: transform 0.2s ease;
234
234
  }
235
- [data-v-48eb3073] .n-dropdown-option:hover .n-icon {
235
+ [data-v-144e59ae] .n-dropdown-option:hover .n-icon {
236
236
  transform: scale(1.15);
237
237
  }
238
238
 
239
239
  /* ================= 加载动画 ================= */
240
- @keyframes button-loading-48eb3073 {
240
+ @keyframes button-loading-144e59ae {
241
241
  0% {
242
242
  opacity: 0.6;
243
243
  }
@@ -248,12 +248,12 @@
248
248
  opacity: 0.6;
249
249
  }
250
250
  }
251
- [data-v-48eb3073] .n-button--loading {
252
- animation: button-loading-48eb3073 1.5s ease-in-out infinite;
251
+ [data-v-144e59ae] .n-button--loading {
252
+ animation: button-loading-144e59ae 1.5s ease-in-out infinite;
253
253
  }
254
254
 
255
255
  /* ================= Tooltip 样式 ================= */
256
- [data-v-48eb3073] .n-tooltip .n-tooltip__content {
256
+ [data-v-144e59ae] .n-tooltip .n-tooltip__content {
257
257
  font-size: 12px;
258
258
  padding: 6px 10px;
259
259
  border-radius: 4px;
@@ -262,23 +262,23 @@
262
262
  }
263
263
 
264
264
  /* ================= 暗黑模式适配 ================= */
265
- html.dark .c-action-bar[data-v-48eb3073] {
265
+ html.dark .c-action-bar[data-v-144e59ae] {
266
266
  border-color: rgba(255, 255, 255, 0.09);
267
267
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
268
268
  }
269
- html.dark .actions-group[data-v-48eb3073] .n-button:hover:not(:disabled) {
269
+ html.dark .actions-group[data-v-144e59ae] .n-button:hover:not(:disabled) {
270
270
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
271
271
  }
272
- html.dark .action-divider[data-v-48eb3073] {
272
+ html.dark .action-divider[data-v-144e59ae] {
273
273
  opacity: 0.15;
274
274
  }
275
- html.dark .action-divider[data-v-48eb3073]:hover {
275
+ html.dark .action-divider[data-v-144e59ae]:hover {
276
276
  opacity: 0.4;
277
277
  }
278
278
 
279
279
  /* layer: default */
280
- .inline[data-v-48eb3073]{display:inline;}
281
- .px[data-v-48eb3073]{padding-left:1rem;padding-right:1rem;}
280
+ .inline[data-v-144e59ae]{display:inline;}
281
+ .px[data-v-144e59ae]{padding-left:1rem;padding-right:1rem;}
282
282
 
283
283
  /*
284
284
  * @Author: ChenYu ycyplus@gmail.com
@@ -1,4 +1,4 @@
1
1
  import { r as resolveComponentDensity, t as ComponentDensity } from "./density.cjs";
2
2
  import { B as useRowEdit, F as useCellEdit, G as _default, H as defineTableColumns, I as usePagination, L as useTableActions, P as useModalEdit, R as useTableExpand, U as defineTableConfig, V as useTableColumns, W as validateTableRowKeys, i as useTableQuery, n as TableQueryResult, r as UseTableQueryOptions, t as TableQueryContext, z as useTableManager } from "./useTableQuery.cjs";
3
- import { $ as ColumnFormatter, B as ErrorConfig, C as TableColumn, D as TableProps, E as TableManagerApi, F as BatchActionsConfig, G as TableConfig, I as ColumnDragConfig, J as VirtualScrollConfig, K as ToolbarConfig, L as CrudBinding, N as UseTableExpandOptions, O as TableRowKey, P as UseTableExpandReturn, Q as exportTableData, R as DisplayConfig, S as StrictTableColumn, T as TableInstance, U as SelectionConfig, V as ExpandConfig, W as SummaryConfig, X as resolveConfig, Y as createEditModeChecker, Z as ExportConfig, _ as ParentChildLinkMode, _t as useDynamicRows, at as mergeGlobalConfig, b as SelectOption, bt as usePrintWatermark, c as BuiltInTableColumn, ct as UseCrossPageSelectionOptions, d as CustomAction, dt as RowDragConfig, et as FormatterConfig, f as DataRecord, ft as UseRowDragOptions, g as PaginationConfig, gt as DynamicRowsReturn, h as NormalTableColumn, ht as DynamicRowsOptions, it as applyFormatter, k as TableRowKeyIssue, l as ChildSelectionState, lt as UseCrossPageSelectionReturn, m as MaybeRefLike, mt as useRowDrag, nt as TABLE_GLOBAL_CONFIG_KEY, ot as useTableGlobalConfig, p as EditMode, pt as UseRowDragReturn, q as TreeConfig, rt as TableGlobalConfig, s as ApiFunction, st as CrossPageSelectionConfig, tt as FormatterType, u as ColumnWithKey, ut as useCrossPageSelection, v as RenderFunction, vt as PrintWatermarkOptions, w as TableEmits, x as SimpleTableActions, xt as ColumnStatus, y as RowAction, yt as printPresets, z as EditConfig } from "./index12.vue.cjs";
3
+ import { $ as exportTableData, A as TableRowKeyIssue, B as EditConfig, C as StrictTableColumn, D as TableManagerApi, E as TableInstance, F as UseTableExpandReturn, G as SummaryConfig, H as ExpandConfig, I as BatchActionsConfig, J as TreeConfig, K as TableConfig, L as ColumnDragConfig, O as TableProps, P as UseTableExpandOptions, Q as ExportConfig, R as CrudBinding, S as SimpleTableActions, St as ColumnStatus, T as TableEmits, V as ErrorConfig, W as SelectionConfig, X as createEditModeChecker, Y as VirtualScrollConfig, Z as resolveConfig, _ as PaginationConfig, _t as DynamicRowsReturn, at as applyFormatter, b as RowAction, bt as printPresets, c as ApiFunction, ct as CrossPageSelectionConfig, d as ColumnWithKey, dt as useCrossPageSelection, et as ColumnFormatter, f as CustomAction, ft as RowDragConfig, g as NormalTableColumn, gt as DynamicRowsOptions, h as MaybeRefLike, ht as useRowDrag, it as TableGlobalConfig, k as TableRowKey, l as BuiltInTableColumn, lt as UseCrossPageSelectionOptions, m as EditMode, mt as UseRowDragReturn, nt as FormatterType, ot as mergeGlobalConfig, p as DataRecord, pt as UseRowDragOptions, q as ToolbarConfig, rt as TABLE_GLOBAL_CONFIG_KEY, st as useTableGlobalConfig, tt as FormatterConfig, u as ChildSelectionState, ut as UseCrossPageSelectionReturn, v as ParentChildLinkMode, vt as useDynamicRows, w as TableColumn, x as SelectOption, xt as usePrintWatermark, y as RenderFunction, yt as PrintWatermarkOptions, z as DisplayConfig } from "./index12.vue.cjs";
4
4
  export { type ApiFunction, type BatchActionsConfig, type BuiltInTableColumn, _default as C_Table, type ChildSelectionState, type ColumnDragConfig, type ColumnFormatter, type ColumnStatus, type ColumnWithKey, type ComponentDensity, type CrossPageSelectionConfig, type CrudBinding, type CustomAction, type DataRecord, type DisplayConfig, type DynamicRowsOptions, type DynamicRowsReturn, type EditConfig, type EditMode, type ErrorConfig, type ExpandConfig, type ExportConfig, type FormatterConfig, type FormatterType, type MaybeRefLike, type NormalTableColumn, type PaginationConfig, type ParentChildLinkMode, type PrintWatermarkOptions, type RenderFunction, type RowAction, type RowDragConfig, type SelectOption, type SimpleTableActions, type StrictTableColumn, type SummaryConfig, TABLE_GLOBAL_CONFIG_KEY, type TableColumn, type TableConfig, type TableEmits, type TableGlobalConfig, type TableInstance, type TableManagerApi, type TableProps, type TableQueryContext, type TableQueryResult, type TableRowKey, type TableRowKeyIssue, type SelectionConfig as TableSelectionConfig, type ToolbarConfig, type TreeConfig, type UseCrossPageSelectionOptions, type UseCrossPageSelectionReturn, type UseRowDragOptions, type UseRowDragReturn, type UseTableExpandOptions, type UseTableExpandReturn, type UseTableQueryOptions, type VirtualScrollConfig, applyFormatter, createEditModeChecker, defineTableColumns, defineTableConfig, exportTableData, mergeGlobalConfig, printPresets, resolveComponentDensity, resolveConfig, useCellEdit, useCrossPageSelection, useDynamicRows, useModalEdit, usePagination, usePrintWatermark, useRowDrag, useRowEdit, useTableActions, useTableColumns, useTableExpand, useTableGlobalConfig, useTableManager, useTableQuery, validateTableRowKeys };
package/dist/C_Table.d.ts CHANGED
@@ -7,7 +7,7 @@ import "./useFormConfig.js";
7
7
  import { r as resolveComponentDensity, t as ComponentDensity } from "./density.js";
8
8
  import "./config2.js";
9
9
  import "./verification.js";
10
- import { $ as ColumnFormatter, B as ErrorConfig, C as TableColumn, D as TableProps, E as TableManagerApi, F as BatchActionsConfig, G as TableConfig, I as ColumnDragConfig, J as VirtualScrollConfig, K as ToolbarConfig, L as CrudBinding, N as UseTableExpandOptions, O as TableRowKey, P as UseTableExpandReturn, Q as exportTableData, R as DisplayConfig, S as StrictTableColumn, T as TableInstance, U as SelectionConfig, V as ExpandConfig, W as SummaryConfig, X as resolveConfig, Y as createEditModeChecker, Z as ExportConfig, _ as ParentChildLinkMode, _t as useDynamicRows, at as mergeGlobalConfig, b as SelectOption, bt as usePrintWatermark, c as BuiltInTableColumn, ct as UseCrossPageSelectionOptions, d as CustomAction, dt as RowDragConfig, et as FormatterConfig, f as DataRecord, ft as UseRowDragOptions, g as PaginationConfig, gt as DynamicRowsReturn, h as NormalTableColumn, ht as DynamicRowsOptions, it as applyFormatter, k as TableRowKeyIssue, l as ChildSelectionState, lt as UseCrossPageSelectionReturn, m as MaybeRefLike, mt as useRowDrag, nt as TABLE_GLOBAL_CONFIG_KEY, ot as useTableGlobalConfig, p as EditMode, pt as UseRowDragReturn, q as TreeConfig, rt as TableGlobalConfig, s as ApiFunction, st as CrossPageSelectionConfig, tt as FormatterType, u as ColumnWithKey, ut as useCrossPageSelection, v as RenderFunction, vt as PrintWatermarkOptions, w as TableEmits, x as SimpleTableActions, xt as ColumnStatus, y as RowAction, yt as printPresets, z as EditConfig } from "./index11.vue.js";
10
+ import { $ as exportTableData, A as TableRowKeyIssue, B as EditConfig, C as StrictTableColumn, D as TableManagerApi, E as TableInstance, F as UseTableExpandReturn, G as SummaryConfig, H as ExpandConfig, I as BatchActionsConfig, J as TreeConfig, K as TableConfig, L as ColumnDragConfig, O as TableProps, P as UseTableExpandOptions, Q as ExportConfig, R as CrudBinding, S as SimpleTableActions, St as ColumnStatus, T as TableEmits, V as ErrorConfig, W as SelectionConfig, X as createEditModeChecker, Y as VirtualScrollConfig, Z as resolveConfig, _ as PaginationConfig, _t as DynamicRowsReturn, at as applyFormatter, b as RowAction, bt as printPresets, c as ApiFunction, ct as CrossPageSelectionConfig, d as ColumnWithKey, dt as useCrossPageSelection, et as ColumnFormatter, f as CustomAction, ft as RowDragConfig, g as NormalTableColumn, gt as DynamicRowsOptions, h as MaybeRefLike, ht as useRowDrag, it as TableGlobalConfig, k as TableRowKey, l as BuiltInTableColumn, lt as UseCrossPageSelectionOptions, m as EditMode, mt as UseRowDragReturn, nt as FormatterType, ot as mergeGlobalConfig, p as DataRecord, pt as UseRowDragOptions, q as ToolbarConfig, rt as TABLE_GLOBAL_CONFIG_KEY, st as useTableGlobalConfig, tt as FormatterConfig, u as ChildSelectionState, ut as UseCrossPageSelectionReturn, v as ParentChildLinkMode, vt as useDynamicRows, w as TableColumn, x as SelectOption, xt as usePrintWatermark, y as RenderFunction, yt as PrintWatermarkOptions, z as DisplayConfig } from "./index11.vue.js";
11
11
  import "./useDraggableLayout.js";
12
12
  import "./useDynamicFormState.js";
13
13
  import "./index15.vue.js";
@@ -116,9 +116,9 @@ declare const __VLS_export: vue.DefineComponent<CronProps, CronExpose, {}, {}, {
116
116
  onChange?: ((value: string) => any) | undefined;
117
117
  "onValidation-change"?: ((result: CronValidation) => any) | undefined;
118
118
  }>, {
119
+ showPreview: boolean;
119
120
  disabled: boolean;
120
121
  showTemplates: boolean;
121
- showPreview: boolean;
122
122
  showSecond: boolean;
123
123
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
124
124
  declare const _default: typeof __VLS_export;
@@ -116,9 +116,9 @@ declare const __VLS_export: vue.DefineComponent<CronProps, CronExpose, {}, {}, {
116
116
  onChange?: ((value: string) => any) | undefined;
117
117
  "onValidation-change"?: ((result: CronValidation) => any) | undefined;
118
118
  }>, {
119
+ showPreview: boolean;
119
120
  disabled: boolean;
120
121
  showTemplates: boolean;
121
- showPreview: boolean;
122
122
  showSecond: boolean;
123
123
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
124
124
  declare const _default: typeof __VLS_export;
@@ -133,8 +133,8 @@ declare const __VLS_export: vue.DefineComponent<FormulaEditorProps, FormulaEdito
133
133
  onChange?: ((value: string) => any) | undefined;
134
134
  "onValidation-change"?: ((result: FormulaValidation) => any) | undefined;
135
135
  }>, {
136
- disabled: boolean;
137
136
  showPreview: boolean;
137
+ disabled: boolean;
138
138
  showKeyboard: boolean;
139
139
  showVariablePanel: boolean;
140
140
  editableSampleData: boolean;
@@ -133,8 +133,8 @@ declare const __VLS_export: vue.DefineComponent<FormulaEditorProps, FormulaEdito
133
133
  onChange?: ((value: string) => any) | undefined;
134
134
  "onValidation-change"?: ((result: FormulaValidation) => any) | undefined;
135
135
  }>, {
136
- disabled: boolean;
137
136
  showPreview: boolean;
137
+ disabled: boolean;
138
138
  showKeyboard: boolean;
139
139
  showVariablePanel: boolean;
140
140
  editableSampleData: boolean;
@@ -231,8 +231,8 @@ interface NotificationCenterExpose {
231
231
  type __VLS_Slots = NotificationCenterSlots;
232
232
  declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, NotificationCenterExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
233
233
  delete: (ids: string[]) => any;
234
- read: (ids: string[]) => any;
235
234
  itemClick: (message: NotificationMessage) => any;
235
+ read: (ids: string[]) => any;
236
236
  allRead: (category?: NotificationCategory | undefined) => any;
237
237
  unreadChange: (count: number) => any;
238
238
  wsStatusChange: (status: WSConnectionStatus) => any;
@@ -241,8 +241,8 @@ declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, Notificat
241
241
  viewAll: () => any;
242
242
  }, string, vue.PublicProps, Readonly<NotificationCenterProps> & Readonly<{
243
243
  onDelete?: ((ids: string[]) => any) | undefined;
244
- onRead?: ((ids: string[]) => any) | undefined;
245
244
  onItemClick?: ((message: NotificationMessage) => any) | undefined;
245
+ onRead?: ((ids: string[]) => any) | undefined;
246
246
  onAllRead?: ((category?: NotificationCategory | undefined) => any) | undefined;
247
247
  onUnreadChange?: ((count: number) => any) | undefined;
248
248
  onWsStatusChange?: ((status: WSConnectionStatus) => any) | undefined;
@@ -251,11 +251,11 @@ declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, Notificat
251
251
  onViewAll?: (() => any) | undefined;
252
252
  }>, {
253
253
  pageSize: number;
254
+ storageKey: string;
254
255
  autoStart: boolean;
255
256
  desktopNotification: boolean;
256
257
  maxBadgeCount: number;
257
258
  pollingInterval: number;
258
- storageKey: string;
259
259
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
260
260
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
261
261
  declare const _default: typeof __VLS_export;
@@ -231,8 +231,8 @@ interface NotificationCenterExpose {
231
231
  type __VLS_Slots = NotificationCenterSlots;
232
232
  declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, NotificationCenterExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
233
233
  delete: (ids: string[]) => any;
234
- read: (ids: string[]) => any;
235
234
  itemClick: (message: NotificationMessage) => any;
235
+ read: (ids: string[]) => any;
236
236
  allRead: (category?: NotificationCategory | undefined) => any;
237
237
  unreadChange: (count: number) => any;
238
238
  wsStatusChange: (status: WSConnectionStatus) => any;
@@ -241,8 +241,8 @@ declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, Notificat
241
241
  viewAll: () => any;
242
242
  }, string, vue.PublicProps, Readonly<NotificationCenterProps> & Readonly<{
243
243
  onDelete?: ((ids: string[]) => any) | undefined;
244
- onRead?: ((ids: string[]) => any) | undefined;
245
244
  onItemClick?: ((message: NotificationMessage) => any) | undefined;
245
+ onRead?: ((ids: string[]) => any) | undefined;
246
246
  onAllRead?: ((category?: NotificationCategory | undefined) => any) | undefined;
247
247
  onUnreadChange?: ((count: number) => any) | undefined;
248
248
  onWsStatusChange?: ((status: WSConnectionStatus) => any) | undefined;
@@ -251,11 +251,11 @@ declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, Notificat
251
251
  onViewAll?: (() => any) | undefined;
252
252
  }>, {
253
253
  pageSize: number;
254
+ storageKey: string;
254
255
  autoStart: boolean;
255
256
  desktopNotification: boolean;
256
257
  maxBadgeCount: number;
257
258
  pollingInterval: number;
258
- storageKey: string;
259
259
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
260
260
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
261
261
  declare const _default: typeof __VLS_export;
@@ -196,31 +196,31 @@ type __VLS_Slots = {} & {
196
196
  area?: (props: typeof __VLS_11) => any;
197
197
  };
198
198
  declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
199
- change: (fileList: UploadFileItem[]) => any;
200
199
  error: (file: UploadFileItem, error: Error) => any;
201
- progress: (file: UploadFileItem, percent: number) => any;
202
- success: (file: UploadFileItem, response: unknown) => any;
200
+ change: (fileList: UploadFileItem[]) => any;
203
201
  remove: (file: UploadFileItem) => any;
202
+ success: (file: UploadFileItem, response: unknown) => any;
203
+ progress: (file: UploadFileItem, percent: number) => any;
204
204
  finish: (fileList: UploadFileItem[]) => any;
205
205
  exceed: (files: File[], fileList: UploadFileItem[]) => any;
206
206
  }, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
207
- onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
208
207
  onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
209
- onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
210
- onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
208
+ onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
211
209
  onRemove?: ((file: UploadFileItem) => any) | undefined;
210
+ onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
211
+ onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
212
212
  onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
213
213
  onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
214
214
  }>, {
215
- data: Record<string, unknown>;
216
- draggable: boolean;
217
215
  disabled: boolean;
218
- multiple: boolean;
216
+ draggable: boolean;
219
217
  action: string;
218
+ data: Record<string, unknown>;
219
+ maxSize: number;
220
+ multiple: boolean;
220
221
  headers: Record<string, string>;
221
222
  directory: boolean;
222
223
  accept: string;
223
- maxSize: number;
224
224
  maxCount: number;
225
225
  pasteable: boolean;
226
226
  chunked: boolean;
@@ -196,31 +196,31 @@ type __VLS_Slots = {} & {
196
196
  area?: (props: typeof __VLS_11) => any;
197
197
  };
198
198
  declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
199
- change: (fileList: UploadFileItem[]) => any;
200
199
  error: (file: UploadFileItem, error: Error) => any;
201
- progress: (file: UploadFileItem, percent: number) => any;
202
- success: (file: UploadFileItem, response: unknown) => any;
200
+ change: (fileList: UploadFileItem[]) => any;
203
201
  remove: (file: UploadFileItem) => any;
202
+ success: (file: UploadFileItem, response: unknown) => any;
203
+ progress: (file: UploadFileItem, percent: number) => any;
204
204
  finish: (fileList: UploadFileItem[]) => any;
205
205
  exceed: (files: File[], fileList: UploadFileItem[]) => any;
206
206
  }, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
207
- onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
208
207
  onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
209
- onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
210
- onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
208
+ onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
211
209
  onRemove?: ((file: UploadFileItem) => any) | undefined;
210
+ onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
211
+ onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
212
212
  onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
213
213
  onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
214
214
  }>, {
215
- data: Record<string, unknown>;
216
- draggable: boolean;
217
215
  disabled: boolean;
218
- multiple: boolean;
216
+ draggable: boolean;
219
217
  action: string;
218
+ data: Record<string, unknown>;
219
+ maxSize: number;
220
+ multiple: boolean;
220
221
  headers: Record<string, string>;
221
222
  directory: boolean;
222
223
  accept: string;
223
- maxSize: number;
224
224
  maxCount: number;
225
225
  pasteable: boolean;
226
226
  chunked: boolean;
@@ -263,8 +263,8 @@ type PlayerInstance = InstanceType<typeof xgplayer.default>;
263
263
  //#region src/components/C_VideoPlayer/index.vue.d.ts
264
264
  declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
265
265
  ready: () => any;
266
- ended: () => any;
267
266
  error: (error: Error) => any;
267
+ ended: () => any;
268
268
  stateChange: (state: PlayerState) => any;
269
269
  qualityChange: (quality: QualityLevel) => any;
270
270
  rateChange: (rate: number) => any;
@@ -276,8 +276,8 @@ declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExp
276
276
  timeUpdate: (currentTime: number, duration: number) => any;
277
277
  }, string, vue.PublicProps, Readonly<VideoPlayerProps> & Readonly<{
278
278
  onReady?: (() => any) | undefined;
279
- onEnded?: (() => any) | undefined;
280
279
  onError?: ((error: Error) => any) | undefined;
280
+ onEnded?: (() => any) | undefined;
281
281
  onStateChange?: ((state: PlayerState) => any) | undefined;
282
282
  onQualityChange?: ((quality: QualityLevel) => any) | undefined;
283
283
  onRateChange?: ((rate: number) => any) | undefined;
@@ -263,8 +263,8 @@ type PlayerInstance = InstanceType<typeof xgplayer.default>;
263
263
  //#region src/components/C_VideoPlayer/index.vue.d.ts
264
264
  declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
265
265
  ready: () => any;
266
- ended: () => any;
267
266
  error: (error: Error) => any;
267
+ ended: () => any;
268
268
  stateChange: (state: PlayerState) => any;
269
269
  qualityChange: (quality: QualityLevel) => any;
270
270
  rateChange: (rate: number) => any;
@@ -276,8 +276,8 @@ declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExp
276
276
  timeUpdate: (currentTime: number, duration: number) => any;
277
277
  }, string, vue.PublicProps, Readonly<VideoPlayerProps> & Readonly<{
278
278
  onReady?: (() => any) | undefined;
279
- onEnded?: (() => any) | undefined;
280
279
  onError?: ((error: Error) => any) | undefined;
280
+ onEnded?: (() => any) | undefined;
281
281
  onStateChange?: ((state: PlayerState) => any) | undefined;
282
282
  onQualityChange?: ((quality: QualityLevel) => any) | undefined;
283
283
  onRateChange?: ((rate: number) => any) | undefined;
package/dist/data2.d.cts CHANGED
@@ -66,26 +66,26 @@ declare const __VLS_base: vue.DefineComponent<CTabsProps, {
66
66
  activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
67
67
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
68
68
  "update:modelValue": (value: TabsValue) => any;
69
+ close: (value: TabsValue) => any;
69
70
  change: (value: TabsValue, item: TabsItem | undefined) => any;
70
71
  add: () => any;
71
- close: (value: TabsValue) => any;
72
72
  }, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
73
73
  "onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
74
+ onClose?: ((value: TabsValue) => any) | undefined;
74
75
  onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
75
76
  onAdd?: (() => any) | undefined;
76
- onClose?: ((value: TabsValue) => any) | undefined;
77
77
  }>, {
78
- type: TabsType;
78
+ items: readonly TabsItem[];
79
79
  modelValue: TabsValue | null;
80
- size: TabsSize;
81
- animated: boolean;
82
- addable: boolean;
80
+ type: TabsType;
83
81
  closable: boolean;
84
- placement: TabsPlacement;
82
+ size: TabsSize;
85
83
  displayDirective: TabsDisplayDirective;
86
- defaultValue: TabsValue | null;
87
- items: readonly TabsItem[];
88
84
  justifyContent: TabsJustifyContent;
85
+ defaultValue: TabsValue | null;
86
+ placement: TabsPlacement;
87
+ animated: boolean;
88
+ addable: boolean;
89
89
  tabsOnly: boolean;
90
90
  paneClass: string;
91
91
  paneStyle: string | vue.CSSProperties;
package/dist/data2.d.ts CHANGED
@@ -66,26 +66,26 @@ declare const __VLS_base: vue.DefineComponent<CTabsProps, {
66
66
  activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
67
67
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
68
68
  "update:modelValue": (value: TabsValue) => any;
69
+ close: (value: TabsValue) => any;
69
70
  change: (value: TabsValue, item: TabsItem | undefined) => any;
70
71
  add: () => any;
71
- close: (value: TabsValue) => any;
72
72
  }, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
73
73
  "onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
74
+ onClose?: ((value: TabsValue) => any) | undefined;
74
75
  onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
75
76
  onAdd?: (() => any) | undefined;
76
- onClose?: ((value: TabsValue) => any) | undefined;
77
77
  }>, {
78
- type: TabsType;
78
+ items: readonly TabsItem[];
79
79
  modelValue: TabsValue | null;
80
- size: TabsSize;
81
- animated: boolean;
82
- addable: boolean;
80
+ type: TabsType;
83
81
  closable: boolean;
84
- placement: TabsPlacement;
82
+ size: TabsSize;
85
83
  displayDirective: TabsDisplayDirective;
86
- defaultValue: TabsValue | null;
87
- items: readonly TabsItem[];
88
84
  justifyContent: TabsJustifyContent;
85
+ defaultValue: TabsValue | null;
86
+ placement: TabsPlacement;
87
+ animated: boolean;
88
+ addable: boolean;
89
89
  tabsOnly: boolean;
90
90
  paneClass: string;
91
91
  paneStyle: string | vue.CSSProperties;
@@ -24,7 +24,12 @@ interface SearchFieldContext<T extends object = SearchFormParams> {
24
24
  disabled: boolean;
25
25
  readonly: boolean;
26
26
  size: 'small' | 'medium' | 'large';
27
- updateValue: (value: unknown) => void;
27
+ updateValue(value: unknown): void;
28
+ }
29
+ interface SearchRenderContext<T extends object, P extends Extract<keyof T, string>> extends SearchFieldContext<T> {
30
+ value: T[P];
31
+ prop: P;
32
+ updateValue: (value: T[P]) => void;
28
33
  }
29
34
  type SearchOptionValue = string | number | boolean;
30
35
  interface SearchOptionItem<V extends SearchOptionValue = SearchOptionValue> {
@@ -142,7 +147,7 @@ type SearchFormItem<T extends object = SearchFormParams> = {
142
147
  } & (string extends keyof T ? SearchFormItemBase : { [P in Extract<keyof T, string>]: Omit<SearchFormItemBase, 'type' | 'prop' | 'defaultValue' | 'list' | 'render'> & {
143
148
  prop: P;
144
149
  defaultValue?: T[P];
145
- render?: (context: SearchFieldContext<T>) => VNodeChild;
150
+ render?: (context: SearchRenderContext<T, P>) => VNodeChild;
146
151
  } & TypedSearchControl<T[P]> }[Extract<keyof T, string>]);
147
152
  interface SearchFormParams {
148
153
  pageNum?: number;
@@ -24,7 +24,12 @@ interface SearchFieldContext<T extends object = SearchFormParams> {
24
24
  disabled: boolean;
25
25
  readonly: boolean;
26
26
  size: 'small' | 'medium' | 'large';
27
- updateValue: (value: unknown) => void;
27
+ updateValue(value: unknown): void;
28
+ }
29
+ interface SearchRenderContext<T extends object, P extends Extract<keyof T, string>> extends SearchFieldContext<T> {
30
+ value: T[P];
31
+ prop: P;
32
+ updateValue: (value: T[P]) => void;
28
33
  }
29
34
  type SearchOptionValue = string | number | boolean;
30
35
  interface SearchOptionItem<V extends SearchOptionValue = SearchOptionValue> {
@@ -142,7 +147,7 @@ type SearchFormItem<T extends object = SearchFormParams> = {
142
147
  } & (string extends keyof T ? SearchFormItemBase : { [P in Extract<keyof T, string>]: Omit<SearchFormItemBase, 'type' | 'prop' | 'defaultValue' | 'list' | 'render'> & {
143
148
  prop: P;
144
149
  defaultValue?: T[P];
145
- render?: (context: SearchFieldContext<T>) => VNodeChild;
150
+ render?: (context: SearchRenderContext<T, P>) => VNodeChild;
146
151
  } & TypedSearchControl<T[P]> }[Extract<keyof T, string>]);
147
152
  interface SearchFormParams {
148
153
  pageNum?: number;