Skip to content

Commit

Permalink
Merge branch 'master' into refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Apr 8, 2021
2 parents aec4028 + e9a10e8 commit 61e0d01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-pro-crud",
"version": "0.9.2-13",
"version": "0.9.2-14",
"author": "BoBo<[email protected]>",
"main": "lib/ProCrud.umd.min.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions src/component/crud-table/src/CrudTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
:width="dialogWidth"
@btnOnClick="formBtnOnClick"
>
<template #dialogFooter>
<slot name="dialogFooter"></slot>
<template :slot="slotName" slot-scope="scope" v-for="slotName in Object.keys($scopedSlots)">
<slot :name="slotName" :entity="scope.entity"></slot>
</template>
</GenerateFormDialog>
</div>
Expand Down
6 changes: 5 additions & 1 deletion src/component/crud-table/src/GenerateFormDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
:entity.sync="entity"
@btn-on-click="btnOnClick"
:formTableConfig="formTableConfig"
/>
>
<template :slot="slotName" v-for="slotName in Object.keys($scopedSlots)">
<slot :name="slotName" :entity="entity"></slot>
</template>
</GenerateForm>
<el-row type="flex" justify="end" slot="footer">
<slot name="dialogFooter"></slot>
<template v-if="isReadOnly">
Expand Down

0 comments on commit 61e0d01

Please sign in to comment.