Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-sky-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
何虹
hs-sky-ui
Commits
76dbe09a
Commit
76dbe09a
authored
Jan 20, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化表格
parent
8b0e114f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ItemComponentChild.vue
src/packages/hs-table/src/ItemComponentChild.vue
+3
-2
child.vue
src/packages/hs-table/src/child.vue
+1
-0
No files found.
src/packages/hs-table/src/ItemComponentChild.vue
View file @
76dbe09a
...
...
@@ -246,7 +246,8 @@ export default {
},
computed
:
{
// 为什么加这个 因为有变态需求是列表上要修改, 原本是列表上一律不允许修改 Editable
isEditable
()
{
// 是否可编辑
isEditable
()
{
// 是否可编辑
const
editable
=
this
.
$attrs
.
editable
if
(
editable
)
{
return
false
...
...
@@ -278,7 +279,7 @@ export default {
return
bool
}
}
return
!!
(
this
.
disabled
||
bool
)
return
!!
(
this
.
disabled
||
bool
||
this
.
$attrs
.
disabled
)
}
},
methods
:
{
...
...
src/packages/hs-table/src/child.vue
View file @
76dbe09a
...
...
@@ -283,6 +283,7 @@
:item=
'item'
:formParms=
'scope.row'
:editable=
'editable'
:prop=
"item.prop"
v-bind=
"$attrs"
v-on=
"$listeners"
>
...
...
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