@qin-ui/antd-vue-pro 2.3.4 → 2.4.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 (160) hide show
  1. package/README.md +7 -5
  2. package/api.json +1 -25
  3. package/es/__tests__/BaseField.spec.d.ts +2 -0
  4. package/es/__tests__/BaseField.spec.d.ts.map +1 -0
  5. package/es/__tests__/BaseFormItem.spec.d.ts +2 -0
  6. package/es/__tests__/BaseFormItem.spec.d.ts.map +1 -0
  7. package/es/__tests__/ProForm.spec.d.ts +2 -0
  8. package/es/__tests__/ProForm.spec.d.ts.map +1 -0
  9. package/es/__tests__/ProTable.spec.d.ts +2 -0
  10. package/es/__tests__/ProTable.spec.d.ts.map +1 -0
  11. package/es/__tests__/SearchForm.spec.d.ts +2 -0
  12. package/es/__tests__/SearchForm.spec.d.ts.map +1 -0
  13. package/es/__tests__/controls.spec.d.ts +2 -0
  14. package/es/__tests__/controls.spec.d.ts.map +1 -0
  15. package/es/__tests__/helpers/fixtures.d.ts +15 -0
  16. package/es/__tests__/helpers/fixtures.d.ts.map +1 -0
  17. package/es/__tests__/helpers/mount.d.ts +38 -0
  18. package/es/__tests__/helpers/mount.d.ts.map +1 -0
  19. package/es/__tests__/hooks-locale.spec.d.ts +2 -0
  20. package/es/__tests__/hooks-locale.spec.d.ts.map +1 -0
  21. package/es/__tests__/index.spec.d.ts +2 -0
  22. package/es/__tests__/index.spec.d.ts.map +1 -0
  23. package/es/__tests__/integration.spec.d.ts +2 -0
  24. package/es/__tests__/integration.spec.d.ts.map +1 -0
  25. package/es/__tests__/setup.d.ts +14 -0
  26. package/es/__tests__/setup.d.ts.map +1 -0
  27. package/es/antd-vue-pro.css +13 -13
  28. package/es/index.js +362 -225
  29. package/es/index.js.map +1 -1
  30. package/es/{components → src/components}/component-provider/components/index.vue.d.ts +5 -1
  31. package/es/src/components/component-provider/components/index.vue.d.ts.map +1 -0
  32. package/es/src/components/component-provider/constants/index.d.ts.map +1 -0
  33. package/es/src/components/component-provider/index.d.ts.map +1 -0
  34. package/es/src/components/component-provider/types/index.d.ts.map +1 -0
  35. package/es/{components → src/components}/form/components/BaseField/index.vue.d.ts +4 -1
  36. package/es/src/components/form/components/BaseField/index.vue.d.ts.map +1 -0
  37. package/es/src/components/form/components/BaseField/utils/index.d.ts +5 -0
  38. package/es/src/components/form/components/BaseField/utils/index.d.ts.map +1 -0
  39. package/es/{components → src/components}/form/components/BaseFormItem/index.vue.d.ts +5 -1
  40. package/es/src/components/form/components/BaseFormItem/index.vue.d.ts.map +1 -0
  41. package/es/{components → src/components}/form/components/ContainerFragment/index.vue.d.ts +3 -1
  42. package/es/src/components/form/components/ContainerFragment/index.vue.d.ts.map +1 -0
  43. package/es/src/components/form/components/ProForm/index.vue.d.ts.map +1 -0
  44. package/es/src/components/form/components/SlotComponent/index.vue.d.ts +11 -0
  45. package/es/src/components/form/components/SlotComponent/index.vue.d.ts.map +1 -0
  46. package/es/src/components/form/components/index.d.ts.map +1 -0
  47. package/es/src/components/form/constants/index.d.ts.map +1 -0
  48. package/es/src/components/form/hooks/index.d.ts.map +1 -0
  49. package/es/src/components/form/hooks/useFields.d.ts.map +1 -0
  50. package/es/src/components/form/hooks/useForm.d.ts.map +1 -0
  51. package/es/src/components/form/hooks/useFormRef.d.ts.map +1 -0
  52. package/es/{components → src/components}/form/hooks/useGroupFieldAttrs.d.ts +4 -0
  53. package/es/src/components/form/hooks/useGroupFieldAttrs.d.ts.map +1 -0
  54. package/es/src/components/form/index.d.ts.map +1 -0
  55. package/es/{components → src/components}/form/types/index.d.ts +26 -2
  56. package/es/src/components/form/types/index.d.ts.map +1 -0
  57. package/es/{components → src/components}/table/components/ColumnControl.vue.d.ts +4 -1
  58. package/es/src/components/table/components/ColumnControl.vue.d.ts.map +1 -0
  59. package/es/src/components/table/components/DefaultSearchFormContainer.vue.d.ts.map +1 -0
  60. package/es/src/components/table/components/DefaultTableContainer.vue.d.ts.map +1 -0
  61. package/es/{components → src/components}/table/components/ProTable.vue.d.ts +0 -2
  62. package/es/src/components/table/components/ProTable.vue.d.ts.map +1 -0
  63. package/es/{components → src/components}/table/components/SearchForm.vue.d.ts +14 -4
  64. package/es/src/components/table/components/SearchForm.vue.d.ts.map +1 -0
  65. package/es/src/components/table/components/SizeControl.vue.d.ts.map +1 -0
  66. package/es/src/components/table/components/icons/ColumnHeightOutlined.vue.d.ts.map +1 -0
  67. package/es/src/components/table/components/icons/DownOutlined.vue.d.ts.map +1 -0
  68. package/es/src/components/table/components/icons/FilterOutlined.vue.d.ts.map +1 -0
  69. package/es/src/components/table/components/index.d.ts.map +1 -0
  70. package/es/src/components/table/hooks/index.d.ts.map +1 -0
  71. package/es/src/components/table/hooks/useTable.d.ts.map +1 -0
  72. package/es/src/components/table/index.d.ts.map +1 -0
  73. package/es/src/components/table/types/index.d.ts.map +1 -0
  74. package/es/{index.d.ts → src/index.d.ts} +1 -1
  75. package/es/src/index.d.ts.map +1 -0
  76. package/es/src/locale/index.d.ts.map +1 -0
  77. package/es/src/shared/core/index.d.ts +6 -0
  78. package/es/src/shared/core/index.d.ts.map +1 -0
  79. package/es/src/shared/ui/index.d.ts.map +1 -0
  80. package/package.json +8 -3
  81. package/src/components/component-provider/components/index.vue +37 -8
  82. package/src/components/component-provider/constants/index.ts +2 -1
  83. package/src/components/form/components/BaseField/index.vue +61 -34
  84. package/src/components/form/components/BaseField/utils/index.ts +6 -11
  85. package/src/components/form/components/BaseFormItem/index.vue +46 -33
  86. package/src/components/form/components/ContainerFragment/index.vue +4 -2
  87. package/src/components/form/components/ProForm/index.vue +70 -18
  88. package/src/components/form/components/SlotComponent/index.vue +6 -4
  89. package/src/components/form/hooks/useGroupFieldAttrs.ts +7 -1
  90. package/src/components/form/types/index.ts +26 -2
  91. package/src/components/table/components/ColumnControl.vue +16 -15
  92. package/src/components/table/components/ProTable.vue +92 -65
  93. package/src/components/table/components/SearchForm.vue +80 -59
  94. package/src/components/table/components/SizeControl.vue +4 -2
  95. package/src/index.ts +1 -1
  96. package/src/shared/core/index.ts +4 -1
  97. package/es/components/component-provider/components/index.vue.d.ts.map +0 -1
  98. package/es/components/component-provider/constants/index.d.ts.map +0 -1
  99. package/es/components/component-provider/index.d.ts.map +0 -1
  100. package/es/components/component-provider/types/index.d.ts.map +0 -1
  101. package/es/components/form/components/BaseField/index.vue.d.ts.map +0 -1
  102. package/es/components/form/components/BaseField/utils/index.d.ts +0 -5
  103. package/es/components/form/components/BaseField/utils/index.d.ts.map +0 -1
  104. package/es/components/form/components/BaseFormItem/index.vue.d.ts.map +0 -1
  105. package/es/components/form/components/ContainerFragment/index.vue.d.ts.map +0 -1
  106. package/es/components/form/components/ProForm/index.vue.d.ts.map +0 -1
  107. package/es/components/form/components/SlotComponent/index.vue.d.ts +0 -7
  108. package/es/components/form/components/SlotComponent/index.vue.d.ts.map +0 -1
  109. package/es/components/form/components/index.d.ts.map +0 -1
  110. package/es/components/form/constants/index.d.ts.map +0 -1
  111. package/es/components/form/hooks/index.d.ts.map +0 -1
  112. package/es/components/form/hooks/useFields.d.ts.map +0 -1
  113. package/es/components/form/hooks/useForm.d.ts.map +0 -1
  114. package/es/components/form/hooks/useFormRef.d.ts.map +0 -1
  115. package/es/components/form/hooks/useGroupFieldAttrs.d.ts.map +0 -1
  116. package/es/components/form/index.d.ts.map +0 -1
  117. package/es/components/form/types/index.d.ts.map +0 -1
  118. package/es/components/table/components/ColumnControl.vue.d.ts.map +0 -1
  119. package/es/components/table/components/DefaultSearchFormContainer.vue.d.ts.map +0 -1
  120. package/es/components/table/components/DefaultTableContainer.vue.d.ts.map +0 -1
  121. package/es/components/table/components/ProTable.vue.d.ts.map +0 -1
  122. package/es/components/table/components/SearchForm.vue.d.ts.map +0 -1
  123. package/es/components/table/components/SizeControl.vue.d.ts.map +0 -1
  124. package/es/components/table/components/icons/ColumnHeightOutlined.vue.d.ts.map +0 -1
  125. package/es/components/table/components/icons/DownOutlined.vue.d.ts.map +0 -1
  126. package/es/components/table/components/icons/FilterOutlined.vue.d.ts.map +0 -1
  127. package/es/components/table/components/index.d.ts.map +0 -1
  128. package/es/components/table/hooks/index.d.ts.map +0 -1
  129. package/es/components/table/hooks/useTable.d.ts.map +0 -1
  130. package/es/components/table/index.d.ts.map +0 -1
  131. package/es/components/table/types/index.d.ts.map +0 -1
  132. package/es/index.d.ts.map +0 -1
  133. package/es/locale/index.d.ts.map +0 -1
  134. package/es/shared/core/index.d.ts +0 -6
  135. package/es/shared/core/index.d.ts.map +0 -1
  136. package/es/shared/ui/index.d.ts.map +0 -1
  137. /package/es/{components → src/components}/component-provider/constants/index.d.ts +0 -0
  138. /package/es/{components → src/components}/component-provider/index.d.ts +0 -0
  139. /package/es/{components → src/components}/component-provider/types/index.d.ts +0 -0
  140. /package/es/{components → src/components}/form/components/ProForm/index.vue.d.ts +0 -0
  141. /package/es/{components → src/components}/form/components/index.d.ts +0 -0
  142. /package/es/{components → src/components}/form/constants/index.d.ts +0 -0
  143. /package/es/{components → src/components}/form/hooks/index.d.ts +0 -0
  144. /package/es/{components → src/components}/form/hooks/useFields.d.ts +0 -0
  145. /package/es/{components → src/components}/form/hooks/useForm.d.ts +0 -0
  146. /package/es/{components → src/components}/form/hooks/useFormRef.d.ts +0 -0
  147. /package/es/{components → src/components}/form/index.d.ts +0 -0
  148. /package/es/{components → src/components}/table/components/DefaultSearchFormContainer.vue.d.ts +0 -0
  149. /package/es/{components → src/components}/table/components/DefaultTableContainer.vue.d.ts +0 -0
  150. /package/es/{components → src/components}/table/components/SizeControl.vue.d.ts +0 -0
  151. /package/es/{components → src/components}/table/components/icons/ColumnHeightOutlined.vue.d.ts +0 -0
  152. /package/es/{components → src/components}/table/components/icons/DownOutlined.vue.d.ts +0 -0
  153. /package/es/{components → src/components}/table/components/icons/FilterOutlined.vue.d.ts +0 -0
  154. /package/es/{components → src/components}/table/components/index.d.ts +0 -0
  155. /package/es/{components → src/components}/table/hooks/index.d.ts +0 -0
  156. /package/es/{components → src/components}/table/hooks/useTable.d.ts +0 -0
  157. /package/es/{components → src/components}/table/index.d.ts +0 -0
  158. /package/es/{components → src/components}/table/types/index.d.ts +0 -0
  159. /package/es/{locale → src/locale}/index.d.ts +0 -0
  160. /package/es/{shared → src/shared}/ui/index.d.ts +0 -0
@@ -45,6 +45,7 @@ import {
45
45
  useAttrs,
46
46
  onMounted,
47
47
  inject,
48
+ toValue,
48
49
  type Slot,
49
50
  } from 'vue';
50
51
  import { INJECT_CONFIG } from '../../component-provider/constants';
@@ -55,9 +56,11 @@ import { SearchFormProps } from './SearchForm.vue';
55
56
  import type { Table } from '../hooks/useTable';
56
57
  import { useLocale } from '../../../locale';
57
58
  import {
58
- camelizeProperties,
59
59
  getObject,
60
+ isPlainObject,
60
61
  pick,
62
+ isPromise,
63
+ camelizeProperties,
61
64
  Path,
62
65
  } from '../../../shared/core';
63
66
  import { ComponentSlots } from 'vue-component-type-helpers';
@@ -100,61 +103,64 @@ type Props = {
100
103
  tableContainer?: ContainerComponent | false;
101
104
  } & /* @vue-ignore */ TableProps;
102
105
 
103
- const {
104
- table = undefined,
105
- search = undefined,
106
- addIndexColumn = undefined,
107
- control = undefined,
108
- tableContainer = undefined,
109
- immediateSearch = undefined,
110
- searchFormConfig = undefined,
111
- } = defineProps<Props>();
106
+ const props = withDefaults(defineProps<Props>(), {
107
+ table: undefined,
108
+ search: undefined,
109
+ addIndexColumn: undefined,
110
+ immediateSearch: undefined,
111
+ control: undefined,
112
+ searchFormConfig: undefined,
113
+ tableContainer: undefined,
114
+ });
112
115
 
113
116
  const { t } = useLocale();
114
117
 
115
118
  const config = INJECT_CONFIG['pro-table'];
116
- const injectProps = inject(config.injectionKey, config.default);
119
+ const injectPropsRaw = inject(config.injectionKey, config.default);
120
+ const injectProps = computed(() => toValue(injectPropsRaw) || {});
117
121
 
118
122
  const tableProperties = Object.keys(tableProps());
119
123
 
120
- const injectAttrs = pick(injectProps, tableProperties) as TableProps;
124
+ const injectAttrs = computed<TableProps>(
125
+ () => pick(injectProps.value, tableProperties) as TableProps
126
+ );
121
127
 
122
128
  const computedSearchFormConfig = computed(() => {
123
129
  const container =
124
- searchFormConfig?.container ??
125
- injectProps.searchFormConfig?.container ??
130
+ props.searchFormConfig?.container ??
131
+ injectProps.value.searchFormConfig?.container ??
126
132
  DefaultSearchFormContainer;
127
133
  return {
128
- ...injectProps.searchFormConfig,
129
- ...getObject(searchFormConfig),
134
+ ...injectProps.value.searchFormConfig,
135
+ ...getObject(props.searchFormConfig),
130
136
  container: container ? container : undefined,
131
137
  };
132
138
  });
