-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(editor): icons in paragraph block
- Loading branch information
Showing
7 changed files
with
67 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<button class="wb-icon"> | ||
<slot /> | ||
</button> | ||
</template> |
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
11 changes: 11 additions & 0 deletions
11
...pp/src/components/page/editor/entity/default/blocks/item/EditorEntityDefaultParagraph.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 |
---|---|---|
@@ -1,13 +1,24 @@ | ||
<template> | ||
<EditorEntityDefaultContainer :entity="props.entity"> | ||
<template #left> | ||
<Icon @click="entity.base().onParagraphComment(props.entity)"> | ||
<IconComment class="w-6 h-6 sm:(w-5 h-5)" /> | ||
</Icon> | ||
<Icon @click="entity.base().onParagraphCustomize(props.entity)"> | ||
<IconEdit class="w-6 h-6 sm:(w-5 h-5)" /> | ||
</Icon> | ||
</template> | ||
<EditorEntityDefaultText :is-attached="false" :entity="props.entity" /> | ||
</EditorEntityDefaultContainer> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useEntity } from '@/use/entity' | ||
import { Entity } from 'better-write-types' | ||
const props = defineProps<{ | ||
entity: Entity | ||
}>() | ||
const entity = useEntity() | ||
</script> |
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
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
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
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