classcard-ui 0.2.617 → 0.2.618

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.617",
3
+ "version": "0.2.618",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -53,7 +53,13 @@
53
53
  <label
54
54
  class="absolute inset-0 flex h-full w-full cursor-pointer items-center justify-center bg-gray-900 bg-opacity-75 text-sm font-medium text-white opacity-0 focus-within:opacity-100 hover:opacity-100"
55
55
  >
56
- <span>Change</span>
56
+ <c-icon
57
+ v-if="openIcon"
58
+ :name="openIcon.name"
59
+ :type="openIcon.type"
60
+ :class="openIcon.class"
61
+ ></c-icon>
62
+ <span>{{ uploadText }}</span>
57
63
  <span class="sr-only"> user photo</span>
58
64
  </label>
59
65
  </div>
@@ -101,6 +107,13 @@ export default {
101
107
  fileSize: {
102
108
  type: String,
103
109
  },
110
+ openIcon: {
111
+ type: Object,
112
+ },
113
+ uploadText: {
114
+ type: String,
115
+ default: "Change",
116
+ },
104
117
  hint: {
105
118
  type: String,
106
119
  default: "",