ant-design-vue/site/components.js

222 lines
6.1 KiB
JavaScript
Raw Normal View History

2019-01-12 11:33:27 +08:00
import Vue from 'vue';
2018-04-08 21:17:20 +08:00
import {
Affix,
2018-06-04 17:09:01 +08:00
Anchor,
2018-04-08 21:17:20 +08:00
AutoComplete,
Alert,
Avatar,
BackTop,
Badge,
Breadcrumb,
Button,
Calendar,
Card,
Collapse,
2018-07-20 16:13:21 +08:00
Carousel,
2018-04-08 21:17:20 +08:00
Cascader,
Checkbox,
Col,
DatePicker,
Divider,
Dropdown,
2018-05-05 17:00:51 +08:00
Form,
2018-04-08 21:17:20 +08:00
Icon,
Input,
InputNumber,
2018-04-20 12:52:31 +08:00
Layout,
2018-06-16 21:30:41 +08:00
List,
2018-04-08 21:17:20 +08:00
LocaleProvider,
message,
Menu,
Modal,
notification,
Pagination,
Popconfirm,
Popover,
Progress,
Radio,
Rate,
Row,
Select,
Slider,
Spin,
Steps,
Switch,
Table,
Transfer,
2018-04-13 18:58:58 +08:00
Tree,
2018-07-11 17:51:20 +08:00
TreeSelect,
2018-04-08 21:17:20 +08:00
Tabs,
Tag,
TimePicker,
Timeline,
Tooltip,
// Mention,
2018-04-13 16:19:50 +08:00
Upload,
2018-04-08 21:17:20 +08:00
// version,
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 21:28:54 +08:00
Drawer,
2018-12-10 11:34:51 +08:00
Skeleton,
2019-01-01 15:33:43 +08:00
Comment,
2019-01-02 20:13:25 +08:00
ConfigProvider,
2019-01-12 11:33:27 +08:00
} from 'ant-design-vue';
2018-04-08 21:17:20 +08:00
2019-01-12 11:33:27 +08:00
Vue.prototype.$message = message;
Vue.prototype.$notification = notification;
Vue.prototype.$info = Modal.info;
Vue.prototype.$success = Modal.success;
Vue.prototype.$error = Modal.error;
Vue.prototype.$warning = Modal.warning;
Vue.prototype.$confirm = Modal.confirm;
/* v1.1.3+ registration methods */
2019-01-12 11:33:27 +08:00
Vue.use(Affix);
Vue.use(Anchor);
Vue.use(AutoComplete);
Vue.use(Alert);
Vue.use(Avatar);
Vue.use(BackTop);
Vue.use(Badge);
Vue.use(Breadcrumb);
Vue.use(Button);
Vue.use(Calendar);
Vue.use(Card);
Vue.use(Collapse);
Vue.use(Carousel);
Vue.use(Cascader);
Vue.use(Checkbox);
Vue.use(Col);
Vue.use(DatePicker);
Vue.use(Divider);
Vue.use(Drawer);
Vue.use(Dropdown);
Vue.use(Form);
Vue.use(Icon);
Vue.use(Input);
Vue.use(InputNumber);
Vue.use(Layout);
Vue.use(List);
Vue.use(LocaleProvider);
Vue.use(Menu);
Vue.use(Modal);
Vue.use(Pagination);
Vue.use(Popconfirm);
Vue.use(Popover);
Vue.use(Progress);
Vue.use(Radio);
Vue.use(Rate);
Vue.use(Row);
Vue.use(Select);
Vue.use(Slider);
Vue.use(Spin);
Vue.use(Steps);
Vue.use(Switch);
Vue.use(Table);
Vue.use(Transfer);
Vue.use(Tree);
Vue.use(TreeSelect);
Vue.use(Tabs);
Vue.use(Tag);
Vue.use(TimePicker);
Vue.use(Timeline);
Vue.use(Tooltip);
Vue.use(Upload);
Vue.use(Skeleton);
Vue.use(Comment);
Vue.use(ConfigProvider);
/* v1.1.2 registration methods */
// Vue.component(Affix.name, Affix) // a-affix
// Vue.component(Anchor.name, Anchor)
// Vue.component(Anchor.Link.name, Anchor.Link)
// Vue.component(AutoComplete.name, AutoComplete)
// Vue.component(AutoComplete.Option.name, AutoComplete.Option)
// Vue.component(AutoComplete.OptGroup.name, AutoComplete.OptGroup)
// Vue.component(Alert.name, Alert)
// Vue.component(Avatar.name, Avatar)
// Vue.component(BackTop.name, BackTop)
// Vue.component(Badge.name, Badge)
// Vue.component(Breadcrumb.name, Breadcrumb)
// Vue.component(Breadcrumb.Item.name, Breadcrumb.Item)
// Vue.component(Button.name, Button)
// Vue.component(Button.Group.name, Button.Group)
// Vue.component(Calendar.name, Calendar)
// Vue.component(Card.name, Card)
// Vue.component(Card.Meta.name, Card.Meta)
// Vue.component(Card.Grid.name, Card.Grid)
// Vue.component(Collapse.name, Collapse)
// Vue.component(Collapse.Panel.name, Collapse.Panel)
// Vue.component(Carousel.name, Carousel)
// Vue.component(Cascader.name, Cascader)
// Vue.component(Checkbox.name, Checkbox)
// Vue.component(Checkbox.Group.name, Checkbox.Group)
// Vue.component(Col.name, Col)
// Vue.component(DatePicker.name, DatePicker)
// Vue.component(DatePicker.MonthPicker.name, DatePicker.MonthPicker)
// Vue.component(DatePicker.RangePicker.name, DatePicker.RangePicker)
// Vue.component(DatePicker.WeekPicker.name, DatePicker.WeekPicker)
// Vue.component(Divider.name, Divider)
// Vue.component(Drawer.name, Drawer)
// Vue.component(Dropdown.name, Dropdown)
// Vue.component(Dropdown.Button.name, Dropdown.Button)
// Vue.component(Form.name, Form)
// Vue.component(Form.Item.name, Form.Item)
// Vue.component(Icon.name, Icon)
// Vue.component(Input.name, Input)
// Vue.component(Input.Group.name, Input.Group)
// Vue.component(Input.Search.name, Input.Search)
// Vue.component(Input.TextArea.name, Input.TextArea)
// Vue.component(InputNumber.name, InputNumber)
// Vue.component(Layout.name, Layout)
// Vue.component(Layout.Header.name, Layout.Header)
// Vue.component(Layout.Footer.name, Layout.Footer)
// Vue.component(Layout.Sider.name, Layout.Sider)
// Vue.component(Layout.Content.name, Layout.Content)
// Vue.component(List.name, List)
// Vue.component(List.Item.name, List.Item)
// Vue.component(List.Item.Meta.name, List.Item.Meta)
// Vue.component(LocaleProvider.name, LocaleProvider)
// Vue.component(Menu.name, Menu)
// Vue.component(Menu.Item.name, Menu.Item)
// Vue.component(Menu.SubMenu.name, Menu.SubMenu)
// Vue.component(Menu.Divider.name, Menu.Divider)
// Vue.component(Menu.ItemGroup.name, Menu.ItemGroup)
// Vue.component(Modal.name, Modal)
// Vue.component(Pagination.name, Pagination)
// Vue.component(Popconfirm.name, Popconfirm)
// Vue.component(Popover.name, Popover)
// Vue.component(Progress.name, Progress)
// Vue.component(Radio.name, Radio)
// Vue.component(Radio.Group.name, Radio.Group)
// Vue.component(Radio.Button.name, Radio.Button)
// Vue.component(Rate.name, Rate)
// Vue.component(Row.name, Row)
// Vue.component(Select.name, Select)
// Vue.component(Select.Option.name, Select.Option)
// Vue.component(Select.OptGroup.name, Select.OptGroup)
// Vue.component(Slider.name, Slider)
// Vue.component(Spin.name, Spin)
// Vue.component(Steps.name, Steps)
// Vue.component(Steps.Step.name, Steps.Step)
// Vue.component(Switch.name, Switch)
// Vue.component(Table.name, Table)
// Vue.component(Table.Column.name, Table.Column)
// Vue.component(Table.ColumnGroup.name, Table.ColumnGroup)
// Vue.component(Transfer.name, Transfer)
// Vue.component(Tree.name, Tree)
// Vue.component(Tree.TreeNode.name, Tree.TreeNode)
// Vue.component(TreeSelect.name, TreeSelect)
// Vue.component(TreeSelect.TreeNode.name, TreeSelect.TreeNode)
// Vue.component(Tabs.name, Tabs)
// Vue.component(Tabs.TabPane.name, Tabs.TabPane)
// Vue.component(Tabs.TabContent.name, Tabs.TabContent)
// Vue.component(Tag.name, Tag)
// Vue.component(Tag.CheckableTag.name, Tag.CheckableTag)
// Vue.component(TimePicker.name, TimePicker)
// Vue.component(Timeline.name, Timeline)
// Vue.component(Timeline.Item.name, Timeline.Item)
// Vue.component(Tooltip.name, Tooltip)
// // Vue.component(Mention.name, Mention)
// Vue.component(Upload.name, Upload)
// Vue.component(Upload.Dragger.name, Upload.Dragger)