.text-center { text-align: center; } .text-grey1 { color: #888; } .text-grey2 { color: #aaa; } .list-cell { position: relative; width: 100%; box-sizing: border-box; background-color: #fff; color: #333; padding: 26rpx 30rpx; } .list-cell:first-child { border-radius: 8rpx 8rpx 0 0; } .list-cell:last-child { border-radius: 0 0 8rpx 8rpx; } .list-cell::after { content: ''; position: absolute; border-bottom: 1px solid #eaeef1; -webkit-transform: scaleY(0.5) translateZ(0); transform: scaleY(0.5) translateZ(0); transform-origin: 0 100%; bottom: 0; right: 0; left: 0; pointer-events: none; } .list-cell-arrow::before { content: ' '; height: 10px; width: 10px; border-width: 2px 2px 0 0; border-color: #c0c0c0; border-style: solid; -webkit-transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0); transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0); position: absolute; top: 50%; margin-top: -6px; right: 30rpx; } .menu-list { margin: 0.625rem 0.625rem; .menu-item { width: 100%; display: flex; align-items: center; .title { width: 80%; white-space: nowrap; overflow: hidden; //超出的文本隐藏 text-overflow: ellipsis; //溢出用省略号显示 } .content { width: 20%; text-align: right; white-space: nowrap; overflow: hidden; //超出的文本隐藏 text-overflow: ellipsis; //溢出用省略号显示 } &-icon { color: $uni-color-primary; font-size: 16px; margin: auto 5px auto 0; } &-image { margin-right: 5px; } .text-right { margin: 0 15px 0 auto; font-size: 14px; color: #909399 } .button { width: 100%; text-align: center; white-space: nowrap; overflow: hidden; //超出的文本隐藏 text-overflow: ellipsis; //溢出用省略号显示 &.error { color: red; } } } } .textExceeds{ word-wrap: break-word; word-break: break-all; }