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
64533f62
Commit
64533f62
authored
Feb 09, 2021
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(table): fix the table in the editable row status and press Enter to confirm #258
parent
759e5320
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
EditableCell.vue
...components/Table/src/components/editable/EditableCell.vue
+9
-1
No files found.
CHANGELOG.zh_CN.md
View file @
64533f62
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
-
修复代码 debugger 位置显示错误
-
修复代码 debugger 位置显示错误
-
修复 mock 插件 post 请求错误问题
-
修复 mock 插件 post 请求错误问题
-
修复部分主题颜色值错误
-
修复部分主题颜色值错误
-
修复表格在可编辑行状态回车确认
### 🎫 Chores
### 🎫 Chores
...
...
src/components/Table/src/components/editable/EditableCell.vue
View file @
64533f62
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
ref=
"elRef"
ref=
"elRef"
@
change=
"handleChange"
@
change=
"handleChange"
@
options-change=
"handleOptionsChange"
@
options-change=
"handleOptionsChange"
@
pressEnter=
"handle
Submit
"
@
pressEnter=
"handle
Enter
"
/>
/>
<div
:class=
"`$
{prefixCls}__action`" v-if="!getRowEditable">
<div
:class=
"`$
{prefixCls}__action`" v-if="!getRowEditable">
<CheckOutlined
:class=
"[`$
{prefixCls}__icon`, 'mx-2']" @click="handleSubmit" />
<CheckOutlined
:class=
"[`$
{prefixCls}__icon`, 'mx-2']" @click="handleSubmit" />
...
@@ -234,6 +234,13 @@
...
@@ -234,6 +234,13 @@
isEdit
.
value
=
false
;
isEdit
.
value
=
false
;
}
}
async
function
handleEnter
()
{
if
(
props
.
column
?.
editRow
)
{
return
;
}
handleSubmit
();
}
function
handleCancel
()
{
function
handleCancel
()
{
isEdit
.
value
=
false
;
isEdit
.
value
=
false
;
currentValueRef
.
value
=
defaultValueRef
.
value
;
currentValueRef
.
value
=
defaultValueRef
.
value
;
...
@@ -311,6 +318,7 @@
...
@@ -311,6 +318,7 @@
getWrapperStyle
,
getWrapperStyle
,
getRowEditable
,
getRowEditable
,
getValues
,
getValues
,
handleEnter
,
// getSize,
// getSize,
};
};
},
},
...
...
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