|
@@ -142,19 +142,24 @@ export default {
|
|
|
},
|
|
|
/**
|
|
|
* 显示设置
|
|
|
- * @param {object} setting
|
|
|
- * @param {string} type
|
|
|
+ * @param {object} setting 组件设置
|
|
|
+ * @param {string} type 组件类型
|
|
|
+ * @param {string} id 组件id
|
|
|
+ * @param {object} params 组件参数
|
|
|
*/
|
|
|
- showSetting(setting, type, id) {
|
|
|
+ showSetting(setting, type, id, params = {}) {
|
|
|
this.curSettingType = type;
|
|
|
this.curSettingId = id;
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.setting.setSetting(setting);
|
|
|
+ this.$refs.setting.setSetting(setting, params);
|
|
|
});
|
|
|
},
|
|
|
setBackgroundImage(...data) {
|
|
|
this.$refs.createCanvas.setBackgroundImage(...data);
|
|
|
},
|
|
|
+ getRichTextContent() {
|
|
|
+ return this.$refs.createCanvas.getRichTextContent();
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|