fix: use support chain operate

pull/2992/head
tanjinzhou 2020-10-13 19:14:56 +08:00
parent efc7db1b69
commit ac863a6a11
63 changed files with 63 additions and 0 deletions

View File

@ -268,6 +268,7 @@ const Affix = defineComponent({
/* istanbul ignore next */
Affix.install = function(app: App) {
app.component(Affix.name, Affix);
return app;
};
export default Affix;

View File

@ -162,6 +162,7 @@ const Alert = defineComponent({
/* istanbul ignore next */
Alert.install = function(app: App) {
app.component(Alert.name, Alert);
return app;
};
export default Alert;

View File

@ -8,5 +8,6 @@ Anchor.Link = AnchorLink;
Anchor.install = function(app: App) {
app.component(Anchor.name, Anchor);
app.component(Anchor.Link.name, Anchor.Link);
return app;
};
export default Anchor;

View File

@ -138,6 +138,7 @@ AutoComplete.install = function(app: App) {
app.component(AutoComplete.name, AutoComplete);
app.component(AutoComplete.Option.name, AutoComplete.Option);
app.component(AutoComplete.OptGroup.name, AutoComplete.OptGroup);
return app;
};
export default AutoComplete;

View File

@ -4,6 +4,7 @@ import Avatar from './Avatar';
/* istanbul ignore next */
Avatar.install = function(app: App) {
app.component(Avatar.name, Avatar);
return app;
};
export default Avatar;

View File

@ -103,6 +103,7 @@ const BackTop = defineComponent({
/* istanbul ignore next */
BackTop.install = function(app: App) {
app.component(BackTop.name, BackTop);
return app;
};
export default BackTop;

View File

@ -4,6 +4,7 @@ import Badge from './Badge';
/* istanbul ignore next */
Badge.install = function(app: App) {
app.component(Badge.name, Badge);
return app;
};
export default Badge;

View File

@ -11,6 +11,7 @@ Breadcrumb.install = function(app: App) {
app.component(Breadcrumb.name, Breadcrumb);
app.component(BreadcrumbItem.name, BreadcrumbItem);
app.component(BreadcrumbSeparator.name, BreadcrumbSeparator);
return app;
};
export default Breadcrumb;

View File

@ -8,6 +8,7 @@ Button.Group = ButtonGroup;
Button.install = function(app: App) {
app.component(Button.name, Button);
app.component(ButtonGroup.name, ButtonGroup);
return app;
};
export default Button;

View File

@ -255,6 +255,7 @@ const Calendar = defineComponent({
/* istanbul ignore next */
Calendar.install = function(app: App) {
app.component(Calendar.name, Calendar);
return app;
};
export { HeaderProps } from './Header';
export default Calendar;

View File

@ -11,6 +11,7 @@ Card.install = function(app: App) {
app.component(Card.name, Card);
app.component(Meta.name, Meta);
app.component(Grid.name, Grid);
return app;
};
export default Card;

View File

@ -165,6 +165,7 @@ const Carousel = {
/* istanbul ignore next */
Carousel.install = function(app) {
app.component(Carousel.name, Carousel);
return app;
};
export default Carousel;

View File

@ -555,6 +555,7 @@ const Cascader = {
Cascader.install = function(app) {
app.component(Cascader.name, Cascader);
return app;
};
export default Cascader;

View File

@ -7,6 +7,7 @@ Checkbox.Group = CheckboxGroup;
Checkbox.install = function(app) {
app.component(Checkbox.name, Checkbox);
app.component(CheckboxGroup.name, CheckboxGroup);
return app;
};
export default Checkbox;

View File

@ -3,6 +3,7 @@ import { Col } from '../grid';
/* istanbul ignore next */
Col.install = function(app: App) {
app.component(Col.name, Col);
return app;
};
export default Col;

View File

@ -7,6 +7,7 @@ Collapse.Panel = CollapsePanel;
Collapse.install = function(app) {
app.component(Collapse.name, Collapse);
app.component(CollapsePanel.name, CollapsePanel);
return app;
};
export default Collapse;

View File

@ -2,6 +2,7 @@ import ColorPicker from './ColorPicker';
/* istanbul ignore next */
ColorPicker.install = function(app) {
app.component(ColorPicker.name, ColorPicker);
return app;
};
export default ColorPicker;

View File

@ -88,6 +88,7 @@ Comment.displayName = 'AComment';
/* istanbul ignore next */
Comment.install = function(app: App) {
app.component(Comment.name, Comment);
return app;
};
export default Comment;

View File

@ -165,6 +165,7 @@ export const defaultConfigProvider: ConfigConsumerProps = {
/* istanbul ignore next */
ConfigProvider.install = function(app: App) {
app.component(ConfigProvider.name, ConfigProvider);
return app;
};
export default ConfigProvider;

View File

@ -30,6 +30,7 @@ DatePicker.install = function(app) {
app.component(DatePicker.RangePicker.name, DatePicker.RangePicker);
app.component(DatePicker.MonthPicker.name, DatePicker.MonthPicker);
app.component(DatePicker.WeekPicker.name, DatePicker.WeekPicker);
return app;
};
export default DatePicker;

View File

@ -264,6 +264,7 @@ const Descriptions = {
Descriptions.install = function(app) {
app.component(Descriptions.name, Descriptions);
app.component(Descriptions.Item.name, Descriptions.Item);
return app;
};
export default Descriptions;

View File

@ -47,6 +47,7 @@ const Divider = defineComponent({
/* istanbul ignore next */
Divider.install = function(app: App) {
app.component(Divider.name, Divider);
return app;
};
export default Divider;

View File

@ -254,6 +254,7 @@ const Drawer = {
/* istanbul ignore next */
Drawer.install = function(app) {
app.component(Drawer.name, Drawer);
return app;
};
export default Drawer;

View File

@ -10,6 +10,7 @@ Dropdown.Button = DropdownButton;
Dropdown.install = function(app) {
app.component(Dropdown.name, Dropdown);
app.component(DropdownButton.name, DropdownButton);
return app;
};
export default Dropdown;

View File

@ -94,6 +94,7 @@ Empty.props = {
/* istanbul ignore next */
Empty.install = function(app: App) {
app.component(Empty.displayName, Empty);
return app;
};
export default Empty;

View File

@ -7,6 +7,7 @@ export { FormItemProps } from './FormItem';
Form.install = function(app) {
app.component(Form.name, Form);
app.component(Form.Item.name, Form.Item);
return app;
};
export default Form;

View File

@ -11,6 +11,7 @@ Icon.displayName = 'AIcon';
/* istanbul ignore next */
Icon.install = function(app: App) {
app.component(Icon.displayName, Icon);
return app;
};
export default Icon;

View File

@ -224,6 +224,7 @@ const install = function(app: App) {
app.config.globalProperties.$warning = Modal.warning;
app.config.globalProperties.$confirm = Modal.confirm;
app.config.globalProperties.$destroyAll = Modal.destroyAll;
return app;
};
/* istanbul ignore if */

View File

@ -91,6 +91,7 @@ const InputNumber = {
/* istanbul ignore next */
InputNumber.install = function(app) {
app.component(InputNumber.name, InputNumber);
return app;
};
export default InputNumber;

View File

@ -16,6 +16,7 @@ Input.install = function(app) {
app.component(Input.Search.name, Input.Search);
app.component(Input.TextArea.name, Input.TextArea);
app.component(Input.Password.name, Input.Password);
return app;
};
export default Input;

View File

@ -10,5 +10,6 @@ Layout.install = function(app) {
app.component(Layout.Footer.name, Layout.Footer);
app.component(Layout.Sider.name, Layout.Sider);
app.component(Layout.Content.name, Layout.Content);
return app;
};
export default Layout;

View File

@ -283,6 +283,7 @@ List.install = function(app) {
app.component(List.name, List);
app.component(List.Item.name, List.Item);
app.component(List.Item.Meta.displayName, List.Item.Meta);
return app;
};
export default List;

View File

@ -98,6 +98,7 @@ const LocaleProvider = defineComponent({
/* istanbul ignore next */
LocaleProvider.install = function(app: App) {
app.component(LocaleProvider.name, LocaleProvider);
return app;
};
export default LocaleProvider;

View File

@ -180,6 +180,7 @@ const Mentions = {
Mentions.install = function(app) {
app.component(Mentions.name, Mentions);
app.component(Mentions.Option.name, Mentions.Option);
return app;
};
export default Mentions;

View File

@ -303,5 +303,6 @@ Menu.install = function(app) {
app.component(Menu.SubMenu.name, Menu.SubMenu);
app.component(Menu.Divider.name, Menu.Divider);
app.component(Menu.ItemGroup.name, Menu.ItemGroup);
return app;
};
export default Menu;

View File

@ -76,6 +76,7 @@ Modal.destroyAll = function destroyAllFn() {
/* istanbul ignore next */
Modal.install = function(app) {
app.component(Modal.name, Modal);
return app;
};
export default Modal;

View File

@ -138,6 +138,7 @@ const PageHeader = {
/* istanbul ignore next */
PageHeader.install = function(app) {
app.component(PageHeader.name, PageHeader);
return app;
};
export default PageHeader;

View File

@ -5,6 +5,7 @@ export { PaginationProps, PaginationConfig } from './Pagination';
/* istanbul ignore next */
Pagination.install = function(app) {
app.component(Pagination.name, Pagination);
return app;
};
export default Pagination;

View File

@ -153,6 +153,7 @@ const Popconfirm = {
/* istanbul ignore next */
Popconfirm.install = function(app) {
app.component(Popconfirm.name, Popconfirm);
return app;
};
export default Popconfirm;

View File

@ -54,6 +54,7 @@ const Popover = {
/* istanbul ignore next */
Popover.install = function(app) {
app.component(Popover.name, Popover);
return app;
};
export default Popover;

View File

@ -5,6 +5,7 @@ export { ProgressProps } from './progress';
/* istanbul ignore next */
Progress.install = function(app) {
app.component(Progress.name, Progress);
return app;
};
export default Progress;

View File

@ -10,6 +10,7 @@ Radio.install = function(app) {
app.component(Radio.name, Radio);
app.component(Radio.Group.name, Radio.Group);
app.component(Radio.Button.name, Radio.Button);
return app;
};
export { Button, Group };

View File

@ -62,5 +62,6 @@ const Rate = {
/* istanbul ignore next */
Rate.install = function(app) {
app.component(Rate.name, Rate);
return app;
};
export default Rate;

View File

@ -89,5 +89,6 @@ Result.PRESENTED_IMAGE_500 = ExceptionMap[500];
/* istanbul ignore next */
Result.install = function(app) {
app.component(Result.name, Result);
return app;
};
export default Result;

View File

@ -3,6 +3,7 @@ import { Row } from '../grid';
/* istanbul ignore next */
Row.install = function(app) {
app.component(Row.name, Row);
return app;
};
export default Row;

View File

@ -263,5 +263,6 @@ Select.install = function(app: App) {
app.component(Select.name, Select);
app.component(Select.Option.name, Select.Option);
app.component(Select.OptGroup.name, Select.OptGroup);
return app;
};
export default Select;

View File

@ -165,5 +165,6 @@ const Skeleton = {
/* istanbul ignore next */
Skeleton.install = function(app) {
app.component(Skeleton.name, Skeleton);
return app;
};
export default Skeleton;

View File

@ -148,6 +148,7 @@ const Slider = {
/* istanbul ignore next */
Slider.install = function(app) {
app.component(Slider.name, Slider);
return app;
};
export default Slider;

View File

@ -69,6 +69,7 @@ Space.displayName = 'ASpace';
/* istanbul ignore next */
Space.install = function(app: App) {
app.component(Space.displayName, Space);
return app;
};
export default Space;

View File

@ -7,6 +7,7 @@ Spin.setDefaultIndicator = setDefaultIndicator;
/* istanbul ignore next */
Spin.install = function(app) {
app.component(Spin.name, Spin);
return app;
};
export default Spin;

View File

@ -6,6 +6,7 @@ Statistic.Countdown = Countdown;
Statistic.install = function(app) {
app.component(Statistic.name, Statistic);
app.component(Statistic.Countdown.name, Statistic.Countdown);
return app;
};
export default Statistic;

View File

@ -71,6 +71,7 @@ const Steps = {
Steps.install = function(app) {
app.component(Steps.name, Steps);
app.component(Steps.Step.name, Steps.Step);
return app;
};
export default Steps;

View File

@ -81,6 +81,7 @@ const Switch = {
/* istanbul ignore next */
Switch.install = function(app) {
app.component(Switch.name, Switch);
return app;
};
export default Switch;

View File

@ -85,6 +85,7 @@ Table.install = function(app) {
app.component(Table.name, Table);
app.component(Table.Column.name, Table.Column);
app.component(Table.ColumnGroup.name, Table.ColumnGroup);
return app;
};
export default Table;

View File

@ -11,6 +11,7 @@ Tabs.install = function(app: App) {
app.component(Tabs.name, Tabs);
app.component(Tabs.TabPane.name, Tabs.TabPane);
app.component(Tabs.TabContent.name, Tabs.TabContent);
return app;
};
export default Tabs;

View File

@ -136,6 +136,7 @@ Tag.CheckableTag = CheckableTag;
Tag.install = (app: App) => {
app.component(Tag.name, Tag);
app.component(CheckableTag.name, CheckableTag);
return app;
};
export default Tag;

View File

@ -267,6 +267,7 @@ const TimePicker = {
/* istanbul ignore next */
TimePicker.install = function(app) {
app.component(TimePicker.name, TimePicker);
return app;
};
export default TimePicker;

View File

@ -10,6 +10,7 @@ Timeline.Item = TimelineItem;
Timeline.install = function(app) {
app.component(Timeline.name, Timeline);
app.component(TimelineItem.name, TimelineItem);
return app;
};
export default Timeline;

View File

@ -3,6 +3,7 @@ import ToolTip from './Tooltip';
/* istanbul ignore next */
ToolTip.install = function(app) {
app.component(ToolTip.name, ToolTip);
return app;
};
export default ToolTip;

View File

@ -483,6 +483,7 @@ const Transfer = {
/* istanbul ignore next */
Transfer.install = function(app) {
app.component(Transfer.name, Transfer);
return app;
};
export default Transfer;

View File

@ -202,6 +202,7 @@ const TreeSelect = {
TreeSelect.install = function(app) {
app.component(TreeSelect.name, TreeSelect);
app.component('ATreeSelectNode', TreeSelect.TreeNode);
return app;
};
export default TreeSelect;

View File

@ -8,6 +8,7 @@ Tree.install = function(app) {
app.component(Tree.name, Tree);
app.component(Tree.TreeNode.name, Tree.TreeNode);
app.component(DirectoryTree.name, DirectoryTree);
return app;
};
export default Tree;

View File

@ -9,6 +9,7 @@ Upload.Dragger = Dragger;
Upload.install = function(app) {
app.component(Upload.name, Upload);
app.component(Dragger.name, Dragger);
return app;
};
export default Upload;