properties的属性控制如何实现?

properties: {

    Combine:{
        default:false,
        notify:function(){
             //当这里属性被赋值时触发时,动态修改下面CombinePropId的visible属性。
        },
    },
    CombinePropId:{
        default:"",
        visible:false
    },
   

},

试一下:

Combine:{
    default:false,
    notify:function() {
        this._showCombinePropId = true; //or false
    }
},
_showCombinePropId: false,
CombinePropId:{
    default:"",
    visible:function(){return this._showCombinePropId}
}
2赞

it’s ok , thx~!:grinning:

油阿魏尔康