Skip to content

Commit eed2c0a

Browse files
committed
EditorTextareaからアイコンボタンを削除
1 parent 389a5d2 commit eed2c0a

File tree

1 file changed

+14
-37
lines changed

1 file changed

+14
-37
lines changed

src/components/EditorTextarea.vue

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,28 @@
11
<template>
22
<div>
33
<span v-if="title" class="EditorField-Title">{{ title }}</span>
4-
<div class="EditorField-Form">
5-
<v-textarea
6-
v-model="value"
7-
:hint="hint"
8-
:label="label"
9-
:placeholder="placeholder"
10-
background-color="white"
11-
class="elevation-0"
12-
solo
13-
flat
14-
outlined
15-
/>
16-
<content-card-editor-button
17-
v-if="iconName"
18-
class="Button"
19-
:icon-name="iconName"
20-
/>
21-
</div>
4+
<v-textarea
5+
v-model="value"
6+
:hint="hint"
7+
:label="label"
8+
:placeholder="placeholder"
9+
background-color="white"
10+
class="Textarea"
11+
solo
12+
flat
13+
outlined
14+
/>
2215
</div>
2316
</template>
2417

2518
<script lang="ts">
2619
import Vue from 'vue'
27-
import ContentCardEditorButton from '@/components/ContentCardEditorButton.vue'
2820
2921
type DataType = {
3022
value: string
3123
}
3224
3325
export default Vue.extend({
34-
components: { ContentCardEditorButton },
3526
props: {
3627
title: {
3728
type: String,
@@ -52,11 +43,6 @@ export default Vue.extend({
5243
type: String,
5344
required: false,
5445
default: ''
55-
},
56-
iconName: {
57-
type: String,
58-
required: false,
59-
default: ''
6046
}
6147
},
6248
data(): DataType {
@@ -67,24 +53,15 @@ export default Vue.extend({
6753
})
6854
</script>
6955

70-
<style lang="scss" scoped>
56+
<style lang="scss">
7157
.EditorField-Title {
7258
display: block;
7359
font-size: 16px;
7460
font-weight: bold;
7561
color: $color-white;
7662
margin-bottom: 4px;
7763
}
78-
.EditorField-Form {
79-
display: flex;
80-
81-
.Textarea {
82-
box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
83-
}
84-
85-
.Button {
86-
flex: 0 1 auto;
87-
margin-left: 8px;
88-
}
64+
.v-input__slot {
65+
box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
8966
}
9067
</style>

0 commit comments

Comments
 (0)