-
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.
Refactor #3922 - For TriStateCheckbox
- Loading branch information
1 parent
eb3536c
commit 33b82cc
Showing
7 changed files
with
193 additions
and
10 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
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
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,51 @@ | ||
<template> | ||
<DocSectionText v-bind="$attrs"> </DocSectionText> | ||
<div class="card flex flex-column align-items-center gap-3"> | ||
<TriStateCheckbox v-model="value" /> | ||
<label for="checkbox">{{ value == null ? 'null' : value }}</label> | ||
</div> | ||
<DocSectionCode :code="code" /> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
value: null, | ||
code: { | ||
basic: `<TriStateCheckbox v-model="value" />`, | ||
options: ` | ||
<template> | ||
<div class="card flex flex-column align-items-center gap-3"> | ||
<TriStateCheckbox v-model="value" /> | ||
<label for="checkbox">{{ value == null ? 'null' : value }}</label> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
data() { | ||
return { | ||
value: null | ||
} | ||
} | ||
} | ||
<\/script>`, | ||
composition: ` | ||
<template> | ||
<div class="card flex flex-column align-items-center gap-3"> | ||
<TriStateCheckbox v-model="value" /> | ||
<label for="checkbox">{{ value == null ? 'null' : value }}</label> | ||
</div> | ||
</template> | ||
<script setup> | ||
import { ref } from 'vue'; | ||
const value = ref(null); | ||
<\/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>Rating 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.steps', | ||
label: 'Rating PT Options', | ||
component: DocApiTable, | ||
data: getPTOption('TriStateCheckbox') | ||
}, | ||
{ | ||
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
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