@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.
- package/README.md +7 -5
- package/api.json +1 -25
- package/es/__tests__/BaseField.spec.d.ts +2 -0
- package/es/__tests__/BaseField.spec.d.ts.map +1 -0
- package/es/__tests__/BaseFormItem.spec.d.ts +2 -0
- package/es/__tests__/BaseFormItem.spec.d.ts.map +1 -0
- package/es/__tests__/ProForm.spec.d.ts +2 -0
- package/es/__tests__/ProForm.spec.d.ts.map +1 -0
- package/es/__tests__/ProTable.spec.d.ts +2 -0
- package/es/__tests__/ProTable.spec.d.ts.map +1 -0
- package/es/__tests__/SearchForm.spec.d.ts +2 -0
- package/es/__tests__/SearchForm.spec.d.ts.map +1 -0
- package/es/__tests__/controls.spec.d.ts +2 -0
- package/es/__tests__/controls.spec.d.ts.map +1 -0
- package/es/__tests__/helpers/fixtures.d.ts +15 -0
- package/es/__tests__/helpers/fixtures.d.ts.map +1 -0
- package/es/__tests__/helpers/mount.d.ts +38 -0
- package/es/__tests__/helpers/mount.d.ts.map +1 -0
- package/es/__tests__/hooks-locale.spec.d.ts +2 -0
- package/es/__tests__/hooks-locale.spec.d.ts.map +1 -0
- package/es/__tests__/index.spec.d.ts +2 -0
- package/es/__tests__/index.spec.d.ts.map +1 -0
- package/es/__tests__/integration.spec.d.ts +2 -0
- package/es/__tests__/integration.spec.d.ts.map +1 -0
- package/es/__tests__/setup.d.ts +14 -0
- package/es/__tests__/setup.d.ts.map +1 -0
- package/es/antd-vue-pro.css +13 -13
- package/es/index.js +362 -225
- package/es/index.js.map +1 -1
- package/es/{components → src/components}/component-provider/components/index.vue.d.ts +5 -1
- package/es/src/components/component-provider/components/index.vue.d.ts.map +1 -0
- package/es/src/components/component-provider/constants/index.d.ts.map +1 -0
- package/es/src/components/component-provider/index.d.ts.map +1 -0
- package/es/src/components/component-provider/types/index.d.ts.map +1 -0
- package/es/{components → src/components}/form/components/BaseField/index.vue.d.ts +4 -1
- package/es/src/components/form/components/BaseField/index.vue.d.ts.map +1 -0
- package/es/src/components/form/components/BaseField/utils/index.d.ts +5 -0
- package/es/src/components/form/components/BaseField/utils/index.d.ts.map +1 -0
- package/es/{components → src/components}/form/components/BaseFormItem/index.vue.d.ts +5 -1
- package/es/src/components/form/components/BaseFormItem/index.vue.d.ts.map +1 -0
- package/es/{components → src/components}/form/components/ContainerFragment/index.vue.d.ts +3 -1
- package/es/src/components/form/components/ContainerFragment/index.vue.d.ts.map +1 -0
- package/es/src/components/form/components/ProForm/index.vue.d.ts.map +1 -0
- package/es/src/components/form/components/SlotComponent/index.vue.d.ts +11 -0
- package/es/src/components/form/components/SlotComponent/index.vue.d.ts.map +1 -0
- package/es/src/components/form/components/index.d.ts.map +1 -0
- package/es/src/components/form/constants/index.d.ts.map +1 -0
- package/es/src/components/form/hooks/index.d.ts.map +1 -0
- package/es/src/components/form/hooks/useFields.d.ts.map +1 -0
- package/es/src/components/form/hooks/useForm.d.ts.map +1 -0
- package/es/src/components/form/hooks/useFormRef.d.ts.map +1 -0
- package/es/{components → src/components}/form/hooks/useGroupFieldAttrs.d.ts +4 -0
- package/es/src/components/form/hooks/useGroupFieldAttrs.d.ts.map +1 -0
- package/es/src/components/form/index.d.ts.map +1 -0
- package/es/{components → src/components}/form/types/index.d.ts +26 -2
- package/es/src/components/form/types/index.d.ts.map +1 -0
- package/es/{components → src/components}/table/components/ColumnControl.vue.d.ts +4 -1
- package/es/src/components/table/components/ColumnControl.vue.d.ts.map +1 -0
- package/es/src/components/table/components/DefaultSearchFormContainer.vue.d.ts.map +1 -0
- package/es/src/components/table/components/DefaultTableContainer.vue.d.ts.map +1 -0
- package/es/{components → src/components}/table/components/ProTable.vue.d.ts +0 -2
- package/es/src/components/table/components/ProTable.vue.d.ts.map +1 -0
- package/es/{components → src/components}/table/components/SearchForm.vue.d.ts +14 -4
- package/es/src/components/table/components/SearchForm.vue.d.ts.map +1 -0
- package/es/src/components/table/components/SizeControl.vue.d.ts.map +1 -0
- package/es/src/components/table/components/icons/ColumnHeightOutlined.vue.d.ts.map +1 -0
- package/es/src/components/table/components/icons/DownOutlined.vue.d.ts.map +1 -0
- package/es/src/components/table/components/icons/FilterOutlined.vue.d.ts.map +1 -0
- package/es/src/components/table/components/index.d.ts.map +1 -0
- package/es/src/components/table/hooks/index.d.ts.map +1 -0
- package/es/src/components/table/hooks/useTable.d.ts.map +1 -0
- package/es/src/components/table/index.d.ts.map +1 -0
- package/es/src/components/table/types/index.d.ts.map +1 -0
- package/es/{index.d.ts → src/index.d.ts} +1 -1
- package/es/src/index.d.ts.map +1 -0
- package/es/src/locale/index.d.ts.map +1 -0
- package/es/src/shared/core/index.d.ts +6 -0
- package/es/src/shared/core/index.d.ts.map +1 -0
- package/es/src/shared/ui/index.d.ts.map +1 -0
- package/package.json +8 -3
- package/src/components/component-provider/components/index.vue +37 -8
- package/src/components/component-provider/constants/index.ts +2 -1
- package/src/components/form/components/BaseField/index.vue +61 -34
- package/src/components/form/components/BaseField/utils/index.ts +6 -11
- package/src/components/form/components/BaseFormItem/index.vue +46 -33
- package/src/components/form/components/ContainerFragment/index.vue +4 -2
- package/src/components/form/components/ProForm/index.vue +70 -18
- package/src/components/form/components/SlotComponent/index.vue +6 -4
- package/src/components/form/hooks/useGroupFieldAttrs.ts +7 -1
- package/src/components/form/types/index.ts +26 -2
- package/src/components/table/components/ColumnControl.vue +16 -15
- package/src/components/table/components/ProTable.vue +92 -65
- package/src/components/table/components/SearchForm.vue +80 -59
- package/src/components/table/components/SizeControl.vue +4 -2
- package/src/index.ts +1 -1
- package/src/shared/core/index.ts +4 -1
- package/es/components/component-provider/components/index.vue.d.ts.map +0 -1
- package/es/components/component-provider/constants/index.d.ts.map +0 -1
- package/es/components/component-provider/index.d.ts.map +0 -1
- package/es/components/component-provider/types/index.d.ts.map +0 -1
- package/es/components/form/components/BaseField/index.vue.d.ts.map +0 -1
- package/es/components/form/components/BaseField/utils/index.d.ts +0 -5
- package/es/components/form/components/BaseField/utils/index.d.ts.map +0 -1
- package/es/components/form/components/BaseFormItem/index.vue.d.ts.map +0 -1
- package/es/components/form/components/ContainerFragment/index.vue.d.ts.map +0 -1
- package/es/components/form/components/ProForm/index.vue.d.ts.map +0 -1
- package/es/components/form/components/SlotComponent/index.vue.d.ts +0 -7
- package/es/components/form/components/SlotComponent/index.vue.d.ts.map +0 -1
- package/es/components/form/components/index.d.ts.map +0 -1
- package/es/components/form/constants/index.d.ts.map +0 -1
- package/es/components/form/hooks/index.d.ts.map +0 -1
- package/es/components/form/hooks/useFields.d.ts.map +0 -1
- package/es/components/form/hooks/useForm.d.ts.map +0 -1
- package/es/components/form/hooks/useFormRef.d.ts.map +0 -1
- package/es/components/form/hooks/useGroupFieldAttrs.d.ts.map +0 -1
- package/es/components/form/index.d.ts.map +0 -1
- package/es/components/form/types/index.d.ts.map +0 -1
- package/es/components/table/components/ColumnControl.vue.d.ts.map +0 -1
- package/es/components/table/components/DefaultSearchFormContainer.vue.d.ts.map +0 -1
- package/es/components/table/components/DefaultTableContainer.vue.d.ts.map +0 -1
- package/es/components/table/components/ProTable.vue.d.ts.map +0 -1
- package/es/components/table/components/SearchForm.vue.d.ts.map +0 -1
- package/es/components/table/components/SizeControl.vue.d.ts.map +0 -1
- package/es/components/table/components/icons/ColumnHeightOutlined.vue.d.ts.map +0 -1
- package/es/components/table/components/icons/DownOutlined.vue.d.ts.map +0 -1
- package/es/components/table/components/icons/FilterOutlined.vue.d.ts.map +0 -1
- package/es/components/table/components/index.d.ts.map +0 -1
- package/es/components/table/hooks/index.d.ts.map +0 -1
- package/es/components/table/hooks/useTable.d.ts.map +0 -1
- package/es/components/table/index.d.ts.map +0 -1
- package/es/components/table/types/index.d.ts.map +0 -1
- package/es/index.d.ts.map +0 -1
- package/es/locale/index.d.ts.map +0 -1
- package/es/shared/core/index.d.ts +0 -6
- package/es/shared/core/index.d.ts.map +0 -1
- package/es/shared/ui/index.d.ts.map +0 -1
- /package/es/{components → src/components}/component-provider/constants/index.d.ts +0 -0
- /package/es/{components → src/components}/component-provider/index.d.ts +0 -0
- /package/es/{components → src/components}/component-provider/types/index.d.ts +0 -0
- /package/es/{components → src/components}/form/components/ProForm/index.vue.d.ts +0 -0
- /package/es/{components → src/components}/form/components/index.d.ts +0 -0
- /package/es/{components → src/components}/form/constants/index.d.ts +0 -0
- /package/es/{components → src/components}/form/hooks/index.d.ts +0 -0
- /package/es/{components → src/components}/form/hooks/useFields.d.ts +0 -0
- /package/es/{components → src/components}/form/hooks/useForm.d.ts +0 -0
- /package/es/{components → src/components}/form/hooks/useFormRef.d.ts +0 -0
- /package/es/{components → src/components}/form/index.d.ts +0 -0
- /package/es/{components → src/components}/table/components/DefaultSearchFormContainer.vue.d.ts +0 -0
- /package/es/{components → src/components}/table/components/DefaultTableContainer.vue.d.ts +0 -0
- /package/es/{components → src/components}/table/components/SizeControl.vue.d.ts +0 -0
- /package/es/{components → src/components}/table/components/icons/ColumnHeightOutlined.vue.d.ts +0 -0
- /package/es/{components → src/components}/table/components/icons/DownOutlined.vue.d.ts +0 -0
- /package/es/{components → src/components}/table/components/icons/FilterOutlined.vue.d.ts +0 -0
- /package/es/{components → src/components}/table/components/index.d.ts +0 -0
- /package/es/{components → src/components}/table/hooks/index.d.ts +0 -0
- /package/es/{components → src/components}/table/hooks/useTable.d.ts +0 -0
- /package/es/{components → src/components}/table/index.d.ts +0 -0
- /package/es/{components → src/components}/table/types/index.d.ts +0 -0
- /package/es/{locale → src/locale}/index.d.ts +0 -0
- /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
|
|
105
|
-
search
|
|
106
|
-
addIndexColumn
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
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
|
|
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 =
|
|
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
|
-
|
|
150
|
+
const searchPromise = (props.search || attrs.onSearch)?.();
|
|
151
|
+
if (isPromise(searchPromise)) {
|
|
148
152
|
loading.value = true;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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
|
-
|
|
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
|
|
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:
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
271
|
-
if (
|
|
272
|
-
return { sizeControl:
|
|
294
|
+
const controlConfig = props.control ?? injectProps.value.control;
|
|
295
|
+
if (controlConfig === true) {
|
|
296
|
+
return { sizeControl: true, columnControl: true };
|
|
273
297
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
return {
|
|
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
|
|
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
|
|
82
|
-
expand
|
|
83
|
-
searchButton
|
|
84
|
-
resetButton
|
|
85
|
-
expandButton
|
|
86
|
-
rowGap
|
|
87
|
-
columnGap
|
|
88
|
-
form,
|
|
89
|
-
}
|
|
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
|
|
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
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
|
|
192
|
+
const searchFieldValue = path
|
|
193
|
+
? props.form?.getFormData?.(path)
|
|
194
|
+
: undefined;
|
|
190
195
|
return hasFieldValue(searchFieldValue);
|
|
191
196
|
}
|
|
192
|
-
return
|
|
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
|
|
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
|
|
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
|
-
|
|
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"
|
|
296
|
-
<template v-if="resetButton !== false">
|
|
297
|
-
<component
|
|
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"
|
|
307
|
-
<template v-if="searchButton !== false">
|
|
308
|
-
<component
|
|
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
|
|
320
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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="
|
|
45
|
+
:selected-keys="[currentSize]"
|
|
44
46
|
:items="sizeOptions"
|
|
45
47
|
@click="onSizeChange"
|
|
46
48
|
>
|
package/src/index.ts
CHANGED
package/src/shared/core/index.ts
CHANGED
|
@@ -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 +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"}
|