
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
topvisor-ui
Advanced tools
В зависимости от необходимости можно загружать:
один комонент
все комоненты в рамках одной подбиблиотеки
/components/ - папка со всеми js подбиблиотеками и компонентами
/components/{{ libName }} - подбиблиотека компонентов, включает в одном файле все компоненты подбибилиотеки
/components/{{ libName }}/{{ componentName }} - файл компонента
Подключение базовых стилей, переменных палитры и основных компонентов. Стили сложных компонентов рекомендуется грузить ассинхронно.
import 'topvisor-ui/ui.css';
Подключение стилей темы на примере светлой темы.
import 'topvisor-ui/light.css';
Для смены темы необходимо подгрузить файл стилей необходимой темы и сразу отключить стили предыдущей темы.
Пример подключения компонента Button как amd компонент.
requirejs(['topvisor-ui/amd/button/button.min'], TopButton => {
console.log(TopButton);
});
В большинстве случаев группы компонентов грузить отдельно никогда нет смысла, поэтому она вынесены в подбиблиотеки.
Не грузите один и тот же компонент двумя способами, это приведет к тому, что он будет загружен дважды.
Пример подключения подбиблиотеки Forms со всеми ее компонентами:
requirejs(['topvisor-ui/amd/button/button.min'], ({TopButton}) => {
console.log(TopButton);
});
requirejs(['topvisor-ui/amd/forms.min'], TopForms => {
const { TopButton } = TopForms;
console.log(TopForms);
console.log(TopButton);
});
FAQs
Topvisor UI-kit vue
We found that topvisor-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.