修改take()的获取值方法
This commit is contained in:
parent
587d5f2112
commit
7a46168ed2
2 changed files with 16 additions and 17 deletions
|
@ -246,11 +246,9 @@ export default class PluginSample extends Plugin {
|
|||
step: 1,
|
||||
},
|
||||
action:{
|
||||
// The callback is called after the action of Silder changes,
|
||||
// so it should be the this.settingUtils.get() method.
|
||||
callback: () => {
|
||||
// Read data in real time
|
||||
let value = this.settingUtils.get("Slider")
|
||||
let value = this.settingUtils.take("Slider")
|
||||
console.log(value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue