ci(#10336): change parameters
This commit is contained in:
parent
36e8988ff7
commit
3ab2a008f2
4 changed files with 7 additions and 8 deletions
|
@ -54,6 +54,7 @@ export const ProfilePageCat = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
parameters: {
|
parameters: {
|
||||||
|
...ProfilePage.parameters,
|
||||||
chromatic: {
|
chromatic: {
|
||||||
/* Your story couldn’t be captured because it exceeds our 25,000,000px limit. Its dimensions are 5,504,893x5,504,892px. Possible ways to resolve:
|
/* Your story couldn’t be captured because it exceeds our 25,000,000px limit. Its dimensions are 5,504,893x5,504,892px. Possible ways to resolve:
|
||||||
* * Separate pages into components
|
* * Separate pages into components
|
||||||
|
|
|
@ -28,6 +28,10 @@ export const Empty = {
|
||||||
},
|
},
|
||||||
parameters: {
|
parameters: {
|
||||||
layout: 'centered',
|
layout: 'centered',
|
||||||
|
chromatic: {
|
||||||
|
/* This component has animations that are implemented with JavaScript. So it's unstable to take a snapshot. */
|
||||||
|
disableSnapshot: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
} satisfies StoryObj<typeof MkPageHeader>;
|
} satisfies StoryObj<typeof MkPageHeader>;
|
||||||
export const OneTab = {
|
export const OneTab = {
|
||||||
|
|
|
@ -52,7 +52,6 @@ import { onMounted, onUnmounted, watch, nextTick, shallowRef } from 'vue';
|
||||||
import { defaultStore } from '@/store';
|
import { defaultStore } from '@/store';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
static?: boolean;
|
|
||||||
tabs?: Tab[];
|
tabs?: Tab[];
|
||||||
tab?: string;
|
tab?: string;
|
||||||
rootEl?: HTMLElement;
|
rootEl?: HTMLElement;
|
||||||
|
@ -128,12 +127,8 @@ async function enter(el: HTMLElement) {
|
||||||
entering = false;
|
entering = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (props.static) {
|
|
||||||
renderTab();
|
|
||||||
} else {
|
|
||||||
setTimeout(renderTab, 170);
|
setTimeout(renderTab, 170);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
function afterEnter(el: HTMLElement) {
|
function afterEnter(el: HTMLElement) {
|
||||||
//el.style.width = '';
|
//el.style.width = '';
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<XTabs v-if="!narrow || hideTitle" :class="$style.tabs" :static="static" :tab="tab" :tabs="tabs" :root-el="el" @update:tab="key => emit('update:tab', key)" @tab-click="onTabClick"/>
|
<XTabs v-if="!narrow || hideTitle" :class="$style.tabs" :tab="tab" :tabs="tabs" :root-el="el" @update:tab="key => emit('update:tab', key)" @tab-click="onTabClick"/>
|
||||||
</template>
|
</template>
|
||||||
<div v-if="(!thin_ && narrow && !hideTitle) || (actions && actions.length > 0)" :class="$style.buttonsRight">
|
<div v-if="(!thin_ && narrow && !hideTitle) || (actions && actions.length > 0)" :class="$style.buttonsRight">
|
||||||
<template v-for="action in actions">
|
<template v-for="action in actions">
|
||||||
|
@ -43,7 +43,6 @@ import { injectPageMetadata } from '@/scripts/page-metadata';
|
||||||
import { $i, openAccountMenu as openAccountMenu_ } from '@/account';
|
import { $i, openAccountMenu as openAccountMenu_ } from '@/account';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
static?: boolean;
|
|
||||||
tabs?: Tab[];
|
tabs?: Tab[];
|
||||||
tab?: string;
|
tab?: string;
|
||||||
actions?: {
|
actions?: {
|
||||||
|
|
Loading…
Reference in a new issue