@finema/core 1.4.136 → 1.4.137
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
package/dist/module.mjs
CHANGED
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
@click="handleDownloadFile"
|
|
106
106
|
/>
|
|
107
107
|
<Icon
|
|
108
|
-
v-if="!
|
|
108
|
+
v-if="!(isDisabled || isReadonly)"
|
|
109
109
|
:name="ui.action.deleteIcon"
|
|
110
110
|
:class="[ui.action.iconClass]"
|
|
111
111
|
title="ลบไฟล์"
|
|
@@ -247,7 +247,7 @@ const { isOverDropZone } = useDropZone(dropzoneRef as unknown as HTMLElement, {
|
|
|
247
247
|
})
|
|
248
248
|
|
|
249
249
|
const handleChange = (e: Event) => {
|
|
250
|
-
if (props.isDisabled) return
|
|
250
|
+
if (props.isDisabled || props.isReadonly) return
|
|
251
251
|
|
|
252
252
|
const file = (e.target as HTMLInputElement).files?.[0]
|
|
253
253
|
const result = handleCheckFileCondition(file)
|