classcard-ui 0.2.319 → 0.2.320
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 +62 -60
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +62 -60
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CUpload/CUpload.vue +10 -7
package/package.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<
|
|
3
|
+
<button
|
|
4
|
+
type="button"
|
|
5
|
+
class="inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
|
|
6
|
+
@click="initFilestack()"
|
|
7
|
+
v-if="displayMode == 'overlay'"
|
|
8
|
+
>
|
|
9
|
+
Upload
|
|
10
|
+
</button>
|
|
11
|
+
<div :class="filestackClasses" id="filestack-uploader"></div>
|
|
4
12
|
<p v-if="!isValidate" class="mt-2 text-sm text-red-600">
|
|
5
13
|
{{ errorMessage }}
|
|
6
14
|
</p>
|
|
@@ -27,10 +35,6 @@ export default {
|
|
|
27
35
|
errorMessage: {
|
|
28
36
|
type: String,
|
|
29
37
|
},
|
|
30
|
-
type: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "default",
|
|
33
|
-
},
|
|
34
38
|
filestackApiKey: {
|
|
35
39
|
type: String,
|
|
36
40
|
default: "",
|
|
@@ -60,7 +64,6 @@ export default {
|
|
|
60
64
|
},
|
|
61
65
|
data() {
|
|
62
66
|
return {
|
|
63
|
-
uploader: null,
|
|
64
67
|
};
|
|
65
68
|
},
|
|
66
69
|
methods: {
|
|
@@ -97,7 +100,7 @@ export default {
|
|
|
97
100
|
},
|
|
98
101
|
},
|
|
99
102
|
mounted() {
|
|
100
|
-
if (this.
|
|
103
|
+
if (this.displayMode == "inline") {
|
|
101
104
|
this.initFilestack();
|
|
102
105
|
}
|
|
103
106
|
},
|