en-US

The components affected by the global configuration of DEmpty are shown here.

zh-CN

这里展示了受 DEmpty 全局配置影响的组件。

import { useContext, useMemo } from 'react';

import { DRoot, DTransfer } from '@react-devui/ui';

export default function Demo() {
  const rootContext = useMemo(
    () => ({
      componentConfigs: { DEmpty: { dDescription: 'Global configuration' } },
    }),
    []
  );

  return (
    <DRoot context={rootContext}>
      <DTransfer dList={[]} dTitle={['Left', 'Right']} />
    </DRoot>
  );
}