first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:10:55 +08:00
commit 1c24452b6c
1735 changed files with 150474 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
"use strict";
const uni_modules_wotDesignUni_components_common_props = require("../common/props.js");
const swiperNavprops = {
...uni_modules_wotDesignUni_components_common_props.baseProps,
/**
* 当前轮播在哪一项(下标)
*/
current: uni_modules_wotDesignUni_components_common_props.makeNumberProp(0),
/**
* 轮播滑动方向,包括横向滑动和纵向滑动两个方向
*/
direction: uni_modules_wotDesignUni_components_common_props.makeStringProp("horizontal"),
/**
* 小于这个数字不会显示导航器
*/
minShowNum: uni_modules_wotDesignUni_components_common_props.makeNumberProp(2),
/**
* 指示器位置
*/
indicatorPosition: uni_modules_wotDesignUni_components_common_props.makeStringProp("bottom"),
/**
* 是否显示两侧的控制按钮
*/
showControls: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 总共的项数
*/
total: uni_modules_wotDesignUni_components_common_props.makeNumberProp(0),
/**
* 指示器类型,点状(dots)、点条状(dots-bar)、分式(fraction)等
*/
type: uni_modules_wotDesignUni_components_common_props.makeStringProp("dots")
};
exports.swiperNavprops = swiperNavprops;
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/wot-design-uni/components/wd-swiper-nav/types.js.map

View File

