You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.8 KiB
JavaScript

import React, { PureComponent } from 'react';
import * as plugins from 'antd';
import CustomBreadcrumb from './Breadcrumb';
class GlobalComponent extends PureComponent {
constructor(props) {
super(props)
this.props = props
this.Affix = plugins.Affix
this.Alert = plugins.Alert
this.Anchor = plugins.Anchor
this.AutoComplete = plugins.AutoComplete
this.Avatar = plugins.Avatar
this.BackTop = plugins.BackTop
this.Badge = plugins.Badge
this.Breadcrumb = plugins.Breadcrumb
this.Button = plugins.Button
this.Calendar = plugins.Calendar
this.Card = plugins.Card
this.Carousel = plugins.Carousel
this.Cascader = plugins.Cascader
this.Checkbox = plugins.Checkbox
this.Col = plugins.Col
this.Collapse = plugins.Collapse
// this.Comment = plugins.Comment
this.ConfigProvider = plugins.ConfigProvider
this.Descriptions = plugins.Descriptions
this.Divider = plugins.Divider
this.Drawer = plugins.Drawer
this.Dropdown = plugins.Dropdown
this.Empty = plugins.Empty
this.Form = plugins.Form
this.Grid = plugins.Grid
this.Image = plugins.Image
this.Input = plugins.Input
this.InputNumber = plugins.InputNumber
this.Layout = plugins.Layout
this.List = plugins.List
this.Mentions = plugins.Mentions
this.Menu = plugins.Menu
this.Modal = plugins.Modal
// this.PageHeader = plugins.PageHeader
this.Pagination = plugins.Pagination
this.Popconfirm = plugins.Popconfirm
this.Popover = plugins.Popover
this.Progress = plugins.Progress
this.Radio = plugins.Radio
this.Rate = plugins.Rate
this.Result = plugins.Result
this.Row = plugins.Row
this.Segmented = plugins.Segmented
this.Select = plugins.Select
this.Skeleton = plugins.Skeleton
this.Slider = plugins.Slider
this.Space = plugins.Space
this.Spin = plugins.Spin
this.Statistic = plugins.Statistic
this.Steps = plugins.Steps
this.Switch = plugins.Switch
this.Table = plugins.Table
this.Tabs = plugins.Tabs
this.Tag = plugins.Tag
this.TimePicker = plugins.TimePicker
this.Timeline = plugins.Timeline
this.Tooltip = plugins.Tooltip
this.Transfer = plugins.Transfer
this.Tree = plugins.Tree
this.TreeSelect = plugins.TreeSelect
this.Typography = plugins.Typography
this.Upload = plugins.Upload
this.message = plugins.message
// 自定义组件
this.CustomBreadcrumb = CustomBreadcrumb;
}
}
export default GlobalComponent;
// 同时导出自定义面包屑组件,方便直接使用
export { CustomBreadcrumb };