/* 全局样式 - 使表格内容可以复制和选择 */
.ivu-table-wrapper .ivu-table-body td,
.ivu-table-wrapper .ivu-table-body td div,
.ivu-table-wrapper .ivu-table-cell,
.ivu-table-wrapper .ivu-table-cell * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* 这个样式会覆盖全局的不可选择设置 */
div.ivu-table div,
div.ivu-table p,
div.ivu-table span,
div.ivu-table td,
div.ivu-table th {
  word-break: break-all !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* ========== 文本省略样式类 ========== */
/* 单行省略 */
.text-ellipsis-1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  line-height: 1.5;
  max-height: 1.5em;
}

/* 两行省略 */
.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  line-height: 1.5;
  max-height: 3em;
}

/* 三行省略 */
.text-ellipsis-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  line-height: 1.5;
  max-height: 4.5em;
}

/* 四行省略 */
.text-ellipsis-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  line-height: 1.5;
  max-height: 6em;
}


/* iView 组件禁用样式全局设置 */
.ivu-input-disabled {
  color: #515a6e !important;
}
.ivu-select-disabled .ivu-select-selection {
  color: #515a6e !important;
}
