Antd Select框禁用后,文字不能复制问题解决

 问题解决:

.ant-select-disabled {
    cursor: default;   // 去掉悬浮时出现的小手

    .ant-select-selector {
        pointer-events: none; // 你可以看到元素,但你操作不到,操作会穿透触发到下层的元素

        .ant-select-selection-item {
             user-select: auto; // 允许选择文本
        }
    }
}    

  

posted @ 2023-11-03 11:34  飞奔的程序员  阅读(569)  评论(0编辑  收藏  举报