1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| <template>
| <app-layout-row>
| <app-layout-col :span="6">
| <type-list v-bind="typeListProps"/>
| </app-layout-col>
| <app-layout-col :span="18" :padding-left="15">
| <dict-table v-bind="dictTableProps"/>
| </app-layout-col>
| </app-layout-row>
| </template>
|
| <script setup>
|
| const props = defineProps({
| type: {
| type: String,
| default: ''
| },
| });
|
| console.log(props.type)
|
| import DictTable from './DictTable';
| import TypeList from './TypeList';
|
| const typeListRef = ref();
| const dictTableRef = ref();
|
| const dictTableProps = {
| ref: dictTableRef,
| type: props.type,
| }
|
|
| const typeListProps = {
| ref: typeListRef,
| type: props.type,
| subActive: (val) => {
| dictTableRef.value.setActive(val);
| }
| }
|
| </script>
|
|