UNPKG

tc-directive-plus

Version:

一个基于Vue3.x较为常用的自定义指令库

143 lines (118 loc) 3.01 kB
.tc-loading { top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.6); transition: opacity 0.2s; z-index: 99; opacity: 0; -webkit-animation: show_loader 0.2s ease-in-out; animation: show_loader 0.2s ease-in-out; } @keyframes show_loader { from { opacity: 0; } to { opacity: 1; } } @-webkit-keyframes show_loader { from { opacity: 0; } to { opacity: 1; } } .tc-loading .container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; display: block; text-align: center; line-height: 60px; z-index: 100; } .tc-loading .loading-animate { width: 25px; height: 25px; display: block; padding: 0px; border-radius: 100%; margin: 0 auto; border: 4px solid; color: rgba(45, 140, 240, 1); border-bottom-color: rgba(0, 0, 0, 0.1); border-right-color: rgba(0, 0, 0, 0.1); -webkit-animation: tc_loading 0.8s ease-in-out infinite; animation: tc_loading 0.8s ease-in-out infinite; } @keyframes tc_loading { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @-webkit-keyframes tc_loading { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } .tc-loading .text { height: 30px; display: block; font-size: 12px; font-weight: 400; font-size: 14px; text-align: center; line-height: 40px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; color: rgba(45, 140, 240, 1); } .is-disabled { opacity: 0.5; cursor: default; } .tc-is-move { cursor: "move"; } .waves-ripple { position: absolute; -moz-border-radius: 100%; border-radius: 100%; background-color: rgba(0, 0, 0, .15); background-clip: padding-box; pointer-events: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-transform: scale(0); -moz-transform: scale(0); transform: scale(0); opacity: 1 } .waves-ripple.z-active { opacity: 0; -webkit-transform: scale(2); -moz-transform: scale(2); transform: scale(2); -webkit-transition: opacity 1.2s ease-out, -webkit-transform .6s ease-out; transition: opacity 1.2s ease-out, -webkit-transform .6s ease-out; -moz-transition: opacity 1.2s ease-out, transform .6s ease-out, -moz-transform .6s ease-out; transition: opacity 1.2s ease-out, transform .6s ease-out; transition: opacity 1.2s ease-out, transform .6s ease-out, -webkit-transform .6s ease-out, -moz-transform .6s ease-out; transition: opacity 1.2s ease-out, transform .6s ease-out, -webkit-transform .6s ease-out }