Component自定义组件里能调用其他Component组件吗

发布于 7 年前作者 tzeng18134 次浏览最后编辑 7 年前来自 ask

Component({

    properties: {

        bg: {

            type: String,

            value: “”

        },

        draw: {

            type: String,

            value: “”

        }

    },

    data: {

 

        time : 0,

    },

    methods: {

        init : function(){

            var _this = this

            //这里需要调用其他Component

        },

1 回复
pmo
pmo1 楼5 年前

如果ComponentA组件在ComponentB里面引用,可以在ComponentB通过selectComponent选中ComponentA组件