How to transfer $mount manually mounted Vue instance to props?

how to pass props to an instance when instantiated through a Vue constructor derived from Vue.extend?
for example, I have a single file component A.vue:

<template>
    <div>
    <div>
</template>

export default {
    props: {
        json: {
            type: Object,
            default: () => {}
        }
    }
}

I use it to derive and instantiate it in the B component:

import A from "./A"



const Constructor = Vue.extend(A)
// 
let vm = new Constructor({ el: "-sharpid"})
// vmprops
The

question is how to pass a props attribute, such as json in the example, to the instance generated by derived instantiation.

Oct.26,2021

`
new Consturctor ({propsData: {json: 'json_props'}}). $mount ('-sharpid')
`
in addition, props is an array, not object


https://cn.vuejs.org/v2/api/i.

.
Menu