We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e044698 commit 37eaadaCopy full SHA for 37eaada
packages/ve-contextmenu/src/index.jsx
@@ -158,9 +158,14 @@ export default {
158
options: {
159
handler: function (val) {
160
if (Array.isArray(val) && val.length > 0) {
161
+ /*
162
+ 如果配置项修改,则重新销毁并创建
163
+ */
164
+ this.removeOrEmptyPanels(true);
165
this.rootContextmenuId = this.getRandomIdWithPrefix();
166
this.createInternalOptions();
167
this.createPanelOptions({ options: this.internalOptions });
168
+ this.resetContextmenu();
169
this.addRootContextmenuPanelToBody();
170
}
171
},
0 commit comments