角色列表添加

This commit is contained in:
仲么了
2024-01-19 14:08:07 +08:00
parent 343bda8c70
commit 9b75f5b38c
19 changed files with 515 additions and 378 deletions

View File

@@ -26,13 +26,13 @@
</template>
<script lang="ts" setup>
import { ElTree } from 'element-plus';
import { ref, watch } from 'vue'
defineOptions({
name: 'govern/tree'
})
const filterText = ref('')
const treeRef = ref()
const defaultProps = {
label: 'name',
value: 'id'
@@ -44,6 +44,7 @@ const filterNode = (value: string, data: any) => {
if (!value) return true
return data.name.includes(value)
}
const treeRef = ref<InstanceType<typeof ElTree>>()
defineExpose({ treeRef })
</script>
<style lang="scss" scoped>