@monoui/vuejs 1.1.39 → 1.1.42
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 +5 -5
- package/package.json +1 -1
- package/src/components/Icon/Icon.vue +5 -0
- package/src/components/Table/Table.vue +4 -1
- package/src/icons.js +6 -2
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
:fixed-width="fixedWidth"
|
|
4
4
|
:icon="iconList"
|
|
5
5
|
:class="iconClass"
|
|
6
|
+
:size="size"
|
|
6
7
|
/>
|
|
7
8
|
</template>
|
|
8
9
|
|
|
@@ -38,6 +39,10 @@ export default {
|
|
|
38
39
|
fixedWidth: {
|
|
39
40
|
type: Boolean,
|
|
40
41
|
default: false
|
|
42
|
+
},
|
|
43
|
+
size: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "sm"
|
|
41
46
|
}
|
|
42
47
|
},
|
|
43
48
|
computed: {
|
|
@@ -495,13 +495,16 @@ export default {
|
|
|
495
495
|
this.addPopStateListener();
|
|
496
496
|
},
|
|
497
497
|
async mounted() {
|
|
498
|
-
this.
|
|
498
|
+
if (this.history)
|
|
499
|
+
this.loadHistory();
|
|
500
|
+
|
|
499
501
|
if (this.autoLoad) {
|
|
500
502
|
await this.getValues();
|
|
501
503
|
}
|
|
502
504
|
},
|
|
503
505
|
methods: {
|
|
504
506
|
addPopStateListener() {
|
|
507
|
+
if (this.history)
|
|
505
508
|
window.addEventListener("popstate", this.popStateEvent);
|
|
506
509
|
},
|
|
507
510
|
removePopStateListener() {
|
package/src/icons.js
CHANGED
|
@@ -63,7 +63,9 @@ import {
|
|
|
63
63
|
faSort,
|
|
64
64
|
faSortUp,
|
|
65
65
|
faSortDown,
|
|
66
|
-
faStethoscope
|
|
66
|
+
faStethoscope,
|
|
67
|
+
faTimes,
|
|
68
|
+
faFileImport
|
|
67
69
|
} from "@fortawesome/free-solid-svg-icons";
|
|
68
70
|
import {
|
|
69
71
|
faFontAwesome,
|
|
@@ -140,7 +142,9 @@ library.add(
|
|
|
140
142
|
faSort,
|
|
141
143
|
faSortUp,
|
|
142
144
|
faSortDown,
|
|
143
|
-
faStethoscope
|
|
145
|
+
faStethoscope,
|
|
146
|
+
faTimes,
|
|
147
|
+
faFileImport
|
|
144
148
|
);
|
|
145
149
|
|
|
146
150
|
export { FontAwesomeIcon };
|