1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- /* myComponents/myInput/myInput.wxss */
- @import "/static/iconfont/iconfont.wxss";
- page{
- --padding: 15rpx;
- }
- .myInput{
- display: flex;
- }
- .default {
- display: none;
- }
- .left{
- position: relative;
- width: 100%;
- height: 50rpx;
- line-height: 50rpx;
- padding: var(--padding) 60rpx var(--padding) var(--padding);
- border: 1rpx solid var(--themeColor);
- }
- .inner_icon{
- height: 100%;
- line-height: calc(50rpx + var(--padding) + var(--padding));
- text-align: center;
- width:60rpx;
- position: absolute;
- right:0rpx;
- top: 0rpx;
- z-index: 1;
- }
- .input_type:empty + .default {
- display: block;
- }
- .input_type:empty{
- display: none;
- }
- .right{
- height: 50rpx;
- width: 80rpx;
- /* line-height: 50rpx; */
- padding: var(--padding);
- border: 1rpx solid var(--themeColor);
- border-left: none;
- }
- .btn{
- background-color: transparent; /* 透明背景 */
- border-radius: 0;
- border: none; /* 无边框 */
- padding: 0rpx; /* 无内边距 */
- margin: 0rpx; /* 无外边距 */
- height: 100%;
- line-height: 50rpx;
- width: 80rpx;
- }
- .btn::after{
- border-radius: 0;
- border: none;
- }
- .btn_icon:empty + .default {
- display: block;
- }
- .placeholder{
- font-size: 30rpx;
- }
- .editBox{
- display: flex;
- align-items: stretch;
- }
- .upload{
- width: 250rpx;
- margin: auto;
- }
|