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 Table from './packages/common/Table'
|
2019-12-31 21:01:24 +08:00
|
|
|
import DataTable from './packages/common/DataTable'
|
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'
|
2019-08-01 20:00:12 +08:00
|
|
|
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'
|
2019-07-02 13:06:03 +08:00
|
|
|
import Alert from './packages/common/Alert'
|
2019-07-04 16:47:41 +08:00
|
|
|
import DatePicker from './packages/common/DatePicker'
|
2019-07-10 19:07:16 +08:00
|
|
|
import InputNumber from './packages/common/InputNumber'
|
2019-07-15 15:05:56 +08:00
|
|
|
import Radio from './packages/common/Radio'
|
2019-07-22 19:14:47 +08:00
|
|
|
import Form from './packages/common/Form'
|
2019-08-20 19:20:58 +08:00
|
|
|
import Tabs from './packages/common/Tabs'
|
2019-07-22 17:41:56 +08:00
|
|
|
import TimePicker from './packages/common/TimePicker'
|
2019-11-18 18:37:20 +08:00
|
|
|
import Layout from './packages/common/Layout'
|
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'
|
2019-12-12 11:47:07 +08:00
|
|
|
import ConfirmPlugin from './packages/common/Confirm'
|
2019-08-07 11:40:23 +08:00
|
|
|
import Badge from './packages/common/Badge'
|
2019-08-07 14:52:24 +08:00
|
|
|
import Tag from './packages/common/Tag'
|
2019-08-08 16:03:56 +08:00
|
|
|
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'
|
2019-08-13 15:27:11 +08:00
|
|
|
import Popconfirm from './packages/common/Popconfirm'
|
2019-08-13 11:10:45 +08:00
|
|
|
import Anchor from './packages/common/Anchor'
|
2019-08-16 16:48:36 +08:00
|
|
|
import Dropdown from './packages/common/Dropdown'
|
2019-08-16 19:19:59 +08:00
|
|
|
import Popselect from './packages/common/Popselect'
|
2019-11-26 18:54:29 +08:00
|
|
|
import ConfigProvider from './packages/common/ConfigProvider'
|
2019-09-03 19:18:16 +08:00
|
|
|
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'
|
2019-09-04 18:48:03 +08:00
|
|
|
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'
|
2019-10-13 20:16:43 +08:00
|
|
|
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'
|
2019-11-09 22:45:07 +08:00
|
|
|
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'
|
2019-11-19 18:38:01 +08:00
|
|
|
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'
|
2019-11-24 10:49:39 +08:00
|
|
|
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'
|
2019-12-31 18:27:58 +08:00
|
|
|
import NimbusConfirmCard from './packages/deprecated/NimbusConfirmCard'
|
|
|
|
import NimbusServiceLayout from './packages/deprecated/NimbusServiceLayout'
|
|
|
|
import NimbusIcon from './packages/deprecated/NimbusIcon'
|
2019-12-16 14:28:03 +08:00
|
|
|
|
2019-11-14 15:21:29 +08:00
|
|
|
/**
|
|
|
|
* debug usage
|
|
|
|
* to be removed
|
|
|
|
*/
|
|
|
|
import Loader from './packages/base/Loading'
|
|
|
|
import CancelMark from './packages/base/CancelMark'
|
2019-12-16 19:00:14 +08:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-06-28 16:02:40 +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)
|
|
|
|
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
|
|
|
Table.install(Vue)
|
2019-12-31 21:01:24 +08:00
|
|
|
DataTable.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-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-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)
|
2019-07-02 13:06:03 +08:00
|
|
|
Alert.install(Vue)
|
2019-07-04 16:47:41 +08:00
|
|
|
DatePicker.install(Vue)
|
2019-07-10 19:07:16 +08:00
|
|
|
InputNumber.install(Vue)
|
2019-07-15 15:05:56 +08:00
|
|
|
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)
|
2019-08-20 19:20:58 +08:00
|
|
|
Tabs.install(Vue)
|
2019-07-22 17:41:56 +08:00
|
|
|
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)
|
2019-12-12 11:47:07 +08:00
|
|
|
ConfirmPlugin.install(Vue)
|
2019-08-01 20:00:12 +08:00
|
|
|
Progress.install(Vue)
|
2019-08-07 11:40:23 +08:00
|
|
|
Badge.install(Vue)
|
2019-08-07 14:52:24 +08:00
|
|
|
Tag.install(Vue)
|
2019-08-08 16:03:56 +08:00
|
|
|
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)
|
2019-08-13 15:27:11 +08:00
|
|
|
Popconfirm.install(Vue)
|
2019-08-13 11:10:45 +08:00
|
|
|
Anchor.install(Vue)
|
2019-08-16 16:48:36 +08:00
|
|
|
Dropdown.install(Vue)
|
2019-08-16 19:19:59 +08:00
|
|
|
Popselect.install(Vue)
|
2019-11-26 18:54:29 +08:00
|
|
|
ConfigProvider.install(Vue)
|
2019-08-22 23:21:01 +08:00
|
|
|
CancelMark.install(Vue)
|
2019-09-03 19:18:16 +08:00
|
|
|
Transfer.install(Vue)
|
2019-09-04 16:06:07 +08:00
|
|
|
Spin.install(Vue)
|
|
|
|
Drawer.install(Vue)
|
2019-09-04 18:48:03 +08:00
|
|
|
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)
|
2019-10-13 20:16:43 +08:00
|
|
|
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)
|
2019-11-09 22:45:07 +08:00
|
|
|
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)
|
2019-11-19 18:38:01 +08:00
|
|
|
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)
|
2019-11-24 10:49:39 +08:00
|
|
|
Empty.install(Vue)
|
2019-12-07 00:02:31 +08:00
|
|
|
Element.install(Vue)
|
2019-12-10 22:45:25 +08:00
|
|
|
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-12-31 18:27:58 +08:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
*/
|
|
|
|
NimbusServiceLayout.install(Vue)
|
|
|
|
NimbusConfirmCard.install(Vue)
|
|
|
|
NimbusFormCard.install(Vue)
|
|
|
|
NimbusIcon.install(Vue)
|
2019-06-13 15:37:37 +08:00
|
|
|
}
|
|
|
|
|
2019-12-16 14:28:03 +08:00
|
|
|
export default NaiveUI
|