@ctzy-web-client/plugin-component-vue 1.0.28 → 1.0.29
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.
|
@@ -106,7 +106,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
106
106
|
const resetColumns = () => {
|
|
107
107
|
const _dataTable = props.dataTable;
|
|
108
108
|
_dataTable.resetColumnSort();
|
|
109
|
-
|
|
109
|
+
const tableColumns = [...displaySearchedColumns.value, ...hiddenSearchedColumns.value];
|
|
110
|
+
emit("column-visible-change", tableColumns);
|
|
110
111
|
};
|
|
111
112
|
const allSearchedColumns = computed(() => {
|
|
112
113
|
const _search = unref(search);
|
|
@@ -130,7 +131,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
130
131
|
props.dataTable.setDisplayColumns(displayColumns);
|
|
131
132
|
const tableColumns = [...displaySearchedColumns.value, ...hiddenSearchedColumns.value];
|
|
132
133
|
emit("column-visible-change", tableColumns);
|
|
133
|
-
emit("sort-change", sort, displayColumns);
|
|
134
134
|
};
|
|
135
135
|
const scope = getCurrentScope();
|
|
136
136
|
const handleInitCompleted = async () => {
|
|
@@ -110,7 +110,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
110
110
|
const resetColumns = () => {
|
|
111
111
|
const _dataTable = props.dataTable;
|
|
112
112
|
_dataTable.resetColumnSort();
|
|
113
|
-
|
|
113
|
+
const tableColumns = [...displaySearchedColumns.value, ...hiddenSearchedColumns.value];
|
|
114
|
+
emit("column-visible-change", tableColumns);
|
|
114
115
|
};
|
|
115
116
|
const allSearchedColumns = vue.computed(() => {
|
|
116
117
|
const _search = vue.unref(search);
|
|
@@ -134,7 +135,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
134
135
|
props.dataTable.setDisplayColumns(displayColumns);
|
|
135
136
|
const tableColumns = [...displaySearchedColumns.value, ...hiddenSearchedColumns.value];
|
|
136
137
|
emit("column-visible-change", tableColumns);
|
|
137
|
-
emit("sort-change", sort, displayColumns);
|
|
138
138
|
};
|
|
139
139
|
const scope = vue.getCurrentScope();
|
|
140
140
|
const handleInitCompleted = async () => {
|
package/package.json
CHANGED
|
@@ -270,7 +270,9 @@ const resetColumns = () => {
|
|
|
270
270
|
const _dataTable = props.dataTable;
|
|
271
271
|
|
|
272
272
|
_dataTable.resetColumnSort();
|
|
273
|
-
|
|
273
|
+
const tableColumns = [...displaySearchedColumns.value,...hiddenSearchedColumns.value ]
|
|
274
|
+
emit('column-visible-change', tableColumns);
|
|
275
|
+
// emit('reset-columns');
|
|
274
276
|
};
|
|
275
277
|
|
|
276
278
|
const allSearchedColumns = computed(() => {
|
|
@@ -302,7 +304,7 @@ const handleSortChange = (sort) => {
|
|
|
302
304
|
props.dataTable.setDisplayColumns(displayColumns);
|
|
303
305
|
const tableColumns = [...displaySearchedColumns.value,...hiddenSearchedColumns.value ]
|
|
304
306
|
emit('column-visible-change', tableColumns);
|
|
305
|
-
emit('sort-change', sort, displayColumns);
|
|
307
|
+
// emit('sort-change', sort, displayColumns);
|
|
306
308
|
};
|
|
307
309
|
|
|
308
310
|
const scope = getCurrentScope();
|