naive-ui/index.js

185 lines
5.7 KiB
JavaScript
Raw Normal View History

2019-06-13 15:43:26 +08:00
import Card from './packages/common/Card'
import Icon from './packages/common/Icon'
2019-06-13 17:22:06 +08:00
import GradientText from './packages/common/GradientText'
2019-06-13 15:43:26 +08:00
import MasonryGroup from './packages/common/MasonryGroup'
import Table from './packages/common/Table'
2019-07-02 14:02:08 +08:00
import AdvanceTable from './packages/common/AdvanceTable'
2019-06-14 10:59:06 +08:00
import CheckBox from './packages/common/Checkbox'
2019-06-18 14:53:24 +08:00
import RoundButton from './packages/common/Button'
2019-06-14 11:26:46 +08:00
import Switch from './packages/common/Switch'
2019-06-14 19:33:41 +08:00
import Select from './packages/common/Select'
2019-08-01 12:01:04 +08:00
import Cascader from './packages/common/Cascader'
2019-10-25 15:50:09 +08:00
import CustomInput from './packages/common/CustomInput'
2019-06-17 14:29:32 +08:00
import Modal from './packages/common/Modal'
2019-06-18 18:09:42 +08:00
import Input from './packages/common/Input'
2019-06-20 19:10:53 +08:00
import Message from './packages/common/Message'
2019-06-21 10:30:07 +08:00
import Notification from './packages/common/Notification'
2019-06-23 14:19:09 +08:00
import Pagination from './packages/common/Pagination'
import Progress from './packages/common/Progress'
2019-06-25 11:09:11 +08:00
import Tooltip from './packages/common/Tooltip'
2019-07-11 19:51:59 +08:00
import Popup from './packages/common/Popover'
import Alert from './packages/common/Alert'
import DatePicker from './packages/common/DatePicker'
import InputNumber from './packages/common/InputNumber'
import Radio from './packages/common/Radio'
2019-07-22 19:14:47 +08:00
import Form from './packages/common/Form'
import Tabs from './packages/common/Tabs'
import TimePicker from './packages/common/TimePicker'
2019-11-18 18:37:20 +08:00
import Layout from './packages/common/Layout'
2019-06-13 15:43:26 +08:00
import ServiceLayout from './packages/nimbus/ServiceLayout'
2019-11-09 14:19:07 +08:00
import NimbusIcon from './packages/deprecated/Icon'
2019-07-29 17:57:00 +08:00
import Scrollbar from './packages/common/Scrollbar'
2019-08-01 14:52:52 +08:00
import Steps from './packages/common/Steps'
import ConfirmPlugin from './packages/common/Confirm'
2019-08-07 11:40:23 +08:00
import Badge from './packages/common/Badge'
import Tag from './packages/common/Tag'
import BackTop from './packages/common/BackTop'
2019-08-08 18:00:30 +08:00
import Divider from './packages/common/Divider'
2019-08-12 14:30:08 +08:00
import Collapse from './packages/common/Collapse'
2019-08-12 18:57:44 +08:00
import Timeline from './packages/common/Timeline'
import Popconfirm from './packages/common/Popconfirm'
import Anchor from './packages/common/Anchor'
2019-08-16 16:48:36 +08:00
import Dropdown from './packages/common/Dropdown'
import Popselect from './packages/common/Popselect'
2019-11-26 18:54:29 +08:00
import ConfigProvider from './packages/common/ConfigProvider'
import Transfer from './packages/common/Transfer'
2019-09-04 16:06:07 +08:00
import Spin from './packages/common/Spin'
import Drawer from './packages/common/Drawer'
import Time from './packages/common/Time'
import LoadingBar from './packages/common/LoadingBar'
2019-09-05 18:06:01 +08:00
import Slider from './packages/common/Slider'
import Tree from './packages/common/Tree'
2019-09-20 17:39:18 +08:00
import Grid from './packages/common/Grid'
import Affix from './packages/common/Affix'
2019-10-28 18:29:52 +08:00
import Statistic from './packages/common/Statistic'
2019-10-29 12:38:42 +08:00
import Breadcrumb from './packages/common/Breadcrumb'
import ConfigConsumer from './packages/common/ConfigConsumer'
2019-11-12 15:04:42 +08:00
import Descriptions from './packages/common/Descriptions'
import List from './packages/common/List'
2019-11-27 17:01:21 +08:00
import Menu from './packages/common/Menu'
import Avatar from './packages/common/Avator'
2019-11-21 23:50:53 +08:00
import Result from './packages/common/Result'
2019-11-22 16:54:32 +08:00
import Thing from './packages/common/Thing'
2019-11-22 16:58:13 +08:00
import AutoComplete from './packages/common/AutoComplete'
import Empty from './packages/common/Empty'
2019-12-07 00:02:31 +08:00
import Element from './packages/common/Element'
2019-12-13 22:34:38 +08:00
import Log from './packages/common/Log'
2019-12-13 23:55:19 +08:00
import Code from './packages/common/Code'
2019-12-20 16:53:59 +08:00
import Typography from './packages/common/Typography'
2019-11-18 18:37:20 +08:00
2019-12-23 16:31:26 +08:00
import zhCN from './packages/locale/zhCN'
import enUS from './packages/locale/enUS'
2019-12-16 14:28:03 +08:00
/**
* Deprecated Components
*/
import NimbusFormCard from './packages/deprecated/NimbusFormCard'
import NimbusConfirmCard from './packages/deprecated/ConfirmCard'
/**
* debug usage
* to be removed
*/
import Loader from './packages/base/Loading'
import CancelMark from './packages/base/CancelMark'
import IconTransition from './packages/transition/IconSwitchTransition'
2019-06-13 15:37:37 +08:00
2019-12-16 14:28:03 +08:00
const NaiveUI = {
2019-12-13 23:55:19 +08:00
install,
2019-12-23 16:31:26 +08:00
setHljs,
setHighlightjs: setHljs,
locales: {
'zh-CN': zhCN,
'en-US': enUS
},
fallbackLocale: enUS,
addLocale
}
function addLocale () {
2019-12-13 23:55:19 +08:00
}
function setHljs (hljs) {
2019-12-16 14:28:03 +08:00
NaiveUI.hljs = hljs
2019-12-13 23:55:19 +08:00
}
function install (Vue) {
2019-12-16 14:28:03 +08:00
Vue.prototype.$naive = NaiveUI
2019-06-13 15:37:37 +08:00
Card.install(Vue)
Icon.install(Vue)
ServiceLayout.install(Vue)
Loader.install(Vue)
2019-11-18 18:37:20 +08:00
Layout.install(Vue)
2019-06-13 17:22:06 +08:00
GradientText.install(Vue)
2019-06-13 15:37:37 +08:00
MasonryGroup.install(Vue)
Table.install(Vue)
2019-07-03 10:56:41 +08:00
AdvanceTable.install(Vue)
2019-06-14 10:59:06 +08:00
CheckBox.install(Vue)
RoundButton.install(Vue)
2019-06-14 11:26:46 +08:00
Switch.install(Vue)
2019-06-14 19:33:41 +08:00
Select.install(Vue)
2019-06-17 14:29:32 +08:00
Modal.install(Vue)
2019-06-17 16:12:10 +08:00
NimbusFormCard.install(Vue)
2019-06-18 18:09:42 +08:00
Input.install(Vue)
2019-06-20 19:10:53 +08:00
Message.install(Vue)
2019-06-21 10:30:07 +08:00
Notification.install(Vue)
2019-06-21 13:11:06 +08:00
NimbusConfirmCard.install(Vue)
2019-06-23 14:19:09 +08:00
Pagination.install(Vue)
2019-06-25 11:09:11 +08:00
Tooltip.install(Vue)
2019-07-01 10:30:00 +08:00
Popup.install(Vue)
Alert.install(Vue)
DatePicker.install(Vue)
InputNumber.install(Vue)
2019-07-15 11:34:30 +08:00
NimbusIcon.install(Vue)
Radio.install(Vue)
2019-08-01 12:01:04 +08:00
Cascader.install(Vue)
2019-10-25 15:50:09 +08:00
CustomInput.install(Vue)
2019-07-22 19:14:47 +08:00
Form.install(Vue)
Tabs.install(Vue)
TimePicker.install(Vue)
2019-07-29 17:57:00 +08:00
Scrollbar.install(Vue)
2019-08-01 14:52:52 +08:00
Steps.install(Vue)
ConfirmPlugin.install(Vue)
Progress.install(Vue)
2019-08-07 11:40:23 +08:00
Badge.install(Vue)
Tag.install(Vue)
BackTop.install(Vue)
2019-08-08 18:00:30 +08:00
Divider.install(Vue)
2019-08-12 14:30:08 +08:00
Collapse.install(Vue)
2019-08-12 18:57:44 +08:00
Timeline.install(Vue)
Popconfirm.install(Vue)
Anchor.install(Vue)
2019-08-16 16:48:36 +08:00
Dropdown.install(Vue)
Popselect.install(Vue)
2019-11-26 18:54:29 +08:00
ConfigProvider.install(Vue)
CancelMark.install(Vue)
Transfer.install(Vue)
2019-09-04 16:06:07 +08:00
Spin.install(Vue)
Drawer.install(Vue)
LoadingBar.install(Vue)
Time.install(Vue)
2019-09-05 18:06:01 +08:00
Slider.install(Vue)
Tree.install(Vue)
2019-09-20 17:39:18 +08:00
Grid.install(Vue)
Affix.install(Vue)
2019-10-28 18:29:52 +08:00
Statistic.install(Vue)
2019-10-29 12:38:42 +08:00
Breadcrumb.install(Vue)
ConfigConsumer.install(Vue)
2019-11-12 15:04:42 +08:00
Descriptions.install(Vue)
List.install(Vue)
2019-11-27 17:01:21 +08:00
Menu.install(Vue)
Avatar.install(Vue)
2019-11-21 23:50:53 +08:00
Result.install(Vue)
2019-11-22 16:54:32 +08:00
Thing.install(Vue)
2019-11-22 16:58:13 +08:00
AutoComplete.install(Vue)
Empty.install(Vue)
2019-12-07 00:02:31 +08:00
Element.install(Vue)
IconTransition.install(Vue)
2019-12-13 22:34:38 +08:00
Log.install(Vue)
2019-12-13 23:55:19 +08:00
Code.install(Vue)
2019-12-20 16:53:59 +08:00
Typography.install(Vue)
2019-06-13 15:37:37 +08:00
}
2019-12-16 14:28:03 +08:00
export default NaiveUI