Skip to content

Commit

Permalink
feat: 新增操作按钮支持自定义颜色 (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
luckydog-sunny authored Jun 9, 2024
1 parent 8d1fc80 commit a5bb1b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/ma-crud/components/column.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
v-auth="options.see.auth || []"
v-role="options.see.role || []"
type="primary"
:status="options.see.status || 'success'"
:style="{ color: options.see.color || '' }"
:disabled="(isFunction(options.see.disabled) ? options.see.disabled(record) : options.see.disabled)"
@click="seeAction(record)"
><icon-eye /> {{ options.see.text || '查看' }}</a-link>
Expand All @@ -77,6 +79,8 @@
v-auth="options.edit.auth || []"
v-role="options.edit.role || []"
type="primary"
:status="options.edit.status || 'normal'"
:style="{ color: options.edit.color || '' }"
:disabled="(isFunction(options.edit.disabled) ? options.edit.disabled(record) : options.edit.disabled)"
@click="editAction(record)"
>
Expand All @@ -102,6 +106,8 @@
>
<a-link
type="primary"
:status="options.delete.status || 'danger'"
:style="{ color: options.delete.color || '' }"
v-auth="options.delete.auth || []"
v-role="options.delete.role || []"
:disabled="(isFunction(options.delete.disabled) ? options.delete.disabled(record) : options.delete.disabled)"
Expand Down

0 comments on commit a5bb1b5

Please sign in to comment.