fix: StylePanel Display value not write when init
This commit is contained in:
defaultkavy 2024-03-30 21:55:15 +08:00
parent de19799dc3
commit 86477e57b2
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
export const config = {
version: 'v1.0.1'
version: 'v1.0.2'
}

View File

@ -39,7 +39,7 @@ export class StylePanel extends $Container {
$('div').content([
new SelectInput('display').label('Display').add([
['block', 'inline', 'flex', 'none'].map(value => $('option').content(value).value(value))
]),
]).value(this.data.display),
new RangeInput('opacity').value(this.data.opacity).unit('px').min(0).max(1).label('Opacity').self($input => {$input.$range.step(0.01); $input.$value.step(0.1)}),
])
]),