mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 18:48:31 +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,
|
get: () => watermarkConfig.value?.rotate ?? 15,
|
||||||
set: (v) => watermarkConfig.value = { ...watermarkConfig.value, rotate: v },
|
set: (v) => watermarkConfig.value = { ...watermarkConfig.value, rotate: v },
|
||||||
});
|
});
|
||||||
|
|
||||||
function setPadding(pos: 'top' | 'left' | 'right' | 'bottom', val: number) {
|
function setPadding(pos: 'top' | 'left' | 'right' | 'bottom', val: number) {
|
||||||
const padding = {
|
const padding = {
|
||||||
top: 0,
|
top: 0,
|
||||||
|
@ -177,6 +178,7 @@ function setPadding(pos: 'top' | 'left' | 'right' | 'bottom', val: number) {
|
||||||
};
|
};
|
||||||
watermarkConfig.value = { ...watermarkConfig.value, padding };
|
watermarkConfig.value = { ...watermarkConfig.value, padding };
|
||||||
}
|
}
|
||||||
|
|
||||||
const paddingTop = computed({
|
const paddingTop = computed({
|
||||||
get: () => watermarkConfig.value?.padding?.top ?? 0,
|
get: () => watermarkConfig.value?.padding?.top ?? 0,
|
||||||
set: (v) => setPadding('top', v),
|
set: (v) => setPadding('top', v),
|
||||||
|
|
Loading…
Reference in a new issue