-- 修改

This commit is contained in:
yuping
2022-12-16 14:13:00 +08:00
parent faab473261
commit 47aa65ff43

View File

@@ -29,7 +29,11 @@ import {useStore} from "vuex";
const store = useStore();
const props = defineProps({
value: String
value: String,
disabled: {
type: Boolean,
default: false
}
})
const emit = defineEmits({})
@@ -38,8 +42,9 @@ const options = computed(() => store.state.orgtreeList)
const id = computed(() => {
return props.value
})
function change(key, obj) {
console.log(obj[0],key,props.value);
console.log(obj[0], key, props.value);
emit('update:name', obj[0])
emit('update:value', key)
}