华为云Astro大屏应用-magno对象预置API一览表:savePropertiesForWidget()

时间:2025-02-12 15:04:21

savePropertiesForWidget()

该API用于在开发态中,保存当前组件的高级设置属性信息。

/* * @param {*} props {} */magno.savePropertiesForWidget({ // 属性应该与editor.js中的属性对应    barChartProps: JSON.stringify(_this.barPropList),    barCommProps: JSON.stringify(_this.barCommProps)});

属性值需要是String,如果为对象形式则需要做String转换。

support.huaweicloud.com/usermanual-astrocanvas/astrocanvas_05_7149.html