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/lib/components/index.js
CHANGED
|
@@ -43,6 +43,7 @@ var index$N = require('./yc-animate-selector/index.js');
|
|
|
43
43
|
var index$P = require('./yc-download-dialog/index.js');
|
|
44
44
|
var index$R = require('./yc-tabs-with-filter/index.js');
|
|
45
45
|
var index$T = require('./yc-batch-import-dialog/index.js');
|
|
46
|
+
var index$V = require('./yc-query-filter/index.js');
|
|
46
47
|
var useColumnAdapter = require('./virtual-table/src/use-column-adapter.js');
|
|
47
48
|
var useVirtualSelection = require('./virtual-table/src/use-virtual-selection.js');
|
|
48
49
|
var useVirtualScroll = require('./virtual-table/src/use-virtual-scroll.js');
|
|
@@ -131,6 +132,8 @@ exports.YcAnimateSelectorWithInstall = index$N.YcAnimateSelectorWithInstall;
|
|
|
131
132
|
exports.YcDownloadDialogWithInstall = index$P.YcDownloadDialogWithInstall;
|
|
132
133
|
exports.YcTabsWithFilterWithInstall = index$R.YcTabsWithFilterWithInstall;
|
|
133
134
|
exports.YcBatchImportDialogWithInstall = index$T.YcBatchImportDialogWithInstall;
|
|
135
|
+
exports.ReQueryFilterManager = index$V.ReQueryFilterManager;
|
|
136
|
+
exports.YcQueryFilterManager = index$V.YcQueryFilterManager;
|
|
134
137
|
exports.useColumnAdapter = useColumnAdapter.useColumnAdapter;
|
|
135
138
|
exports.useVirtualSelection = useVirtualSelection.useVirtualSelection;
|
|
136
139
|
exports.useVirtualScroll = useVirtualScroll.useVirtualScroll;
|
|
@@ -76,14 +76,19 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
76
76
|
const plusSearchInstance = vue.ref(null);
|
|
77
77
|
const plusTableInstance = vue.ref(null);
|
|
78
78
|
const plusVirtualTableInstance = vue.ref(null);
|
|
79
|
-
const
|
|
79
|
+
const defaultSearchValues = {
|
|
80
|
+
...(_a = props.search) == null ? void 0 : _a.defaultValues
|
|
81
|
+
};
|
|
82
|
+
const searchFormValues = vue.ref({ ...defaultSearchValues });
|
|
83
|
+
const submittedSearchValues = vue.ref({ ...defaultSearchValues });
|
|
80
84
|
const isVirtualMode = vue.computed(() => {
|
|
81
85
|
var _a2;
|
|
82
86
|
return !!((_a2 = props.table) == null ? void 0 : _a2.useVirtual);
|
|
83
87
|
});
|
|
84
88
|
const virtualTableProps = vue.computed(() => {
|
|
85
89
|
if (!isVirtualMode.value) return {};
|
|
86
|
-
const
|
|
90
|
+
const rest = { ...props.table || {} };
|
|
91
|
+
delete rest.useVirtual;
|
|
87
92
|
return rest;
|
|
88
93
|
});
|
|
89
94
|
const virtualColumns = vue.computed(() => {
|
|
@@ -119,7 +124,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
119
124
|
try {
|
|
120
125
|
loadingStatus.value = true;
|
|
121
126
|
const payload = {
|
|
122
|
-
...
|
|
127
|
+
...submittedSearchValues.value,
|
|
123
128
|
// eslint-disabled no-useless-spread
|
|
124
129
|
...{
|
|
125
130
|
[((_a2 = props.pageInfoMap) == null ? void 0 : _a2.page) || "page"]: pageInfo.value.page,
|
|
@@ -147,16 +152,18 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
147
152
|
};
|
|
148
153
|
const handleSearch = (val) => {
|
|
149
154
|
const data = props.beforeSearchSubmit && props.beforeSearchSubmit(val) || val;
|
|
150
|
-
|
|
155
|
+
searchFormValues.value = data;
|
|
156
|
+
submittedSearchValues.value = { ...data };
|
|
151
157
|
pageInfo.value.page = 1;
|
|
152
158
|
getList();
|
|
153
|
-
emit("search",
|
|
159
|
+
emit("search", submittedSearchValues.value);
|
|
154
160
|
};
|
|
155
161
|
const handleReset = (val) => {
|
|
156
|
-
|
|
162
|
+
searchFormValues.value = { ...val };
|
|
163
|
+
submittedSearchValues.value = { ...val };
|
|
157
164
|
pageInfo.value.page = 1;
|
|
158
165
|
getList();
|
|
159
|
-
emit("reset",
|
|
166
|
+
emit("reset", submittedSearchValues.value);
|
|
160
167
|
};
|
|
161
168
|
const handleRefresh = () => {
|
|
162
169
|
getList();
|
|
@@ -164,19 +171,22 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
164
171
|
const setSearchFieldsValue = (val) => {
|
|
165
172
|
if (is.isPlainObject(val)) {
|
|
166
173
|
Object.keys(val).forEach((key) => {
|
|
167
|
-
Reflect.set(
|
|
174
|
+
Reflect.set(searchFormValues.value, key, val[key]);
|
|
168
175
|
});
|
|
169
176
|
}
|
|
170
177
|
};
|
|
178
|
+
const replaceSearchFormValues = (val) => {
|
|
179
|
+
searchFormValues.value = is.isPlainObject(val) ? { ...val } : {};
|
|
180
|
+
};
|
|
171
181
|
const getSearchFieldsValue = (key) => {
|
|
172
182
|
if (key !== void 0 && key !== null) {
|
|
173
|
-
return Reflect.get(
|
|
183
|
+
return Reflect.get(searchFormValues.value, key);
|
|
174
184
|
} else {
|
|
175
|
-
return { ...
|
|
185
|
+
return { ...searchFormValues.value };
|
|
176
186
|
}
|
|
177
187
|
};
|
|
178
188
|
const clearSearchFieldsValue = () => {
|
|
179
|
-
|
|
189
|
+
searchFormValues.value = {};
|
|
180
190
|
};
|
|
181
191
|
const setTableData = (data, _total) => {
|
|
182
192
|
tableData.value = data || [];
|
|
@@ -193,6 +203,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
193
203
|
*/
|
|
194
204
|
handleRest: handleReset,
|
|
195
205
|
setSearchFieldsValue,
|
|
206
|
+
replaceSearchFormValues,
|
|
196
207
|
getSearchFieldsValue,
|
|
197
208
|
clearSearchFieldsValue,
|
|
198
209
|
/**
|
|
@@ -208,8 +219,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
208
219
|
ref_key: "plusSearchInstance",
|
|
209
220
|
ref: plusSearchInstance
|
|
210
221
|
}, _ctx.search, {
|
|
211
|
-
modelValue:
|
|
212
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
222
|
+
modelValue: searchFormValues.value,
|
|
223
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchFormValues.value = $event),
|
|
213
224
|
columns: _ctx.columns,
|
|
214
225
|
"search-loading": vue.unref(loadingStatus),
|
|
215
226
|
onSearch: handleSearch,
|
|
@@ -225,6 +236,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
225
236
|
]),
|
|
226
237
|
key: "0"
|
|
227
238
|
} : void 0,
|
|
239
|
+
_ctx.$slots["search-actions-after"] ? {
|
|
240
|
+
name: "search-actions-after",
|
|
241
|
+
fn: vue.withCtx(() => [
|
|
242
|
+
vue.renderSlot(_ctx.$slots, "search-actions-after")
|
|
243
|
+
]),
|
|
244
|
+
key: "1"
|
|
245
|
+
} : void 0,
|
|
228
246
|
vue.renderList(searchSlots.value, (_, key) => {
|
|
229
247
|
return {
|
|
230
248
|
name: key,
|
|
@@ -158,6 +158,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
158
158
|
handleUnfold,
|
|
159
159
|
searchLoading: _ctx.searchLoading
|
|
160
160
|
}, () => [
|
|
161
|
+
vue.renderSlot(_ctx.$slots, "search-actions-after"),
|
|
161
162
|
vue.createCommentVNode(' :icon="computedResetIcon" '),
|
|
162
163
|
_ctx.hasReset ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
163
164
|
key: 0,
|
|
@@ -5,6 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
|
|
6
6
|
var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
|
|
7
7
|
|
|
8
|
-
var YcPlusPageComponent = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
8
|
+
var YcPlusPageComponent = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-4b8729a9"], ["__file", "index.vue"]]);
|
|
9
9
|
|
|
10
10
|
exports.default = YcPlusPageComponent;
|
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var lodashEs = require('lodash-es');
|
|
7
7
|
var index = require('../../page/index.js');
|
|
8
|
-
var index$
|
|
8
|
+
var index$2 = require('../../yc-svg-icon/src/index.vue.js');
|
|
9
|
+
var index$1 = require('../../yc-query-filter/index.js');
|
|
9
10
|
var useTableDragScroll = require('../../../hooks/useTableDragScroll.js');
|
|
10
11
|
var useHeaderFilter = require('./use-header-filter.js');
|
|
11
12
|
var headerFilterCell = require('./header-filter-cell.vue.js');
|
|
@@ -41,7 +42,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
42
|
columnCacheKey: { default: void 0 },
|
|
42
43
|
disableColumnCache: { type: Boolean, default: false },
|
|
43
44
|
columnSettingsText: { default: void 0 },
|
|
44
|
-
dragScroll: { type: [Boolean, Object], default: false }
|
|
45
|
+
dragScroll: { type: [Boolean, Object], default: false },
|
|
46
|
+
queryFilterKey: { default: "main" }
|
|
45
47
|
},
|
|
46
48
|
emits: ["header-filter-confirm", "header-filter-reset"],
|
|
47
49
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -53,20 +55,18 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
53
55
|
const plusPageRef = vue.ref();
|
|
54
56
|
const rootRef = vue.ref();
|
|
55
57
|
const dragScrollWrapperRef = vue.ref(null);
|
|
56
|
-
const dragScrollEnabled = vue.computed(
|
|
58
|
+
const dragScrollEnabled = vue.computed(
|
|
59
|
+
() => props.dragScroll !== false && props.dragScroll !== null && props.dragScroll !== void 0
|
|
60
|
+
);
|
|
57
61
|
const dragScrollOptions = vue.computed(() => {
|
|
58
62
|
const value = props.dragScroll;
|
|
59
63
|
if (value && typeof value === "object") return value;
|
|
60
64
|
return {};
|
|
61
65
|
});
|
|
62
|
-
const { onMouseDown: onDragScrollMouseDown } = useTableDragScroll.useTableDragScroll(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
...dragScrollOptions.value,
|
|
67
|
-
enabled: dragScrollEnabled
|
|
68
|
-
}
|
|
69
|
-
);
|
|
66
|
+
const { onMouseDown: onDragScrollMouseDown } = useTableDragScroll.useTableDragScroll(dragScrollWrapperRef, void 0, {
|
|
67
|
+
...dragScrollOptions.value,
|
|
68
|
+
enabled: dragScrollEnabled
|
|
69
|
+
});
|
|
70
70
|
const plusTableInstance = vue.computed(() => {
|
|
71
71
|
var _a;
|
|
72
72
|
return (_a = plusPageRef.value) == null ? void 0 : _a.plusTableInstance;
|
|
@@ -123,7 +123,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
123
123
|
const handleFilterConfirm = (payload) => {
|
|
124
124
|
var _a;
|
|
125
125
|
const field = String(((_a = payload.column) == null ? void 0 : _a.prop) || "");
|
|
126
|
-
const isEmpty = payload.value
|
|
126
|
+
const isEmpty = payload.value === null || payload.value === void 0 || String(payload.value).trim() === "";
|
|
127
127
|
if (isEmpty) {
|
|
128
128
|
removeHeaderFilter(field);
|
|
129
129
|
} else {
|
|
@@ -429,7 +429,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
429
429
|
});
|
|
430
430
|
return sorted;
|
|
431
431
|
};
|
|
432
|
-
const handleFilterTableHeader = (columns,
|
|
432
|
+
const handleFilterTableHeader = (columns, _eventType) => {
|
|
433
433
|
const order = columns.map((col) => String(col.prop || "")).filter(Boolean);
|
|
434
434
|
const checked = columns.filter((col) => col.headerIsChecked !== false).map((col) => String(col.prop || "")).filter(Boolean);
|
|
435
435
|
const existingCache = loadColumnCache();
|
|
@@ -531,6 +531,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
531
531
|
clearSearchFieldsValue: () => {
|
|
532
532
|
var _a, _b;
|
|
533
533
|
return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.clearSearchFieldsValue) == null ? void 0 : _b.call(_a);
|
|
534
|
+
},
|
|
535
|
+
replaceSearchFormValues: (values) => {
|
|
536
|
+
var _a, _b;
|
|
537
|
+
return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.replaceSearchFormValues) == null ? void 0 : _b.call(_a, values);
|
|
534
538
|
}
|
|
535
539
|
});
|
|
536
540
|
return (_ctx, _cache) => {
|
|
@@ -568,6 +572,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
568
572
|
onFilterTableHeader: handleFilterTableHeader,
|
|
569
573
|
onHeaderDragend: handleHeaderDragend
|
|
570
574
|
}), vue.createSlots({
|
|
575
|
+
"search-actions-after": vue.withCtx(() => [
|
|
576
|
+
vue.createVNode(vue.unref(index$1.YcQueryFilterManager), {
|
|
577
|
+
"page-instance": plusPageRef.value,
|
|
578
|
+
"query-filter-key": props.queryFilterKey
|
|
579
|
+
}, null, 8, ["page-instance", "query-filter-key"]),
|
|
580
|
+
vue.renderSlot(_ctx.$slots, "search-actions-after", {}, void 0, true)
|
|
581
|
+
]),
|
|
571
582
|
default: vue.withCtx(() => [
|
|
572
583
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
573
584
|
]),
|
|
@@ -584,7 +595,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
584
595
|
name: "column-settings-icon",
|
|
585
596
|
fn: vue.withCtx(() => [
|
|
586
597
|
vue.createElementVNode("div", { class: "column-settings-wrapper" }, [
|
|
587
|
-
vue.createVNode(vue.unref(index$
|
|
598
|
+
vue.createVNode(vue.unref(index$2.default), {
|
|
588
599
|
src: fieldSettingIconUrl.value,
|
|
589
600
|
size: 16
|
|
590
601
|
}, null, 8, ["src"]),
|
|
@@ -603,7 +614,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
603
614
|
return {
|
|
604
615
|
name,
|
|
605
616
|
fn: vue.withCtx((slotProps) => [
|
|
606
|
-
name !== "column-settings-icon" && name !== "default" ? vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.mergeProps({ key: 0 }, slotProps)), void 0, true) : vue.createCommentVNode("v-if", true)
|
|
617
|
+
name !== "column-settings-icon" && name !== "default" && name !== "search-actions-after" ? vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.mergeProps({ key: 0 }, slotProps)), void 0, true) : vue.createCommentVNode("v-if", true)
|
|
607
618
|
])
|
|
608
619
|
};
|
|
609
620
|
})
|
|
@@ -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,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./src/index.vue.js');
|
|
4
|
+
|
|
5
|
+
const YcQueryFilterManager = index.default;
|
|
6
|
+
const ReQueryFilterManager = YcQueryFilterManager;
|
|
7
|
+
|
|
8
|
+
exports.ReQueryFilterManager = ReQueryFilterManager;
|
|
9
|
+
exports.YcQueryFilterManager = YcQueryFilterManager;
|
|
@@ -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,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
|
|
6
|
+
var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
|
|
7
|
+
|
|
8
|
+
var QueryFilterManagerComponent = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__file", "index.vue"]]);
|
|
9
|
+
|
|
10
|
+
exports.default = QueryFilterManagerComponent;
|