Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
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
zhouqian
vue-gjjs
Commits
5536014e
Commit
5536014e
authored
Sep 13, 2022
by
nanrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化c-edit-table
parent
644f7b38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
EditTable.vue
src/components/EditTable.vue
+14
-1
No files found.
src/components/EditTable.vue
View file @
5536014e
...
...
@@ -32,6 +32,13 @@
:placeholder=
"`请输入$
{item.title}`"
:disabled="disabledAll"
>
</el-input>
<el-checkbox
v-else-if=
"item.show === 'checkbox'"
v-model=
"scope.row[item.dataIndex]"
:placeholder=
"`请输入$
{item.title}`"
:disabled="disabledAll"
checked
>
</el-checkbox>
<span
v-else
>
{{
scope
.
row
[
item
.
dataIndex
]
}}
</span>
</
template
>
</el-table-column>
...
...
@@ -158,7 +165,13 @@ export default {
//this.$refs[this.urls].clearSelection();
},
},
mounted
()
{
this
.
$watch
(()
=>
{
return
_
.
get
(
this
.
model
,
this
.
urls
,
[])
},(
newVal
,
oldVal
)
=>
{
this
.
dataSource
=
newVal
})
},
created
:
function
()
{},
};
</
script
>
...
...
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