为checkout添加切换状态时添加回调函数

This commit is contained in:
浔阳陌客 2024-04-05 16:37:25 +08:00
parent ec00075b4e
commit c58c836b7c
5 changed files with 11 additions and 1 deletions

View file

@ -191,6 +191,11 @@ export default class PluginSample extends Plugin {
type: "checkbox",
title: "Checkbox text",
description: "Check description",
checkbox: {
callback: () => {
console.log("Checkbox clicked");
}
}
});
this.settingUtils.addItem({
key: "Select",