Proveedor de configuración ​

Config Provider se utiliza para proporcionar configuraciones globales, lo que permite a toda la aplicación acceder a estas configuraciones en todas partes.

Configuraciones i18n ​

Configure las propiedades relacionadas con i18n a través del proveedor de configuración, para obtener la función de cambiar de idioma.

Use dos atributos para proporcionar configuración relacionada con i18n


暂无数据
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 10
前往
页
共 100 条

Configuración de botones ​

Type:
Underline:
Link desu!

Card Configurations 2.10.5 ​

Shadow:
Card desu!

Dialog Configurations 2.10.7 ​

transition: string

Configuración de mensajes ​

Empty Values Configurations 2.7.0 ​

Supported components list
  • Cascader
  • ColorPicker 2.10.3
  • DatePicker
  • Select
  • SelectV2
  • TimePicker
  • TimeSelect
  • TreeSelect

Set empty-values to support empty values of components. The fallback value is ['', null, undefined]. If you think the empty string is meaningful, write [undefined, null].

Set value-on-clear to set the return value when cleared. The fallback value is undefined. In the date component is null. If you want to set undefined, use () => undefined.

Table Configurations 2.13.3 ​

Características experimentales ​

En esta sección, puede aprender cómo usar el Proveedor de Configuración para proporcionar características experimentales. Por ahora, no hemos añadido ninguna característica experimental, pero en el mapa de características añadiremos algunas. Puede usar esta configuración para administrar las características que desea o no.

API ​

Atributos del proveedor de configuración ​

NombreDescripciónTipoPor defecto
localeObjeto Localeobject languagesen
sizetamaño global del componenteenumdefault
zIndexzIndex inicial globalnumber—
namespaceprefijo global className del componente (cooperado con $namespace)stringel
buttonconfiguración relacionada con el botón, vea la siguiente tablaobjectsee the following table
linklink related configuration, see the following tableobjectsee the following table
dialog 2.10.7dialog related configuration, see the following tableobjectsee the following table
messageconfiguración relacionada con mensajes, vea la siguiente tablaobjectsee the following table
experimental-featurescaracterísticas en la etapa experimental a ser añadidas, todas las características son definidas como falsasobject—
empty-values 2.7.0global empty values of componentsarray—
value-on-clear 2.7.0global clear return valuestring / number / boolean / Function—
table 2.13.3table related configuration, see the following tableobjectsee the following table

Atributo del botón ​

AtributoDescripciónTipoPor defecto
type 2.9.11button type, when setting color, the latter prevailsenum—
autoInsertSpaceautomatically insert a space between two chinese characters(this will only take effect when the text length is 2 and all characters are in Chinese.)booleanfalse
plain 2.9.11determine whether it's a plain buttonbooleanfalse
text 2.11.0determinar si es un botón de textobooleanfalse
round 2.9.11determine whether it's a round buttonbooleanfalse
dashed 2.13.3determine whether it's a dashed buttonbooleanfalse
AtributoDescripciónTipoPor defecto
type 2.9.11typeenumdefault
underline 2.9.11when underlines should appearenumhover

Card Attribute ​

AttributeDescripciónTypeDefault
shadow 2.10.5when to show card shadowsenum—

Dialog Attribute ​

AttributeDescriptionTypeDefault
align-center 2.10.7si se alinea el diálogo tanto horizontal como verticalmentebooleanfalse
draggable 2.10.7activar característica de arrastre para el diálogobooleanfalse
overflow 2.10.7draggable Dialog can overflow the viewport longbooleanfalse
transition 2.10.7custom transition configuration for dialog animation. Can be a string (transition name) or an object with Vue transition propsstring / object—

Atributo del mensaje ​

AtributoDescriptionTipoPor defecto
maxel número máximo de mensajes que se pueden mostrar al mismo tiemponumber—
grouping 2.8.2merge messages with the same content, type of VNode message is not supportedboolean—
duration 2.8.2display duration, millisecond. If set to 0, it will not turn off automaticallynumber—
showClose 2.8.2whether to show a close buttonboolean—
offset 2.8.2set the distance to the top of viewportnumber—
plain 2.9.11whether message is plainboolean—
placement 2.11.0message placement positionenum—

Table Attribute 2.13.3 ​

AtributoDescripciónTipoPor defecto
show-overflow-tooltipwhether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns, refer to table tooltip-optionsboolean / [object]—
tooltip-effectel effect del tooltip por desbordamientoenumdark
tooltip-optionslas opciones para el tooltip de desbordamiento, vea el componente de tooltipobjectobject
tooltip-formattercustomize tooltip content when using show-overflow-tooltipFunction—

Config Provider Slots ​

NombreDescripciónTipo
defaultpersonaliza el contenido por defectoconfig: configuración global proporcionada (heredada desde arriba)

Fuente ​

Componentes • Style • Documentación

Contribuidores ​