classcard-ui 0.2.422 → 0.2.423
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/classcard-ui.common.js +245 -249
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +245 -249
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +11 -2
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CConfirmActionModal/CConfirmActionModal.vue +2 -8
- package/src/main.js +13 -9
package/package.json
CHANGED
|
@@ -72,17 +72,11 @@
|
|
|
72
72
|
|
|
73
73
|
<script>
|
|
74
74
|
import CButton from "../CButton";
|
|
75
|
-
import { FocusTrap } from "focus-trap-vue";
|
|
76
|
-
import VScrollLock from "v-scroll-lock";
|
|
77
|
-
import Vue from "vue";
|
|
78
75
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
export default Vue.extend({
|
|
76
|
+
export default {
|
|
82
77
|
name: "CConfirmActionModal",
|
|
83
78
|
components: {
|
|
84
79
|
CButton,
|
|
85
|
-
FocusTrap,
|
|
86
80
|
},
|
|
87
81
|
props: {
|
|
88
82
|
title: {
|
|
@@ -114,7 +108,7 @@ export default Vue.extend({
|
|
|
114
108
|
default: false,
|
|
115
109
|
},
|
|
116
110
|
},
|
|
117
|
-
}
|
|
111
|
+
};
|
|
118
112
|
</script>
|
|
119
113
|
|
|
120
114
|
<style>
|
package/src/main.js
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import * as components from
|
|
1
|
+
import * as components from "./components";
|
|
2
|
+
import VScrollLock from "v-scroll-lock";
|
|
3
|
+
import { FocusTrap } from "focus-trap-vue";
|
|
2
4
|
|
|
3
5
|
const ClasscardUI = {
|
|
4
6
|
install(Vue) {
|
|
5
7
|
// components
|
|
6
8
|
for (const componentName in components) {
|
|
7
|
-
const component = components[componentName]
|
|
9
|
+
const component = components[componentName];
|
|
8
10
|
|
|
9
|
-
Vue.component(component.name, component)
|
|
11
|
+
Vue.component(component.name, component);
|
|
10
12
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
Vue.component("FocusTrap", FocusTrap);
|
|
14
|
+
Vue.use(VScrollLock);
|
|
15
|
+
},
|
|
16
|
+
};
|
|
13
17
|
|
|
14
|
-
export default ClasscardUI
|
|
18
|
+
export default ClasscardUI;
|
|
15
19
|
|
|
16
|
-
if (typeof window !==
|
|
17
|
-
window.Vue.use(ClasscardUI)
|
|
18
|
-
}
|
|
20
|
+
if (typeof window !== "undefined" && window.Vue) {
|
|
21
|
+
window.Vue.use(ClasscardUI);
|
|
22
|
+
}
|