mirror of
https://github.com/directus/directus.git
synced 2026-02-03 15:34:54 -05:00
44 lines
920 B
TypeScript
44 lines
920 B
TypeScript
import InterfaceTextInput from './text-input.vue';
|
|
import { defineInterface } from '@/interfaces/define';
|
|
|
|
export default defineInterface(({ i18n }) => ({
|
|
id: 'text-input',
|
|
name: i18n.t('text_input'),
|
|
icon: 'text_fields',
|
|
component: InterfaceTextInput,
|
|
options: [
|
|
{
|
|
field: 'placeholder',
|
|
name: i18n.t('placeholder'),
|
|
width: 'half',
|
|
interface: 'text-input',
|
|
},
|
|
{
|
|
field: 'iconLeft',
|
|
name: i18n.t('icon_left'),
|
|
width: 'half',
|
|
interface: 'icon',
|
|
},
|
|
{
|
|
field: 'iconRight',
|
|
name: i18n.t('icon_right'),
|
|
width: 'half',
|
|
interface: 'icon',
|
|
},
|
|
{
|
|
field: 'font',
|
|
name: i18n.t('font'),
|
|
width: 'half',
|
|
interface: 'dropdown',
|
|
default: 'sans-serif',
|
|
options: {
|
|
choices: [
|
|
{ text: i18n.t('sans_serif'), value: 'sans-serif' },
|
|
{ text: i18n.t('monospace'), value: 'monospace' },
|
|
{ text: i18n.t('serif'), value: 'serif' },
|
|
],
|
|
},
|
|
},
|
|
],
|
|
}));
|