gaoluyang
昨天 b64a0deae5b5d33f9e20671a68936b27f0b9b00b
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
<script lang="ts" setup>
import { ref } from 'vue';
 
import { Page } from '@vben/common-ui';
 
import DataGrid from './modules/data-grid.vue';
import TypeGrid from './modules/type-grid.vue';
 
const searchDictType = ref<string>(); // 搜索的字典类型
 
function handleDictTypeSelect(dictType: string) {
  searchDictType.value = dictType;
}
</script>
 
<template>
  <Page auto-content-height><div class="flex h-full">
      <!-- 左侧字典类型列表 -->
      <div class="w-1/2 pr-3">
        <TypeGrid @select="handleDictTypeSelect" />
      </div>
      <!-- 右侧字典数据列表 -->
      <div class="w-1/2">
        <DataGrid :dict-type="searchDictType" />
      </div>
    </div>
  </Page>
</template>