项目中心,编辑回显6

This commit is contained in:
gengxin
2025-03-05 11:49:33 +08:00
parent ced99d3792
commit 5d871c93e2
2 changed files with 11 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<template>
<a-input
v-model:value="modelV.value"
v-model:value="modelV.name"
:placeholder="placeholder"
:show-count="showCount"
:maxlength="maxlength"
@@ -22,6 +22,9 @@ const props = defineProps({
id: {
type: String,
},
name: {
type: String,
},
placeholder: {
type: String,
},
@@ -51,11 +54,12 @@ const props = defineProps({
});
const emit = defineEmits(["update:value",'update:validated']);
console.log("modelV props.value",props.value)
console.log("modelV props.value",props.onceName)
console.log("modelV props",props)
console.log("setup props.value",props.value)
console.log("setup props.onceName",props.onceName)
console.log("setup props",props)
console.log("setup props.name",props.name)
const modelV = ref({
value: props.value
value: props.name
});
const isExistName = ref(true);
@@ -76,6 +80,7 @@ onMounted(() => {
validateValue()
console.log("onMounted validateValue 已完成")
console.log("modelV props",props)
console.log("modelV props.name",props.name)
console.log("onMounted modelV 已完成",modelV)
console.log("onMounted modelV.value 已完成",modelV.value)

View File

@@ -310,6 +310,7 @@
:maxlength="30"
show-count
:onceName="onceName"
:name="projectInfo.name"
:id="projectInfo.projectId"
></NameInput>
</div>