133
139
 
134
140
  const attrs: Record<string, any> = useAttrs();
135
141
  const tableAttrs = computed<TableProps>(() => {
136
- return pick(camelizeProperties(attrs), tableProperties);
142
+ return pick(camelizeProperties(attrs), tableProperties) as TableProps;
137
143
  });
138
144
 
139
- const { columns, dataSource, searchForm, pageParam, setPageParam } =
140
- table || {};
141
-
142
145
  const size = defineModel<TableProps['size']>('size');
143
- const loading = defineModel<boolean>('loading');
146
+ const loading = defineModel<boolean>('loading', { default: false });
144
147
 
145
148
  // 核心搜索方法:设置 loading 状态,调用外部 search 函数
146
149
  const _search = async () => {
147
- try {
150
+ const searchPromise = (props.search || attrs.onSearch)?.();
151
+ if (isPromise(searchPromise)) {
148
152
  loading.value = true;
149
- await search?.();
150
- } finally {
151
- loading.value = false;
153
+ try {
154
+ await searchPromise;
155
+ } finally {
156
+ loading.value = false;
157
+ }
152
158
  }
153
159
  };
154
160
 
155
161
  // 重置:恢复查询参数到初始值,重新搜索
156
162
  const reset = () => {
157
- table?.resetQueryParams();
163
+ props.table?.resetQueryParams?.();
158
164
  nextTick(() => {
159
165
  _search();
160
166
  });
@@ -167,7 +173,6 @@ type TableSlots = Omit<ComponentSlots<typeof ATable>, 'bodyCell'> &
167
173
  Readonly<{
168
174
  bodyCell?: (props: {
169
175
  text: any;
170
- value: any;
171
176
  record: RecordType;
172
177
  index: number;
173
178
  column: Column<RecordType>;
@@ -186,13 +191,13 @@ const {
186
191
  } = slots;
187
192
 
188
193
  const searchPage1st = () => {
189
- setPageParam?.({ current: 1 });
194
+ props.table?.setPageParam?.({ current: 1 });
190
195
  _search();
191
196
  };
192
197
 
193
198
  const computedTableProps = computed<TableProps>(() => {
194
199
  return {
195
- ...injectAttrs,
200
+ ...injectAttrs.value,
196
201
  ...tableAttrs.value,
197
202
  pagination: undefined,
198
203
  onChange: undefined,
@@ -201,65 +206,84 @@ const computedTableProps = computed<TableProps>(() => {
201
206
 
202
207
  const computedTableContainer = computed(() => {
203
208
  const container =
204
- tableContainer ?? injectProps.tableContainer ?? DefaultTableContainer;
209
+ props.tableContainer ??
210
+ injectProps.value.tableContainer ??
211
+ DefaultTableContainer;
205
212
  return container ? container : undefined;
206
213
  });
207
214
 
208
215
  type ReturnGenericParameterTypes<V> = V extends Table<any, infer R> ? R : never;
209
216
  type RecordType = ReturnGenericParameterTypes<T>;
210
217
 
211
- const indexColumn = (): ColumnType => ({
218
+ const renderIndex: ColumnType['customRender'] = ({ index }) => index + 1;
219
+
220
+ const indexColumn = computed<ColumnType>(() => ({
212
221
  title: t('table.index'),
213
222
  dataIndex: '_index',
223
+ key: '_index',
214
224
  width: 80,
215
- customRender: ({ index }) => index + 1,
225
+ customRender: renderIndex,
226
+ }));
227
+
228
+ const computedColumns = computed<Columns<RecordType>>(() => {
229
+ const cols = (tableAttrs.value.columns ??
230
+ toValue(props.table?.columns) ??
231
+ []) as any;
232
+ const needIndex = props.addIndexColumn ?? injectProps.value.addIndexColumn;
233
+ return needIndex ? [indexColumn.value, ...cols] : cols;
216
234
  });
217
235
 
218
- const computedColumns = computed(
219
- () =>
220
- [
221
- ...((addIndexColumn ?? injectProps.addIndexColumn)
222
- ? [indexColumn()]
223
- : []),
224
- ...(tableAttrs.value.columns ?? columns?.value ?? []),
225
- ] as Columns<RecordType>
226
- );
227
-
228
236
  const visibleComputedColumns = computed(() => {
229
237
  return computedColumns.value.filter(item => !(item as Column).hidden);
230
238
  });
231
239
 
232
240
  const computedDataSource = computed<RecordType[]>(() => {
233
- return (tableAttrs.value.dataSource as any[]) ?? dataSource?.value;
241
+ return tableAttrs.value.dataSource ?? toValue(props.table?.dataSource) ?? [];
234
242
  });
235
243
 
244
+ // 分页优先级:tableAttrs 显式配置 > provider 全局配置 > 默认合成
236
245
  const computedPagination = computed<PaginationProps | false>(() => {
237
246
  if (tableAttrs.value.pagination === false) return false;
247
+ if (isPlainObject(tableAttrs.value.pagination)) {
248
+ const globalPagination =
249
+ injectAttrs.value.pagination === false
250
+ ? {}
251
+ : injectAttrs.value.pagination;
252
+ return {
253
+ ...globalPagination,
254
+ ...props.table?.pageParam,
255
+ ...tableAttrs.value.pagination,
256
+ showTotal:
257
+ tableAttrs.value.pagination?.showTotal ??
258
+ globalPagination?.showTotal ??
259
+ ((total: number) => t('pagination.total', { total })),
260
+ };
261
+ }
262
+ if (injectAttrs.value.pagination === false) return false;
238
263
  return {
239
- ...injectAttrs.pagination,
240
- ...pageParam,
241
- ...tableAttrs.value.pagination,
264
+ ...injectAttrs.value.pagination,
265
+ ...props.table?.pageParam,
242
266
  showTotal:
243
- tableAttrs.value.pagination?.showTotal ??
244
- (injectAttrs.pagination === false
245
- ? undefined
246
- : injectAttrs.pagination?.showTotal) ??
267
+ injectAttrs.value.pagination?.showTotal ??
247
268
  ((total: number) => t('pagination.total', { total })),
248
269
  };
249
270
  });
250
271
 
251
272
  const onTableChange: TableProps['onChange'] = (...args) => {
252
- setPageParam?.(args[0]);
273
+ props.table?.setPageParam?.(args[0]);
253
274
  attrs.onChange?.(...args);
254
275
  _search();
255
276
  };
256
277
 
257
278
  const showSearch = computed(() => {
279
+ const searchFields = props.table?.searchForm?.fields;
280
+ const fieldList =
281
+ (Array.isArray(searchFields) ? searchFields : searchFields?.value) ?? [];
258
282
  return !!(
259
283
  searchFormSlot ||
260
284
  (computedSearchFormConfig.value?.hidden !== true &&
261
- searchForm &&
262
- searchForm.fields.value.filter(item => !item.hidden)?.length > 0)
285
+ props.table?.searchForm &&
286
+ fieldList.filter(item => !item.hidden).length > 0)
263
287
  );
264
288
  });
265
289
 
@@ -267,14 +291,17 @@ const computedControl = computed<{
267
291
  sizeControl: boolean;
268
292
  columnControl: boolean | ColumnControlConfig<Path<RecordType>>;
269
293
  }>(() => {
270
- const mergedControl = control ?? injectProps.control;
271
- if (typeof mergedControl === 'boolean') {
272
- return { sizeControl: mergedControl, columnControl: mergedControl };
294
+ const controlConfig = props.control ?? injectProps.value.control;
295
+ if (controlConfig === true) {
296
+ return { sizeControl: true, columnControl: true };
273
297
  }
274
- const c = mergedControl as Control;
275
- const sizeControl = c.sizeControl ?? true;
276
- const columnControl = c.columnControl ?? true;
277
- return { sizeControl: !!sizeControl, columnControl };
298
+ if (controlConfig === false) {
299
+ return { sizeControl: false, columnControl: false };
300
+ }
301
+ return {
302
+ sizeControl: !!controlConfig?.sizeControl,
303
+ columnControl: controlConfig?.columnControl ?? false,
304
+ };
278
305
  });
279
306
 
280
307
  const columnControlConfig = computed(() => {
@@ -283,7 +310,7 @@ const columnControlConfig = computed(() => {
283
310
  });
284
311
 
285
312
  onMounted(() => {
286
- if (immediateSearch ?? injectProps.immediateSearch) {
313
+ if (props.immediateSearch ?? injectProps.value.immediateSearch) {
287
314
  _search();
288
315
  }
289
316
  });
@@ -297,8 +324,8 @@ onMounted(() => {
297
324
  >
298
325
  <slot name="search-form">
299
326
  <SearchForm
300
- v-if="searchForm"
301
- :form="searchForm"
327
+ v-if="props.table?.searchForm"
328
+ :form="props.table.searchForm"
302
329
  v-bind="computedSearchFormConfig"
303
330
  @search="searchPage1st"
304
331
  @reset="reset"
@@ -325,8 +352,8 @@ onMounted(() => {
325
352
  class="pro-table_header_column-control"
326
353
  >
327
354
  <ColumnControl
328
- :columns="computedColumns as any"
329
- :table="table"
355
+ :columns="computedColumns"
356
+ :table="props.table"
330
357
  :column-control="columnControlConfig"
331
358
  />
332
359
  </div>
@@ -61,7 +61,6 @@ import {
61
61
  AllowedComponentProps,
62
62
  computed,
63
63
  ref,
64
- nextTick,
65
64
  watch,
66
65
  watchEffect,
67
66
  onBeforeUnmount,
@@ -77,16 +76,16 @@ defineOptions({ name: 'SearchForm' });
77
76
 
78
77
  const { t } = useLocale();
79
78
 
80
- const {
81
- layout = 'grid',
82
- expand = true,
83
- searchButton = undefined,
84
- resetButton = undefined,
85
- expandButton = undefined,
86
- rowGap = 16,
87
- columnGap = 24,
88
- form,
89
- } = defineProps<SearchFormProps>();
79
+ const props = withDefaults(defineProps<SearchFormProps>(), {
80
+ layout: 'grid',
81
+ expand: true,
82
+ searchButton: undefined,
83
+ resetButton: undefined,
84
+ expandButton: undefined,
85
+ rowGap: 16,
86
+ columnGap: 24,
87
+ form: undefined,
88
+ });
90
89
 
91
90
  type Emits = {
92
91
  (e: 'search'): void;
@@ -117,11 +116,11 @@ onBeforeUnmount(() => {
117
116
  });
118
117
 
119
118
  const computedExpand = computed(() => {
120
- if (!expand) return false;
121
- if (expand === true) return { minExpandRows: 2, expandStatus: false };
119
+ if (!props.expand) return false;
120
+ if (props.expand === true) return { minExpandRows: 2, expandStatus: false };
122
121
  return {
123
- minExpandRows: Math.max(Math.floor(expand.minExpandRows ?? 2), 1),
124
- expandStatus: expand.expandStatus ?? false,
122
+ minExpandRows: Math.max(Math.floor(props.expand.minExpandRows ?? 2), 1),
123
+ expandStatus: props.expand.expandStatus ?? false,
125
124
  };
126
125
  });
127
126
 
@@ -129,11 +128,9 @@ const showExpandToggle = ref(false);
129
128
 
130
129
  const expandStatus = ref(true);
131
130
 
132
- const { formRef, getFormData } = form;
133
-
134
131
  const updateHeights = () => {
135
- if (!expand || !formRef.value) return;
136
- const proFormEl = (formRef.value as any)?.$el;
132
+ if (!props.expand || !props.form?.formRef?.value) return;
133
+ const proFormEl = (props.form.formRef.value as any)?.$el;
137
134
  if (!proFormEl) return;
138
135
 
139
136
  const itemHeight = proFormEl
@@ -151,11 +148,12 @@ const updateHeights = () => {
151
148
  }
152
149
  };
153
150
 
151
+ // 手动展开/收起标记:置位后自动测量不再覆盖用户操作
152
+ const isManualToggle = ref(false);
153
+
154
154
  const changeExpandStatus = () => {
155
+ isManualToggle.value = true;
155
156
  expandStatus.value = !expandStatus.value;
156
- nextTick(() => {
157
- updateHeights();
158
- });
159
157
  };
160
158
 
161
159
  const hasFieldValue = (val: any) =>
@@ -170,9 +168,13 @@ const hasFieldValue = (val: any) =>
170
168
  * 如果有值则自动展开,让用户看到已填写的搜索条件
171
169
  */
172
170
  const setInitExpandStatus = () => {
173
- expandStatus.value = false;
174
- if (formRef.value && expand) {
175
- const formEl = (formRef.value as any).$el;
171
+ if (isManualToggle.value) return;
172
+ const initStatus = computedExpand.value
173
+ ? computedExpand.value.expandStatus
174
+ : false;
175
+ expandStatus.value = initStatus;
176
+ if (props.form?.formRef?.value && computedExpand.value) {
177
+ const formEl = (props.form.formRef.value as any).$el;
176
178
  const formItemsEl = formEl?.querySelectorAll?.(
177
179
  "[class*='-form-item'] > [path]"
178
180
  );
@@ -182,14 +184,19 @@ const setInitExpandStatus = () => {
182
184
  }
183
185
  intersectionObserver = new IntersectionObserver(
184
186
  entries => {
187
+ if (isManualToggle.value) return;
185
188
  expandStatus.value = entries.some(e => {
186
189
  // 如果隐藏字段(intersectionRatio === 0)有值,则自动展开
187
190
  if (e.intersectionRatio === 0) {
188
191
  const path = e.target.getAttribute('path');
189
- const searchFieldValue = path ? getFormData?.(path) : undefined;
192
+ const searchFieldValue = path
193
+ ? props.form?.getFormData?.(path)
194
+ : undefined;
190
195
  return hasFieldValue(searchFieldValue);
191
196
  }
192
- return (expand as any).expandStatus;
197
+ return computedExpand.value
198
+ ? computedExpand.value.expandStatus
199
+ : false;
193
200
  });
194
201
  intersectionObserver?.disconnect();
195
202
  },
@@ -203,9 +210,9 @@ const setInitExpandStatus = () => {
203
210
 
204
211
  watch(
205
212
  [
206
- () => form?.fields.value?.filter(f => !f.hidden)?.length,
207
- () => formRef.value,
208
- () => expand,
213
+ () => props.form?.fields.value?.filter(f => !f.hidden)?.length,
214
+ () => props.form?.formRef?.value,
215
+ () => props.expand,
209
216
  ],
210
217
  () => {
211
218
  updateHeights();
@@ -214,7 +221,7 @@ watch(
214
221
  );
215
222
 
216
223
  watch(
217
- () => formRef.value,
224
+ () => props.form?.formRef?.value,
218
225
  val => {
219
226
  if (resizeObserver) {
220
227
  resizeObserver.disconnect();
@@ -239,10 +246,10 @@ watch(
239
246
  watchEffect(
240
247
  () => {
241
248
  if (typeof proFormHeight.value !== 'number') return;
242
- if (layout === 'grid' && computedExpand.value) {
249
+ if (props.layout === 'grid' && computedExpand.value) {
243
250
  const { minExpandRows } = computedExpand.value;
244
251
  collapseHeight.value = Math.min(
245
- minExpandRows * rowHeight.value + (minExpandRows - 1) * rowGap,
252
+ minExpandRows * rowHeight.value + (minExpandRows - 1) * props.rowGap,
246
253
  +proFormHeight.value
247
254
  );
248
255
  showExpandToggle.value = +proFormHeight.value - collapseHeight.value > 1;
@@ -256,25 +263,29 @@ watchEffect(
256
263
  { flush: 'post' }
257
264
  );
258
265
 
259
- const layoutProps = computed(() =>
260
- layout === 'grid'
266
+ const layoutProps = computed(() => {
267
+ const currentHeight = expandStatus.value
268
+ ? proFormHeight.value
269
+ : collapseHeight.value;
270
+ const heightStyle =
271
+ currentHeight !== 'unset' && currentHeight !== undefined
272
+ ? `${currentHeight}px`
273
+ : undefined;
274
+
275
+ return props.layout === 'grid'
261
276
  ? {
262
277
  grid: {
263
- gutter: [columnGap, rowGap] as [number, number],
278
+ gutter: [props.columnGap, props.rowGap] as [number, number],
264
279
  style: { flex: 1, marginRight: '12px' },
265
280
  },
266
- style: {
267
- display: 'flex',
268
- overflow: 'hidden',
269
- height: `${expandStatus.value ? proFormHeight.value : collapseHeight.value}px`,
270
- },
281
+ style: { display: 'flex', overflow: 'hidden', height: heightStyle },
271
282
  }
272
283
  : {
273
284
  layout: 'inline',
274
- style: { gap: `${rowGap}px ${columnGap}px` },
285
+ style: { gap: `${props.rowGap}px ${props.columnGap}px` },
275
286
  grid: false,
276
- }
277
- );
287
+ };
288
+ });
278
289
 
279
290
  const onReset = () => {
280
291
  emit('reset');
@@ -288,13 +299,17 @@ const onSearch = () => {
288
299
  <template>
289
300
  <ProForm
290
301
  v-bind="layoutProps"
291
- :form="form"
302
+ :form="props.form"
292
303
  class="pro-table_search-form transition"
293
304
  >
294
305
  <Space align="start" class="pro-table_search-form_button-group">
295
- <slot name="reset-button" @click="onReset">
296
- <template v-if="resetButton !== false">
297
- <component :is="resetButton" v-if="resetButton" @click="onReset" />
306
+ <slot name="reset-button" :on-reset="onReset">
307
+ <template v-if="props.resetButton !== false">
308
+ <component
309
+ :is="props.resetButton"
310
+ v-if="props.resetButton"
311
+ @click="onReset"
312
+ />
298
313
  <Button
299
314
  v-else
300
315
  class="pro-table_search-form_reset-button"
@@ -303,9 +318,13 @@ const onSearch = () => {
303
318
  >
304
319
  </template>
305
320
  </slot>
306
- <slot name="search-button" @click="onSearch">
307
- <template v-if="searchButton !== false">
308
- <component :is="searchButton" v-if="searchButton" @click="onSearch" />
321
+ <slot name="search-button" :on-search="onSearch">
322
+ <template v-if="props.searchButton !== false">
323
+ <component
324
+ :is="props.searchButton"
325
+ v-if="props.searchButton"
326
+ @click="onSearch"
327
+ />
309
328
  <Button
310
329
  v-else
311
330
  class="pro-table_search-form_search-button"
@@ -316,11 +335,15 @@ const onSearch = () => {
316
335
  </Button>
317
336
  </template>
318
337
  </slot>
319
- <slot name="expand-button" @click="changeExpandStatus">
320
- <template v-if="expandButton !== false && showExpandToggle">
338
+ <slot
339
+ name="expand-button"
340
+ :expand-status="expandStatus"
341
+ :change-expand-status="changeExpandStatus"
342
+ >
343
+ <template v-if="props.expandButton !== false && showExpandToggle">
321
344
  <component
322
- :is="expandButton"
323
- v-if="expandButton"
345
+ :is="props.expandButton"
346
+ v-if="props.expandButton"
324
347
  :expand-status="expandStatus"
325
348
  @click="changeExpandStatus"
326
349
  />
@@ -345,10 +368,8 @@ const onSearch = () => {
345
368
 
346
369
  <style scoped lang="less">
347
370
  .pro-table_search-form {
348
- :deep {
349
- [class*='-form-item'] {
350
- margin: 0;
351
- }
371
+ :deep([class*='-form-item']) {
372
+ margin: 0;
352
373
  }
353
374
  &_expand-toggle-button {
354
375
  display: flex;
@@ -19,7 +19,9 @@ const configContext = useConfigContextInject();
19
19
 
20
20
  const size = defineModel<Size>('size');
21
21
 
22
- size.value = size.value ?? configContext.componentSize?.value ?? 'large';
22
+ const currentSize = computed(
23
+ () => size.value ?? configContext.componentSize?.value ?? 'large'
24
+ );
23
25
 
24
26
  const onSizeChange = (val: any) => {
25
27
  size.value = val.key;
@@ -40,7 +42,7 @@ const sizeOptions = computed<Array<MenuItemType>>(() => [
40
42
  <template #overlay>
41
43
  <Menu
42
44
  style="width: 100px; text-align: center"
43
- :selected-keys="size ? [size] : []"
45
+ :selected-keys="[currentSize]"
44
46
  :items="sizeOptions"
45
47
  @click="onSizeChange"
46
48
  >
package/src/index.ts CHANGED
@@ -51,7 +51,7 @@ export * from './locale';
51
51
  * @example
52
52
  * ```vue
53
53
  * <template>
54
- * <ProComponentProvider :component-props="customProps">
54
+ * <ProComponentProvider :componentVars="customVars">
55
55
  * <App />
56
56
  * </ProComponentProvider>
57
57
  * </template>
@@ -14,12 +14,15 @@ export {
14
14
  InjectionFormSlotsKey,
15
15
  // utils
16
16
  getObject,
17
+ get,
18
+ set,
19
+ normalizePathKey,
17
20
  toPath,
18
21
  camelizeProperties,
19
22
  cloneDeep,
20
- omit,
21
23
  pick,
22
24
  isPlainObject,
25
+ isPromise,
23
26
  // types
24
27
  type Data,
25
28
  type Path,
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/component-provider/components/index.vue"],"names":[],"mappings":"AAkGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEpE,KAAK,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC;AAOxD,KAAK,KAAK,GAAG;IACX;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7B,CAAC;AA+BF,iBAAS,cAAc;WAoBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/component-provider/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAK9C,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAC1C,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CACL,CAAC;AAEhC,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,GAAG,IAAI;IACvC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE;KACzB,GAAG,IAAI,MAAM,qBAAqB,GAAG;QACpC,YAAY,EAAE,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;QACvD,OAAO,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC;KACrC;CAyHF,CAAC;AAKF,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,KAAG,iBAAiB,GAAG,SAKjE,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,KAAG,iBAShD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/component-provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AAGvD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAe,iBAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/component-provider/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,KAAK,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,OAAO,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC;AAE5E,KAAK,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,OAAO,CAC9C,CAAC,GACC,IAAI,CAAC,IAAI,EAAE,gBAAgB,GAAG,oBAAoB,GAAG,WAAW,CAAC,GACjE,qBAAqB,CACxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,sBAAsB;IACtB,WAAW,EAAE,EAAE,CACb,UAAU,GACR,IAAI,CACF,aAAa,EACX,SAAS,GACT,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,gBAAgB,CACnB,CACJ,CAAC;IACF,qDAAqD;IACrD,UAAU,EAAE,EAAE,CACZ,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;QACpC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;KAC1C,CACF,CAAC;IACF,yBAAyB;IACzB,eAAe,EAAE,EAAE,CACjB,aAAa,GACX,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC,GACtE,IAAI,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAClC,CAAC;IAEF,+BAA+B;IAC/B,kBAAkB,EAAE,EAAE,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IACxE,+BAA+B;IAC/B,kBAAkB,EAAE,EAAE,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IACxE,gCAAgC;IAChC,mBAAmB,EAAE,EAAE,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IACzE,+BAA+B;IAC/B,kBAAkB,EAAE,EAAE,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IACxE,kCAAkC;IAClC,qBAAqB,EAAE,EAAE,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CAC5E,GAAG;KAED,CAAC,IAAI,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,GAAG,EAAE,CACzC,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CACpC;CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/BaseField/index.vue"],"names":[],"mappings":"AAoMA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,KAAK,CAAC;AAgBb,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;;;qCAqH6D,GAAG;;;;AAsGlE,wBAQG"}
@@ -1,5 +0,0 @@
1
- import { Field } from '../../../types';
2
- type LocaleT = (key: string, params?: Record<string, string | number>) => string;
3
- export declare const getInitProps: (field: Field, t: LocaleT) => Record<string, any>;
4
- export {};
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/components/BaseField/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAIvC,KAAK,OAAO,GAAG,CACb,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAAM,CAAC;AA2BZ,eAAO,MAAM,YAAY,GAAI,OAAO,KAAK,EAAE,GAAG,OAAO,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAWzE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/BaseFormItem/index.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAOhD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;AAmOF,wBAMG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/ContainerFragment/index.vue"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,kBAAkB,CAAC;CAChC,CAAC;AASF,iBAAS,cAAc;WAoCT,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;;;;EAgB/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/ProForm/index.vue"],"names":[],"mappings":"AAyGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,OAAO,EAAiB,SAAS,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAyC,KAAK,IAAI,EAAE,MAAM,KAAK,CAAC;AAIvE,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAa,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,IAAI,EAAsB,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;yBAE/B,CAAC,SAAS,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,EAC1C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAoHO,mBAAmB,CAAC;eA/GN,IAAI;eAAS,CAAC;yDA+G0D,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;wDA1FgC,CAAC;;;;mBAEjB,OAAO;;iBAGwB,IAAI;8CALnB,CAAC;;;;mBAEjB,OAAO;;iBAGwB,IAAI;;UAuFvD,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA/HzE,wBA+H4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,7 +0,0 @@
1
- import { SlotComponentType } from '../../types';
2
- type Props = {
3
- component?: SlotComponentType;
4
- };
5
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
- export default _default;
7
- //# sourceMappingURL=index.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/SlotComponent/index.vue"],"names":[],"mappings":"AAmCA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIhD,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B,CAAC;;AAkDF,wBAMG"}