chore: update

This commit is contained in:
xiaoxian521 2024-04-17 15:40:22 +08:00
parent cd8f5137f7
commit f9af357292
2 changed files with 9 additions and 1 deletions

View File

@ -42,6 +42,11 @@ const props = {
disabled: {
type: Boolean,
default: false
},
/** 当内容发生变化时,设置 `resize` 可使其自适应容器位置 */
resize: {
type: Boolean,
default: false
}
};
@ -108,7 +113,7 @@ export default defineComponent({
});
}
props.block && handleResizeInit();
(props.block || props.resize) && handleResizeInit();
watch(
() => curIndex.value,

View File

@ -317,6 +317,7 @@ onUnmounted(() => removeMatchMedia);
<div class="p-5">
<p :class="pClass">{{ t("panel.pureOverallStyle") }}</p>
<Segmented
resize
class="select-none"
:modelValue="overallStyle === 'system' ? 2 : dataTheme ? 1 : 0"
:options="themeOptions"
@ -396,6 +397,7 @@ onUnmounted(() => removeMatchMedia);
<span v-if="useAppStoreHook().getViewportWidth > 1280">
<p :class="['mt-5', pClass]">{{ t("panel.pureStretch") }}</p>
<Segmented
resize
class="mb-2 select-none"
:modelValue="isNumber(settings.stretch) ? 1 : 0"
:options="stretchTypeOptions"
@ -438,6 +440,7 @@ onUnmounted(() => removeMatchMedia);
<p :class="['mt-4', pClass]">{{ t("panel.pureTagsStyle") }}</p>
<Segmented
resize
class="select-none"
:modelValue="markValue === 'smart' ? 0 : 1"
:options="markOptions"