- 创建 Clothespic.vue 组件,包含试穿按钮和样式 - 在 fittingRoom/index.vue 中引入并使用 Clothespic 组件- 调整组件导入顺序以优化代码结构- 添加 uv-button 和 uv-loading-icon 组件模块及相关配置 - 更新组件 changelog、package.json、props.js 和 readme.md 文件 - 实现按钮和加载图标的基础样式与功能配置
94 lines
1.9 KiB
SCSS
94 lines
1.9 KiB
SCSS
@import '@/uni_modules/uv-ui-tools/libs/css/color.scss';
|
|
// nvue下hover-class无效
|
|
$uv-button-before-top:50% !default;
|
|
$uv-button-before-left:50% !default;
|
|
$uv-button-before-width:100% !default;
|
|
$uv-button-before-height:100% !default;
|
|
$uv-button-before-transform:translate(-50%, -50%) !default;
|
|
$uv-button-before-opacity:0 !default;
|
|
$uv-button-before-background-color:#000 !default;
|
|
$uv-button-before-border-color:#000 !default;
|
|
$uv-button-active-before-opacity:.15 !default;
|
|
$uv-button-icon-margin-left:4px !default;
|
|
$uv-button-plain-uv-button-info-color:$uv-info;
|
|
$uv-button-plain-uv-button-success-color:$uv-success;
|
|
$uv-button-plain-uv-button-error-color:$uv-error;
|
|
$uv-button-plain-uv-button-warning-color:$uv-warning;
|
|
|
|
.uv-button-wrapper {
|
|
position: relative;
|
|
&--dis {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 9;
|
|
}
|
|
}
|
|
|
|
.uv-button {
|
|
width: 100%;
|
|
|
|
&__text {
|
|
white-space: nowrap;
|
|
line-height: 1;
|
|
}
|
|
|
|
&:before {
|
|
position: absolute;
|
|
top:$uv-button-before-top;
|
|
left:$uv-button-before-left;
|
|
width:$uv-button-before-width;
|
|
height:$uv-button-before-height;
|
|
border: inherit;
|
|
border-radius: inherit;
|
|
transform:$uv-button-before-transform;
|
|
opacity:$uv-button-before-opacity;
|
|
content: " ";
|
|
background-color:$uv-button-before-background-color;
|
|
border-color:$uv-button-before-border-color;
|
|
}
|
|
|
|
&--active {
|
|
&:before {
|
|
opacity: .15
|
|
}
|
|
}
|
|
|
|
&__icon+&__text:not(:empty),
|
|
&__loading-text {
|
|
margin-left:$uv-button-icon-margin-left;
|
|
}
|
|
|
|
&--plain {
|
|
&.uv-button--primary {
|
|
color: $uv-primary;
|
|
}
|
|
}
|
|
|
|
&--plain {
|
|
&.uv-button--info {
|
|
color:$uv-button-plain-uv-button-info-color;
|
|
}
|
|
}
|
|
|
|
&--plain {
|
|
&.uv-button--success {
|
|
color:$uv-button-plain-uv-button-success-color;
|
|
}
|
|
}
|
|
|
|
&--plain {
|
|
&.uv-button--error {
|
|
color:$uv-button-plain-uv-button-error-color;
|
|
}
|
|
}
|
|
|
|
&--plain {
|
|
&.uv-button--warning {
|
|
color:$uv-button-plain-uv-button-warning-color;
|
|
}
|
|
}
|
|
}
|