Skip to content

全局配置项

组件提供了sourceKey, totalKey, pagination, defaultCollapse, searchSubmitText, searchResetText属性的全局配置项,如下:

javascript
// main.js
import MosoweElement from '@mosowe2/element-plus-pro';

app.use(MosoweElement, {
  sourceKey: 'list', // 接口列表数据字段
  totalKey: 'total', // 接口总数字段
  pagination: true, // 全局配置是否需要分页
  defaultCollapse: true, // 全局配置表格搜索区默认折叠
  searchSubmitText: '查询', // 全局配置搜索查询按钮文案
  searchResetText: '重置' // 全局配置搜索重置按钮文案
});

贡献者

mosowe

文档版本 v1.0.1