Skip to content

Commit

Permalink
chore:
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Jan 28, 2024
1 parent 89ed443 commit 18658cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/views/crud/editable/cell/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
单元格编辑
<span class="sub">单元格修改确认后直接提交到后台</span>
</div>
<div class="more"><a target="_blank" href="http://fast-crud.docmirror.cn/api/crud-options/table.html#editable">文档</a></div>
<div class="more"
><a
target="_blank"
href="http://fast-crud.docmirror.cn/api/crud-options/table.html#editable"
>文档</a
></div
>
</template>
<fs-crud ref="crudRef" v-bind="crudBinding">
<template #actionbar-right>
Expand Down Expand Up @@ -56,8 +62,6 @@
// 页面打开后获取列表数据
onMounted(() => {
crudExpose.doRefresh();
//默认启用编辑
crudExpose.editable.enable({});
});
return {
Expand Down
2 changes: 2 additions & 0 deletions src/views/crud/editable/vmodel/free/crud.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
editable: {
enabled: true,
mode: 'free',
showAction: false,
activeDefault: true,
},
},
pagination: { show: false, pageSize: 9999999 },
Expand Down

0 comments on commit 18658cb

Please sign in to comment.