mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Add default colors to badge display
This commit is contained in:
@@ -28,11 +28,11 @@ export default defineComponent({
|
||||
},
|
||||
defaultBackground: {
|
||||
type: String,
|
||||
required: true,
|
||||
default: '#eceff1',
|
||||
},
|
||||
defaultForeground: {
|
||||
type: String,
|
||||
required: true,
|
||||
default: '#263238',
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user