yc-pro-components 0.0.85 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +1 -0
- package/es/components/page/src/index.vue2.mjs +31 -13
- package/es/components/search/src/index.vue2.mjs +1 -0
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +24 -13
- package/es/components/yc-plus-page/src/type.d.ts +5 -0
- package/es/components/yc-query-filter/index.d.ts +7 -0
- package/es/components/yc-query-filter/index.mjs +6 -0
- package/es/components/yc-query-filter/src/index.vue.d.ts +32 -0
- package/es/components/yc-query-filter/src/index.vue.mjs +6 -0
- package/es/components/yc-query-filter/src/index.vue2.mjs +662 -0
- package/es/components/yc-query-filter/src/serialize.d.ts +4 -0
- package/es/components/yc-query-filter/src/serialize.mjs +17 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +1 -0
- package/es/constants/query-filter.d.ts +69 -0
- package/es/constants/query-filter.mjs +3 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useQueryFilterConfig.d.ts +11 -0
- package/es/hooks/useQueryFilterConfig.mjs +38 -0
- package/es/index.css +12 -12
- package/es/index.d.ts +1 -1
- package/es/index.mjs +3 -0
- package/es/locale/lang/en.d.ts +33 -0
- package/es/locale/lang/en.mjs +33 -0
- package/es/locale/lang/ja.d.ts +33 -0
- package/es/locale/lang/ja.mjs +33 -0
- package/es/locale/lang/ko.d.ts +33 -0
- package/es/locale/lang/ko.mjs +33 -0
- package/es/locale/lang/zh-cn.d.ts +33 -0
- package/es/locale/lang/zh-cn.mjs +33 -0
- package/es/locale/lang/zh-tw.d.ts +33 -0
- package/es/locale/lang/zh-tw.mjs +33 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/index.d.ts +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.css +1 -1
- package/index.js +1069 -213
- package/index.min.css +1 -1
- package/index.min.js +16 -12
- package/index.min.mjs +16 -12
- package/index.mjs +1065 -215
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +3 -0
- package/lib/components/page/src/index.vue2.js +31 -13
- package/lib/components/search/src/index.vue2.js +1 -0
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +26 -15
- package/lib/components/yc-plus-page/src/type.d.ts +5 -0
- package/lib/components/yc-query-filter/index.d.ts +7 -0
- package/lib/components/yc-query-filter/index.js +9 -0
- package/lib/components/yc-query-filter/src/index.vue.d.ts +32 -0
- package/lib/components/yc-query-filter/src/index.vue.js +10 -0
- package/lib/components/yc-query-filter/src/index.vue2.js +666 -0
- package/lib/components/yc-query-filter/src/serialize.d.ts +4 -0
- package/lib/components/yc-query-filter/src/serialize.js +20 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +2 -0
- package/lib/constants/query-filter.d.ts +69 -0
- package/lib/constants/query-filter.js +5 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +4 -0
- package/lib/hooks/useQueryFilterConfig.d.ts +11 -0
- package/lib/hooks/useQueryFilterConfig.js +42 -0
- package/lib/index.css +9 -9
- package/lib/index.d.ts +1 -1
- package/lib/index.js +9 -0
- package/lib/locale/lang/en.d.ts +33 -0
- package/lib/locale/lang/en.js +33 -0
- package/lib/locale/lang/ja.d.ts +33 -0
- package/lib/locale/lang/ja.js +33 -0
- package/lib/locale/lang/ko.d.ts +33 -0
- package/lib/locale/lang/ko.js +33 -0
- package/lib/locale/lang/zh-cn.d.ts +33 -0
- package/lib/locale/lang/zh-cn.js +33 -0
- package/lib/locale/lang/zh-tw.d.ts +33 -0
- package/lib/locale/lang/zh-tw.js +33 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/index.d.ts +1 -1
- package/lib/yc-components/version.d.ts +1 -1
- package/locale/en.d.ts +33 -0
- package/locale/en.js +34 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +34 -1
- package/locale/ja.d.ts +33 -0
- package/locale/ja.js +34 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +34 -1
- package/locale/ko.d.ts +33 -0
- package/locale/ko.js +34 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +34 -1
- package/locale/zh-cn.d.ts +33 -0
- package/locale/zh-cn.js +34 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +34 -1
- package/locale/zh-tw.d.ts +33 -0
- package/locale/zh-tw.js +34 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +34 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-yc-query-filter.css +1 -0
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/yc-query-filter.scss +163 -0
- package/es/components/breadcrumb/index.d.ts +0 -6985
- package/es/components/breadcrumb/src/index.vue.d.ts +0 -6947
- package/es/components/dialog-form/index.d.ts +0 -314
- package/es/components/dialog-form/src/index.vue.d.ts +0 -214
- package/es/components/display-item/index.d.ts +0 -580
- package/es/components/display-item/src/index.vue.d.ts +0 -446
- package/es/components/drawer-form/index.d.ts +0 -1592
- package/es/components/drawer-form/src/index.vue.d.ts +0 -630
- package/es/components/form/index.d.ts +0 -870
- package/es/components/form/src/form-content.vue.d.ts +0 -598
- package/es/components/form/src/index.vue.d.ts +0 -382
- package/es/components/form-item/index.d.ts +0 -1492
- package/es/components/form-item/src/index.vue.d.ts +0 -550
- package/es/components/page/index.d.ts +0 -10746
- package/es/components/page/src/index.vue.d.ts +0 -3775
- package/es/components/search/index.d.ts +0 -2977
- package/es/components/search/src/index.vue.d.ts +0 -1021
- package/es/components/table/src/table-column.vue.d.ts +0 -624
- package/es/components/yc-drawer/store.d.ts +0 -2359
- package/es/components/yc-plus-page/src/index.vue.d.ts +0 -8250
- package/es/hooks/usePlusFormReset.d.ts +0 -4501
- package/lib/components/breadcrumb/index.d.ts +0 -6985
- package/lib/components/breadcrumb/src/index.vue.d.ts +0 -6947
- package/lib/components/dialog-form/index.d.ts +0 -314
- package/lib/components/dialog-form/src/index.vue.d.ts +0 -214
- package/lib/components/display-item/index.d.ts +0 -580
- package/lib/components/display-item/src/index.vue.d.ts +0 -446
- package/lib/components/drawer-form/index.d.ts +0 -1592
- package/lib/components/drawer-form/src/index.vue.d.ts +0 -630
- package/lib/components/form/index.d.ts +0 -870
- package/lib/components/form/src/form-content.vue.d.ts +0 -598
- package/lib/components/form/src/index.vue.d.ts +0 -382
- package/lib/components/form-item/index.d.ts +0 -1492
- package/lib/components/form-item/src/index.vue.d.ts +0 -550
- package/lib/components/page/index.d.ts +0 -10746
- package/lib/components/page/src/index.vue.d.ts +0 -3775
- package/lib/components/search/index.d.ts +0 -2977
- package/lib/components/search/src/index.vue.d.ts +0 -1021
- package/lib/components/table/src/table-column.vue.d.ts +0 -624
- package/lib/components/yc-drawer/store.d.ts +0 -2359
- package/lib/components/yc-plus-page/src/index.vue.d.ts +0 -8250
- package/lib/hooks/usePlusFormReset.d.ts +0 -4501
package/es/components/index.d.ts
CHANGED
package/es/components/index.mjs
CHANGED
|
@@ -41,6 +41,7 @@ export { YcAnimateSelectorWithInstall } from './yc-animate-selector/index.mjs';
|
|
|
41
41
|
export { YcDownloadDialogWithInstall } from './yc-download-dialog/index.mjs';
|
|
42
42
|
export { YcTabsWithFilterWithInstall } from './yc-tabs-with-filter/index.mjs';
|
|
43
43
|
export { YcBatchImportDialogWithInstall } from './yc-batch-import-dialog/index.mjs';
|
|
44
|
+
export { ReQueryFilterManager, YcQueryFilterManager } from './yc-query-filter/index.mjs';
|
|
44
45
|
export { useColumnAdapter } from './virtual-table/src/use-column-adapter.mjs';
|
|
45
46
|
export { useVirtualSelection } from './virtual-table/src/use-virtual-selection.mjs';
|
|
46
47
|
export { useVirtualScroll } from './virtual-table/src/use-virtual-scroll.mjs';
|
|
@@ -72,14 +72,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
const plusSearchInstance = ref(null);
|
|
73
73
|
const plusTableInstance = ref(null);
|
|
74
74
|
const plusVirtualTableInstance = ref(null);
|
|
75
|
-
const
|
|
75
|
+
const defaultSearchValues = {
|
|
76
|
+
...(_a = props.search) == null ? void 0 : _a.defaultValues
|
|
77
|
+
};
|
|
78
|
+
const searchFormValues = ref({ ...defaultSearchValues });
|
|
79
|
+
const submittedSearchValues = ref({ ...defaultSearchValues });
|
|
76
80
|
const isVirtualMode = computed(() => {
|
|
77
81
|
var _a2;
|
|
78
82
|
return !!((_a2 = props.table) == null ? void 0 : _a2.useVirtual);
|
|
79
83
|
});
|
|
80
84
|
const virtualTableProps = computed(() => {
|
|
81
85
|
if (!isVirtualMode.value) return {};
|
|
82
|
-
const
|
|
86
|
+
const rest = { ...props.table || {} };
|
|
87
|
+
delete rest.useVirtual;
|
|
83
88
|
return rest;
|
|
84
89
|
});
|
|
85
90
|
const virtualColumns = computed(() => {
|
|
@@ -115,7 +120,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
120
|
try {
|
|
116
121
|
loadingStatus.value = true;
|
|
117
122
|
const payload = {
|
|
118
|
-
...
|
|
123
|
+
...submittedSearchValues.value,
|
|
119
124
|
// eslint-disabled no-useless-spread
|
|
120
125
|
...{
|
|
121
126
|
[((_a2 = props.pageInfoMap) == null ? void 0 : _a2.page) || "page"]: pageInfo.value.page,
|
|
@@ -143,16 +148,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
143
148
|
};
|
|
144
149
|
const handleSearch = (val) => {
|
|
145
150
|
const data = props.beforeSearchSubmit && props.beforeSearchSubmit(val) || val;
|
|
146
|
-
|
|
151
|
+
searchFormValues.value = data;
|
|
152
|
+
submittedSearchValues.value = { ...data };
|
|
147
153
|
pageInfo.value.page = 1;
|
|
148
154
|
getList();
|
|
149
|
-
emit("search",
|
|
155
|
+
emit("search", submittedSearchValues.value);
|
|
150
156
|
};
|
|
151
157
|
const handleReset = (val) => {
|
|
152
|
-
|
|
158
|
+
searchFormValues.value = { ...val };
|
|
159
|
+
submittedSearchValues.value = { ...val };
|
|
153
160
|
pageInfo.value.page = 1;
|
|
154
161
|
getList();
|
|
155
|
-
emit("reset",
|
|
162
|
+
emit("reset", submittedSearchValues.value);
|
|
156
163
|
};
|
|
157
164
|
const handleRefresh = () => {
|
|
158
165
|
getList();
|
|
@@ -160,19 +167,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
160
167
|
const setSearchFieldsValue = (val) => {
|
|
161
168
|
if (isPlainObject(val)) {
|
|
162
169
|
Object.keys(val).forEach((key) => {
|
|
163
|
-
Reflect.set(
|
|
170
|
+
Reflect.set(searchFormValues.value, key, val[key]);
|
|
164
171
|
});
|
|
165
172
|
}
|
|
166
173
|
};
|
|
174
|
+
const replaceSearchFormValues = (val) => {
|
|
175
|
+
searchFormValues.value = isPlainObject(val) ? { ...val } : {};
|
|
176
|
+
};
|
|
167
177
|
const getSearchFieldsValue = (key) => {
|
|
168
178
|
if (key !== void 0 && key !== null) {
|
|
169
|
-
return Reflect.get(
|
|
179
|
+
return Reflect.get(searchFormValues.value, key);
|
|
170
180
|
} else {
|
|
171
|
-
return { ...
|
|
181
|
+
return { ...searchFormValues.value };
|
|
172
182
|
}
|
|
173
183
|
};
|
|
174
184
|
const clearSearchFieldsValue = () => {
|
|
175
|
-
|
|
185
|
+
searchFormValues.value = {};
|
|
176
186
|
};
|
|
177
187
|
const setTableData = (data, _total) => {
|
|
178
188
|
tableData.value = data || [];
|
|
@@ -189,6 +199,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
189
199
|
*/
|
|
190
200
|
handleRest: handleReset,
|
|
191
201
|
setSearchFieldsValue,
|
|
202
|
+
replaceSearchFormValues,
|
|
192
203
|
getSearchFieldsValue,
|
|
193
204
|
clearSearchFieldsValue,
|
|
194
205
|
/**
|
|
@@ -204,8 +215,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
204
215
|
ref_key: "plusSearchInstance",
|
|
205
216
|
ref: plusSearchInstance
|
|
206
217
|
}, _ctx.search, {
|
|
207
|
-
modelValue:
|
|
208
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
218
|
+
modelValue: searchFormValues.value,
|
|
219
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchFormValues.value = $event),
|
|
209
220
|
columns: _ctx.columns,
|
|
210
221
|
"search-loading": unref(loadingStatus),
|
|
211
222
|
onSearch: handleSearch,
|
|
@@ -221,6 +232,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
221
232
|
]),
|
|
222
233
|
key: "0"
|
|
223
234
|
} : void 0,
|
|
235
|
+
_ctx.$slots["search-actions-after"] ? {
|
|
236
|
+
name: "search-actions-after",
|
|
237
|
+
fn: withCtx(() => [
|
|
238
|
+
renderSlot(_ctx.$slots, "search-actions-after")
|
|
239
|
+
]),
|
|
240
|
+
key: "1"
|
|
241
|
+
} : void 0,
|
|
224
242
|
renderList(searchSlots.value, (_, key) => {
|
|
225
243
|
return {
|
|
226
244
|
name: key,
|
|
@@ -154,6 +154,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
154
154
|
handleUnfold,
|
|
155
155
|
searchLoading: _ctx.searchLoading
|
|
156
156
|
}, () => [
|
|
157
|
+
renderSlot(_ctx.$slots, "search-actions-after"),
|
|
157
158
|
createCommentVNode(' :icon="computedResetIcon" '),
|
|
158
159
|
_ctx.hasReset ? (openBlock(), createBlock(unref(ElButton), {
|
|
159
160
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _sfc_main from './index.vue2.mjs';
|
|
2
2
|
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
3
|
|
|
4
|
-
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4b8729a9"], ["__file", "index.vue"]]);
|
|
5
5
|
|
|
6
6
|
export { YcPlusPageComponent as default };
|
|
@@ -2,6 +2,7 @@ import { defineComponent, ref, computed, useSlots, h, watch, onMounted, nextTick
|
|
|
2
2
|
import { merge } from 'lodash-es';
|
|
3
3
|
import { PlusPage } from '../../page/index.mjs';
|
|
4
4
|
import YcSvgIcon from '../../yc-svg-icon/src/index.vue.mjs';
|
|
5
|
+
import { YcQueryFilterManager } from '../../yc-query-filter/index.mjs';
|
|
5
6
|
import { useTableDragScroll } from '../../../hooks/useTableDragScroll.mjs';
|
|
6
7
|
import { useHeaderFilter } from './use-header-filter.mjs';
|
|
7
8
|
import YcTableHeaderFilterCellComponent from './header-filter-cell.vue.mjs';
|
|
@@ -37,7 +38,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
38
|
columnCacheKey: { default: void 0 },
|
|
38
39
|
disableColumnCache: { type: Boolean, default: false },
|
|
39
40
|
columnSettingsText: { default: void 0 },
|
|
40
|
-
dragScroll: { type: [Boolean, Object], default: false }
|
|
41
|
+
dragScroll: { type: [Boolean, Object], default: false },
|
|
42
|
+
queryFilterKey: { default: "main" }
|
|
41
43
|
},
|
|
42
44
|
emits: ["header-filter-confirm", "header-filter-reset"],
|
|
43
45
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -49,20 +51,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
51
|
const plusPageRef = ref();
|
|
50
52
|
const rootRef = ref();
|
|
51
53
|
const dragScrollWrapperRef = ref(null);
|
|
52
|
-
const dragScrollEnabled = computed(
|
|
54
|
+
const dragScrollEnabled = computed(
|
|
55
|
+
() => props.dragScroll !== false && props.dragScroll !== null && props.dragScroll !== void 0
|
|
56
|
+
);
|
|
53
57
|
const dragScrollOptions = computed(() => {
|
|
54
58
|
const value = props.dragScroll;
|
|
55
59
|
if (value && typeof value === "object") return value;
|
|
56
60
|
return {};
|
|
57
61
|
});
|
|
58
|
-
const { onMouseDown: onDragScrollMouseDown } = useTableDragScroll(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
...dragScrollOptions.value,
|
|
63
|
-
enabled: dragScrollEnabled
|
|
64
|
-
}
|
|
65
|
-
);
|
|
62
|
+
const { onMouseDown: onDragScrollMouseDown } = useTableDragScroll(dragScrollWrapperRef, void 0, {
|
|
63
|
+
...dragScrollOptions.value,
|
|
64
|
+
enabled: dragScrollEnabled
|
|
65
|
+
});
|
|
66
66
|
const plusTableInstance = computed(() => {
|
|
67
67
|
var _a;
|
|
68
68
|
return (_a = plusPageRef.value) == null ? void 0 : _a.plusTableInstance;
|
|
@@ -119,7 +119,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
119
|
const handleFilterConfirm = (payload) => {
|
|
120
120
|
var _a;
|
|
121
121
|
const field = String(((_a = payload.column) == null ? void 0 : _a.prop) || "");
|
|
122
|
-
const isEmpty = payload.value
|
|
122
|
+
const isEmpty = payload.value === null || payload.value === void 0 || String(payload.value).trim() === "";
|
|
123
123
|
if (isEmpty) {
|
|
124
124
|
removeHeaderFilter(field);
|
|
125
125
|
} else {
|
|
@@ -425,7 +425,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
425
425
|
});
|
|
426
426
|
return sorted;
|
|
427
427
|
};
|
|
428
|
-
const handleFilterTableHeader = (columns,
|
|
428
|
+
const handleFilterTableHeader = (columns, _eventType) => {
|
|
429
429
|
const order = columns.map((col) => String(col.prop || "")).filter(Boolean);
|
|
430
430
|
const checked = columns.filter((col) => col.headerIsChecked !== false).map((col) => String(col.prop || "")).filter(Boolean);
|
|
431
431
|
const existingCache = loadColumnCache();
|
|
@@ -527,6 +527,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
527
527
|
clearSearchFieldsValue: () => {
|
|
528
528
|
var _a, _b;
|
|
529
529
|
return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.clearSearchFieldsValue) == null ? void 0 : _b.call(_a);
|
|
530
|
+
},
|
|
531
|
+
replaceSearchFormValues: (values) => {
|
|
532
|
+
var _a, _b;
|
|
533
|
+
return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.replaceSearchFormValues) == null ? void 0 : _b.call(_a, values);
|
|
530
534
|
}
|
|
531
535
|
});
|
|
532
536
|
return (_ctx, _cache) => {
|
|
@@ -564,6 +568,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
564
568
|
onFilterTableHeader: handleFilterTableHeader,
|
|
565
569
|
onHeaderDragend: handleHeaderDragend
|
|
566
570
|
}), createSlots({
|
|
571
|
+
"search-actions-after": withCtx(() => [
|
|
572
|
+
createVNode(unref(YcQueryFilterManager), {
|
|
573
|
+
"page-instance": plusPageRef.value,
|
|
574
|
+
"query-filter-key": props.queryFilterKey
|
|
575
|
+
}, null, 8, ["page-instance", "query-filter-key"]),
|
|
576
|
+
renderSlot(_ctx.$slots, "search-actions-after", {}, void 0, true)
|
|
577
|
+
]),
|
|
567
578
|
default: withCtx(() => [
|
|
568
579
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
569
580
|
]),
|
|
@@ -599,7 +610,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
599
610
|
return {
|
|
600
611
|
name,
|
|
601
612
|
fn: withCtx((slotProps) => [
|
|
602
|
-
name !== "column-settings-icon" && name !== "default" ? renderSlot(_ctx.$slots, name, normalizeProps(mergeProps({ key: 0 }, slotProps)), void 0, true) : createCommentVNode("v-if", true)
|
|
613
|
+
name !== "column-settings-icon" && name !== "default" && name !== "search-actions-after" ? renderSlot(_ctx.$slots, name, normalizeProps(mergeProps({ key: 0 }, slotProps)), void 0, true) : createCommentVNode("v-if", true)
|
|
603
614
|
])
|
|
604
615
|
};
|
|
605
616
|
})
|
|
@@ -187,6 +187,11 @@ export interface YcPlusPageProps extends /* @vue-ignore */ Omit<Partial<PlusPage
|
|
|
187
187
|
* @default false
|
|
188
188
|
*/
|
|
189
189
|
dragScroll?: boolean | UseTableDragScrollOptions;
|
|
190
|
+
/**
|
|
191
|
+
* 查询条件 pageCode 第三段,默认 main
|
|
192
|
+
* 完整 pageCode 为 `{appCode}:{routeName}:{queryFilterKey}`
|
|
193
|
+
*/
|
|
194
|
+
queryFilterKey?: string;
|
|
190
195
|
}
|
|
191
196
|
/**
|
|
192
197
|
* 列设置缓存数据
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as QueryFilterManagerComponent } from './src/index.vue';
|
|
2
|
+
import { DefineComponent } from 'vue';
|
|
3
|
+
|
|
4
|
+
export type { QueryFilterConfig, QueryFilterApi, QueryFilterItem } from 'yc-pro-components/es/constants';
|
|
5
|
+
export declare const YcQueryFilterManager: DefineComponent;
|
|
6
|
+
export declare const ReQueryFilterManager: DefineComponent;
|
|
7
|
+
export type YcQueryFilterManagerInstance = InstanceType<typeof QueryFilterManagerComponent>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
pageInstance?: any;
|
|
4
|
+
queryFilterKey?: string | undefined;
|
|
5
|
+
}>, {
|
|
6
|
+
queryFilterKey: string;
|
|
7
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
pageInstance?: any;
|
|
9
|
+
queryFilterKey?: string | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
queryFilterKey: string;
|
|
12
|
+
}>>>, {
|
|
13
|
+
queryFilterKey: string;
|
|
14
|
+
}, {}>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
+
} : {
|
|
21
|
+
type: PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
type __VLS_WithDefaults<P, D> = {
|
|
26
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
27
|
+
default: D[K];
|
|
28
|
+
}> : P[K];
|
|
29
|
+
};
|
|
30
|
+
type __VLS_Prettify<T> = {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} & {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import _sfc_main from './index.vue2.mjs';
|
|
2
|
+
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
+
|
|
4
|
+
var QueryFilterManagerComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
|
|
5
|
+
|
|
6
|
+
export { QueryFilterManagerComponent as default };
|