el-report-grid
v1.0.8
Published
> TODO: description
Downloads
1
Readme
基于element-ui二次开发表单组件
component
组件调用
<script>
export default {
props: {
columns: {
type: Array,
default: () => []
},
// 接口id
reportId: {
type: String,
required: true
},
// 接口data数据
data: {
type: Array,
default: () => []
},
// 总数
total: {
type: Number,
default: 0
},
// 数据加载loading
loading: {
type: Boolean,
default: false
},
reportName: {
type: String,
default: () => null
},
duration: {
type: Number,
default: 0
},
// 列数
pagesize: {
type: Number,
default: 20
},
// 最大高度
auotoH: {
type: Number,
default: 500
}
},
....
}
</script>
i18n
vue-i18n使用
// main
import ReportGrid from 'el-report-grid'
import i18n from "./i18n.js";
Vue.use(ReportGrid, i18n)
// i18n.js
import Vue from "vue";
import VueI18n from "vue-i18n";
import zh from 'el-search-input/i18n/zh-CN'
import en from 'el-search-input/i18n/en'
Vue.use(VueI18n);
export default new VueI18n({
locale: 'zh-CN',
messages: {
'zh-CN': {
...zh
},
'en': {
...en
}
}
});