提交 d7d985f3 编写于 作者: 1 18820034114

1. add: 新增 columns 配置: customName , 别名;如果 customName 存在 则优先显示,否则显示 title

2. fix: 修复表格名称居中显示实际没有居中的问题
3. fix: 修复事件冒泡处理点击无反应的问题:click.native.stop --> click.stop(感谢 463***@qq.com 指出)
上级 d992b66e
## 1.0.0(2022-03-22)
版本发布
## 1.0.2(2022-04-01)
1. add: 新增 columns 配置: customName , 别名;如果 customName 存在 则优先显示,否则显示 title
2. fix: 修复表格名称居中显示实际没有居中的问题
3. fix: 修复事件冒泡处理点击无反应的问题:click.native.stop --> click.stop(感谢 463***@qq.com 指出)
## 1.0.1 (2022-03-25)
1. fix: 修复tableHeight 高度计算不正确问题,现在这个高度会包括表格名称高度
2. add: 新增 `props -> autoSort : Boolean default: true;` 组件内自动响应排序,默认true 详细请看文档
3. update: 移除数据错误提示
## 1.0.2 (2022年3月29日)
1. add: 新增 columns 配置: customName , 别名;如果 customName 存在 则优先显示,否则显示 title
## 1.0.0(2022-03-22)
版本发布
\ No newline at end of file
......@@ -13,12 +13,12 @@
paddingLeft: jIndex == 0 ? (row.level + 1 )*16 + 'rpx' : '16rpx',
}"
v-for="(col, jIndex) in dataIndexs"
:key="jIndex" @click.native.stop="itemClick(row, col)">
:key="jIndex" @click.stop="itemClick(row, col)">
<!-- 展开 -->
<view
class="open-child"
v-if="jIndex === 0"
@click.native.stop="toggleOpen(row)">
@click.stop="toggleOpen(row)">
<view
v-if="row.hasChildren"
class="iconfont"
......
......@@ -3,7 +3,7 @@
class="border-bottom border-right title-column-item">
<view
class="n-table-title-item"
@click.native.stop="handleSort(item)"
@click.stop="handleSort(item)"
:class="{ 'border-bottom': item.children && item.children.length }">
<view
:class="['n-table-col-text', {'text-left': titleTextAlign === 'left', 'text-center': titleTextAlign === 'center', 'text-right': titleTextAlign === 'right'}]"
......@@ -16,7 +16,7 @@
}">
<!-- 树形结构 统一展开、收起 -->
<view v-if="firstCol && isTree" @click.native.stop="toggleExpand" class="iconfont toggle-btn"
<view v-if="firstCol && isTree" @click.stop="toggleExpand" class="iconfont toggle-btn"
:class="isOpenAll ? 'icon-shouqi' : 'icon-zhankailie'" style="padding: 0 10rpx;color: #0066CC;">
</view>
......
{
"id": "n-table",
"displayName": "n-table 多级表头、树形结构,高度配置表格组件",
"version": "1.0.1",
"version": "1.0.2",
"description": "n-table 多级表头、树形结构,高度配置表格组件",
"keywords": [
"表格,多级表头,树形结构,可配置"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册