primevue-mirror/apps/volt/doc/inputnumber/DisabledDoc.vue

32 lines
730 B
Vue
Raw Normal View History

2025-03-03 13:58:17 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
</DocSectionText>
<div class="card flex justify-center">
<InputNumber v-model="value" disabled prefix="%" />
</div>
<DocSectionCode :code="code" />
</template>
<script setup>
2025-03-03 14:06:06 +00:00
import InputNumber from '@/volt/inputnumber';
2025-03-03 13:58:17 +00:00
import { ref } from 'vue';
const value = ref(50);
const code = ref(`
<template>
<div class="card flex justify-center">
<InputNumber v-model="value" disabled prefix="%" />
</div>
</template>
<script setup>
2025-03-03 14:06:06 +00:00
import InputNumber from '@/volt/inputnumber';
2025-03-03 13:58:17 +00:00
import { ref } from 'vue';
const value = ref(50);
<\/script>
`);
</script>