import snippets from './snippets'; export default { snippets, componentName: 'ConfigProvider', title: 'Global configuration', category: 'Layout', props: [ { name: 'autoInsertSpaceInButton', title: { label: 'Button inserts spaces', tip: 'Automatically insert a space between 2 Chinese characters in the button', }, propType: 'bool', defaultValue: true, }, { name: 'componentSize', title: { label: 'Component size', tip: 'Setting and component size' }, propType: { type: 'oneOf', value: ['small', 'middle', 'large'] }, default: 'middle', }, { name: 'csp', title: { label: 'CSP configuration', tip: 'Set Content Security Policy configuration', }, propType: 'object', setter: 'JsonSetter', }, { name: 'form', title: { label: 'Form common properties', tip: 'Set common properties of the Form component', }, propType: 'object', setter: 'JsonSetter', }, { name: 'input', title: { label: 'Input common properties', tip: 'Set common properties of the Input component', }, propType: 'object', setter: 'JsonSetter', }, // { // name: 'renderEmpty', // title: { label: 'Custom component empty state', tip: 'Custom component empty state' }, // propType: 'func', // }, { name: 'getPopupContainer', title: { label: 'Pop-up container', tip: 'The popup box renders the parent node, which is rendered to the body by default.', }, propType: 'func', }, { name: 'getTargetContainer', title: { label: 'scroll listener container', tip: 'Configure Affix and Anchor scrolling listening containers.', }, propType: 'func', }, { name: 'locale', title: { label: 'language', tip: 'language' }, propType: { type: 'oneOf', value: ['zh-CN', 'en-US'], }, defaultValue: 'en-US', }, { name: 'prefixCls', title: { label: 'style prefix', tip: 'Set a unified style prefix. `Note: This will not apply the default styles provided by antd`', }, propType: 'string', }, { name: 'pageHeader', title: { label: 'PageHeader ghost', tip: 'Unified setting of PageHeader ghost', }, propType: 'object', setter: 'JsonSetter', }, { name: 'direction', title: { label: 'text direction', tip: 'Set text display direction' }, propType: { type: 'oneOf', value: ['ltr', 'rtl'] }, }, { name: 'space', title: { label: 'Space` size', tip: 'Set the `size of Space`' }, propType: { type: 'oneOf', value: ['small', 'middle', 'large', 'number'], }, }, { name: 'virtual', title: { label: 'virtual scrolling', tip: 'Turn off virtual scrolling when setting `false`', }, propType: 'bool', defaultValue: true, }, { name: 'dropdownMatchSelectWidth', title: { label: 'The dropdown width as the selector', tip: 'The dropdown menu is the same width as the selector' }, propType: { type: 'oneOfType', value: ['bool', 'number'] }, }, ], configure: { component: { isContainer: true } }, };