修改行政区划
This commit is contained in:
parent
6da61ca8ca
commit
d343a8219f
|
@ -15,7 +15,7 @@ import type {CascaderProps} from 'ant-design-vue';
|
||||||
|
|
||||||
// withDefaultsde作用是设置组件默认值属性,有两个值,第二个值是设置第一个值所有属性的默认值的
|
// withDefaultsde作用是设置组件默认值属性,有两个值,第二个值是设置第一个值所有属性的默认值的
|
||||||
withDefaults(defineProps<{
|
withDefaults(defineProps<{
|
||||||
changeOnSelect:boolean,
|
changeOnSelect?:boolean,
|
||||||
}>(),{
|
}>(),{
|
||||||
changeOnSelect:false
|
changeOnSelect:false
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="margin: 100px auto;width: 500px">
|
<div style="margin: 100px auto;width: 500px">
|
||||||
<AdministrativeDivisionsTree v-model:value="value"></AdministrativeDivisionsTree>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref} from 'vue';
|
|
||||||
import AdministrativeDivisionsTree from "@/components/tree/AdministrativeDivisionsTree.vue";
|
|
||||||
const value = ref<string[]>( );
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue