Skip to content

Conversation

@Giovaaanniii
Copy link

No description provided.

@Giovaaanniii
Copy link
Author

не понимаю работы состояния open, т.к в active уже состояние open + как я это должен отображать в sb.

message: 'Номер группы',
},
};
export const Hover: Story = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вынеси эту историю в отдельную, типа "Validate"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А чтобы показать hover, можешь использовать pseudo. Посмотри, как это сделано в кнопке и поиске

import VuInput from './VuInput.vue';

const meta = {
title: 'Viribus Unitis/VuInput',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Подключи tags: ['autodocs'], чтобы дока сгенерировалась.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь же можно дефолтные аргументы для всех историй прописать

type: String,
default: ""
},
color: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поскольку у нас дизайн-система, и там всего один вариант цвета, лучше не отдавать это поле. Поставь одно значение и все

type: String,
default: "#000000"
},
variant: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Аналогично здесь -- в ДС всего один вариант, его и оставляем

@BatuevIO
Copy link
Contributor

BatuevIO commented Dec 5, 2025

не понимаю работы состояния open, т.к в active уже состояние open + как я это должен отображать в sb.

Глянул -- вроде бы он уже на уровне либы поддерживается. так что забей. Уже все работает

Copy link
Contributor

@BatuevIO BatuevIO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Последнее исправление, потом все ок

type: String,
default: ""
},
variant: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вроде просил убрать -- ты только в типе заменил. Убери этот проп вообще, и впиши сразу в компонент значение

import { PropType } from 'vue';
type VariantType = "outlined" | "filled" | "underlined" | "plain" | "solo" | "solo-inverted" | "solo-filled"
type VariantType = "outlined"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этот тип не нужен

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants