mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 10:20:27 +01:00
lint
This commit is contained in:
parent
3deed56363
commit
5657899ebb
1 changed files with 2 additions and 0 deletions
|
@ -166,6 +166,7 @@ const rotate = computed({
|
|||
get: () => watermarkConfig.value?.rotate ?? 15,
|
||||
set: (v) => watermarkConfig.value = { ...watermarkConfig.value, rotate: v },
|
||||
});
|
||||
|
||||
function setPadding(pos: 'top' | 'left' | 'right' | 'bottom', val: number) {
|
||||
const padding = {
|
||||
top: 0,
|
||||
|
@ -177,6 +178,7 @@ function setPadding(pos: 'top' | 'left' | 'right' | 'bottom', val: number) {
|
|||
};
|
||||
watermarkConfig.value = { ...watermarkConfig.value, padding };
|
||||
}
|
||||
|
||||
const paddingTop = computed({
|
||||
get: () => watermarkConfig.value?.padding?.top ?? 0,
|
||||
set: (v) => setPadding('top', v),
|
||||
|
|
Loading…
Reference in a new issue