forked from pkp/ui-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp/pkp-lib#9992 FieldPreparedContent migrated to side modal
- Loading branch information
1 parent
df2f883
commit 3e5b62c
Showing
2 changed files
with
49 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/components/Form/fields/FieldPreparedContentInsertModal.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<SideModalBody> | ||
<template #title> | ||
{{ title }} | ||
</template> | ||
<SideModalLayoutBasic> | ||
<InsertContent | ||
ref="insertContent" | ||
:insert-label="insertLabel" | ||
:items="preparedContent" | ||
:items-label="preparedContentLabel" | ||
:search-label="searchLabel" | ||
@insert="(...args) => emit('insert', ...args)" | ||
/> | ||
</SideModalLayoutBasic> | ||
</SideModalBody> | ||
</template> | ||
|
||
<script setup> | ||
import SideModalBody from '@/components/Modal/SideModalBody.vue'; | ||
import SideModalLayoutBasic from '@/components/Modal/SideModalLayoutBasic.vue'; | ||
import InsertContent from '@/components/InsertContent/InsertContent.vue'; | ||
defineProps({ | ||
title: {type: String, required: true}, | ||
insertLabel: {type: String, required: true}, | ||
preparedContent: {type: Array, required: false, default: () => []}, | ||
preparedContentLabel: {type: String, required: true}, | ||
searchLabel: {type: String, default: ''}, | ||
}); | ||
const emit = defineEmits(['insert']); | ||
</script> |