classcard-ui 0.2.316 → 0.2.319
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 +72 -59
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +72 -59
- 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/CInputEmail/CInputEmail.vue +12 -3
- package/src/components/CUpload/CUpload.vue +5 -1
package/package.json
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
<input
|
|
11
11
|
type="text"
|
|
12
12
|
:class="errorClasses"
|
|
13
|
-
class="block flex-1 rounded-md px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm"
|
|
13
|
+
class="block w-full flex-1 rounded-md px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm"
|
|
14
14
|
:placeholder="placeholder"
|
|
15
|
-
|
|
15
|
+
:value="email"
|
|
16
16
|
@blur="checkValidation"
|
|
17
17
|
@input="$emit('input', $event.target.value)"
|
|
18
18
|
/>
|
|
@@ -47,10 +47,14 @@ export default {
|
|
|
47
47
|
helpText: {
|
|
48
48
|
type: String,
|
|
49
49
|
},
|
|
50
|
+
// v-model of the field
|
|
51
|
+
value: {
|
|
52
|
+
type: String,
|
|
53
|
+
},
|
|
50
54
|
},
|
|
51
55
|
data() {
|
|
52
56
|
return {
|
|
53
|
-
email:
|
|
57
|
+
email: this.value,
|
|
54
58
|
isValidate: false,
|
|
55
59
|
};
|
|
56
60
|
},
|
|
@@ -71,5 +75,10 @@ export default {
|
|
|
71
75
|
: true;
|
|
72
76
|
},
|
|
73
77
|
},
|
|
78
|
+
watch: {
|
|
79
|
+
value() {
|
|
80
|
+
this.email = this.value;
|
|
81
|
+
},
|
|
82
|
+
},
|
|
74
83
|
};
|
|
75
84
|
</script>
|
|
@@ -53,6 +53,10 @@ export default {
|
|
|
53
53
|
type: Number,
|
|
54
54
|
default: null,
|
|
55
55
|
},
|
|
56
|
+
displayMode: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "inline",
|
|
59
|
+
},
|
|
56
60
|
},
|
|
57
61
|
data() {
|
|
58
62
|
return {
|
|
@@ -63,7 +67,7 @@ export default {
|
|
|
63
67
|
initFilestack() {
|
|
64
68
|
const client = filestack.init(this.filestackApiKey);
|
|
65
69
|
const options = {
|
|
66
|
-
displayMode:
|
|
70
|
+
displayMode: this.displayMode,
|
|
67
71
|
container: "#filestack-uploader",
|
|
68
72
|
uploadInBackground: false,
|
|
69
73
|
maxFiles: this.maxFiles,
|