@ant-design/icons APIs
- PlusOutlined
- UserOutlined
- SettingOutlined
- EditOutlined
- DeleteOutlined
- DownOutlined
- LoadingOutlined
- SearchOutlined
- LockOutlined
- CheckOutlined
- CloseOutlined
- UploadOutlined
- LogoutOutlined
- QuestionCircleOutlined
- InfoCircleOutlined
- SyncOutlined
- GithubOutlined
- DownloadOutlined
- CloseCircleOutlined
- CheckCircleOutlined
- LeftOutlined
- ExclamationCircleOutlined
- EyeOutlined
- LinkOutlined
- MenuFoldOutlined
- MenuUnfoldOutlined
- BellOutlined
- TeamOutlined
- AppstoreOutlined
- FileOutlined
- DesktopOutlined
- SendOutlined
- HomeOutlined
- StarOutlined
- ArrowDownOutlined
- ReloadOutlined
- NotificationOutlined
- RightOutlined
- MailOutlined
- EyeInvisibleOutlined
- SmileOutlined
- ArrowUpOutlined
- EllipsisOutlined
- createFromIconfontCN
- CheckCircleTwoTone
- CaretDownOutlined
- SmileTwoTone
- RedoOutlined
- PlusCircleOutlined
- WalletOutlined
- ExportOutlined
- LikeOutlined
- InboxOutlined
- CopyOutlined
- FullscreenExitOutlined
- FullscreenOutlined
- FacebookOutlined
- UserAddOutlined
- SolutionOutlined
- KeyOutlined
- PieChartOutlined
- PictureOutlined
- QrcodeOutlined
- PoweroffOutlined
- DashboardOutlined
- GlobalOutlined
- ClockCircleOutlined
- ShareAltOutlined
- UndoOutlined
- MenuOutlined
- HeartTwoTone
- BarsOutlined
- MinusCircleOutlined
- WarningOutlined
- FrownOutlined
- HeartOutlined
- RetweetOutlined
- FilePdfOutlined
- MinusOutlined
- UpOutlined
- ImportOutlined
- LineChartOutlined
- StopOutlined
- CreditCardOutlined
- ToolOutlined
- MessageOutlined
- DisconnectOutlined
- GoogleOutlined
- InfoCircleTwoTone
- BankOutlined
- EditTwoTone
- HomeTwoTone
- PlusSquareTwoTone
- SlidersOutlined
- UnorderedListOutlined
- FormOutlined
- CameraOutlined
- ArrowRightOutlined
- CloseCircleTwoTone
- VideoCameraOutlined
- MoreOutlined
- BarChartOutlined
- BugOutlined
- TwitterOutlined
- SettingFilled
- HighlightOutlined
- DeleteTwoTone
- EyeTwoTone
- HistoryOutlined
- CaretRightOutlined
- ApiOutlined
- AuditOutlined
- BlockOutlined
- CodeOutlined
- CloudUploadOutlined
- FileTextOutlined
- PlayCircleOutlined
- LikeFilled
- CaretUpOutlined
- ArrowLeftOutlined
- LaptopOutlined
- LockTwoTone
- MailTwoTone
- FlagOutlined
- CodeTwoTone
- LeftCircleOutlined
- RightCircleOutlined
- UsergroupAddOutlined
- IdcardOutlined
- DollarCircleOutlined
- AimOutlined
- SettingTwoTone
- SwapOutlined
- PhoneOutlined
- FileExcelOutlined
- FileMarkdownOutlined
- MinusCircleTwoTone
- FileAddOutlined
- DatabaseOutlined
- CloudServerOutlined
- HddOutlined
- FileDoneOutlined
- RocketOutlined
- FolderAddOutlined
- VerticalAlignTopOutlined
- ControlOutlined
- LoginOutlined
- SafetyCertificateOutlined
- ExpandOutlined
- WindowsOutlined
- TagsOutlined
- FireOutlined
- FileImageOutlined
- PauseCircleOutlined
- DislikeFilled
- BuildOutlined
- CopyrightOutlined
- setTwoToneColor
- ThunderboltOutlined
- CompressOutlined
- SoundOutlined
- CommentOutlined
- CustomerServiceOutlined
- FileSyncOutlined
- ContainerOutlined
- PauseOutlined
- AudioOutlined
- YoutubeOutlined
- HourglassOutlined
- ColumnHeightOutlined
- PlusCircleTwoTone
- PaperClipOutlined
- SmileFilled
- MessageFilled
- QuestionOutlined
- PushpinOutlined
- AppstoreAddOutlined
- SwapRightOutlined
- NodeCollapseOutlined
- PieChartFilled
- HeartFilled
- CloseCircleFilled
- FileUnknownTwoTone
- ApartmentOutlined
- ProfileOutlined
- FlagTwoTone
- ClusterOutlined
- FundTwoTone
- UnlockOutlined
- NotificationTwoTone
- FileUnknownOutlined
- ScheduleOutlined
- SaveOutlined
- InsertRowAboveOutlined
- PushpinFilled
- PushpinTwoTone
- BorderOuterOutlined
- DownSquareOutlined
- GatewayOutlined
- InteractionOutlined
- NodeIndexOutlined
- LikeTwoTone
- Html5Outlined
- OrderedListOutlined
- InstagramOutlined
- WhatsAppOutlined
- IdcardTwoTone
- FileTextTwoTone
- TableOutlined
- DeleteFilled
- EditFilled
- FileAddFilled
- RightCircleTwoTone
- DownCircleTwoTone
- FolderOutlined
- InsuranceOutlined
- UserSwitchOutlined
- OneToOneOutlined
- FileWordOutlined
- FileZipOutlined
- FolderTwoTone
- ClearOutlined
- FileProtectOutlined
- getTwoToneColor
- DownCircleOutlined
- UpCircleOutlined
- BookOutlined
- GithubFilled
- StarFilled
- EnterOutlined
- ZoomInOutlined
- ZoomOutOutlined
- PictureFilled
- FolderOpenOutlined
- FundViewOutlined
- MergeCellsOutlined
- SplitCellsOutlined
- FormatPainterOutlined
- CarOutlined
- ReadOutlined
- AudioMutedOutlined
- RotateRightOutlined
- BorderOutlined
- BorderVerticleOutlined
- BorderHorizontalOutlined
- DragOutlined
- FilterOutlined
- BulbOutlined
- BgColorsOutlined
- ChromeOutlined
- FireFilled
- FilterTwoTone
- BellFilled
- FolderAddTwoTone
- ApiTwoTone
- CopyTwoTone
- WarningTwoTone
- DeploymentUnitOutlined
- ExperimentOutlined
- LineOutlined
- StepForwardOutlined
- EnvironmentOutlined
- AreaChartOutlined
- VerifiedOutlined
- CodeFilled
- BugFilled
- SnippetsOutlined
- VerticalAlignMiddleOutlined
- InfoCircleFilled
- CaretUpFilled
- FundProjectionScreenOutlined
- PartitionOutlined
- DislikeOutlined
- CloudOutlined
- ShopOutlined
- CalendarOutlined
- RadiusUpleftOutlined
- RadiusUprightOutlined
- RadiusBottomleftOutlined
- RadiusBottomrightOutlined
- MehOutlined
- AppleOutlined
- AndroidOutlined
- LinkedinOutlined
- FrownFilled
- CarryOutOutlined
- StarTwoTone
- DingdingOutlined
- AlipayCircleOutlined
- TaobaoCircleOutlined
- WeiboCircleOutlined
- TagFilled
OtherRelated APIs
- react#useState
- react#useEffect
- react#Component
- antd#Modal
- antd#Button
- antd#Input
- antd#Row
- antd#Col
- antd#Tabs
- antd#message
- antd#Typography
- antd#Form
- @ant-design/icons#UserOutlined
- @ant-design/icons#SmileTwoTone
- @ant-design/icons#CheckCircleOutlined
- @ant-design/icons#AppstoreOutlined
- @ant-design/icons#SmileOutlined
- @ant-design/icons#SmileFilled
- @storybook/react#storiesOf
- dva#connect
- dva/router#routerRedux
@ant-design/icons#HighlightOutlined JavaScript Examples
The following examples show how to use
@ant-design/icons#HighlightOutlined.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: interactive.jsx From virtuoso-design-system with MIT License | 5 votes |
Demo = () => {
const [editableStr, setEditableStr] = useState('This is an editable text.');
const [customIconStr, setCustomIconStr] = useState('Custom Edit icon and replace tooltip text.');
const [hideTooltipStr, setHideTooltipStr] = useState('Hide Edit tooltip.');
const [lengthLimitedStr, setLengthLimitedStr] = useState(
'This is an editable text with limited length.',
);
return (
<>
<Paragraph editable={{ onChange: setEditableStr }}>{editableStr}</Paragraph>
<Paragraph
editable={{
icon: <HighlightOutlined />,
tooltip: 'click to edit text',
onChange: setCustomIconStr,
}}
>
{customIconStr}
</Paragraph>
<Paragraph editable={{ tooltip: false, onChange: setHideTooltipStr }}>
{hideTooltipStr}
</Paragraph>
<Paragraph
editable={{
onChange: setLengthLimitedStr,
maxLength: 50,
autoSize: { maxRows: 5, minRows: 3 },
}}
>
{lengthLimitedStr}
</Paragraph>
<Paragraph copyable>This is a copyable text.</Paragraph>
<Paragraph copyable={{ text: 'Hello, Ant Design!' }}>Replace copy text.</Paragraph>
<Paragraph
copyable={{
icon: [<SmileOutlined key="copy-icon" />, <SmileFilled key="copied-icon" />],
tooltips: ['click here', 'you clicked!!'],
}}
>
Custom Copy icon and replace tooltips text.
</Paragraph>
<Paragraph copyable={{ tooltips: false }}>Hide Copy tooltips.</Paragraph>
</>
);
}
Example #2
Source File: componentDrag.js From react-drag with MIT License | 4 votes |
IndexView = props => {
const { dispatch, componentView, form, match } = props;
const { params } = match;
const { getFieldDecorator } = form;
const [comListHidden, setComListHidden] = useState(false);
/**
* @description 左边切换的事件,是否显示componentList
*/
const toggleComponentList = () => {
setComListHidden(!comListHidden);
};
const cls = classNames(styles.ComponentList, {
[styles.hidden]: comListHidden === true,
});
/**
* @description 生成预览代码
*/
const CodePreview = () => {
console.log('com', componentView);
dispatch(routerRedux.push('/codePreview'));
};
useEffect(() => {
// 首次执行
console.log('mount----');
// 发送setcurrentview
dispatch({
type: 'drag/getComponentCode',
payload: {
id: params.id,
},
});
}, []);
/**
* @description 发送到服务器
*/
const postToServer = () => {
if (componentValidator(componentView)) {
dispatch({
type: 'drag/putComponentCode',
payload: {
id: params.id,
code: componentView,
},
});
}
};
const basicObj = {
type: 'div',
nested: true,
props: {
style: {
height: '',
width: '',
marginTop: '',
},
},
needDiv: false,
children: [],
};
// 组件不能为空
const componentValidator = componentView => {
if (componentView.length === 0) {
// 提示不能为空
message.error('组件不能为空');
return false;
} else if (componentView.length === 1) {
return true;
} else {
confirm({
title: '组件必须在被包裹在一个根组件下,是否自动生成外层根组件包裹?',
content: '当你点击ok,自动生成包裹根组件',
okText: '确认',
cancelText: '取消',
onOk() {
return new Promise((resolve, reject) => {
// dispatch
const basic = basicObj;
basic.children = componentView;
dispatch({
type: 'drag/setCurrentView',
payload: [basic],
isPage: false,
});
setTimeout(resolve, 1000);
}).catch(() => console.log('Oops errors!'));
},
onCancel() {},
});
return false;
}
};
/**
* @description 跳转代码广场
*/
const comSquare = () => {
dispatch(routerRedux.push('/comsquare'));
};
return (
<div className={styles.container}>
<div className={styles.LeftContainer}>
<div className={styles.header}>
<div className={styles.btnList}>
<div className={styles.logo}>React-Drag</div>
<div className={styles.operation}>
<div className={styles.btn} style={{ color: '#1890FF' }}>
<HighlightOutlined style={{ fontSize: '22px' }} />
组件编辑
</div>
<div className={styles.btn} onClick={comSquare}>
<AppstoreOutlined style={{ fontSize: '22px' }} />
组件广场
</div>
<div className={styles.btn} onClick={postToServer}>
<CheckCircleOutlined style={{ fontSize: '22px' }} />
保存到服务器
</div>
</div>
<div className={styles.userCenter}>
<div className={styles.btn} onClick={CodePreview}>
<UserOutlined style={{ fontSize: '22px' }} />
用户中心
</div>
</div>
</div>
</div>
<div className={styles.content}>
<div className={styles.settings}>
<span onClick={toggleComponentList}>
<SmileTwoTone style={{ fontSize: '24px' }} />
</span>
</div>
<div className={styles.editRegion}>
<div className={cls}>
<Tabs>
<TabPane tab="公共组件" key="1">
<ComponentList />
</TabPane>
</Tabs>
</div>
<div className={styles.dragRegion}>
<DragCanvas isPage={false} />
</div>
</div>
<div className={styles.RightContainer}>
<div className={styles.title}>属性编辑区</div>
<ComponentConfig isPage={false} />
</div>
</div>
<div className={styles.footer}>
{' '}
MIT Licensed | Copyright © 2019.12.31-present Daisy
</div>
</div>
</div>
);
}