chore: update

This commit is contained in:
xiaoxian521 2024-04-17 15:25:22 +08:00
parent 34ed020328
commit cd8f5137f7

View File

@ -147,7 +147,8 @@ function setFalse(Doms): any {
}
/** 页宽 */
const stretchTypeOptions: Array<OptionsType> = [
const stretchTypeOptions = computed<Array<OptionsType>>(() => {
return [
{
label: t("panel.pureStretchFixed"),
tip: t("panel.pureStretchFixedTip"),
@ -158,7 +159,8 @@ const stretchTypeOptions: Array<OptionsType> = [
tip: t("panel.pureStretchCustomTip"),
value: "custom"
}
];
];
});
const setStretch = value => {
settings.stretch = value;
@ -219,7 +221,8 @@ const themeOptions = computed<Array<OptionsType>>(() => {
];
});
const markOptions: Array<OptionsType> = [
const markOptions = computed<Array<OptionsType>>(() => {
return [
{
label: t("panel.pureTagsStyleSmart"),
tip: t("panel.pureTagsStyleSmartTip"),
@ -230,7 +233,8 @@ const markOptions: Array<OptionsType> = [
tip: t("panel.pureTagsStyleCardTip"),
value: "card"
}
];
];
});
/** 设置导航模式 */
function setLayoutModel(layout: string) {