Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

同步代码#14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
TommyLemon merged 2 commits intoAPIJSON:masterfromzhangchunlin:master
Jan 20, 2019
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
when not editable, not show 'delete' button
  • Loading branch information
@zhangchunlin
zhangchunlin committedJan 18, 2019
commit9a55c69f051c39b3344fcce408cc92c945b09863
34 changes: 19 additions & 15 deletionsuliweb_apijson/apijson/templates/vue/inc_apijson_table.html
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -38,8 +38,19 @@
"action": {
title: 'Action',
width: 140,
render: (h, params) => {
return h('div', [
render: function(h, params){
var delete_button = h('Button', {
props: {
type: 'error',
size: 'small'
},
on: {
click: function(){
thisp.remove(params)
}
}
}, 'Delete')
var buttons = [
h('Button', {
props: {
type: 'primary',
Expand All@@ -53,19 +64,12 @@
thisp.show(params)
}
}
}, this.viewedit_label),
h('Button', {
props: {
type: 'error',
size: 'small'
},
on: {
click: function(){
thisp.remove(params)
}
}
}, 'Delete')
]);
}, thisp.viewedit_label)
]
if (thisp.config_editable) {
buttons.push(delete_button)
}
return h('div', buttons);
}
}
},
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp