@monoui/vuejs 1.1.31 → 1.1.33
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 +24 -21
- package/src/directive/nocomplete.js +2 -0
package/package.json
CHANGED
|
@@ -886,16 +886,17 @@ export default {
|
|
|
886
886
|
const parameters = this.getHistoryParameters("f-");
|
|
887
887
|
const trimName = this.getHistoryName("f-");
|
|
888
888
|
const names = Object.keys(parameters);
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
const
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
889
|
+
if (parameters && parameters.length > 0) {
|
|
890
|
+
this.filters.splice(0, this.filters.length);
|
|
891
|
+
for (const paramName of names) {
|
|
892
|
+
const value = parameters[paramName];
|
|
893
|
+
const column = paramName.replace(trimName, "");
|
|
894
|
+
if (value) {
|
|
895
|
+
this.filters.push({
|
|
896
|
+
Column: column,
|
|
897
|
+
Value: value
|
|
898
|
+
});
|
|
899
|
+
}
|
|
899
900
|
}
|
|
900
901
|
}
|
|
901
902
|
},
|
|
@@ -903,18 +904,20 @@ export default {
|
|
|
903
904
|
const parameters = this.getHistoryParameters("s-");
|
|
904
905
|
const trimName = this.getHistoryName("s-");
|
|
905
906
|
const names = Object.keys(parameters);
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
907
|
+
if (parameters && parameters.length > 0) {
|
|
908
|
+
this.sorting.splice(0, this.sorting.length);
|
|
909
|
+
for (const paramName of names) {
|
|
910
|
+
var paramValue = parameters[paramName];
|
|
911
|
+
let value = undefined;
|
|
912
|
+
if (paramValue && paramValue === "1") value = true;
|
|
913
|
+
else if (paramValue && paramValue === "0") value = false;
|
|
914
|
+
const column = paramName.replace(trimName, "");
|
|
913
915
|
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
916
|
+
this.sorting.push({
|
|
917
|
+
Column: column,
|
|
918
|
+
Asc: value
|
|
919
|
+
});
|
|
920
|
+
}
|
|
918
921
|
}
|
|
919
922
|
},
|
|
920
923
|
replaceHistory(state, storage = this.historyStorage) {
|
|
@@ -5,6 +5,7 @@ export function install(Vue) {
|
|
|
5
5
|
install.installed = true;
|
|
6
6
|
|
|
7
7
|
Vue.directive("no-autocomplete", {
|
|
8
|
+
// eslint-disable-next-line no-unused-vars
|
|
8
9
|
bind(el, { value }) {
|
|
9
10
|
const isDisabled = el.disabled;
|
|
10
11
|
el.disabled = true;
|
|
@@ -26,6 +27,7 @@ let globalVue = null;
|
|
|
26
27
|
if (typeof window !== "undefined") {
|
|
27
28
|
globalVue = window.Vue;
|
|
28
29
|
} else if (typeof global !== "undefined") {
|
|
30
|
+
// eslint-disable-next-line no-undef
|
|
29
31
|
globalVue = global.Vue;
|
|
30
32
|
}
|
|
31
33
|
if (globalVue) {
|