-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc3bd44
commit 7db93eb
Showing
4 changed files
with
135 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<template> | ||
<DocSectionText v-bind="$attrs"></DocSectionText> | ||
<div class="card flex justify-content-center"> | ||
<Checkbox | ||
v-model="checked" | ||
binary | ||
:pt="{ | ||
input: ({ props, state }) => ({ | ||
class: state.focused ? 'border-orange-400' : undefined | ||
}) | ||
}" | ||
/> | ||
</div> | ||
<DocSectionCode :code="code" /> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
checked: false, | ||
code: { | ||
basic: ` | ||
<Checkbox | ||
v-model="checked" | ||
binary | ||
:pt="{ | ||
input: ({ props, state }) => ({ | ||
class: state.focused ? 'border-orange-400' : undefined | ||
}) | ||
}" | ||
/>`, | ||
options: ` | ||
<template> | ||
<div class="card flex justify-content-center"> | ||
<Checkbox | ||
v-model="checked" | ||
binary | ||
:pt="{ | ||
input: ({ props, state }) => ({ | ||
class: state.focused ? 'border-orange-400' : undefined | ||
}) | ||
}" | ||
/> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
data() { | ||
return { | ||
checked: false | ||
}; | ||
} | ||
}; | ||
<\/script>`, | ||
composition: ` | ||
<template> | ||
<div class="card flex justify-content-center"> | ||
<Checkbox | ||
v-model="checked" | ||
binary | ||
:pt="{ | ||
input: ({ props, state }) => ({ | ||
class: state.focused ? 'border-orange-400' : undefined | ||
}) | ||
}" | ||
/> | ||
</div> | ||
</template> | ||
<script setup> | ||
import { ref } from "vue"; | ||
const checked = ref(false); | ||
<\/script>` | ||
} | ||
}; | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<template> | ||
<DocSectionText v-bind="$attrs"> | ||
<p>{{ $attrs.description }}</p> | ||
</DocSectionText> | ||
<div class="card"> | ||
<img class="w-full" src="https://primefaces.org/cdn/primevue/images/pt/wireframe-placeholder.jpg" /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<template> | ||
<div class="doc-main"> | ||
<div class="doc-intro"> | ||
<h1>Checkbox Pass Through</h1> | ||
</div> | ||
<DocSections :docs="docs" /> | ||
</div> | ||
<DocSectionNav :docs="docs" /> | ||
</template> | ||
|
||
<script> | ||
import DocApiTable from '@/components/doc/DocApiTable.vue'; | ||
import { getPTOption } from '@/components/doc/helpers/PTHelper.js'; | ||
import PtDoc from './PTDoc.vue'; | ||
import PTImage from './PTImage.vue'; | ||
export default { | ||
data() { | ||
return { | ||
docs: [ | ||
{ | ||
id: 'pt.image', | ||
label: 'Wireframe', | ||
component: PTImage | ||
}, | ||
{ | ||
id: 'pt.doc.checkbox', | ||
label: 'Checkbox PT Options', | ||
component: DocApiTable, | ||
data: getPTOption('Checkbox') | ||
}, | ||
{ | ||
id: 'pt.demo', | ||
label: 'Demo', | ||
component: PtDoc | ||
} | ||
] | ||
}; | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters