mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
WIP(dropdown): add placeholder text
This commit is contained in:
@@ -93,7 +93,6 @@
|
|||||||
:text="$t('groupUse')"
|
:text="$t('groupUse')"
|
||||||
/>
|
/>
|
||||||
<select-translated-array
|
<select-translated-array
|
||||||
v-model="newGroup.demographics"
|
|
||||||
:items="[
|
:items="[
|
||||||
'groupParentChildren',
|
'groupParentChildren',
|
||||||
'groupCouple',
|
'groupCouple',
|
||||||
@@ -102,8 +101,8 @@
|
|||||||
'groupManager',
|
'groupManager',
|
||||||
'groupTeacher'
|
'groupTeacher'
|
||||||
]"
|
]"
|
||||||
:placeholder="$t('groupUseDefault')"
|
|
||||||
class="group-input"
|
class="group-input"
|
||||||
|
:placeholder="'groupUseDefault'"
|
||||||
:value="newGroup.demographics"
|
:value="newGroup.demographics"
|
||||||
@select="newGroup.demographics = $event"
|
@select="newGroup.demographics = $event"
|
||||||
/>
|
/>
|
||||||
@@ -261,36 +260,6 @@ export default {
|
|||||||
lockableLabel,
|
lockableLabel,
|
||||||
},
|
},
|
||||||
mixins: [paymentsMixin],
|
mixins: [paymentsMixin],
|
||||||
props: {
|
|
||||||
// groupUseDefault: {
|
|
||||||
// type: String,
|
|
||||||
// default: 'groupUseDefault',
|
|
||||||
// },
|
|
||||||
groupParentChildren: {
|
|
||||||
type: String,
|
|
||||||
default: 'groupParentChildren',
|
|
||||||
},
|
|
||||||
groupCouple: {
|
|
||||||
type: String,
|
|
||||||
default: 'groupCouple',
|
|
||||||
},
|
|
||||||
groupFriends: {
|
|
||||||
type: String,
|
|
||||||
default: 'groupFriends',
|
|
||||||
},
|
|
||||||
groupCoworkers: {
|
|
||||||
type: String,
|
|
||||||
default: 'groupCoworkers',
|
|
||||||
},
|
|
||||||
groupManager: {
|
|
||||||
type: String,
|
|
||||||
default: 'groupManager',
|
|
||||||
},
|
|
||||||
groupTeacher: {
|
|
||||||
type: String,
|
|
||||||
default: 'groupTeacher',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
amazonPayments: {},
|
amazonPayments: {},
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
:right="right"
|
:right="right"
|
||||||
:hide-icon="false"
|
:hide-icon="false"
|
||||||
:inline-dropdown="inlineDropdown"
|
:inline-dropdown="inlineDropdown"
|
||||||
|
:placeholder="placeholder"
|
||||||
@select="selectItem($event)"
|
@select="selectItem($event)"
|
||||||
>
|
>
|
||||||
<template v-slot:item="{ item }">
|
<template v-slot:item="{ item }">
|
||||||
@@ -70,6 +71,9 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
placeholder: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<template v-slot:button-content>
|
<template v-slot:button-content>
|
||||||
<slot
|
<slot
|
||||||
name="item"
|
name="item"
|
||||||
:item="selected"
|
:item="selected || placeholder"
|
||||||
:button="true"
|
:button="true"
|
||||||
>
|
>
|
||||||
<!-- Fallback content -->
|
<!-- Fallback content -->
|
||||||
@@ -114,6 +114,9 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
placeholder: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user