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