2023-05-05 09:37:42 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs"></DocSectionText>
|
|
|
|
<div class="card">
|
|
|
|
<Chips
|
|
|
|
v-model="value"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'flex' },
|
|
|
|
container: { class: 'flex-1' },
|
|
|
|
token: { class: 'bg-primary' }
|
|
|
|
}"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
value: null,
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<Chips
|
2023-05-05 09:37:42 +00:00
|
|
|
v-model="value"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'flex' },
|
|
|
|
container: { class: 'flex-1' },
|
|
|
|
token: { class: 'bg-primary' }
|
|
|
|
}"
|
|
|
|
/>`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-05-05 09:37:42 +00:00
|
|
|
<div class="card">
|
|
|
|
<Chips
|
|
|
|
v-model="value"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'flex' },
|
|
|
|
container: { class: 'flex-1' },
|
|
|
|
token: { class: 'bg-primary' }
|
|
|
|
}"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
value: null
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
<\/script>`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-05-05 09:37:42 +00:00
|
|
|
<div class="card">
|
|
|
|
<Chips
|
|
|
|
v-model="value"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'flex' },
|
|
|
|
container: { class: 'flex-1' },
|
|
|
|
token: { class: 'bg-primary' }
|
|
|
|
}"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
|
|
const value = ref();
|
|
|
|
<\/script>`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|