form-picker-popup.wxss 2.88 KB
/* 内联 Popup 壳层 — 对齐创建工单,避免 shared 隔离导致页面 .text-center 污染标题 */
/* root-portal 内不可依赖 page 的 --fontSize*,尺寸一律用 rpx */
.picker-popup-shell {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	transform: translateZ(2px);
}

.picker-popup-shell__bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
}

.picker-popup-shell__content {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: 20rpx 20rpx 0 0;
	animation: picker-popup-show 0.5s forwards;
	box-sizing: border-box;
	padding: 0 32rpx;
	/* root-portal 内 SearchInput 依赖的 --fontSize*(对齐 app.sass page 变量) */
	--fontSize104: 104rpx;
	--fontSize72: 72rpx;
	--fontSize38: 38rpx;
	--fontSize32: 32rpx;
	--fontSize28: 28rpx;
	--fontSize10: 10rpx;
}

.picker-popup-shell__title {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 98rpx;
	font-size: 32rpx;
	color: #333;
	border-bottom: 2rpx solid #ebedf0;
}

.picker-popup-shell__search {
	flex-shrink: 0;
	margin: 0 -32rpx;
	padding: 0;
}

.picker-popup-shell__search search-input {
	border: none;
}

.picker-popup-shell__slot {
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.picker-popup-shell__footer {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20rpx 0;
	box-shadow: none;
}

.picker-popup-shell__footer.is-full {
	padding-bottom: 68rpx;
}

.picker-popup-shell__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 330rpx;
	height: 80rpx;
	box-sizing: border-box;
	border-radius: 12rpx;
	font-size: 32rpx;
	box-shadow: none;
}

.picker-popup-shell__btn--cancel {
	color: #292d33;
	background: #f7f8fa;
}

.picker-popup-shell__btn--confirm {
	background: #347bff;
	color: #fff;
}

@keyframes picker-popup-show {
	0% {
		bottom: -100%;
	}
	100% {
		bottom: 0;
	}
}

.picker-popup__scroll {
	height: 100%;
}

.picker-popup__loading,
.picker-popup__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200rpx;
	font-size: 28rpx;
	color: #888;
}

.picker-popup__item {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 88rpx;
	padding: 0 32rpx 0 92rpx;
	font-size: 28rpx;
	color: #333;
	border-bottom: 2rpx solid #ebedf0;
}

.picker-popup__item:last-child {
	border-bottom: none;
}

.picker-popup__item.is-active {
	color: #347bff;
	font-weight: 700;
}

.picker-popup__icon {
	display: none;
	position: absolute;
	left: 20rpx;
	top: 50%;
	width: 32rpx;
	height: 32rpx;
	transform: translateY(-50%);
}

.picker-popup__item.is-active .picker-popup__icon {
	display: block;
}

.picker-popup__icon-img {
	width: 32rpx;
	height: 32rpx;
}

.picker-popup__label {
	flex: 1;
	line-height: 40rpx;
}