提交 95846241 编写于 作者: 1 18820034114

remove console

上级 e4caf126
......@@ -18,7 +18,7 @@
:headerOpt="headerOpt"
:nameOpt="{isShow:true, title: '基础表格+固定高度+不固定左侧', needMenu: false, bg: 'green'}"
:tableOpt="{stickSide:false}"
:tableHeight="400"
:tableHeight="0"
:tableData="tableData"
:columns="columns"
colKey="dataIndex"
......@@ -30,7 +30,7 @@
:headerOpt="headerOpt"
:nameOpt="{isShow:true, title: '树形表格+固定高度'}"
:tableOpt="{}"
:tableHeight="400"
:tableHeight="0"
:tableData="tableDataTree"
:columns="columns"
colKey="dataIndex"
......
......@@ -36,7 +36,6 @@
@onClick="onColClick"
:dataList="dataList">
</table-body>
</view>
</view>
<view v-if="dataList && dataList.length == 0 && !tableLoaded" class="table-empty">
......@@ -73,29 +72,13 @@
},
props: {
// table-name 配置
nameOpt: {
type: Object,
default: () => {}
},
nameOpt: {type: Object,default: () => {}},
// 表头配置
headerOpt: {
type: Object,
default: () => {
return {}
}
},
headerOpt: {type: Object,default: () => {return {}}},
// 整体配置
tableOpt: {
type: Object,
default: () => {}
},
tableOpt: {type: Object,default: () => {}},
// 分页配置
pagerOpt: {
type: Object,
default: () => {
return {}
}
},
pagerOpt: {type: Object,default: () => {return {}}},
// 数据源唯一key字段名
idKey: { type: String, default: 'id' },
// columns中对应列表数据的 字段名
......@@ -103,10 +86,7 @@
// 数据源
tableData: { type: [Array, Boolean], default () { return false } },
columns: {
type: [Array, Boolean],
required: true
},
columns: {type: [Array, Boolean],required: true},
showLoading: { type: Boolean, default: true },
tableHeight: { type: [Number, Boolean], default: 0 },
// 是否需要组件内部排序
......
......@@ -44,6 +44,7 @@ const sortList = function({ list, sortBy, sortOrder, child = "children" }) {
});
return [...list];
};
export {
sortList
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册