|
@@ -390,6 +390,21 @@ export default {
|
|
|
});
|
|
});
|
|
|
this.data.unified_attrib = data;
|
|
this.data.unified_attrib = data;
|
|
|
},
|
|
},
|
|
|
|
|
+ applyToSelectedComponents(data) {
|
|
|
|
|
+ this.$refs.component.forEach((item) => {
|
|
|
|
|
+ if (item.$refs.base.checked) {
|
|
|
|
|
+ item.updateProperty('view_pinyin', data.view_pinyin);
|
|
|
|
|
+ item.updateProperty('pinyin_position', data.pinyin_position);
|
|
|
|
|
+ item.updateRichTextProperty('fontFamily', data.font);
|
|
|
|
|
+ item.updateRichTextProperty('fontSize', data.font_size);
|
|
|
|
|
+ item.updateRichTextProperty('lineHeight', data.line_height);
|
|
|
|
|
+ item.updateRichTextProperty('color', data.text_color);
|
|
|
|
|
+ item.updateRichTextProperty('align', data.align);
|
|
|
|
|
+
|
|
|
|
|
+ item.setUnifiedAttr(data);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
getBookUnifiedAttr() {
|
|
getBookUnifiedAttr() {
|
|
|
GetBookUnifiedAttrib({ book_id: this.project_id }).then(({ content }) => {
|
|
GetBookUnifiedAttrib({ book_id: this.project_id }).then(({ content }) => {
|
|
|
if (content) {
|
|
if (content) {
|