primevue-mirror/doc/knob/pt/PTDoc.vue

70 lines
1.3 KiB
Vue
Raw Normal View History

2023-05-05 14:14:26 +00:00
<template>
<DocSectionText v-bind="$attrs"></DocSectionText>
<div class="card flex justify-content-center">
<Knob
v-model="value"
:pt="{
value: { style: { stroke: 'var(--cyan-500)' } }
}"
/>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
value: 0,
code: {
2023-09-22 12:54:14 +00:00
basic: `
<Knob
2023-05-05 14:14:26 +00:00
v-model="value"
:pt="{
value: { style: { stroke: 'var(--cyan-500)' } }
}"
/>`,
2023-09-22 12:54:14 +00:00
options: `
<template>
2023-05-05 14:14:26 +00:00
<div class="card flex justify-content-center">
<Knob
v-model="value"
:pt="{
value: { style: { stroke: 'var(--cyan-500)' } }
}"
/>
</div>
</template>
<script>
export default {
data() {
return {
value: 0
}
}
};
<\/script>`,
2023-09-22 12:54:14 +00:00
composition: `
<template>
2023-05-05 14:14:26 +00:00
<div class="card flex justify-content-center">
<Knob
v-model="value"
:pt="{
value: { style: { stroke: 'var(--cyan-500)' } }
}"
/>
</div>
</template>
<script setup>
import { ref } from 'vue';
const value = ref(0);
<\/script>`
}
};
}
};
</script>