docs: update treeselect

pull/6799/head
tangjinzhou 1 year ago
parent 2c39273cc6
commit bc576d6255

@ -1,21 +1,3 @@
<docs>
---
order: 0
title:
zh-CN: 基本用法
en-US: Basic usage
---
## zh-CN
最简单的用法
## en-US
The most basic usage.
</docs>
<template>
<a-tree-select
v-model:value="value"
@ -40,8 +22,8 @@ import type { TreeSelectProps } from 'ant-design-vue';
const value = ref<string>();
const treeData = ref<TreeSelectProps['treeData']>([
{
label: 'parent 1',
value: 'parent 1',
label: 'root 1',
value: 'root 1',
children: [
{
label: 'parent 1',
@ -68,8 +50,8 @@ const treeData = ref<TreeSelectProps['treeData']>([
],
},
{
label: 'parent 1-1',
value: 'parent 1-1',
label: 'parent 2',
value: 'parent 2',
},
],
},

Loading…
Cancel
Save