@monoui/vuejs 1.1.18 → 1.1.19
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/dist/main.js +2 -2
- package/package.json +1 -1
- package/src/components/Table/Table.vue +19 -12
package/package.json
CHANGED
|
@@ -828,13 +828,15 @@ export default {
|
|
|
828
828
|
|
|
829
829
|
if (filter && !value) {
|
|
830
830
|
this.filters.splice(this.filters.indexOf(filter), 1);
|
|
831
|
-
} else if (
|
|
832
|
-
filter
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
831
|
+
} else if (value) {
|
|
832
|
+
if (filter) {
|
|
833
|
+
filter.Value = value;
|
|
834
|
+
} else {
|
|
835
|
+
this.filters.push({
|
|
836
|
+
Column: column,
|
|
837
|
+
Value: value
|
|
838
|
+
});
|
|
839
|
+
}
|
|
838
840
|
}
|
|
839
841
|
}
|
|
840
842
|
},
|
|
@@ -843,15 +845,20 @@ export default {
|
|
|
843
845
|
const trimName = this.getHistoryName("s-");
|
|
844
846
|
const names = Object.keys(parameters);
|
|
845
847
|
for (const paramName of names) {
|
|
846
|
-
|
|
848
|
+
var paramValue = parameters[paramName];
|
|
849
|
+
let value = undefined;
|
|
850
|
+
if (paramValue && paramValue === "1") value = true;
|
|
851
|
+
else if (paramValue && paramValue === "0") value = false;
|
|
847
852
|
const column = paramName.replace(trimName, "");
|
|
848
853
|
|
|
849
854
|
let sort = this.sorting.find(x => x.Column === column);
|
|
850
855
|
|
|
851
|
-
if (
|
|
852
|
-
sort
|
|
853
|
-
|
|
854
|
-
|
|
856
|
+
if (value !== undefined) {
|
|
857
|
+
if (sort) {
|
|
858
|
+
sort.Value = value;
|
|
859
|
+
} else {
|
|
860
|
+
this.sorting.push({ Column: column, Asc: value });
|
|
861
|
+
}
|
|
855
862
|
}
|
|
856
863
|
}
|
|
857
864
|
},
|