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 */ /* istanbul ignore next */
Affix.install = function(app: App) { Affix.install = function(app: App) {
app.component(Affix.name, Affix); app.component(Affix.name, Affix);
return app;
}; };
export default Affix; export default Affix;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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