u
This commit is contained in:
1 parent
07e0001b87
commit
46cbb2f50d
543 files changed
+32576
-4231
No files matched your search
@@ -0,0 +1,39 @@
|
||||
<script lang="ts" setup>
|
||||
import { useCommonStore } from '@/store/common'
|
||||
|
||||
const props = defineProps({
|
||||
multiple: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
checkStrictly: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
})
|
||||
|
||||
const commonStore = useCommonStore()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<el-cascader
|
||||
placeholder="请选择地域"
|
||||
:options="commonStore.areaOptions"
|
||||
filterable
|
||||
:props="{
|
||||
label: 'name',
|
||||
value: 'name',
|
||||
children: 'children',
|
||||
multiple: props.multiple,
|
||||
checkStrictly: props.checkStrictly,
|
||||
}"
|
||||
class="area-select-cascader"
|
||||
v-bind="$attrs"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
.area-select-cascader {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user