vue父页面获取子组件绑定值

<el-form-item label="图文详情" prop="imageText">
  <div>
    <el-button type="primary" link>组件el-button>
    <WangEditor v-model="ruleForm.imageText">WangEditor>
  div>
el-form-item>
<script lang="ts" setup>
	const emit = defineEmits(['update:modelValue']);
	onMounted(() => {
        setTimeout(() => {
            valueHtml.value = "

测试数据

"
; emit('update:modelValue', valueHtml.value); }, 1500); }); </script>

你可能感兴趣的:(vue.js,javascript,前端)