Skip to content

Commit

Permalink
Update FilterDoc.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Dec 20, 2024
1 parent e36cc99 commit 62543e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/showcase/doc/treeselect/FilterDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</DocSectionText>
<div class="card flex flex-wrap justify-center items-end gap-4">
<TreeSelect v-model="selectedValue" filter filterMode="lenient" :options="nodes" placeholder="Select Item" class="md:w-80 w-full" />
<TreeSelect v-model="selectedValue" filter filterMode="strict" :options="nodes" placeholder="Select Item" class="md:w-80 w-full" />
<TreeSelect v-model="selectedValue2" filter filterMode="strict" :options="nodes" placeholder="Select Item" class="md:w-80 w-full" />
</div>
<DocSectionCode :code="code" :service="['NodeService']" v-bind="$attrs" />
</template>
Expand All @@ -21,6 +21,7 @@ export default {
return {
nodes: null,
selectedValue: null,
selectedValue2: null,
code: {
basic: `
<TreeSelect v-model="selectedValue" filter filterMode="lenient" :options="nodes" placeholder="Select Item" class="md:w-80 w-full" />
Expand All @@ -42,6 +43,7 @@ export default {
return {
nodes: null,
selectedValue: null,
selectedValue2: null,
}
},
mounted() {
Expand All @@ -64,6 +66,7 @@ import { NodeService } from './service/NodeService';
const nodes = ref(null);
const selectedValue = ref(null);
const selectedValue2 = ref(null);
onMounted(() => {
NodeService.getTreeNodes().then((data) => (nodes.value = data));
Expand Down

0 comments on commit 62543e1

Please sign in to comment.