Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
4bb506fb
Commit
4bb506fb
authored
Jul 21, 2021
by
无木
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(table): fix editable cell not support `ellipsis`
修复可编辑单元格不支持ellipsis配置的问题 fixed: #944
parent
c734f685
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
7 deletions
+25
-7
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+6
-4
EditableCell.vue
...components/Table/src/components/editable/EditableCell.vue
+18
-2
EditRowTable.vue
src/views/demo/table/EditRowTable.vue
+1
-1
No files found.
CHANGELOG.zh_CN.md
View file @
4bb506fb
### 🐛 Bug Fixes
### 🐛 Bug Fixes
-
**ApiTreeSelect**
修复未能正确监听
`params`
变化的问题
-
**ApiTreeSelect**
修复未能正确监听
`params`
变化的问题
-
**BasicTable**
修复可编辑单元格不支持 ellipsis 配置的问题
## 2.6.1(2021-07-19)
## 2.6.1(2021-07-19)
...
@@ -9,8 +10,10 @@
...
@@ -9,8 +10,10 @@
-
**NoticeList**
添加分页、超长自动省略、标题点击事件、标题删除线等功能
-
**NoticeList**
添加分页、超长自动省略、标题点击事件、标题删除线等功能
-
**MixSider**
优化 Mix 菜单布局时 底部折叠按钮 的样式,与其它菜单布局时的风格保持一致
-
**MixSider**
优化 Mix 菜单布局时 底部折叠按钮 的样式,与其它菜单布局时的风格保持一致
-
**ApiTreeSelect**
扩展
`antdv`
的
`TreeSelect`
组件,支持远程数据源,用法类似
`ApiSelect`
-
**ApiTreeSelect**
扩展
`antdv`
的
`TreeSelect`
组件,支持远程数据源,用法类似
`ApiSelect`
-
**BasicTable**
新增
`ApiTreeSelect`
编辑组件
-
**BasicTable**
-
可以为不同的用户指定不同的后台首页:
-
新增
`ApiTreeSelect`
编辑组件
-
新增
`headerTop`
插槽
-
**其它**
可以为不同的用户指定不同的后台首页:
-
在
`getUserInfo`
接口返回的用户信息中增加
`homePath`
字段(可选)即可为当前用户定制首页路径
-
在
`getUserInfo`
接口返回的用户信息中增加
`homePath`
字段(可选)即可为当前用户定制首页路径
### 🐛 Bug Fixes
### 🐛 Bug Fixes
...
@@ -18,7 +21,6 @@
...
@@ -18,7 +21,6 @@
-
**BasicTable**
-
**BasicTable**
-
修复滚动条样式问题(移除了滚动样式补丁)
-
修复滚动条样式问题(移除了滚动样式补丁)
-
修复树形表格的带有展开图标的单元格的内容对齐问题
-
修复树形表格的带有展开图标的单元格的内容对齐问题
-
新增
`headerTop`
插槽
-
修复操作列的按钮在 disabled 状态下的颜色显示
-
修复操作列的按钮在 disabled 状态下的颜色显示
-
修复可编辑单元格的值不能直接通过修改
`dataSource`
来更新显示的问题
-
修复可编辑单元格的值不能直接通过修改
`dataSource`
来更新显示的问题
-
修复使用
`ApiSelect`
编辑组件时的数据回显问题
-
修复使用
`ApiSelect`
编辑组件时的数据回显问题
...
@@ -44,7 +46,7 @@
...
@@ -44,7 +46,7 @@
-
**其它**
-
**其它**
-
修复菜单默认折叠的配置不起作用的问题
-
修复菜单默认折叠的配置不起作用的问题
-
修复
`safari`
浏览器报错导致网站打不开
-
修复
`safari`
浏览器报错导致网站打不开
-
修复在 window 上,拉取代码后 eslint 因 endOfLine 而
保
错问题
-
修复在 window 上,拉取代码后 eslint 因 endOfLine 而
报
错问题
-
修复因动态路由而产生的
`Vue Router warn`
-
修复因动态路由而产生的
`Vue Router warn`
### 🎫 Chores
### 🎫 Chores
...
...
src/components/Table/src/components/editable/EditableCell.vue
View file @
4bb506fb
<
template
>
<
template
>
<div
:class=
"prefixCls"
>
<div
:class=
"prefixCls"
>
<div
v-show=
"!isEdit"
:class=
"`$
{prefixCls}__normal`" @click="handleEdit">
<div
{{
getValues
||
'
'
}}
v-show=
"!isEdit"
:class=
"
{ [`${prefixCls}__normal`]: true, 'ellipsis-cell': column.ellipsis }"
@click="handleEdit"
>
<div
class=
"cell-content"
:title=
"column.ellipsis ? getValues || '' : ''"
>
{{
getValues
||
'
'
}}
</div>
<FormOutlined
:class=
"`$
{prefixCls}__normal-icon`" v-if="!column.editRow" />
<FormOutlined
:class=
"`$
{prefixCls}__normal-icon`" v-if="!column.editRow" />
</div>
</div>
...
@@ -420,6 +426,16 @@
...
@@ -420,6 +426,16 @@
}
}
}
}
.ellipsis-cell {
.cell-content {
overflow-wrap: break-word;
word-break: break-word;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
&__normal {
&__normal {
&-icon {
&-icon {
position: absolute;
position: absolute;
...
...
src/views/demo/table/EditRowTable.vue
View file @
4bb506fb
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
},
},
{
{
title
:
'
远程下拉树
'
,
title
:
'
远程下拉树
'
,
dataIndex
:
'
name
7
'
,
dataIndex
:
'
name
8
'
,
editRow
:
true
,
editRow
:
true
,
editComponent
:
'
ApiTreeSelect
'
,
editComponent
:
'
ApiTreeSelect
'
,
editRule
:
false
,
editRule
:
false
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment