New component: Scroll
This commit is contained in:
parent
d9e0bcc987
commit
be01f0b4bb
9 changed files with 399 additions and 9 deletions
14
src/index.js
14
src/index.js
|
@ -23,6 +23,7 @@ import Form from './components/form';
|
|||
import Icon from './components/icon';
|
||||
import Input from './components/input';
|
||||
import InputNumber from './components/input-number';
|
||||
import Scroll from './components/scroll';
|
||||
import LoadingBar from './components/loading-bar';
|
||||
import Menu from './components/menu';
|
||||
import Message from './components/message';
|
||||
|
@ -46,8 +47,8 @@ import Tooltip from './components/tooltip';
|
|||
import Transfer from './components/transfer';
|
||||
import Tree from './components/tree';
|
||||
import Upload from './components/upload';
|
||||
import { Row, Col } from './components/grid';
|
||||
import { Select, Option, OptionGroup } from './components/select';
|
||||
import {Row, Col} from './components/grid';
|
||||
import {Select, Option, OptionGroup} from './components/select';
|
||||
import locale from './locale';
|
||||
|
||||
const iview = {
|
||||
|
@ -84,6 +85,7 @@ const iview = {
|
|||
Input,
|
||||
iInput: Input,
|
||||
InputNumber,
|
||||
Scroll,
|
||||
LoadingBar,
|
||||
Menu,
|
||||
iMenu: Menu,
|
||||
|
@ -111,7 +113,7 @@ const iview = {
|
|||
Spin,
|
||||
Step: Steps.Step,
|
||||
Steps,
|
||||
// Switch,
|
||||
// Switch,
|
||||
iSwitch: Switch,
|
||||
iTable: Table,
|
||||
Table,
|
||||
|
@ -127,11 +129,11 @@ const iview = {
|
|||
Upload
|
||||
};
|
||||
|
||||
const install = function (Vue, opts = {}) {
|
||||
const install = function(Vue, opts = {}) {
|
||||
locale.use(opts.locale);
|
||||
locale.i18n(opts.i18n);
|
||||
|
||||
Object.keys(iview).forEach((key) => {
|
||||
Object.keys(iview).forEach(key => {
|
||||
Vue.component(key, iview[key]);
|
||||
});
|
||||
|
||||
|
@ -147,4 +149,4 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|||
install(window.Vue);
|
||||
}
|
||||
|
||||
module.exports = Object.assign(iview, {install}); // eslint-disable-line no-undef
|
||||
module.exports = Object.assign(iview, {install}); // eslint-disable-line no-undef
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue