カラーピッカーと数字入力ボックスの追加

This commit is contained in:
Mouriya
2024-05-06 20:58:06 +09:00
parent 5cf60ddfdc
commit 994a0174f5
3 changed files with 121 additions and 1 deletions

View File

@@ -0,0 +1,48 @@
<template>
<div class="">
<q-input v-model.number="numValue" type="number" :label="displayName" label-color="primary" bottom-slots>
<template v-slot:hint>
{{ placeholder }}
</template>
</q-input>
</div>
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue';
export default defineComponent({
name: 'NumInput',
components: {
},
props: {
displayName: {
type: String,
default: '',
},
name: {
type: String,
default: '',
},
placeholder: {
type: String,
default: '',
},
hint: {
type: String,
default: '',
},
modelValue: {
type: Object,
default: null
},
},
setup(props, { emit }) {
const numValue = ref(0);
return {
numValue,
};
}
});
</script>