@mottor/ant-design-vue
An enterprise-class UI design language and Vue-based implementation
3,665
| Install | |
|---|---|
npm install @mottor/ant-design-vue |
|
| Latest Version: | 1.0.25 |
| Vue: | 2 · 3 |
| License: | MIT |
| Last Updated: | Nov 1, 2021 |
| Links: | GitHub · npm |
Maintainer: romanovalpm
Ant Design Vue
by Mottor 💪
Последняя синхронизированная версия оригинального Ant Design Vue: 1.5.5
Режим разработки и предпросмотра стилей
nvm use
npm run start
Основные изменения по сравнению с оригинальным Ant Design Vue
-
Изменены стили отдельных элементов
-
Возможность добавлять свои иконки. Подробнее в icons.md
-
Возможность растягивать компонент Select по всю ширину родительского элемента. Для этого нужно добавить атрибут
:full-width="true"
<a-select default-value="lucy" :full-width="true">
<a-select-option value="jack">
Jack
</a-select-option>
<a-select-option value="lucy">
Very long option.....
</a-select-option>
</a-select>
- Возможность убирать стрелку у Popover и Tooltip. Для этого нужно добавить атрибут
arrow(bool).
Пример:
<a-popover placement="bottom" :arrow="false">
<template slot="content">
<p>Content</p>
<p>Content</p>
</template>
<template slot="title">
<span>Title</span>
</template>
<a-button>Bottom</a-button>
</a-popover>
- Новый стиль вкладок (Tab) - убираются отступы, полоска выделения становится шириной с текст.
Для включения нужно добавить атрибут
:new-style="true"
<a-tabs default-active-key="1" :new-style="true">
<a-tab-pane key="1" tab="Tab 1">
Tab 1
</a-tab-pane>
<a-tab-pane key="2" tab="Tab 2">
Tab 2
</a-tab-pane>
</a-tabs>
- Возможность растягивать компонент a-radio-group по всю ширину родительского элемента.
Для этого нужно добавить атрибут
:full-width="true"
<a-radio-group default-value="1" :full-width="true">
<a-radio-button value="1">1</a-radio-button>
<a-radio-button value="2">test</a-radio-button>
<a-radio-button value="3">Very long option.....</a-radio-button>
</a-radio-group>
- Возможность добавить иконки к пунктам Select. Для этого нужно добавить атрибут
:show-selected-icon="true".
<a-select default-value="lucy" style="width: 120px" :show-selected-icon="true">
<a-icon slot="menuItemSelectedIcon" type="smile"/>
<a-select-option value="jack">
Jack
</a-select-option>
<a-select-option value="lucy">
Lucy
</a-select-option>
</a-select>
По умолчанию иконка - галочка:
<a-select default-value="lucy" style="width: 120px" :show-selected-icon="true">
<a-select-option value="jack">
Jack
</a-select-option>
<a-select-option value="lucy">
Lucy
</a-select-option>
</a-select>
- У компонента a-input-search добавлены опции:
icon-position(after,before) - положение иконки с лупой, по умолчанию (after)- после поля вводаdisable-icon-events(bool) - отключает кликабельность иконки с лупой
<a-input-search
icon-position="before"
:disable-icon-events="true"
placeholder="icon-position=before"
style="width: 200px" />
- Добавлены компоненты типографики:
<a-title>h1. Ant Design</a-title>
<a-title :level="2">h2. Ant Design</a-title>
<a-title :level="3">h3. Ant Design</a-title>
<a-title :level="4">h4. Ant Design</a-title>
<a-text>Ant Design</a-text>
<a-text type="secondary">Ant Design</a-text>
<a-text type="warning">Ant Design</a-text>
<a-text type="danger">Ant Design</a-text>
<a-text disabled>Ant Design</a-text>
<a-text mark>Ant Design</a-text>
<a-text code>Ant Design</a-text>
<a-text underline>Ant Design</a-text>
<a-text delete>Ant Design</a-text>
<a-text strong>Ant Design</a-text>
<a-paragraph :editable="{onChange: () => {}}">Test paragraph</a-paragraph>
<a-paragraph copyable>This is a copyable text.</a-paragraph>
<a-paragraph :copyable="{text: 'Hello, Ant Design!'}">Replace copy text.</a-paragraph>
<a-paragraph :ellipsis="{rows: 3, expandable: true}">
Ant Design, a design language for background applications, is refined by Ant UED Team. Ant
Design, a design language for background applications, is refined by Ant UED Team. Ant Design,
a design language for background applications, is refined by Ant UED Team. Ant Design, a
design language for background applications, is refined by Ant UED Team. Ant Design, a design
</a-paragraph>
Related Packages
@zhennann/ant-design-vue
An enterprise-class UI design language and Vue-based implementation
11,423
21,686
ant-design-vue-hefei
An enterprise-class UI design language and Vue-based implementation
6,633
21,686
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.25 | >=2.6.0 | MIT | |
| 1.0.24 | >=2.6.0 | MIT | |
| 1.0.23 | >=2.6.0 | MIT | |
| 1.0.22 | >=2.6.0 | MIT | |
| 1.0.21 | >=2.6.0 | MIT | |
| 1.0.20 | >=2.6.0 | MIT | |
| 1.0.19 | >=2.6.0 | MIT | |
| 1.0.18 | >=2.6.0 | MIT | |
| 1.0.17 | >=2.6.0 | MIT | |
| 1.0.16 | >=2.6.0 | MIT | |
| 1.0.15 | >=2.6.0 | MIT | |
| 1.0.14 | >=2.6.0 | MIT | |
| 1.0.13 | >=2.6.0 | MIT | |
| 1.0.12 | >=2.6.0 | MIT | |
| 1.0.11 | >=2.6.0 | MIT | |
| 1.0.10 | >=2.6.0 | MIT | |
| 1.0.9 | >=2.6.0 | MIT | |
| 1.0.8 | >=2.6.0 | MIT | |
| 1.0.7 | >=2.6.0 | MIT | |
| 1.0.6 | >=2.6.0 | MIT | |
| 1.0.5 | >=2.6.0 | MIT | |
| 1.0.4 | >=2.6.0 | MIT | |
| 1.0.3 | >=2.6.0 | MIT | |
| 1.0.2 | >=2.6.0 | MIT | |
| 1.0.1 | >=2.6.0 | MIT | |
| 1.0.0 | >=2.6.0 | MIT |