mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
chore: update
This commit is contained in:
parent
cd8f5137f7
commit
f9af357292
@ -42,6 +42,11 @@ const props = {
|
|||||||
disabled: {
|
disabled: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
/** 当内容发生变化时,设置 `resize` 可使其自适应容器位置 */
|
||||||
|
resize: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -108,7 +113,7 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
props.block && handleResizeInit();
|
(props.block || props.resize) && handleResizeInit();
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => curIndex.value,
|
() => curIndex.value,
|
||||||
|
@ -317,6 +317,7 @@ onUnmounted(() => removeMatchMedia);
|
|||||||
<div class="p-5">
|
<div class="p-5">
|
||||||
<p :class="pClass">{{ t("panel.pureOverallStyle") }}</p>
|
<p :class="pClass">{{ t("panel.pureOverallStyle") }}</p>
|
||||||
<Segmented
|
<Segmented
|
||||||
|
resize
|
||||||
class="select-none"
|
class="select-none"
|
||||||
:modelValue="overallStyle === 'system' ? 2 : dataTheme ? 1 : 0"
|
:modelValue="overallStyle === 'system' ? 2 : dataTheme ? 1 : 0"
|
||||||
:options="themeOptions"
|
:options="themeOptions"
|
||||||
@ -396,6 +397,7 @@ onUnmounted(() => removeMatchMedia);
|
|||||||
<span v-if="useAppStoreHook().getViewportWidth > 1280">
|
<span v-if="useAppStoreHook().getViewportWidth > 1280">
|
||||||
<p :class="['mt-5', pClass]">{{ t("panel.pureStretch") }}</p>
|
<p :class="['mt-5', pClass]">{{ t("panel.pureStretch") }}</p>
|
||||||
<Segmented
|
<Segmented
|
||||||
|
resize
|
||||||
class="mb-2 select-none"
|
class="mb-2 select-none"
|
||||||
:modelValue="isNumber(settings.stretch) ? 1 : 0"
|
:modelValue="isNumber(settings.stretch) ? 1 : 0"
|
||||||
:options="stretchTypeOptions"
|
:options="stretchTypeOptions"
|
||||||
@ -438,6 +440,7 @@ onUnmounted(() => removeMatchMedia);
|
|||||||
|
|
||||||
<p :class="['mt-4', pClass]">{{ t("panel.pureTagsStyle") }}</p>
|
<p :class="['mt-4', pClass]">{{ t("panel.pureTagsStyle") }}</p>
|
||||||
<Segmented
|
<Segmented
|
||||||
|
resize
|
||||||
class="select-none"
|
class="select-none"
|
||||||
:modelValue="markValue === 'smart' ? 0 : 1"
|
:modelValue="markValue === 'smart' ? 0 : 1"
|
||||||
:options="markOptions"
|
:options="markOptions"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user