@@ -0,0 +1,45 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const uni_modules_wotDesignUni_components_wdSwiperNav_types = require("./types.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "wd-swiper-nav",
props: uni_modules_wotDesignUni_components_wdSwiperNav_types.swiperNavprops,
emits: ["change"],
setup(__props, { emit: __emit }) {
const emit = __emit;
function handleNav(dir) {
const source = "nav";
emit("change", { dir, source });
}
return (_ctx, _cache) => {
return common_vendor.e({
a: _ctx.showControls
}, _ctx.showControls ? {
b: common_vendor.o(($event) => handleNav("prev")),
c: common_vendor.o(($event) => handleNav("next"))
} : {}, {
d: _ctx.total >= _ctx.minShowNum
}, _ctx.total >= _ctx.minShowNum ? common_vendor.e({
e: _ctx.type === "dots" || _ctx.type === "dots-bar"
}, _ctx.type === "dots" || _ctx.type === "dots-bar" ? {
f: common_vendor.f(_ctx.total, (_, index, i0) => {
return {
a: index,
b: common_vendor.n(`wd-swiper-nav__item--${_ctx.type} ${_ctx.current === index ? "is-active" : ""} is-${_ctx.direction}`)
};
})
} : {}, {
g: _ctx.type === "fraction"
}, _ctx.type === "fraction" ? {
h: common_vendor.t(_ctx.current + 1),
i: common_vendor.t(_ctx.total)
} : {}, {
j: common_vendor.s(_ctx.customStyle),
k: common_vendor.n(`wd-swiper-nav wd-swiper-nav--${_ctx.direction} wd-swiper-nav--${_ctx.type} wd-swiper-nav--${_ctx.indicatorPosition} ${_ctx.customClass}`)
}) : {});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7a2b7438"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/wot-design-uni/components/wd-swiper-nav/wd-swiper-nav.js.map

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view wx:if="{{a}}" class="wd-swiper-nav__btn data-v-7a2b7438"><view class="wd-swiper-nav__btn--prev data-v-7a2b7438" bindtap="{{b}}"/><view class="wd-swiper-nav__btn--next data-v-7a2b7438" bindtap="{{c}}"/></view><view wx:if="{{d}}" style="{{j}}" class="{{['data-v-7a2b7438', k]}}"><block wx:if="{{e}}"><view wx:for="{{f}}" wx:for-item="_" wx:key="a" class="{{['data-v-7a2b7438', _.b]}}"></view></block><block wx:if="{{g}}">{{h}}/{{i}}</block></view>

View File

@@ -0,0 +1,285 @@
/* 水平间距 */
/* 水平间距 */
/**
* 辅助函数
*/
/**
* SCSS 配置项命名空间以及BEM
*/
/* 转换成字符串 */
/* 判断是否存在 Modifier */
/* 判断是否存在伪类 */
/**
* 主题色切换
* @params $theme-color 主题色
* @params $type 变暗dark 变亮 'light'
* @params $mix-color 自己设置的混色
*/
/**
* 颜色结果切换, 如果开启线性渐变色 使用渐变色,如果没有开启,那么使用主题色
* @params $open-linear 是否开启线性渐变色
* @params $deg 渐变色角度
* @params $theme-color 当前配色
* @params [Array] $set 主题色明暗设置,与 $color-list 数量对应
* @params [Array] $color-list 渐变色顺序, $color-list 和 $per-list 数量相同
* @params [Array] $per-list 渐变色比例
*/
/**
* UI规范基础变量
*/
/*----------------------------------------- Theme color. start ----------------------------------------*/
/* 主题颜色 */
/* 辅助色 */
/* 文字颜色(默认浅色背景下 */
/* 暗黑模式 */
/* 图形颜色 */
/*----------------------------------------- Theme color. end -------------------------------------------*/
/*-------------------------------- Theme color application size. start --------------------------------*/
/* 文字字号 */
/* 文字字重 */
/* 尺寸 */
/*-------------------------------- Theme color application size. end --------------------------------*/
/* component var */
/* action-sheet */
/* badge */
/* button */
/* cell */
/* calendar */
/* checkbox */
/* collapse */
/* divider */
/* drop-menu */
/* input-number */
/* input */
/* textarea */
/* loadmore */
/* message-box */
/* notice-bar */
/* pagination */
/* picker */
/* col-picker */
/* overlay */
/* popup */
/* progress */
/* radio */
/* search */
/* slider */
/* sort-button */
/* steps */
/* switch */
/* tabs */
/* tag */
/* toast */
/* loading */
/* tooltip */
/* popover */
/* grid-item */
/* statustip */
/* card */
/* upload */
/* curtain */
/* notify */
/* skeleton */
/* circle */
/* swiper */
/* swiper-nav */
/* segmented */
/* tabbar */
/* tabbar-item */
/* navbar */
/* navbar-capsule */
/* table */
/* sidebar */
/* sidebar-item */
/* fab */
/* count-down */
/* keyboard */
/* number-keyboard */
/* passwod-input */
/* form-item */
/* backtop */
/* index-bar */
/* text */
/* video-preview */
/* img-cropper */
/* floating-panel */
/* signature */
/**
* 混合宏
*/
/**
* SCSS 配置项命名空间以及BEM
*/
/**
* 辅助函数
*/
/**
* SCSS 配置项命名空间以及BEM
*/
/* 转换成字符串 */
/* 判断是否存在 Modifier */
/* 判断是否存在伪类 */
/**
* 主题色切换
* @params $theme-color 主题色
* @params $type 变暗dark 变亮 'light'
* @params $mix-color 自己设置的混色
*/
/**
* 颜色结果切换, 如果开启线性渐变色 使用渐变色,如果没有开启,那么使用主题色
* @params $open-linear 是否开启线性渐变色
* @params $deg 渐变色角度
* @params $theme-color 当前配色
* @params [Array] $set 主题色明暗设置,与 $color-list 数量对应
* @params [Array] $color-list 渐变色顺序, $color-list 和 $per-list 数量相同
* @params [Array] $per-list 渐变色比例
*/
/**
* BEM定义块b)
*/
/* 定义元素e对于伪类会自动将 e 嵌套在 伪类 底下 */
/* 此方法用于生成穿透样式 */
/* 定义元素e对于伪类会自动将 e 嵌套在 伪类 底下 */
/* 定义状态m */
/* 定义状态m */
/* 对于需要需要嵌套在 m 底下的 e调用这个混合宏一般在切换整个组件的状态如切换颜色的时候 */
/* 状态,生成 is-$state 类名 */
/**
* 常用混合宏
*/
/* 单行超出隐藏 */
/* 多行超出隐藏 */
/* 清除浮动 */
/* 0.5px 边框 指定方向*/
/* 0.5px 边框 环绕 */
/**
* 三角形实现尖角样式,适用于背景透明情况
* @param $size 三角形高,底边为 $size * 2
* @param $bg 三角形背景颜色
*/
/**
* 正方形实现尖角样式,适用于背景不透明情况
* @param $size 正方形边长
* @param $bg 正方形背景颜色
* @param $z-index z-index属性值不得大于外部包裹器
* @param $box-shadow 阴影
*/
.wd-swiper-nav__btn--prev.data-v-7a2b7438, .wd-swiper-nav__btn--next.data-v-7a2b7438 {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: var(--wot-swiper-nav-btn-size, 48rpx);
height: var(--wot-swiper-nav-btn-size, 48rpx);
border-radius: 50%;
background: var(--wot-swiper-nav-btn-bg-color, var(--wot-font-gray-3, rgba(0, 0, 0, 0.4)));
}
.wd-swiper-nav__btn--prev.data-v-7a2b7438::after, .wd-swiper-nav__btn--next.data-v-7a2b7438::after {
position: absolute;
left: 50%;
top: 50%;
display: block;
content: "";
width: 12rpx;
height: 12rpx;
border-color: var(--wot-swiper-nav-btn-color, var(--wot-font-white-1, white));
border-style: solid;
}
.wd-swiper-nav__btn--prev.data-v-7a2b7438 {
left: 30rpx;
}
.wd-swiper-nav__btn--prev.data-v-7a2b7438::after {
margin-left: 4rpx;
border-width: 2rpx 0 0 2rpx;
transform: translate(-50%, -50%) rotateZ(-45deg);
}
.wd-swiper-nav__btn--next.data-v-7a2b7438 {
right: 30rpx;
}
.wd-swiper-nav__btn--next.data-v-7a2b7438::after {
margin-left: -4rpx;
border-width: 2rpx 2rpx 0 0;
transform: translate(-50%, -50%) rotateZ(45deg);
}
.wd-swiper-nav--dots.data-v-7a2b7438, .wd-swiper-nav--dots-bar.data-v-7a2b7438 {
display: flex;
flex-direction: row;
}
.wd-swiper-nav--fraction.data-v-7a2b7438 {
padding: 0 16rpx;
height: var(--wot-swiper-nav-fraction-height, 48rpx);
line-height: var(--wot-swiper-nav-fraction-height, 48rpx);
border-radius: calc(var(--wot-swiper-nav-fraction-height, 48rpx) / 2);
background: var(--wot-swiper-nav-fraction-bg-color, var(--wot-font-gray-3, rgba(0, 0, 0, 0.4)));
color: var(--wot-swiper-nav-fraction-color, var(--wot-font-white-1, white));
font-size: var(--wot-swiper-nav-fraction-font-size, 24rpx);
}
.wd-swiper-nav__item--dots.data-v-7a2b7438, .wd-swiper-nav__item--dots-bar.data-v-7a2b7438 {
width: var(--wot-swiper-nav-dot-size, 12rpx);
height: var(--wot-swiper-nav-dot-size, 12rpx);
background: var(--wot-swiper-nav-dot-color, var(--wot-font-white-2, rgba(255, 255, 255, 0.55)));
border-radius: 50%;
margin: 0 10rpx;
transition: all 0.4s ease-in;
}
.wd-swiper-nav__item--dots.is-vertical.data-v-7a2b7438, .wd-swiper-nav__item--dots-bar.is-vertical.data-v-7a2b7438 {
margin: 10rpx 0;
}
.wd-swiper-nav__item--dots.is-active.data-v-7a2b7438, .wd-swiper-nav__item--dots-bar.is-active.data-v-7a2b7438 {
background-color: var(--wot-swiper-nav-dot-active-color, var(--wot-font-white-1, white));
}
.wd-swiper-nav__item--dots-bar.is-vertical.is-active.data-v-7a2b7438 {
width: var(--wot-swiper-nav-dot-size, 12rpx);
height: var(--wot-swiper-nav-dots-bar-active-width, 40rpx);
}
.wd-swiper-nav__item--dots-bar.is-active.data-v-7a2b7438 {
width: var(--wot-swiper-nav-dots-bar-active-width, 40rpx);
border-radius: calc(var(--wot-swiper-nav-dot-size, 12rpx) / 2);
background-color: var(--wot-swiper-nav-dot-active-color, var(--wot-font-white-1, white));
}
.wd-swiper-nav--left.data-v-7a2b7438 {
position: absolute;
left: 24rpx;
top: 50%;
transform: translateY(-50%);
}
.wd-swiper-nav--right.data-v-7a2b7438 {
position: absolute;
right: 24rpx;
top: 50%;
transform: translateY(-50%);
}
.wd-swiper-nav--top-left.data-v-7a2b7438 {
position: absolute;
top: 24rpx;
left: 24rpx;
}
.wd-swiper-nav--top.data-v-7a2b7438 {
position: absolute;
left: 50%;
top: 24rpx;
transform: translateX(-50%);
}
.wd-swiper-nav--top-right.data-v-7a2b7438 {
position: absolute;
top: 24rpx;
right: 24rpx;
}
.wd-swiper-nav--bottom-left.data-v-7a2b7438 {
position: absolute;
left: 24rpx;
bottom: 24rpx;
}
.wd-swiper-nav--bottom.data-v-7a2b7438 {
position: absolute;
left: 50%;
bottom: 24rpx;
transform: translateX(-50%);
}
.wd-swiper-nav--bottom-right.data-v-7a2b7438 {
position: absolute;
right: 24rpx;
bottom: 24rpx;
}
.wd-swiper-nav--vertical.data-v-7a2b7438 {
flex-direction: column;
}