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-08-16 13:58:31 +00:00
|
|
|
basic: `<Knob
|
2023-05-05 14:14:26 +00:00
|
|
|
v-model="value"
|
|
|
|
:pt="{
|
|
|
|
value: { style: { stroke: 'var(--cyan-500)' } }
|
|
|
|
}"
|
|
|
|
/>`,
|
2023-08-16 13:58:31 +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-08-16 13:58:31 +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>
|