mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 04:58:16 +08:00
style: fix style according to eslint
This commit is contained in:
parent
740abe9cd0
commit
eba3acf503
@ -12,208 +12,208 @@ if (ENV !== 'production' &&
|
|||||||
}
|
}
|
||||||
/* @remove-on-es-build-end */
|
/* @remove-on-es-build-end */
|
||||||
|
|
||||||
import { default as Affix } from './affix';
|
import { default as Affix } from './affix'
|
||||||
|
|
||||||
// import { default as Anchor } from './anchor'
|
// import { default as Anchor } from './anchor'
|
||||||
|
|
||||||
import { default as AutoComplete } from './auto-complete';
|
import { default as AutoComplete } from './auto-complete'
|
||||||
|
|
||||||
import { default as Alert } from './alert';
|
import { default as Alert } from './alert'
|
||||||
|
|
||||||
import { default as Avatar } from './avatar';
|
import { default as Avatar } from './avatar'
|
||||||
|
|
||||||
import { default as BackTop } from './back-top';
|
import { default as BackTop } from './back-top'
|
||||||
|
|
||||||
import { default as Badge } from './badge';
|
import { default as Badge } from './badge'
|
||||||
|
|
||||||
import { default as Breadcrumb } from './breadcrumb';
|
import { default as Breadcrumb } from './breadcrumb'
|
||||||
|
|
||||||
import { default as Button } from './button';
|
import { default as Button } from './button'
|
||||||
|
|
||||||
import { default as Calendar } from './calendar';
|
import { default as Calendar } from './calendar'
|
||||||
|
|
||||||
import { default as Card } from './card';
|
import { default as Card } from './card'
|
||||||
|
|
||||||
import { default as Collapse } from './collapse';
|
import { default as Collapse } from './collapse'
|
||||||
|
|
||||||
// import { default as Carousel } from './carousel'
|
// import { default as Carousel } from './carousel'
|
||||||
|
|
||||||
import { default as Cascader } from './cascader';
|
import { default as Cascader } from './cascader'
|
||||||
|
|
||||||
import { default as Checkbox } from './checkbox';
|
import { default as Checkbox } from './checkbox'
|
||||||
|
|
||||||
import { default as Col } from './col';
|
import { default as Col } from './col'
|
||||||
|
|
||||||
import { default as DatePicker } from './date-picker';
|
import { default as DatePicker } from './date-picker'
|
||||||
|
|
||||||
import { default as Divider } from './divider';
|
import { default as Divider } from './divider'
|
||||||
|
|
||||||
import { default as Dropdown } from './dropdown';
|
import { default as Dropdown } from './dropdown'
|
||||||
|
|
||||||
// import { default as Form } from './form'
|
// import { default as Form } from './form'
|
||||||
|
|
||||||
import { default as Icon } from './icon';
|
import { default as Icon } from './icon'
|
||||||
|
|
||||||
import { default as Input } from './input';
|
import { default as Input } from './input'
|
||||||
|
|
||||||
import { default as InputNumber } from './input-number';
|
import { default as InputNumber } from './input-number'
|
||||||
|
|
||||||
// import { default as Layout } from './layout'
|
// import { default as Layout } from './layout'
|
||||||
|
|
||||||
// import { default as List } from './list'
|
// import { default as List } from './list'
|
||||||
|
|
||||||
import { default as LocaleProvider } from './locale-provider';
|
import { default as LocaleProvider } from './locale-provider'
|
||||||
|
|
||||||
import { default as message } from './message';
|
import { default as message } from './message'
|
||||||
|
|
||||||
import { default as Menu } from './menu';
|
import { default as Menu } from './menu'
|
||||||
|
|
||||||
import { default as Modal } from './modal';
|
import { default as Modal } from './modal'
|
||||||
|
|
||||||
import { default as notification } from './notification';
|
import { default as notification } from './notification'
|
||||||
|
|
||||||
import { default as Pagination } from './pagination';
|
import { default as Pagination } from './pagination'
|
||||||
|
|
||||||
import { default as Popconfirm } from './popconfirm';
|
import { default as Popconfirm } from './popconfirm'
|
||||||
|
|
||||||
import { default as Popover } from './popover';
|
import { default as Popover } from './popover'
|
||||||
|
|
||||||
import { default as Progress } from './progress';
|
import { default as Progress } from './progress'
|
||||||
|
|
||||||
import { default as Radio } from './radio';
|
import { default as Radio } from './radio'
|
||||||
|
|
||||||
import { default as Rate } from './rate';
|
import { default as Rate } from './rate'
|
||||||
|
|
||||||
import { default as Row } from './row';
|
import { default as Row } from './row'
|
||||||
|
|
||||||
import { default as Select } from './select';
|
import { default as Select } from './select'
|
||||||
|
|
||||||
import { default as Slider } from './slider';
|
import { default as Slider } from './slider'
|
||||||
|
|
||||||
import { default as Spin } from './spin';
|
import { default as Spin } from './spin'
|
||||||
|
|
||||||
import { default as Steps } from './steps';
|
import { default as Steps } from './steps'
|
||||||
|
|
||||||
import { default as Switch } from './switch';
|
import { default as Switch } from './switch'
|
||||||
|
|
||||||
import { default as Table } from './table';
|
import { default as Table } from './table'
|
||||||
|
|
||||||
import { default as Transfer } from './transfer';
|
import { default as Transfer } from './transfer'
|
||||||
|
|
||||||
import { default as Tree } from './tree';
|
import { default as Tree } from './tree'
|
||||||
|
|
||||||
// import { default as TreeSelect } from './tree-select'
|
// import { default as TreeSelect } from './tree-select'
|
||||||
|
|
||||||
import tabs, { default as Tabs } from './tabs';
|
import tabs, { default as Tabs } from './tabs'
|
||||||
|
|
||||||
import { default as Tag } from './tag';
|
import { default as Tag } from './tag'
|
||||||
|
|
||||||
import { default as TimePicker } from './time-picker';
|
import { default as TimePicker } from './time-picker'
|
||||||
|
|
||||||
import { default as Timeline } from './timeline';
|
import { default as Timeline } from './timeline'
|
||||||
|
|
||||||
import { default as Tooltip } from './tooltip';
|
import { default as Tooltip } from './tooltip'
|
||||||
|
|
||||||
// import { default as Mention } from './mention'
|
// import { default as Mention } from './mention'
|
||||||
|
|
||||||
import { default as Upload } from './upload';
|
import { default as Upload } from './upload'
|
||||||
|
|
||||||
import { default as version } from './version';
|
import { default as version } from './version'
|
||||||
|
|
||||||
const components = [
|
const components = [
|
||||||
Affix,
|
Affix,
|
||||||
AutoComplete,
|
AutoComplete,
|
||||||
Alert,
|
Alert,
|
||||||
Avatar,
|
Avatar,
|
||||||
BackTop,
|
BackTop,
|
||||||
Badge,
|
Badge,
|
||||||
Breadcrumb,
|
Breadcrumb,
|
||||||
Breadcrumb.Item,
|
Breadcrumb.Item,
|
||||||
Button,
|
Button,
|
||||||
Button.Group,
|
Button.Group,
|
||||||
Calendar,
|
Calendar,
|
||||||
Card,
|
Card,
|
||||||
Card.Meta,
|
Card.Meta,
|
||||||
Card.Grid,
|
Card.Grid,
|
||||||
Collapse,
|
Collapse,
|
||||||
Collapse.Panel,
|
Collapse.Panel,
|
||||||
Cascader,
|
Cascader,
|
||||||
Checkbox,
|
Checkbox,
|
||||||
Checkbox.Group,
|
Checkbox.Group,
|
||||||
Col,
|
Col,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
DatePicker.MonthPicker,
|
DatePicker.MonthPicker,
|
||||||
DatePicker.RangePicker,
|
DatePicker.RangePicker,
|
||||||
DatePicker.WeekPicker,
|
DatePicker.WeekPicker,
|
||||||
Divider,
|
Divider,
|
||||||
Dropdown,
|
Dropdown,
|
||||||
Dropdown.Button,
|
Dropdown.Button,
|
||||||
Icon,
|
Icon,
|
||||||
Input,
|
Input,
|
||||||
Input.Group,
|
Input.Group,
|
||||||
Input.Search,
|
Input.Search,
|
||||||
Input.TextArea,
|
Input.TextArea,
|
||||||
InputNumber,
|
InputNumber,
|
||||||
LocaleProvider,
|
LocaleProvider,
|
||||||
Menu,
|
Menu,
|
||||||
Menu.Item,
|
Menu.Item,
|
||||||
Menu.SubMenu,
|
Menu.SubMenu,
|
||||||
Menu.Divider,
|
Menu.Divider,
|
||||||
Menu.ItemGroup,
|
Menu.ItemGroup,
|
||||||
Modal,
|
Modal,
|
||||||
Pagination,
|
Pagination,
|
||||||
Popconfirm,
|
Popconfirm,
|
||||||
Popover,
|
Popover,
|
||||||
Progress,
|
Progress,
|
||||||
Radio,
|
Radio,
|
||||||
Radio.Group,
|
Radio.Group,
|
||||||
Radio.Button,
|
Radio.Button,
|
||||||
Rate,
|
Rate,
|
||||||
Row,
|
Row,
|
||||||
Select,
|
Select,
|
||||||
Select.Option,
|
Select.Option,
|
||||||
Select.OptGroup,
|
Select.OptGroup,
|
||||||
Slider,
|
Slider,
|
||||||
Spin,
|
Spin,
|
||||||
Steps,
|
Steps,
|
||||||
Steps.Step,
|
Steps.Step,
|
||||||
Switch,
|
Switch,
|
||||||
Table,
|
Table,
|
||||||
Table.Column,
|
Table.Column,
|
||||||
Table.ColumnGroup,
|
Table.ColumnGroup,
|
||||||
Transfer,
|
Transfer,
|
||||||
Tree,
|
Tree,
|
||||||
Tree.TreeNode,
|
Tree.TreeNode,
|
||||||
Tabs,
|
Tabs,
|
||||||
Tabs.TabPane,
|
Tabs.TabPane,
|
||||||
Tag,
|
Tag,
|
||||||
Tag.CheckableTag,
|
Tag.CheckableTag,
|
||||||
TimePicker,
|
TimePicker,
|
||||||
Timeline,
|
Timeline,
|
||||||
Timeline.Item,
|
Timeline.Item,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
Upload,
|
Upload,
|
||||||
Upload.Dragger,
|
Upload.Dragger,
|
||||||
];
|
]
|
||||||
|
|
||||||
const install = function(Vue) {
|
const install = function (Vue) {
|
||||||
components.map(component => {
|
components.map(component => {
|
||||||
Vue.component(component.name, component);
|
Vue.component(component.name, component)
|
||||||
});
|
})
|
||||||
|
|
||||||
Vue.prototype.$message = message;
|
Vue.prototype.$message = message
|
||||||
Vue.prototype.$notification = notification;
|
Vue.prototype.$notification = notification
|
||||||
Vue.prototype.$info = Modal.info;
|
Vue.prototype.$info = Modal.info
|
||||||
Vue.prototype.$success = Modal.success;
|
Vue.prototype.$success = Modal.success
|
||||||
Vue.prototype.$error = Modal.error;
|
Vue.prototype.$error = Modal.error
|
||||||
Vue.prototype.$warning = Modal.warning;
|
Vue.prototype.$warning = Modal.warning
|
||||||
Vue.prototype.$confirm = Modal.confirm;
|
Vue.prototype.$confirm = Modal.confirm
|
||||||
}
|
}
|
||||||
|
|
||||||
const antd = {
|
const antd = {
|
||||||
version,
|
version,
|
||||||
install,
|
install,
|
||||||
...components
|
...components,
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.default = module.exports = antd;
|
module.exports.default = module.exports = antd
|
||||||
|
Loading…
Reference in New Issue
Block a user