Skip to content

Commit

Permalink
Merge pull request #150 from IBEC-BOX/feat/erg-header
Browse files Browse the repository at this point in the history
small fixes in header erg & refactor stories
  • Loading branch information
Zh3nyaZh3nya authored Dec 19, 2024
2 parents 57eaf7b + f55f673 commit 4b369d9
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/runtime/components/Pages/TestVuetify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
:text-btn="'Получить консультацию'"
:class-menu-select="'asd'"
:word-button-mobile="'asdsadsadsa'"
:show-button="false"
:set-lang="[
{
code: 'ru',
Expand Down
9 changes: 5 additions & 4 deletions src/runtime/components/Parts/Header/Erg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@
item-value="code"
hide-details="true"
variant="solo"
class="mr-2 mr-sm-4 bg-none erg-header-select"
:class="burger ? 'control-select' : ''"
class="bg-none erg-header-select"
:class="[showButton ? 'mr-2 mr-sm-4' : '', burger ? 'control-select' : '']"
:menu-props="{ class: classMenuSelect }"
v-bind="selectAttrs"
@update:model-value="updateSelectLang"
/>
<v-btn
class="text-none text-body-1 erg-header-button"
rounded="xl"
:class="burger ? 'd-none d-lg-block' : ''"
:class="showButton ? burger ? 'd-none d-lg-block' : '' : 'd-none'"
v-bind="buttonAttrs"
@click="buttonClick"
>
Expand Down Expand Up @@ -250,6 +250,7 @@ const props = defineProps({
bgClassHeader: { type: String, default: () => '' },
colorClassMenu: { type: String, default: () => '' },
burger: { type: Boolean, default: true },
showButton: { type: Boolean, default: true },
columnGapList: { type: Number, default: 32 },
classMenuSelect: { type: String, default: () => 'select-lang-header-menu' },
wordButtonMobile: { type: String, default: () => '' },
Expand Down Expand Up @@ -416,7 +417,7 @@ function buttonClick() {
color: inherit;
}
.erg-header-link {
&-item {
transition: background 0.3s ease;
border-radius: 50px;
padding: 8px 10px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import MyPage from '../runtime/components/Pages/TestVuetify.vue';

export default {
title: 'Example/Page',
title: 'Page/Test',
component: MyPage,
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/vue/configure/story-layout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Vacancies from '../runtime/components/Pages/Vacancies.vue'

// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
export default {
title: 'Parts/Vacancies',
title: 'Page/Vacancies',
component: Vacancies,
tags: ['autodocs'],
};
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import CardScale from '../runtime/components/Parts/Card/Scale.vue'

// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
export default {
title: 'Parts/CardScale',
title: 'Parts/Card Scale',
component: CardScale,
tags: ['autodocs'],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Vacancies from '../runtime/components/Parts/ErgVacancies.vue'

// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
export default {
title: 'Parts/ErgVacancies',
title: 'Parts/Erg Vacancies',
component: Vacancies,
tags: ['autodocs'],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import downloadFile from '../runtime/components/Parts/Files/DownloadFiles.vue'

// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
export default {
title: 'Parts/files/downloadFiles',
title: 'Parts/Files/Download Files',
component: downloadFile,
tags: ['autodocs'],
argTypes: {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Header from '../runtime/components/Parts/Header/Erg.vue';

export default {
title: 'Parts/HeaderERG',
title: 'Parts/Header ERG',
component: Header,
tags: ['autodocs'],
argTypes: {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4b369d9

Please sign in to comment.