classcard-ui 0.2.270 → 0.2.271

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.270",
3
+ "version": "0.2.271",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -6,10 +6,31 @@
6
6
  :class="errorClasses"
7
7
  class=""
8
8
  id="c-file-area"
9
- @click="uploader.open()"
9
+ @click.prevent="uploader.open()"
10
10
  >
11
- <button type="white" class="inline-flex items-center px-4 py-2 shadow-sm text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 text-gray-700 border bg-white border-gray-300 hover:bg-gray-50 focus:ring-indigo-600 ">
12
- {{buttonText}}
11
+ <button
12
+ type="white"
13
+ class="
14
+ inline-flex
15
+ items-center
16
+ px-4
17
+ py-2
18
+ shadow-sm
19
+ text-sm
20
+ font-medium
21
+ rounded-md
22
+ focus:outline-none
23
+ focus:ring-2 focus:ring-offset-2
24
+ disabled:opacity-50
25
+ text-gray-700
26
+ border
27
+ bg-white
28
+ border-gray-300
29
+ hover:bg-gray-50
30
+ focus:ring-indigo-600
31
+ "
32
+ >
33
+ {{ buttonText }}
13
34
  </button>
14
35
  </div>
15
36
  </div>
@@ -30,7 +51,7 @@ import { Uppload, Local, xhrUploader, en, Crop, Unsplash } from "uppload";
30
51
 
31
52
  export default {
32
53
  name: "CUpload",
33
- components: { },
54
+ components: {},
34
55
  props: {
35
56
  buttonText: {
36
57
  type: String,
@@ -64,8 +85,8 @@ export default {
64
85
  },
65
86
  data() {
66
87
  return {
67
- uploader: null
68
- }
88
+ uploader: null,
89
+ };
69
90
  },
70
91
  methods: {
71
92
  initFilestack() {
@@ -109,7 +130,7 @@ export default {
109
130
  this.uploader.on("error", (error) => {
110
131
  console.log("The error message is", error);
111
132
  });
112
- }
133
+ },
113
134
  },
114
135
  computed: {
115
136
  errorClasses() {
@@ -123,7 +144,7 @@ export default {
123
144
  mounted() {
124
145
  if (this.type === "filestack") {
125
146
  this.initFilestack();
126
- } else if(this.type == "default") {
147
+ } else if (this.type == "default") {
127
148
  this.initUppload();
128
149
  }
129
150
  },