lint fixes
This commit is contained in:
parent
f904f8d1d3
commit
c276859e3f
|
@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template #label>{{ def.inputLabel }}</template>
|
<template #label>{{ def.inputLabel }}</template>
|
||||||
<template #caption>
|
<template #caption>
|
||||||
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
||||||
<component v-else :is="def.inputCaption" />
|
<component :is="def.inputCaption" v-else />
|
||||||
</template>
|
</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkTextarea
|
<MkTextarea
|
||||||
|
@ -26,7 +26,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template #label>{{ def.inputLabel }}</template>
|
<template #label>{{ def.inputLabel }}</template>
|
||||||
<template #caption>
|
<template #caption>
|
||||||
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
||||||
<component v-else :is="def.inputCaption" />
|
<component :is="def.inputCaption" v-else />
|
||||||
</template>
|
</template>
|
||||||
</MkTextarea>
|
</MkTextarea>
|
||||||
<MkInput
|
<MkInput
|
||||||
|
@ -41,7 +41,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template #label>{{ def.inputLabel }}</template>
|
<template #label>{{ def.inputLabel }}</template>
|
||||||
<template #caption>
|
<template #caption>
|
||||||
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
||||||
<component v-else :is="def.inputCaption" />
|
<component :is="def.inputCaption" v-else />
|
||||||
</template>
|
</template>
|
||||||
<template #prefix>{{ def.inputPrefix }}</template>
|
<template #prefix>{{ def.inputPrefix }}</template>
|
||||||
<template #suffix>{{ def.inputSuffix }}</template>
|
<template #suffix>{{ def.inputSuffix }}</template>
|
||||||
|
@ -59,7 +59,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template #label>{{ def.inputLabel }}</template>
|
<template #label>{{ def.inputLabel }}</template>
|
||||||
<template #caption>
|
<template #caption>
|
||||||
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
||||||
<component v-else :is="def.inputCaption" />
|
<component :is="def.inputCaption" v-else />
|
||||||
</template>
|
</template>
|
||||||
<template #prefix>{{ def.inputPrefix }}</template>
|
<template #prefix>{{ def.inputPrefix }}</template>
|
||||||
<template #suffix>{{ def.inputSuffix }}</template>
|
<template #suffix>{{ def.inputSuffix }}</template>
|
||||||
|
@ -73,7 +73,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template #label>{{ def.inputLabel }}</template>
|
<template #label>{{ def.inputLabel }}</template>
|
||||||
<template #caption>
|
<template #caption>
|
||||||
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
||||||
<component v-else :is="def.inputCaption" />
|
<component :is="def.inputCaption" v-else />
|
||||||
</template>
|
</template>
|
||||||
<option v-for="option in def.enum" :key="option.value" :value="option.value">{{ option.label }}</option>
|
<option v-for="option in def.enum" :key="option.value" :value="option.value">{{ option.label }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
|
@ -85,7 +85,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template #label>{{ def.inputLabel ?? i18n.ts.enable }}</template>
|
<template #label>{{ def.inputLabel ?? i18n.ts.enable }}</template>
|
||||||
<template #caption>
|
<template #caption>
|
||||||
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
<span v-if="typeof def.inputCaption === 'string'">{{ def.inputCaption }}</span>
|
||||||
<component v-else :is="def.inputCaption" />
|
<component :is="def.inputCaption" v-else />
|
||||||
</template>
|
</template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -26,8 +26,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
|
|
||||||
<XForm
|
<XForm
|
||||||
:def="def"
|
|
||||||
v-model="model[key].value"
|
v-model="model[key].value"
|
||||||
|
:def="def"
|
||||||
:disabled="withUseDefault && model[key].useDefault"
|
:disabled="withUseDefault && model[key].useDefault"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
/>
|
/>
|
||||||
|
@ -73,8 +73,8 @@ const props = withDefaults(defineProps<{
|
||||||
type RolePolicyEditorValueItem = {
|
type RolePolicyEditorValueItem = {
|
||||||
value: GetRolePolicyEditorValuesType<typeof rolePolicyEditorDef[keyof typeof rolePolicyEditorDef]>;
|
value: GetRolePolicyEditorValuesType<typeof rolePolicyEditorDef[keyof typeof rolePolicyEditorDef]>;
|
||||||
} & (
|
} & (
|
||||||
(UD extends true ? { useDefault: boolean } : {}) &
|
(UD extends true ? { useDefault: boolean } : never) &
|
||||||
(WP extends true ? { priority: 0 | 1 | 2 } : {})
|
(WP extends true ? { priority: 0 | 1 | 2 } : never)
|
||||||
);
|
);
|
||||||
|
|
||||||
type RolePolicyEditorValue = {
|
type RolePolicyEditorValue = {
|
||||||
|
|
|
@ -16,7 +16,7 @@ interface RolePolicyEditorItemBase<T = unknown> {
|
||||||
|
|
||||||
export type RolePolicyEditorItemBaseFolderSuffixGetter = {
|
export type RolePolicyEditorItemBaseFolderSuffixGetter = {
|
||||||
folderSuffix: (value: boolean | number | string) => string;
|
folderSuffix: (value: boolean | number | string) => string;
|
||||||
}
|
};
|
||||||
|
|
||||||
interface RolePolicyEditorItemBoolean extends RolePolicyEditorItemBase<boolean> {
|
interface RolePolicyEditorItemBoolean extends RolePolicyEditorItemBase<boolean> {
|
||||||
type: 'boolean';
|
type: 'boolean';
|
||||||
|
|
Loading…
Reference in New Issue