mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
fix if of input and update dropdown-multi and radio-buttons
This commit is contained in:
@@ -212,7 +212,7 @@ export default defineComponent({
|
||||
|
||||
input.value.stepUp();
|
||||
|
||||
if (input.value.value) {
|
||||
if (input.value.value != null) {
|
||||
return emit('input', Number(input.value.value));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ export default defineInterface(({ i18n }) => ({
|
||||
type: 'string',
|
||||
name: i18n.t('text'),
|
||||
meta: {
|
||||
width: 'half',
|
||||
interface: 'text-input',
|
||||
},
|
||||
},
|
||||
@@ -31,6 +32,7 @@ export default defineInterface(({ i18n }) => ({
|
||||
type: 'string',
|
||||
name: i18n.t('value'),
|
||||
meta: {
|
||||
width: 'half',
|
||||
interface: 'text-input',
|
||||
options: {
|
||||
font: 'monospace',
|
||||
@@ -61,6 +63,15 @@ export default defineInterface(({ i18n }) => ({
|
||||
default_value: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'placeholder',
|
||||
name: i18n.t('placeholder'),
|
||||
type: 'string',
|
||||
meta: {
|
||||
width: 'half',
|
||||
interface: 'text-input',
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'icon',
|
||||
name: i18n.t('icon'),
|
||||
|
||||
@@ -19,15 +19,15 @@ export default defineInterface(({ i18n }) => ({
|
||||
interface: 'dropdown',
|
||||
default_value: 'normal',
|
||||
options: {
|
||||
items: [
|
||||
{ itemText: i18n.t('normal'), itemValue: 'normal' },
|
||||
{ itemText: i18n.t('info'), itemValue: 'info' },
|
||||
{ itemText: i18n.t('success'), itemValue: 'success' },
|
||||
{ itemText: i18n.t('warning'), itemValue: 'warning' },
|
||||
{ itemText: i18n.t('danger'), itemValue: 'danger' },
|
||||
choices: [
|
||||
{ text: i18n.t('normal'), value: 'normal' },
|
||||
{ text: i18n.t('info'), value: 'info' },
|
||||
{ text: i18n.t('success'), value: 'success' },
|
||||
{ text: i18n.t('warning'), value: 'warning' },
|
||||
{ text: i18n.t('danger'), value: 'danger' },
|
||||
],
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'icon',
|
||||
@@ -36,7 +36,7 @@ export default defineInterface(({ i18n }) => ({
|
||||
meta: {
|
||||
width: 'half',
|
||||
interface: 'icon',
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'text',
|
||||
@@ -45,7 +45,10 @@ export default defineInterface(({ i18n }) => ({
|
||||
meta: {
|
||||
width: 'full',
|
||||
interface: 'textarea',
|
||||
}
|
||||
options: {
|
||||
placeholder: 'Enter notice content here...',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
}));
|
||||
|
||||
@@ -23,6 +23,7 @@ export default defineInterface(({ i18n }) => ({
|
||||
type: 'string',
|
||||
name: i18n.t('text'),
|
||||
meta: {
|
||||
width: 'half',
|
||||
interface: 'text-input',
|
||||
},
|
||||
},
|
||||
@@ -31,6 +32,7 @@ export default defineInterface(({ i18n }) => ({
|
||||
type: 'string',
|
||||
name: i18n.t('value'),
|
||||
meta: {
|
||||
width: 'half',
|
||||
interface: 'text-input',
|
||||
options: {
|
||||
font: 'monospace',
|
||||
@@ -49,9 +51,6 @@ export default defineInterface(({ i18n }) => ({
|
||||
width: 'half',
|
||||
interface: 'icon',
|
||||
},
|
||||
schema: {
|
||||
default_value: 'radio_button_checked',
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'iconOff',
|
||||
@@ -61,9 +60,6 @@ export default defineInterface(({ i18n }) => ({
|
||||
width: 'half',
|
||||
interface: 'icon',
|
||||
},
|
||||
schema: {
|
||||
default_value: 'radio_button_unchecked',
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'color',
|
||||
@@ -73,9 +69,6 @@ export default defineInterface(({ i18n }) => ({
|
||||
width: 'half',
|
||||
interface: 'color',
|
||||
},
|
||||
schema: {
|
||||
default_value: '#2f80ed',
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'allowOther',
|
||||
|
||||
Reference in New Issue
Block a user