Add default colors to badge display

This commit is contained in:
rijkvanzanten
2020-08-13 16:55:46 -04:00
parent 1d66f647ed
commit f5832eda48
2 changed files with 8 additions and 2 deletions

View File

@@ -28,11 +28,11 @@ export default defineComponent({
},
defaultBackground: {
type: String,
required: true,
default: '#eceff1',
},
defaultForeground: {
type: String,
required: true,
default: '#263238',
},
},
setup(props) {

View File

@@ -16,6 +16,9 @@ export default defineDisplay(({ i18n }) => ({
interface: 'color',
width: 'half',
},
schema: {
default_value: '#263238',
},
},
{
field: 'defaultBackground',
@@ -25,6 +28,9 @@ export default defineDisplay(({ i18n }) => ({
interface: 'color',
width: 'half',
},
schema: {
default_value: '#eceff1',
},
},
{
field: 'choices',