美文网首页
易忘使用tip

易忘使用tip

作者: krystal_H | 来源:发表于2024-07-24 17:49 被阅读0次
  1. form表单中使用问号提示:
{
   type: 'custom',
   vmodel: 'skuSource',
   skipLog: true,
   label: 'SKU来源',
   formItemLabelTips: <><div>sku随便写点字</div><div>指定SK</div></>,
   formItemLabelTipsProps: {
      children: <QuestionCircleOutlined className="m-x-5" />,
   },
 }
  1. table表头标题使用提示
{
     align: 'center',
     dataIndex: 'minStoreProductNumber',
     title: (
           <>
               <Tooltip
                   title={
                        <div>
                           <div>随便写两行</div>
                           <div>aaaa</div>
                        </div>
                    }
               >
                   <span className="m-r-5">最低在线数</span>
                   <QuestionCircleOutlined />
              </Tooltip>
           </>
    )
}
  1. modal中确定按钮在loading,禁止取消按钮
cancelButtonProps={{disabled: state.loading}}
  1. 大文本省略,悬浮显示
<OperationContent rows={2}>{item.dynamicInventoryRemark}</OperationContent>
import {Typography} from 'antd';
import React, {FC} from 'react';

import styles from './index.less';

/** 大文本省略,悬浮提示 */
const OperationContent: FC<IOperationContentProps> = ({
    children,
    rows = 11,
}) => {

    return (
        <Typography.Paragraph
            className={styles['operation-content']}
            ellipsis={{
                rows,
                tooltip: {
                    arrow: false,
                    children,
                    overlayClassName: styles['operation-content-tips'],
                    overlayInnerStyle: {whiteSpace: 'pre-wrap'},
                    placement: 'right',
                },
            }}
        >
            {children}
        </Typography.Paragraph>
    );
};

export {OperationContent};

interface IOperationContentProps {
    children: React.ReactNode;
    rows?: number;
}

相关文章

  • 设置UITextField占位符placeholder颜色

    Tip 使用attributedPlaceholder

  • 夫天运

    …… “故曰:以敬孝易,以爱孝难;以爱孝易,而忘亲难;忘亲易,使亲忘我难;使亲忘我易,兼忘天下难;兼忘天下易...

  • Git使用Tip

    提取Git历史记录中的文件:打开终端,进入项目目录;获取你提交或修改该文件时git commit id;然后执行以...

  • Ubuntu使用Tip

    Ubuntu下安装sublime 转:Ubuntu Terminal常用快捷键实用的Ubuntu快捷键参考手册 开...

  • Tip | OkHttp使用

    OkHttp由Square公司开发,其不仅在接口封装上面做的简单易用,就连在底层实现上也是自成一派,比起原生的Ht...

  • learn-react之基础

    JSX tip:使用jsx必须引用react 解决方案

  • 关于忘记和记起

    年龄大了,易忘; 事情多了,易忘; 百分百投入一件事的时间,另一件事易忘。 紧急的事情出现,重要和长期的事情易忘。...

  • Visual Studio Code 插件

    vscode-fileheader 使用 tip : control + alt + i 效果 One Dark ...

  • thinkcmf5 导入excel

    目录: php代码: html代码: tip:使用cmf自带的上传文件插件

  • java8_CompletableFuture

    标签:java 可完成的Future 回顾Future使用 CompletableFuture tip:**Asy...

网友评论

      本文标题:易忘使用tip

      本文链接:https://www.haomeiwen.com/subject/qyhphjtx.html