-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor editor panels * EditorOptionsPanel icon fixes * manage editor panel open/close --------- Co-authored-by: Julien Nahum <[email protected]>
- Loading branch information
Showing
11 changed files
with
132 additions
and
145 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
resources/js/components/open/editors/EditorOptionsPanel.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,46 @@ | ||
<template> | ||
<collapse class="p-4 w-full border-b" v-model="show"> | ||
<template #title> | ||
<div class="flex items-center pr-8"> | ||
<div class="mr-3" :class="{'text-blue-600':show, 'text-gray-500':!show}"> | ||
<slot name="icon" /> | ||
</div> | ||
<h3 id="v-step-2" class="font-semibold flex-grow"> | ||
{{ name }} | ||
</h3> | ||
<pro-tag v-if="hasProTag" /> | ||
</div> | ||
</template> | ||
|
||
<slot /> | ||
</collapse> | ||
</template> | ||
|
||
<script> | ||
import Collapse from '../../common/Collapse.vue' | ||
import ProTag from '../../common/ProTag.vue' | ||
export default { | ||
name: 'EditorOptionsPanel', | ||
components: { Collapse, ProTag }, | ||
props: { | ||
name: { | ||
type: String, | ||
required: true | ||
}, | ||
hasProTag: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
alreadyOpened: { | ||
type: Boolean, | ||
default: false | ||
} | ||
}, | ||
data () { | ||
return { | ||
show: this.alreadyOpened | ||
} | ||
} | ||
} | ||
</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
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
Oops, something went wrong.