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-10-15 09:38:39 +00:00
|
|
|
/>
|
|
|
|
`,
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/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);
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
2023-05-05 14:14:26 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|