@fonixtree/magic-design 0.0.171 → 0.0.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/common/ColorPicker/index.less +1 -2
- package/es/composite-comp/bol/components/Banner/mobile/index.less +7 -0
- package/es/composite-comp/bol/components/Banner/pc/index.less +7 -0
- package/es/meta-comp/components/Button/editable.js +9 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +8 -0
- package/lib/common/ColorPicker/index.less +1 -2
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +7 -0
- package/lib/composite-comp/bol/components/Banner/pc/index.less +7 -0
- package/lib/meta-comp/components/Button/editable.js +9 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +8 -0
- package/package.json +1 -1
|
@@ -73,6 +73,13 @@ function (_super) {
|
|
|
73
73
|
|
|
74
74
|
_this.preData = '';
|
|
75
75
|
_this.preDevice = '';
|
|
76
|
+
|
|
77
|
+
_this.triggerButtonConfigRender = function () {
|
|
78
|
+
window.document.dispatchEvent(new Event('button-render', {
|
|
79
|
+
bubbles: false
|
|
80
|
+
}));
|
|
81
|
+
};
|
|
82
|
+
|
|
76
83
|
return _this;
|
|
77
84
|
}
|
|
78
85
|
|
|
@@ -102,6 +109,8 @@ function (_super) {
|
|
|
102
109
|
_this.preData = JSON.stringify(__assign(__assign({}, JSON.parse(_this.preData)), {
|
|
103
110
|
text: text
|
|
104
111
|
}));
|
|
112
|
+
|
|
113
|
+
_this.triggerButtonConfigRender();
|
|
105
114
|
},
|
|
106
115
|
suppressContentEditableWarning: true
|
|
107
116
|
}, data.text);
|
|
@@ -101,6 +101,14 @@ function (_super) {
|
|
|
101
101
|
return _this;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
ButtonConfig.prototype.componentDidMount = function () {
|
|
105
|
+
window.document.addEventListener('button-render', this.selfRender);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
ButtonConfig.prototype.componentWillUnmount = function () {
|
|
109
|
+
window.document.removeEventListener('button-render', this.selfRender);
|
|
110
|
+
};
|
|
111
|
+
|
|
104
112
|
ButtonConfig.prototype.render = function () {
|
|
105
113
|
var _this = this;
|
|
106
114
|
|
|
@@ -73,6 +73,13 @@ function (_super) {
|
|
|
73
73
|
|
|
74
74
|
_this.preData = '';
|
|
75
75
|
_this.preDevice = '';
|
|
76
|
+
|
|
77
|
+
_this.triggerButtonConfigRender = function () {
|
|
78
|
+
window.document.dispatchEvent(new Event('button-render', {
|
|
79
|
+
bubbles: false
|
|
80
|
+
}));
|
|
81
|
+
};
|
|
82
|
+
|
|
76
83
|
return _this;
|
|
77
84
|
}
|
|
78
85
|
|
|
@@ -102,6 +109,8 @@ function (_super) {
|
|
|
102
109
|
_this.preData = JSON.stringify(__assign(__assign({}, JSON.parse(_this.preData)), {
|
|
103
110
|
text: text
|
|
104
111
|
}));
|
|
112
|
+
|
|
113
|
+
_this.triggerButtonConfigRender();
|
|
105
114
|
},
|
|
106
115
|
suppressContentEditableWarning: true
|
|
107
116
|
}, data.text);
|
|
@@ -101,6 +101,14 @@ function (_super) {
|
|
|
101
101
|
return _this;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
ButtonConfig.prototype.componentDidMount = function () {
|
|
105
|
+
window.document.addEventListener('button-render', this.selfRender);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
ButtonConfig.prototype.componentWillUnmount = function () {
|
|
109
|
+
window.document.removeEventListener('button-render', this.selfRender);
|
|
110
|
+
};
|
|
111
|
+
|
|
104
112
|
ButtonConfig.prototype.render = function () {
|
|
105
113
|
var _this = this;
|
|
106
114
|
|