Commit 0b39d1778d1bd3021b26c7ec3c0653dd75685747
1 parent
3f2835c9
feat: add switch image to variable image library
Showing
1 changed file
with
5 additions
and
0 deletions
@@ -55,6 +55,11 @@ | @@ -55,6 +55,11 @@ | ||
55 | })); | 55 | })); |
56 | }) | 56 | }) |
57 | 57 | ||
58 | + this.setVariableImageLib('switch', '开关', [ | ||
59 | + { name: 'switch-on', path: '/images/thingskit/switch-on.svg', staticPath: `${Proxy_Prefix}/images/thingskit/switch-on.svg` }, | ||
60 | + { name: 'switch-off', path: '/images/thingskit/switch-on.svg', staticPath: `${Proxy_Prefix}/images/thingskit/switch-off.svg` }, | ||
61 | + ]) | ||
62 | + | ||
58 | this.setVariableImageLib(dt, label, lib) | 63 | this.setVariableImageLib(dt, label, lib) |
59 | 64 | ||
60 | this.addPaletteFunctions(dt, label, false, fns); | 65 | this.addPaletteFunctions(dt, label, false, fns); |