classcard-ui 0.2.359 → 0.2.360
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 +55 -54
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +55 -54
- 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 +9 -12
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<button
|
|
4
4
|
type="button"
|
|
5
|
-
class="inline-flex items-center
|
|
5
|
+
class="focus:outline-none inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
|
|
6
6
|
@click="initFilestack()"
|
|
7
7
|
v-if="displayMode == 'overlay'"
|
|
8
8
|
>
|
|
9
|
-
|
|
9
|
+
{{ buttonText }}
|
|
10
10
|
</button>
|
|
11
11
|
<div :class="filestackClasses" id="filestack-uploader"></div>
|
|
12
12
|
<p v-if="!isValidate" class="mt-2 text-sm text-red-600">
|
|
@@ -24,6 +24,7 @@ export default {
|
|
|
24
24
|
props: {
|
|
25
25
|
buttonText: {
|
|
26
26
|
type: String,
|
|
27
|
+
default: "Upload",
|
|
27
28
|
},
|
|
28
29
|
fileSize: {
|
|
29
30
|
type: String,
|
|
@@ -63,8 +64,7 @@ export default {
|
|
|
63
64
|
},
|
|
64
65
|
},
|
|
65
66
|
data() {
|
|
66
|
-
return {
|
|
67
|
-
};
|
|
67
|
+
return {};
|
|
68
68
|
},
|
|
69
69
|
methods: {
|
|
70
70
|
initFilestack() {
|
|
@@ -75,16 +75,13 @@ export default {
|
|
|
75
75
|
uploadInBackground: false,
|
|
76
76
|
maxFiles: this.maxFiles,
|
|
77
77
|
onUploadDone: (res) => this.$emit("filestack-uploaded", res),
|
|
78
|
-
fromSources: [
|
|
79
|
-
'local_file_system',
|
|
80
|
-
'unsplash'
|
|
81
|
-
],
|
|
78
|
+
fromSources: ["local_file_system", "unsplash"],
|
|
82
79
|
transformations: {
|
|
83
80
|
crop: {
|
|
84
|
-
aspectRatio: this.aspectRatio ? this.aspectRatio : 1/1,
|
|
85
|
-
force: this.aspectRatio ? true : false
|
|
86
|
-
}
|
|
87
|
-
}
|
|
81
|
+
aspectRatio: this.aspectRatio ? this.aspectRatio : 1 / 1,
|
|
82
|
+
force: this.aspectRatio ? true : false,
|
|
83
|
+
},
|
|
84
|
+
},
|
|
88
85
|
};
|
|
89
86
|
const picker = client.picker(options);
|
|
90
87
|
picker.open();
|