@redseed/redseed-ui-vue3 2.25.0 → 2.25.1
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
|
@@ -42,23 +42,23 @@ function setState(state) {
|
|
|
42
42
|
})
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
function
|
|
45
|
+
function setDefault() {
|
|
46
46
|
setState('default')
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
function
|
|
49
|
+
function setUploading() {
|
|
50
50
|
setState('uploading')
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
function
|
|
53
|
+
function setProcessing() {
|
|
54
54
|
setState('processing')
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
function
|
|
57
|
+
function setError() {
|
|
58
58
|
setState('error')
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
function
|
|
61
|
+
function setSuccess() {
|
|
62
62
|
setState('success')
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -84,7 +84,7 @@ const uploaderStateIconClass = computed(() => [
|
|
|
84
84
|
])
|
|
85
85
|
|
|
86
86
|
function removeAction() {
|
|
87
|
-
|
|
87
|
+
setDefault()
|
|
88
88
|
emit('remove')
|
|
89
89
|
}
|
|
90
90
|
</script>
|
|
@@ -140,7 +140,9 @@ function removeAction() {
|
|
|
140
140
|
<slot name="state-text-error" v-if="stateError">
|
|
141
141
|
Something went wrong
|
|
142
142
|
</slot>
|
|
143
|
-
<slot name="state-text-success" v-if="stateSuccess"
|
|
143
|
+
<slot name="state-text-success" v-if="stateSuccess">
|
|
144
|
+
Successfully uploaded
|
|
145
|
+
</slot>
|
|
144
146
|
</div>
|
|
145
147
|
|
|
146
148
|
<div v-if="stateSuccess && $slots['state-file-size']"
|
|
@@ -153,11 +155,11 @@ function removeAction() {
|
|
|
153
155
|
class="rsui-form-field-uploader__uploader"
|
|
154
156
|
>
|
|
155
157
|
<slot name="uploader"
|
|
156
|
-
:
|
|
157
|
-
:
|
|
158
|
-
:
|
|
159
|
-
:
|
|
160
|
-
:
|
|
158
|
+
:setDefault="setDefault"
|
|
159
|
+
:setUploading="setUploading"
|
|
160
|
+
:setProcessing="setProcessing"
|
|
161
|
+
:setError="setError"
|
|
162
|
+
:setSuccess="setSuccess"
|
|
161
163
|
></slot>
|
|
162
164
|
</div>
|
|
163
165
|
|