Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jun 17, 2019
1 parent f6e2700 commit 45f4209
Show file tree
Hide file tree
Showing 135 changed files with 1,604 additions and 1,291 deletions.
48 changes: 25 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,27 @@ A complete Vue Table, support most of the Table of all requirements, and perfect

All functional modules support loading on demand.(所有的功能模块都支持按需加载)

* ![table](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table/src/table.min.js?compression=gzip&label=table)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table/style/style.css?compression=gzip&label=style&color=green) (核心)
* ![Table](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table/src/table.min.js?compression=gzip&label=Table)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table/style/style.css?compression=gzip&label=style&color=green) (核心)
* Components (高级组件)
* ![grid](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/grid/src/grid.min.js?compression=gzip&label=grid)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/grid/style/style.css?compression=gzip&label=style&color=green) (扩展)
* ![excel](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/excel/src/excel.min.js?compression=gzip&label=excel)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/excel/style/style.css?compression=gzip&label=style&color=green) (Excel)
* ![Grid](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/grid/src/grid.min.js?compression=gzip&label=Grid)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/grid/style/style.css?compression=gzip&label=style&color=green) (扩展)
* ![Excel](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/excel/src/excel.min.js?compression=gzip&label=Excel)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/excel/style/style.css?compression=gzip&label=style&color=green) (Excel)
* Modules (功能模块)
* ![table-column](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-column/src/cell.min.js?compression=gzip&label=table%20column)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-column/style/style.css?compression=gzip&label=style&color=green) (列与单元格)
* ![table-header](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-header/src/header.min.js?compression=gzip&label=table%20header)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-header/style/style.css?compression=gzip&label=style&color=green) (表头)
* ![table-body](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-body/src/body.min.js?compression=gzip&label=table%20body)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-body/style/style.css?compression=gzip&label=style&color=green) (表内容)
* ![table-footer](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-footer/src/footer.min.js?compression=gzip&label=table%20footer)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-footer/style/style.css?compression=gzip&label=style&color=green) (表尾)
* ![table-filter](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-filter/src/filter.min.js?compression=gzip&label=table%20filter)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-filter/style/style.css?compression=gzip&label=style&color=green) (筛选)
* ![table-loading](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-loading/src/loading.min.js?compression=gzip&label=table%20loading)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/table-loading/style/style.css?compression=gzip&label=style&color=green) (加载中)
* ![context-menu](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/context-menu/src/menu.min.js?compression=gzip&label=context%20menu)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/context-menu/style/style.css?compression=gzip&label=style&color=green) (快捷菜单)
* ![pager](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/pager/src/pager.min.js?compression=gzip&label=pager)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/pager/style/style.css?compression=gzip&label=style&color=green) (分页 )
* ![toolbar](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/toolbar/src/toolbar.min.js?compression=gzip&label=toolbar)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/toolbar/style/style.css?compression=gzip&label=style&color=green) (工具栏)
* ![checkbox](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/checkbox/src/checkbox.min.js?compression=gzip&label=checkbox)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/checkbox/style/style.css?compression=gzip&label=style&color=green) (复选框)
* ![radio](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/radio/src/radio.min.js?compression=gzip&label=radio) ![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/radio/style/style.css?compression=gzip&label=style&color=green)(单选框)
* ![input](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/input/src/input.min.js?compression=gzip&label=input)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/input/style/style.css?compression=gzip&label=style&color=green) (输入框)
* ![message-box](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/message-box/src/message.min.js?compression=gzip&label=message%20box)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/message-box/style/style.css?compression=gzip&label=style&color=green) (消息提示框)
* ![button](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/button/src/button.min.js?compression=gzip&label=button)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/button/style/style.css?compression=gzip&label=style&color=green) (按钮)
* ![Column](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/column/src/cell.min.js?compression=gzip&label=Column)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/column/style/style.css?compression=gzip&label=style&color=green) (列与单元格)
* ![Header](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/header/src/header.min.js?compression=gzip&label=Header)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/header/style/style.css?compression=gzip&label=style&color=green) (表头)
* ![Body](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/body/src/body.min.js?compression=gzip&label=Body)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/body/style/style.css?compression=gzip&label=style&color=green) (表内容)
* ![Footer](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/footer/src/footer.min.js?compression=gzip&label=Footer)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/footer/style/style.css?compression=gzip&label=style&color=green) (表尾)
* ![Filter](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/filter/src/filter.min.js?compression=gzip&label=Filter)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/filter/style/style.css?compression=gzip&label=style&color=green) (筛选)
* ![Loading](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/loading/src/loading.min.js?compression=gzip&label=Loading)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/loading/style/style.css?compression=gzip&label=style&color=green) (加载中)
* ![Menu](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/menu/src/menu.min.js?compression=gzip&label=Menu)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/menu/style/style.css?compression=gzip&label=style&color=green) (快捷菜单)
* ![Export](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/export/src/export.min.js?compression=gzip&label=Export) (导出)
* ![Resize](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/resize/src/export.min.js?compression=gzip&label=Resize) (自适应)
* ![Pager](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/pager/src/pager.min.js?compression=gzip&label=Pager)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/pager/style/style.css?compression=gzip&label=style&color=green) (分页 )
* ![Toolbar](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/toolbar/src/toolbar.min.js?compression=gzip&label=Toolbar)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/toolbar/style/style.css?compression=gzip&label=style&color=green) (工具栏)
* ![Checkbox](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/checkbox/src/checkbox.min.js?compression=gzip&label=Checkbox)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/checkbox/style/style.css?compression=gzip&label=style&color=green) (复选框)
* ![Radio](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/radio/src/radio.min.js?compression=gzip&label=Radio) ![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/radio/style/style.css?compression=gzip&label=style&color=green)(单选框)
* ![Input](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/input/src/input.min.js?compression=gzip&label=Input)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/input/style/style.css?compression=gzip&label=style&color=green) (输入框)
* ![Message](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/message/src/message.min.js?compression=gzip&label=Message)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/message/style/style.css?compression=gzip&label=style&color=green) (消息提示框)
* ![Button](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/button/src/button.min.js?compression=gzip&label=Button)![style](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/button/style/style.css?compression=gzip&label=style&color=green) (按钮)
* Plugins(插件)
* [![vxe-table-plugin-element](http://img.badgesize.io/https://unpkg.com/vxe-table-plugin-element/dist/index.min.js?compression=gzip&label=vxe%20table%20plugin%20element)](https://www.npmjs.org/package/vxe-table-plugin-element)![style](http://img.badgesize.io/https://unpkg.com/vxe-table-plugin-element/dist/style.min.css?compression=gzip&label=style&color=green)[element-ui](https://www.npmjs.com/package/element-ui) 适配插件)
* [![vxe-table-plugin-iview](http://img.badgesize.io/https://unpkg.com/vxe-table-plugin-iview/dist/index.min.js?compression=gzip&label=vxe%20table%20plugin%20iview)](https://www.npmjs.org/package/vxe-table-plugin-iview)![style](http://img.badgesize.io/https://unpkg.com/vxe-table-plugin-iview/dist/style.min.css?compression=gzip&label=style&color=green)[iview](https://www.npmjs.com/package/iview) 适配插件)
Expand Down Expand Up @@ -158,16 +160,16 @@ Now you can import components like
import {
VXETable,
Table,
TableColumn,
TableHeader,
TableBody
Column,
Header,
Body
} from 'vxe-table'
import zhCNLocat from 'vxe-table/lib/locale/lang/zh-CN'

Vue.use(Table)
Vue.use(TableColumn)
Vue.use(TableHeader)
Vue.use(TableBody)
Vue.use(Column)
Vue.use(Header)
Vue.use(Body)

// The on-demand mode is not internationalized by default and needs to be imported by itself
// 按需加载的方式默认是不带国际化的,需要自行导入
Expand Down
2 changes: 1 addition & 1 deletion docs/static/js/index.0fb15a6b.js

Large diffs are not rendered by default.

53 changes: 36 additions & 17 deletions examples/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,6 @@ export default {
name: 'TableFooter'
}
},
{
label: 'app.aside.nav.customs',
demoUrl: 'https://jsrun.net/PrXKp',
locat: {
name: 'TableCustom'
}
},
{
label: 'app.aside.nav.export',
demoUrl: 'https://jsrun.net/cmXKp',
Expand Down Expand Up @@ -324,6 +317,19 @@ export default {
name: 'Toolbar'
}
},
{
label: 'app.aside.nav.customs',
demoUrl: 'https://jsrun.net/PrXKp',
locat: {
name: 'TableCustom'
}
},
{
label: 'app.aside.nav.customStorage',
locat: {
name: 'TableCustomStorage'
}
},
{
label: 'app.aside.nav.search',
locat: {
Expand Down Expand Up @@ -538,6 +544,12 @@ export default {
name: 'TableEditDBLClick'
}
},
{
label: 'app.aside.nav.select',
locat: {
name: 'TableEditSelect'
}
},
{
label: 'app.aside.nav.autoClear',
locat: {
Expand Down Expand Up @@ -664,7 +676,14 @@ export default {
}
},
{
label: 'app.aside.nav.sortablejsRender',
label: 'app.aside.nav.sortablejsRow',
disabled: true,
locat: {
name: 'TableSortablejs'
}
},
{
label: 'app.aside.nav.sortablejsColumn',
disabled: true,
locat: {
name: 'TableSortablejs'
Expand Down Expand Up @@ -745,6 +764,15 @@ export default {
}
}
},
{
label: 'app.aside.nav.vxeTableMessage',
locat: {
name: 'TableAPI',
params: {
name: 'table-message'
}
}
},
{
label: 'app.aside.nav.vxeGrid',
locat: {
Expand Down Expand Up @@ -816,15 +844,6 @@ export default {
name: 'button'
}
}
},
{
label: 'app.aside.nav.vxeMessageBox',
locat: {
name: 'TableAPI',
params: {
name: 'message-box'
}
}
// },
// {
// label: 'app.aside.nav.vxeTooltip',
Expand Down
File renamed without changes.
File renamed without changes.
9 changes: 6 additions & 3 deletions examples/i18n/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ module.exports = {
template: '自定义模板',
span: 'Rowspan and colspan',
footer: 'Footer summary',
customs: 'Show/hide columns',
export: 'Export CSV',
contextMenu: 'Context menu',
expandRow: 'Expandable row',
toolbar: 'Toolbar',
customs: 'Show/hide columns',
customStorage: 'Show/hide columns + localStorage',
search: 'Table search',
pager: 'Pager',

Expand Down Expand Up @@ -75,6 +76,7 @@ module.exports = {
manual: 'Manual trigger',
click: 'Click trigger',
dblclick: 'dblclick trigger',
select: '选中内容',
autoClear: 'Auto clear',
insert: 'Insert',
delete: 'Delete',
Expand All @@ -95,7 +97,8 @@ module.exports = {
elementRender: '使用 element-ui 渲染列',
iviewRender: '使用 iview 渲染列',
antd: '使用 ant-design-vue 渲染列',
sortablejsRender: '使用 sortablejs 拖拽行排序',
sortablejsRow: '使用 sortablejs 实现行拖拽',
sortablejsColumn: '使用 sortablejs 实现列拖拽',
xlsxRender: '使用 xlsx 导出数据',

plugin: 'Plugins',
Expand All @@ -109,6 +112,7 @@ module.exports = {
api: 'API',
vxeTable: 'vxe-table',
vxeTableColumn: 'vxe-table-column',
vxeTableMessage: 'vxe-table-message',
vxeGrid: 'vxe-grid',
vxeExcel: 'vxe-excel',
vxeToolbar: 'vxe-toolbar',
Expand All @@ -117,7 +121,6 @@ module.exports = {
vxeCheckbox: 'vxe-checkbox',
vxeInput: 'vxe-input',
vxeButton: 'vxe-button',
vxeMessageBox: 'vxe-message-box',
vxeTooltip: 'vxe-tooltip'
}
},
Expand Down
9 changes: 6 additions & 3 deletions examples/i18n/lang/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ module.exports = {
template: '自定义模板',
span: '合并行或列',
footer: '表尾合计',
customs: '显示/隐藏 列',
export: '导出 CSV',
contextMenu: '快捷菜单',
expandRow: '展开行',
toolbar: '工具栏',
customs: '显示/隐藏 列',
customStorage: '显示/隐藏 列 + localStorage',
search: '全表搜索',
pager: '分页',

Expand Down Expand Up @@ -75,6 +76,7 @@ module.exports = {
manual: '手动触发',
click: '点击触发',
dblclick: '双击触发',
select: '选中内容',
autoClear: '关闭自动清除',
insert: '插入数据',
delete: '删除数据',
Expand All @@ -95,7 +97,8 @@ module.exports = {
elementRender: '使用 element-ui 渲染列',
iviewRender: '使用 iview 渲染列',
antd: '使用 ant-design-vue 渲染列',
sortablejsRender: '使用 sortablejs 拖拽行排序',
sortablejsRow: '使用 sortablejs 实现行拖拽',
sortablejsColumn: '使用 sortablejs 实现列拖拽',
xlsxRender: '使用 xlsx 导出数据',

plugin: '插件',
Expand All @@ -117,7 +120,7 @@ module.exports = {
vxeCheckbox: 'vxe-checkbox',
vxeInput: 'vxe-input',
vxeButton: 'vxe-button',
vxeMessageBox: 'vxe-message-box',
vxeTableMessage: 'vxe-table-message',
vxeTooltip: 'vxe-tooltip'
}
},
Expand Down
36 changes: 20 additions & 16 deletions examples/plugins/xtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,25 @@ import i18n from '../i18n'

import VXETable from '../../packages/v-x-e-table'
import Table from '../../packages/table'
import TableColumn from '../../packages/table-column'
import TableHeader from '../../packages/table-header'
import TableBody from '../../packages/table-body'
import TableFooter from '../../packages/table-footer'
import TableFilter from '../../packages/table-filter'
import TableLoading from '../../packages/table-loading'
import Column from '../../packages/column'
import Header from '../../packages/header'
import Body from '../../packages/body'
import Footer from '../../packages/footer'
import Filter from '../../packages/filter'
import Loading from '../../packages/loading'
import Grid from '../../packages/grid'
import Excel from '../../packages/excel'
import ContextMenu from '../../packages/context-menu'
import Menu from '../../packages/menu'
import Toolbar from '../../packages/toolbar'
import Pager from '../../packages/pager'
import Checkbox from '../../packages/checkbox'
import Radio from '../../packages/radio'
import Input from '../../packages/input'
import Button from '../../packages/button'
import MessageBox from '../../packages/message-box'
import Message from '../../packages/message'
import Tooltip from '../../packages/tooltip'
import Export from '../../packages/export'
import Resize from '../../packages/resize'
import '../../styles/index.scss'

// import VXETablePluginElement from '../../../vxe-table-plugin-element/index.js'
Expand All @@ -37,23 +39,25 @@ VXETable.setup({
})

Vue.use(Table)
Vue.use(TableColumn)
Vue.use(TableHeader)
Vue.use(TableBody)
Vue.use(TableFooter)
Vue.use(TableFilter)
Vue.use(TableLoading)
Vue.use(Column)
Vue.use(Header)
Vue.use(Body)
Vue.use(Footer)
Vue.use(Filter)
Vue.use(Loading)
Vue.use(Grid)
Vue.use(Excel)
Vue.use(ContextMenu)
Vue.use(Menu)
Vue.use(Toolbar)
Vue.use(Pager)
Vue.use(Checkbox)
Vue.use(Radio)
Vue.use(Input)
Vue.use(Button)
Vue.use(MessageBox)
Vue.use(Message)
Vue.use(Tooltip)
Vue.use(Export)
Vue.use(Resize)

VXETable.use(VXETablePluginElement)
VXETable.use(VXETablePluginIView)
Expand Down
Loading

0 comments on commit 45f4209

Please sign in to comment.