preview
- ファイルのプレビュー情報を格納するリファレンス
id
(string): ファイルフィールドのIDclass
(string): ファイルフィールドのクラスname
(string): ファイルフィールドの名前style
(string): ファイルフィールドのスタイルstyleReset
(boolean): スタイルリセットフラグisDisabled
(boolean): ファイルフィールドの無効状態isReadonly
(boolean): ファイルフィールドの読み取り専用状態
update:moneyValue
- 日付フィールドの値が変更されたときに発行されるイベント
bindingClass
- styleReset
が true
の場合は props.class
を返し、それ以外の場合は revuekitz-file-field ${props.class}
をクラス名として返す
<script setup>
import { FileField } from 'revuekitz'
import 'revuekitz/dist/style.css'
const fileData = ref(null)
</script>
<template>
<FileField
id="fileFieldId"
class="file-field-class"
style="background-color: #f0f0f0; border: 1px solid #ccc;"
name="file_field_name"
:isDisabled="false"
:isReadonly="false"
v-model="fileData"
/>
</template>