Skip to content

Commit 42cdd55

Browse files
committed
可用 action 覆盖内容
1 parent 8e0677a commit 42cdd55

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/painter/painter.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ Component({
226226
doView.css = Object.assign({}, doView.css, newVal.css)
227227
}
228228
}
229+
(newVal && newVal.url !== doView.url) && (doView.url = newVal.url);
230+
(newVal && newVal.text !== doView.text) && (doView.text = newVal.text);
231+
(newVal && newVal.content !== doView.content) && (doView.content = newVal.content);
232+
229233
const draw = {
230234
width: this.currentPalette.width,
231235
height: this.currentPalette.height,

0 commit comments

Comments
 (0)