26 lines
461 B
Vue
26 lines
461 B
Vue
<template>
|
|
<el-cascader v-bind='$attrs' :options='options' :props='cascaderProps' />
|
|
</template>
|
|
|
|
<script lang='ts' setup>
|
|
import { defineComponent } from 'vue'
|
|
|
|
defineOptions({
|
|
name: 'Area'
|
|
})
|
|
import { useDictData } from '@/stores/dictData'
|
|
|
|
const cascaderProps = {
|
|
label: 'name',
|
|
value: 'id',
|
|
checkStrictly: true,
|
|
emitPath: false
|
|
}
|
|
const dictData = useDictData()
|
|
const options = dictData.state.area
|
|
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style> |