tantee-nuxt-commons 0.0.166 → 0.0.168
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/module.json
CHANGED
|
@@ -14,7 +14,7 @@ interface SignatureProps extends /* @vue-ignore */ InstanceType<typeof VInput['$
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const props = withDefaults(defineProps<SignatureProps>(), {
|
|
17
|
-
title: '
|
|
17
|
+
title: 'Signature',
|
|
18
18
|
btnName: 'Draw Your Signature',
|
|
19
19
|
titleConfirm: 'I Accept My Signature',
|
|
20
20
|
penColor: '#303F9F',
|
|
@@ -50,7 +50,7 @@ const imageDataUrl = computed(() => {
|
|
|
50
50
|
return base
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
const mime = (val as Base64File).
|
|
53
|
+
const mime = (val as Base64File).fileType || "image/png"
|
|
54
54
|
return `data:${mime};base64,${base}`
|
|
55
55
|
})
|
|
56
56
|
|
|
@@ -148,7 +148,7 @@ defineExpose({
|
|
|
148
148
|
<template>
|
|
149
149
|
<v-input v-model="model" v-bind="$attrs" ref="inputRef">
|
|
150
150
|
<template #default="{ isReadonly, isDisabled }">
|
|
151
|
-
<v-card class="w-100" flat>
|
|
151
|
+
<v-card class="w-100" flat :variant="$attrs.variant" :title="props.title">
|
|
152
152
|
<v-card-text v-if="normalized?.base64String">
|
|
153
153
|
<v-img :src="imageDataUrl" cover />
|
|
154
154
|
<v-icon
|
|
@@ -161,7 +161,7 @@ defineExpose({
|
|
|
161
161
|
</v-icon>
|
|
162
162
|
</v-card-text>
|
|
163
163
|
|
|
164
|
-
<v-card-actions>
|
|
164
|
+
<v-card-actions v-if="!isReadonly?.value">
|
|
165
165
|
<v-btn
|
|
166
166
|
append-icon="mdi mdi-draw-pen"
|
|
167
167
|
block
|
|
@@ -83,7 +83,7 @@ export const useAssetFile = () => {
|
|
|
83
83
|
fileName: file.name,
|
|
84
84
|
originalFileName: file.name,
|
|
85
85
|
base64String: dataUrl,
|
|
86
|
-
|
|
86
|
+
fileType: file.type || parseDataUrl(dataUrl)?.contentType
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
89
|
reader.onerror = reject;
|