打包地址

This commit is contained in:
zoujiandong
2025-06-17 13:40:11 +08:00
parent 28065a3a18
commit 33b5e299da
532 changed files with 42087 additions and 1 deletions
@@ -0,0 +1,44 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const uvImage = () => "../u-image/u-image.js";
const _sfc_main = {
name: "u--image",
mixins: [common_vendor.mpMixin, common_vendor.props, common_vendor.mixin],
components: {
uvImage
},
emits: ["click", "error", "load"]
};
if (!Array) {
const _component_uvImage = common_vendor.resolveComponent("uvImage");
_component_uvImage();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o(($event) => _ctx.$emit("click")),
b: common_vendor.o(($event) => _ctx.$emit("error")),
c: common_vendor.o(($event) => _ctx.$emit("load")),
d: common_vendor.p({
src: _ctx.src,
mode: _ctx.mode,
width: _ctx.width,
height: _ctx.height,
shape: _ctx.shape,
radius: _ctx.radius,
lazyLoad: _ctx.lazyLoad,
showMenuByLongpress: _ctx.showMenuByLongpress,
loadingIcon: _ctx.loadingIcon,
errorIcon: _ctx.errorIcon,
showLoading: _ctx.showLoading,
showError: _ctx.showError,
fade: _ctx.fade,
webp: _ctx.webp,
duration: _ctx.duration,
bgColor: _ctx.bgColor,
customStyle: _ctx.customStyle
})
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u--image/u--image.js.map
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"uv-image": "../u-image/u-image"
}
}
@@ -0,0 +1 @@
<uv-image wx:if="{{d}}" u-s="{{['loading','error']}}" bindclick="{{a}}" binderror="{{b}}" bindload="{{c}}" u-i="21f789b2-0" bind:__l="__l" u-p="{{d}}"><view slot="loading"><slot name="loading"></slot></view><view slot="error"><slot name="error"></slot></view></uv-image>
@@ -0,0 +1,48 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const uvTextarea = () => "../u-textarea/u-textarea.js";
const _sfc_main = {
name: "u--textarea",
mixins: [common_vendor.mpMixin, common_vendor.props$2, common_vendor.mixin],
components: {
uvTextarea
}
};
if (!Array) {
const _component_uvTextarea = common_vendor.resolveComponent("uvTextarea");
_component_uvTextarea();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((e) => _ctx.$emit("input", e)),
b: common_vendor.o((e) => _ctx.$emit("update:modelValue", e)),
c: common_vendor.p({
value: _ctx.value,
modelValue: _ctx.modelValue,
placeholder: _ctx.placeholder,
height: _ctx.height,
confirmType: _ctx.confirmType,
disabled: _ctx.disabled,
count: _ctx.count,
focus: _ctx.focus,
autoHeight: _ctx.autoHeight,
fixed: _ctx.fixed,
cursorSpacing: _ctx.cursorSpacing,
cursor: _ctx.cursor,
showConfirmBar: _ctx.showConfirmBar,
selectionStart: _ctx.selectionStart,
selectionEnd: _ctx.selectionEnd,
adjustPosition: _ctx.adjustPosition,
disableDefaultPadding: _ctx.disableDefaultPadding,
holdKeyboard: _ctx.holdKeyboard,
maxlength: _ctx.maxlength,
border: _ctx.border,
customStyle: _ctx.customStyle,
formatter: _ctx.formatter,
ignoreCompositionEvent: _ctx.ignoreCompositionEvent
})
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u--textarea/u--textarea.js.map
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"uv-textarea": "../u-textarea/u-textarea"
}
}
@@ -0,0 +1 @@
<uv-textarea wx:if="{{c}}" bindinput="{{a}}" bindupdateModelValue="{{b}}" u-i="71739347-0" bind:__l="__l" u-p="{{c}}"></uv-textarea>
@@ -0,0 +1,137 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const base64Avatar = "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjREMEQwRkY0RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjREMEQwRkY1RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NEQwRDBGRjJGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NEQwRDBGRjNGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCADIAMgDAREAAhEBAxEB/8QAcQABAQEAAwEBAAAAAAAAAAAAAAUEAQMGAgcBAQAAAAAAAAAAAAAAAAAAAAAQAAIBAwICBgkDBQAAAAAAAAABAhEDBCEFMVFBYXGREiKBscHRMkJSEyOh4XLxYjNDFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHbHFyZ/Dam+yLA+Z2L0Pjtyj2poD4AAAAAAAAAAAAAAAAAAAAAAAAKWFs9y6lcvvwQeqj8z9wFaziY1n/HbUX9XF97A7QAGXI23EvJ1goyfzR0YEfN269jeZ+a03pNe0DIAAAAAAAAAAAAAAAAAAAACvtO3RcVkXlWutuL9YFYAAAAAOJRjKLjJVi9GmB5/csH/mu1h/in8PU+QGMAAAAAAAAAAAAAAAAAAaMDG/6MmMH8C80+xAelSSVFolwQAAAAAAAHVlWI37ErUulaPk+hgeYnCUJuElSUXRrrQHAAAAAAAAAAAAAAAAABa2Oz4bM7r4zdF2ICmAAAAAAAAAg7zZ8GX41wuJP0rRgYAAAAAAAAAAAAAAAAAD0m2R8ODaXU33tsDSAAAAAAAAAlb9HyWZcnJd9PcBHAAAAAAAAAAAAAAAAAPS7e64Vn+KA0AAAAAAAAAJm+v8Ftf3ewCKAAAAAAAAAAAAAAAAAX9muqeGo9NttP06+0DcAAAAAAAAAjb7dTu2ra+VOT9P8AQCWAAAAAAAAAAAAAAAAAUNmyPt5Ltv4bui/kuAF0AAAAAAADiUlGLlJ0SVW+oDzOXfd/Ind6JPRdS0QHSAAAAAAAAAAAAAAAAAE2nVaNcGB6Lbs6OTao9LsF51z60BrAAAAAABJ3jOVHjW3r/sa9QEgAAAAAAAAAAAAAAAAAAAPu1duWriuW34ZR4MC9hbnZyEoy8l36XwfYBsAAADaSq9EuLAlZ+7xSdrGdW9Hc5dgEdtt1erfFgAAAAAAAAAAAAAAAAADVjbblX6NR8MH80tEBRs7HYivyzlN8lovaBPzduvY0m6eK10TXtAyAarO55lpJK54orolr+4GqO/Xaea1FvqbXvA+Z77kNeW3GPbV+4DJfzcm/pcm3H6Vou5AdAFLC2ed2Pjv1txa8sV8T6wOL+yZEKu1JXFy4MDBOE4ScZxcZLinoB8gAAAAAAAAAAAB242LeyJ+C3GvN9C7QLmJtePYpKS+5c+p8F2IDYAANJqj1T4oCfk7Nj3G5Wn9qXJax7gJ93Z82D8sVNc4v30A6Xg5i42Z+iLfqARwcyT0sz9MWvWBps7LlTf5Grce9/oBTxdtxseklHxT+uWr9AGoAB138ezfj4bsFJdD6V2MCPm7RdtJzs1uW1xXzL3gTgAAAAAAAAADRhYc8q74I6RWs5ckB6GxYtWLat21SK731sDsAAAAAAAAAAAAAAAASt021NO/YjrxuQXT1oCOAAAAAAABzGLlJRSq26JAelwsWONYjbXxcZvmwO8AAAAAAAAAAAAAAAAAAef3TEWPkVivx3NY9T6UBiAAAAAABo2+VmGXblddIJ8eivRUD0oAAAAAAAAAAAAAAAAAAAYt4tKeFKVNYNSXfRgefAAAAAAAAr7VuSSWPedKaW5v1MCsAAAAAAAAAAAAAAAAAAIe6bj96Ts2n+JPzSXzP3ATgAAAAAAAAFbbt1UUrOQ9FpC4/UwK6aaqtU+DAAAAAAAAAAAAAAA4lKMIuUmoxWrb4ARNx3R3q2rLpa4Sl0y/YCcAAAAAAAAAAANmFud7G8r89r6X0dgFvGzLGRGtuWvTF6NAdwAAAAAAAAAAAy5W442PVN+K59EePp5ARMvOv5MvO6QXCC4AZwAAAAAAAAAAAAAcxlKLUotprg1owN+PvORborq+7Hnwl3gUbO74VzRydt8pKn68ANcJwmqwkpLmnUDkAAAAfNy9atqtyagut0AxXt5xIV8Fbj6lRd7Am5G65V6qUvtwfyx94GMAAAAAAAAAAAAAAAAAAAOU2nVOj5gdsc3LiqRvTpyqwOxbnnrhdfpSfrQB7pnv/AGvuS9gHXPMy5/Fem1yq0v0A6W29XqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//Z";
const _sfc_main = {
name: "u-avatar",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$18],
data() {
return {
// 如果配置randomBgColor参数为true,在图标或者文字的模式下,会随机从中取出一个颜色值当做背景色
colors: [
"#ffb34b",
"#f2bba9",
"#f7a196",
"#f18080",
"#88a867",
"#bfbf39",
"#89c152",
"#94d554",
"#f19ec2",
"#afaae4",
"#e1b0df",
"#c38cc1",
"#72dcdc",
"#9acdcb",
"#77b1cc",
"#448aca",
"#86cefa",
"#98d1ee",
"#73d1f1",
"#80a7dc"
],
avatarUrl: this.src,
allowMp: false
};
},
watch: {
// 监听头像src的变化,赋值给内部的avatarUrl变量,因为图片加载失败时,需要修改图片的src为默认值
// 而组件内部不能直接修改props的值,所以需要一个中间变量
src: {
immediate: true,
handler(newVal) {
this.avatarUrl = newVal;
if (!newVal) {
this.errorHandler();
}
}
}
},
computed: {
imageStyle() {
const style = {};
return style;
}
},
created() {
this.init();
},
emits: ["click"],
methods: {
addStyle: common_vendor.addStyle,
addUnit: common_vendor.addUnit,
random: common_vendor.random,
init() {
this.allowMp = true;
},
// 判断传入的name属性,是否图片路径,只要带有"/"均认为是图片形式
isImg() {
return this.src.indexOf("/") !== -1;
},
// 图片加载时失败时触发
errorHandler() {
this.avatarUrl = this.defaultUrl || base64Avatar;
},
clickHandler(e) {
this.$emit("click", this.name, e);
}
}
};
if (!Array) {
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
(_easycom_u_icon2 + _easycom_up_text2)();
}
const _easycom_u_icon = () => "../u-icon/u-icon.js";
const _easycom_up_text = () => "../u-text/u-text.js";
if (!Math) {
(_easycom_u_icon + _easycom_up_text)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: _ctx.mpAvatar && $data.allowMp
}, _ctx.mpAvatar && $data.allowMp ? {
b: common_vendor.s({
width: $options.addUnit(_ctx.size),
height: $options.addUnit(_ctx.size)
})
} : {}, {
c: _ctx.mpAvatar && $data.allowMp
}, _ctx.mpAvatar && $data.allowMp ? {} : _ctx.icon ? {
e: common_vendor.p({
name: _ctx.icon,
size: _ctx.fontSize,
color: _ctx.color
})
} : _ctx.text ? {
g: common_vendor.p({
text: _ctx.text,
size: _ctx.fontSize,
color: _ctx.color,
align: "center",
customStyle: "justify-content: center"
})
} : {
h: common_vendor.n(`u-avatar__image--${_ctx.shape}`),
i: $data.avatarUrl || _ctx.defaultUrl,
j: _ctx.mode,
k: common_vendor.o((...args) => $options.errorHandler && $options.errorHandler(...args)),
l: common_vendor.s({
width: $options.addUnit(_ctx.size),
height: $options.addUnit(_ctx.size)
})
}, {
d: _ctx.icon,
f: _ctx.text,
m: common_vendor.n(`u-avatar--${_ctx.shape}`),
n: common_vendor.s({
backgroundColor: _ctx.text || _ctx.icon ? _ctx.randomBgColor ? $data.colors[_ctx.colorIndex !== "" ? _ctx.colorIndex : $options.random(0, 19)] : _ctx.bgColor : "transparent",
width: $options.addUnit(_ctx.size),
height: $options.addUnit(_ctx.size)
}),
o: common_vendor.s($options.addStyle(_ctx.customStyle)),
p: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-14a988f2"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.js.map
@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"u-icon": "../u-icon/u-icon",
"up-text": "../u-text/u-text"
}
}
@@ -0,0 +1 @@
<view class="{{['u-avatar', 'data-v-14a988f2', m]}}" style="{{n + ';' + o}}" bindtap="{{p}}"><block wx:if="{{$slots.d}}"><slot></slot></block><block wx:else><open-data wx:if="{{a}}" class="data-v-14a988f2" type="userAvatarUrl" style="{{b}}"/><block wx:if="{{c}}"></block><u-icon wx:elif="{{d}}" class="data-v-14a988f2" u-i="14a988f2-0" bind:__l="__l" u-p="{{e}}"></u-icon><up-text wx:elif="{{f}}" class="data-v-14a988f2" u-i="14a988f2-1" bind:__l="__l" u-p="{{g}}"></up-text><image wx:else class="{{['u-avatar__image', 'data-v-14a988f2', h]}}" src="{{i}}" mode="{{j}}" binderror="{{k}}" style="{{l}}"></image></block></view>
@@ -0,0 +1,68 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-14a988f2,
.u-empty__wrap.data-v-14a988f2,
.u-tabs.data-v-14a988f2,
.u-tabs__wrapper.data-v-14a988f2,
.u-tabs__wrapper__scroll-view-wrapper.data-v-14a988f2,
.u-tabs__wrapper__scroll-view.data-v-14a988f2,
.u-tabs__wrapper__nav.data-v-14a988f2,
.u-tabs__wrapper__nav__line.data-v-14a988f2,
.up-empty.data-v-14a988f2,
.up-empty__wrap.data-v-14a988f2,
.up-tabs.data-v-14a988f2,
.up-tabs__wrapper.data-v-14a988f2,
.up-tabs__wrapper__scroll-view-wrapper.data-v-14a988f2,
.up-tabs__wrapper__scroll-view.data-v-14a988f2,
.up-tabs__wrapper__nav.data-v-14a988f2,
.up-tabs__wrapper__nav__line.data-v-14a988f2 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-avatar.data-v-14a988f2 {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.u-avatar--circle.data-v-14a988f2 {
border-radius: 100px;
}
.u-avatar--square.data-v-14a988f2 {
border-radius: 4px;
}
.u-avatar__image--circle.data-v-14a988f2 {
border-radius: 100px;
overflow: hidden;
}
.u-avatar__image--square.data-v-14a988f2 {
border-radius: 4px;
}
@@ -0,0 +1,64 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-badge",
mixins: [common_vendor.mpMixin, common_vendor.props$31, common_vendor.mixin],
computed: {
// 是否将badge中心与父组件右上角重合
boxStyle() {
let style = {};
return style;
},
// 整个组件的样式
badgeStyle() {
const style = {};
if (this.color) {
style.color = this.color;
}
if (this.bgColor && !this.inverted) {
style.backgroundColor = this.bgColor;
}
if (this.absolute) {
style.position = "absolute";
if (this.offset.length) {
const top = this.offset[0];
const right = this.offset[1] || top;
style.top = common_vendor.addUnit(top);
style.right = common_vendor.addUnit(right);
}
}
return style;
},
showValue() {
switch (this.numberType) {
case "overflow":
return Number(this.value) > Number(this.max) ? this.max + "+" : this.value;
case "ellipsis":
return Number(this.value) > Number(this.max) ? "..." : this.value;
case "limit":
return Number(this.value) > 999 ? Number(this.value) >= 9999 ? Math.floor(this.value / 1e4 * 100) / 100 + "w" : Math.floor(this.value / 1e3 * 100) / 100 + "k" : this.value;
default:
return Number(this.value);
}
}
},
methods: {
addStyle: common_vendor.addStyle
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: _ctx.show && ((Number(_ctx.value) === 0 ? _ctx.showZero : true) || _ctx.isDot)
}, _ctx.show && ((Number(_ctx.value) === 0 ? _ctx.showZero : true) || _ctx.isDot) ? {
b: common_vendor.t(_ctx.isDot ? "" : $options.showValue),
c: common_vendor.n(_ctx.isDot ? "u-badge--dot" : "u-badge--not-dot"),
d: common_vendor.n(_ctx.inverted && "u-badge--inverted"),
e: common_vendor.n(_ctx.shape === "horn" && "u-badge--horn"),
f: common_vendor.n(`u-badge--${_ctx.type}${_ctx.inverted ? "--inverted" : ""}`),
g: common_vendor.s($options.addStyle(_ctx.customStyle)),
h: common_vendor.s($options.badgeStyle)
} : {});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-aa9883b1"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js.map
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<text wx:if="{{a}}" class="{{[c, d, e, f, 'u-badge', 'data-v-aa9883b1']}}" style="{{g + ';' + h}}">{{b}}</text>
@@ -0,0 +1,104 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-aa9883b1,
.u-empty__wrap.data-v-aa9883b1,
.u-tabs.data-v-aa9883b1,
.u-tabs__wrapper.data-v-aa9883b1,
.u-tabs__wrapper__scroll-view-wrapper.data-v-aa9883b1,
.u-tabs__wrapper__scroll-view.data-v-aa9883b1,
.u-tabs__wrapper__nav.data-v-aa9883b1,
.u-tabs__wrapper__nav__line.data-v-aa9883b1,
.up-empty.data-v-aa9883b1,
.up-empty__wrap.data-v-aa9883b1,
.up-tabs.data-v-aa9883b1,
.up-tabs__wrapper.data-v-aa9883b1,
.up-tabs__wrapper__scroll-view-wrapper.data-v-aa9883b1,
.up-tabs__wrapper__scroll-view.data-v-aa9883b1,
.up-tabs__wrapper__nav.data-v-aa9883b1,
.up-tabs__wrapper__nav__line.data-v-aa9883b1 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-badge.data-v-aa9883b1 {
border-top-right-radius: 100px;
border-top-left-radius: 100px;
border-bottom-left-radius: 100px;
border-bottom-right-radius: 100px;
display: flex;
flex-direction: row;
line-height: 11px;
text-align: center;
font-size: 11px;
color: #FFFFFF;
}
.u-badge--dot.data-v-aa9883b1 {
height: 8px;
width: 8px;
}
.u-badge--inverted.data-v-aa9883b1 {
font-size: 13px;
}
.u-badge--not-dot.data-v-aa9883b1 {
padding: 2px 5px;
}
.u-badge--horn.data-v-aa9883b1 {
border-bottom-left-radius: 0;
}
.u-badge--primary.data-v-aa9883b1 {
background-color: #3c9cff;
}
.u-badge--primary--inverted.data-v-aa9883b1 {
color: #3c9cff;
}
.u-badge--error.data-v-aa9883b1 {
background-color: #f56c6c;
}
.u-badge--error--inverted.data-v-aa9883b1 {
color: #f56c6c;
}
.u-badge--success.data-v-aa9883b1 {
background-color: #5ac725;
}
.u-badge--success--inverted.data-v-aa9883b1 {
color: #5ac725;
}
.u-badge--info.data-v-aa9883b1 {
background-color: #909399;
}
.u-badge--info--inverted.data-v-aa9883b1 {
color: #909399;
}
.u-badge--warning.data-v-aa9883b1 {
background-color: #f9ae3d;
}
.u-badge--warning--inverted.data-v-aa9883b1 {
color: #f9ae3d;
}
@@ -0,0 +1,201 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-button",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.buttonMixin, common_vendor.openType, common_vendor.props$13],
data() {
return {};
},
computed: {
// 生成bem风格的类名
bemClass() {
if (!this.color) {
return this.bem(
"button",
["type", "shape", "size"],
["disabled", "plain", "hairline"]
);
} else {
return this.bem(
"button",
["shape", "size"],
["disabled", "plain", "hairline"]
);
}
},
loadingColor() {
if (this.plain) {
return this.color ? this.color : common_vendor.color[`u-${this.type}`];
}
if (this.type === "info") {
return "#c9c9c9";
}
return "rgb(200, 200, 200)";
},
iconColorCom() {
if (this.iconColor)
return this.iconColor;
if (this.plain) {
return this.color ? this.color : this.type;
} else {
return this.type === "info" ? "#000000" : "#ffffff";
}
},
baseColor() {
let style = {};
if (this.color) {
style.color = this.plain ? this.color : "white";
if (!this.plain) {
style["background-color"] = this.color;
}
if (this.color.indexOf("gradient") !== -1) {
style.borderTopWidth = 0;
style.borderRightWidth = 0;
style.borderBottomWidth = 0;
style.borderLeftWidth = 0;
if (!this.plain) {
style.backgroundImage = this.color;
}
} else {
style.borderColor = this.color;
style.borderWidth = "1px";
style.borderStyle = "solid";
}
}
return style;
},
// nvue版本按钮的字体不会继承父组件的颜色,需要对每一个text组件进行单独的设置
nvueTextStyle() {
let style = {};
if (this.type === "info") {
style.color = "#323233";
}
if (this.color) {
style.color = this.plain ? this.color : "white";
}
style.fontSize = this.textSize + "px";
return style;
},
// 字体大小
textSize() {
let fontSize = 14, { size } = this;
if (size === "large")
fontSize = 16;
if (size === "normal")
fontSize = 14;
if (size === "small")
fontSize = 12;
if (size === "mini")
fontSize = 10;
return fontSize;
}
},
emits: [
"click",
"getphonenumber",
"getuserinfo",
"error",
"opensetting",
"launchapp",
"agreeprivacyauthorization"
],
methods: {
addStyle: common_vendor.addStyle,
clickHandler(e) {
if (!this.disabled && !this.loading) {
common_vendor.throttle(() => {
this.$emit("click", e);
}, this.throttleTime);
}
this.stop && this.preventEvent(e);
},
// 下面为对接uniapp官方按钮开放能力事件回调的对接
getphonenumber(res) {
this.$emit("getphonenumber", res);
},
getuserinfo(res) {
this.$emit("getuserinfo", res);
},
error(res) {
this.$emit("error", res);
},
opensetting(res) {
this.$emit("opensetting", res);
},
launchapp(res) {
this.$emit("launchapp", res);
},
agreeprivacyauthorization(res) {
this.$emit("agreeprivacyauthorization", res);
}
}
};
if (!Array) {
const _easycom_u_loading_icon2 = common_vendor.resolveComponent("u-loading-icon");
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
(_easycom_u_loading_icon2 + _easycom_u_icon2)();
}
const _easycom_u_loading_icon = () => "../u-loading-icon/u-loading-icon.js";
const _easycom_u_icon = () => "../u-icon/u-icon.js";
if (!Math) {
(_easycom_u_loading_icon + _easycom_u_icon)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: _ctx.loading
}, _ctx.loading ? {
b: common_vendor.p({
mode: _ctx.loadingMode,
size: _ctx.loadingSize * 1.15,
color: $options.loadingColor
}),
c: common_vendor.t(_ctx.loadingText || _ctx.text),
d: common_vendor.s({
fontSize: $options.textSize + "px"
})
} : common_vendor.e({
e: _ctx.icon
}, _ctx.icon ? {
f: common_vendor.p({
name: _ctx.icon,
color: $options.iconColorCom,
size: $options.textSize * 1.35,
customStyle: {
marginRight: "2px"
}
})
} : {}, {
g: common_vendor.t(_ctx.text),
h: common_vendor.s({
fontSize: $options.textSize + "px"
})
}), {
i: Number(_ctx.hoverStartTime),
j: Number(_ctx.hoverStayTime),
k: _ctx.formType,
l: _ctx.openType,
m: _ctx.appParameter,
n: _ctx.hoverStopPropagation,
o: _ctx.sendMessageTitle,
p: _ctx.sendMessagePath,
q: _ctx.lang,
r: _ctx.dataName,
s: _ctx.sessionFrom,
t: _ctx.sendMessageImg,
v: _ctx.showMessageCard,
w: common_vendor.o((...args) => $options.getphonenumber && $options.getphonenumber(...args)),
x: common_vendor.o((...args) => $options.getuserinfo && $options.getuserinfo(...args)),
y: common_vendor.o((...args) => $options.error && $options.error(...args)),
z: common_vendor.o((...args) => $options.opensetting && $options.opensetting(...args)),
A: common_vendor.o((...args) => $options.launchapp && $options.launchapp(...args)),
B: common_vendor.o((...args) => $options.agreeprivacyauthorization && $options.agreeprivacyauthorization(...args)),
C: !_ctx.disabled && !_ctx.loading ? "u-button--active" : "",
D: common_vendor.s($options.baseColor),
E: common_vendor.s($options.addStyle(_ctx.customStyle)),
F: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args)),
G: common_vendor.n($options.bemClass)
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-461e713c"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js.map
@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"u-loading-icon": "../u-loading-icon/u-loading-icon",
"u-icon": "../u-icon/u-icon"
}
}
@@ -0,0 +1 @@
<button hover-start-time="{{i}}" hover-stay-time="{{j}}" form-type="{{k}}" open-type="{{l}}" app-parameter="{{m}}" hover-stop-propagation="{{n}}" send-message-title="{{o}}" send-message-path="{{p}}" lang="{{q}}" data-name="{{r}}" session-from="{{s}}" send-message-img="{{t}}" show-message-card="{{v}}" bindgetphonenumber="{{w}}" bindgetuserinfo="{{x}}" binderror="{{y}}" bindopensetting="{{z}}" bindlaunchapp="{{A}}" bindagreeprivacyauthorization="{{B}}" hover-class="{{C}}" style="{{D + ';' + E}}" bindtap="{{F}}" class="{{['u-button', 'u-reset-button', 'data-v-461e713c', G]}}"><block wx:if="{{a}}"><u-loading-icon wx:if="{{b}}" class="data-v-461e713c" u-i="461e713c-0" bind:__l="__l" u-p="{{b}}"></u-loading-icon><text class="u-button__loading-text data-v-461e713c" style="{{d}}">{{c}}</text></block><block wx:else><u-icon wx:if="{{e}}" class="data-v-461e713c" u-i="461e713c-1" bind:__l="__l" u-p="{{f}}"></u-icon><block wx:if="{{$slots.d}}"><slot></slot></block><block wx:else><text class="u-button__text data-v-461e713c" style="{{h}}">{{g}}</text></block></block></button>
@@ -0,0 +1,196 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-461e713c,
.u-empty__wrap.data-v-461e713c,
.u-tabs.data-v-461e713c,
.u-tabs__wrapper.data-v-461e713c,
.u-tabs__wrapper__scroll-view-wrapper.data-v-461e713c,
.u-tabs__wrapper__scroll-view.data-v-461e713c,
.u-tabs__wrapper__nav.data-v-461e713c,
.u-tabs__wrapper__nav__line.data-v-461e713c,
.up-empty.data-v-461e713c,
.up-empty__wrap.data-v-461e713c,
.up-tabs.data-v-461e713c,
.up-tabs__wrapper.data-v-461e713c,
.up-tabs__wrapper__scroll-view-wrapper.data-v-461e713c,
.up-tabs__wrapper__scroll-view.data-v-461e713c,
.up-tabs__wrapper__nav.data-v-461e713c,
.up-tabs__wrapper__nav__line.data-v-461e713c {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-button.data-v-461e713c {
width: 100%;
white-space: nowrap;
}
.u-button__text.data-v-461e713c {
white-space: nowrap;
line-height: 1;
}
.u-button.data-v-461e713c:before {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
border: inherit;
border-radius: inherit;
transform: translate(-50%, -50%);
opacity: 0;
content: " ";
background-color: #000;
border-color: #000;
}
.u-button--active.data-v-461e713c:before {
opacity: 0.15;
}
.u-button__icon + .u-button__text.data-v-461e713c:not(:empty), .u-button__loading-text.data-v-461e713c {
margin-left: 4px;
}
.u-button--plain.u-button--primary.data-v-461e713c {
color: #3c9cff;
}
.u-button--plain.u-button--info.data-v-461e713c {
color: #909399;
}
.u-button--plain.u-button--success.data-v-461e713c {
color: #5ac725;
}
.u-button--plain.u-button--error.data-v-461e713c {
color: #f56c6c;
}
.u-button--plain.u-button--warning.data-v-461e713c {
color: #f9ae3d;
}
.u-button.data-v-461e713c {
height: 40px;
position: relative;
align-items: center;
justify-content: center;
display: flex;
flex-direction: row;
box-sizing: border-box;
flex-direction: row;
}
.u-button__text.data-v-461e713c {
font-size: 15px;
}
.u-button__loading-text.data-v-461e713c {
font-size: 15px;
margin-left: 4px;
}
.u-button--large.data-v-461e713c {
width: 100%;
height: 50px;
padding: 0 15px;
}
.u-button--normal.data-v-461e713c {
padding: 0 12px;
font-size: 14px;
}
.u-button--small.data-v-461e713c {
min-width: 60px;
height: 30px;
padding: 0px 8px;
font-size: 12px;
}
.u-button--mini.data-v-461e713c {
height: 22px;
font-size: 10px;
min-width: 50px;
padding: 0px 8px;
}
.u-button--disabled.data-v-461e713c {
opacity: 0.5;
}
.u-button--info.data-v-461e713c {
color: #323233;
background-color: #fff;
border-color: #ebedf0;
border-width: 1px;
border-style: solid;
}
.u-button--success.data-v-461e713c {
color: #fff;
background-color: #5ac725;
border-color: #5ac725;
border-width: 1px;
border-style: solid;
}
.u-button--primary.data-v-461e713c {
color: #fff;
background-color: #3c9cff;
border-color: #3c9cff;
border-width: 1px;
border-style: solid;
}
.u-button--error.data-v-461e713c {
color: #fff;
background-color: #f56c6c;
border-color: #f56c6c;
border-width: 1px;
border-style: solid;
}
.u-button--warning.data-v-461e713c {
color: #fff;
background-color: #f9ae3d;
border-color: #f9ae3d;
border-width: 1px;
border-style: solid;
}
.u-button--block.data-v-461e713c {
display: flex;
flex-direction: row;
width: 100%;
}
.u-button--circle.data-v-461e713c {
border-top-right-radius: 100px;
border-top-left-radius: 100px;
border-bottom-left-radius: 100px;
border-bottom-right-radius: 100px;
}
.u-button--square.data-v-461e713c {
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.u-button__icon.data-v-461e713c {
min-width: 1em;
line-height: inherit !important;
vertical-align: top;
}
.u-button--plain.data-v-461e713c {
background-color: #fff;
}
.u-button--hairline.data-v-461e713c {
border-width: 0.5px !important;
}
@@ -0,0 +1,32 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-cell-group",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$27],
methods: {
addStyle: common_vendor.addStyle
}
};
if (!Array) {
const _easycom_u_line2 = common_vendor.resolveComponent("u-line");
_easycom_u_line2();
}
const _easycom_u_line = () => "../u-line/u-line.js";
if (!Math) {
_easycom_u_line();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: _ctx.title
}, _ctx.title ? {
b: common_vendor.t(_ctx.title)
} : {}, {
c: _ctx.border
}, _ctx.border ? {} : {}, {
d: common_vendor.s($options.addStyle(_ctx.customStyle)),
e: common_vendor.n(_ctx.customClass)
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-30c8e4c7"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-cell-group/u-cell-group.js.map
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"u-line": "../u-line/u-line"
}
}
@@ -0,0 +1 @@
<view style="{{d}}" class="{{[e, 'u-cell-group', 'data-v-30c8e4c7']}}"><view wx:if="{{a}}" class="u-cell-group__title data-v-30c8e4c7"><block wx:if="{{$slots.title}}"><slot name="title"></slot></block><block wx:else><text class="u-cell-group__title__text data-v-30c8e4c7">{{b}}</text></block></view><view class="u-cell-group__wrapper data-v-30c8e4c7"><u-line wx:if="{{c}}" class="data-v-30c8e4c7" u-i="30c8e4c7-0" bind:__l="__l"></u-line><slot/></view></view>
@@ -0,0 +1,63 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-30c8e4c7,
.u-empty__wrap.data-v-30c8e4c7,
.u-tabs.data-v-30c8e4c7,
.u-tabs__wrapper.data-v-30c8e4c7,
.u-tabs__wrapper__scroll-view-wrapper.data-v-30c8e4c7,
.u-tabs__wrapper__scroll-view.data-v-30c8e4c7,
.u-tabs__wrapper__nav.data-v-30c8e4c7,
.u-tabs__wrapper__nav__line.data-v-30c8e4c7,
.up-empty.data-v-30c8e4c7,
.up-empty__wrap.data-v-30c8e4c7,
.up-tabs.data-v-30c8e4c7,
.up-tabs__wrapper.data-v-30c8e4c7,
.up-tabs__wrapper__scroll-view-wrapper.data-v-30c8e4c7,
.up-tabs__wrapper__scroll-view.data-v-30c8e4c7,
.up-tabs__wrapper__nav.data-v-30c8e4c7,
.up-tabs__wrapper__nav__line.data-v-30c8e4c7 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-cell-group.data-v-30c8e4c7 {
flex: 1;
}
.u-cell-group__title.data-v-30c8e4c7 {
padding: 16px 16px 8px;
}
.u-cell-group__title__text.data-v-30c8e4c7 {
font-size: 15px;
line-height: 16px;
color: #303133;
}
.u-cell-group__wrapper.data-v-30c8e4c7 {
position: relative;
}
@@ -0,0 +1,101 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-cell",
data() {
return {};
},
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$19],
computed: {
titleTextStyle() {
return common_vendor.addStyle(this.titleStyle);
}
},
emits: ["click"],
methods: {
addStyle: common_vendor.addStyle,
testEmpty: common_vendor.test.empty,
// 点击cell
clickHandler(e) {
if (this.disabled)
return;
this.$emit("click", {
name: this.name
});
this.openPage();
this.stop && this.preventEvent(e);
}
}
};
if (!Array) {
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
const _easycom_u_line2 = common_vendor.resolveComponent("u-line");
(_easycom_u_icon2 + _easycom_u_line2)();
}
const _easycom_u_icon = () => "../u-icon/u-icon.js";
const _easycom_u_line = () => "../u-line/u-line.js";
if (!Math) {
(_easycom_u_icon + _easycom_u_line)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: _ctx.$slots.icon || _ctx.icon
}, _ctx.$slots.icon || _ctx.icon ? common_vendor.e({
b: _ctx.$slots.icon
}, _ctx.$slots.icon ? {} : {
c: common_vendor.p({
name: _ctx.icon,
["custom-style"]: _ctx.iconStyle,
size: _ctx.size === "large" ? 22 : 18
})
}) : {}, {
d: _ctx.$slots.title || !_ctx.title
}, _ctx.$slots.title || !_ctx.title ? {} : {
e: common_vendor.t(_ctx.title),
f: common_vendor.s($options.titleTextStyle),
g: common_vendor.n(_ctx.required && "u-cell--required"),
h: common_vendor.n(_ctx.disabled && "u-cell--disabled"),
i: common_vendor.n(_ctx.size === "large" && "u-cell__title-text--large")
}, {
j: _ctx.label
}, _ctx.label ? {
k: common_vendor.t(_ctx.label),
l: common_vendor.n(_ctx.disabled && "u-cell--disabled"),
m: common_vendor.n(_ctx.size === "large" && "u-cell__label--large")
} : {}, {
n: !$options.testEmpty(_ctx.value)
}, !$options.testEmpty(_ctx.value) ? {
o: common_vendor.t(_ctx.value),
p: common_vendor.n(_ctx.disabled && "u-cell--disabled"),
q: common_vendor.n(_ctx.size === "large" && "u-cell__value--large")
} : {}, {
r: _ctx.$slots["right-icon"] || _ctx.isLink
}, _ctx.$slots["right-icon"] || _ctx.isLink ? common_vendor.e({
s: _ctx.rightIcon && !_ctx.$slots["right-icon"]
}, _ctx.rightIcon && !_ctx.$slots["right-icon"] ? {
t: common_vendor.p({
name: _ctx.rightIcon,
["custom-style"]: _ctx.rightIconStyle,
color: _ctx.disabled ? "#c8c9cc" : "info",
size: _ctx.size === "large" ? 18 : 16
})
} : {}, {
v: common_vendor.n(`u-cell__right-icon-wrap--${_ctx.arrowDirection}`)
}) : {}, {
w: _ctx.$slots["righticon"]
}, _ctx.$slots["righticon"] ? {
x: common_vendor.n(`u-cell__right-icon-wrap--${_ctx.arrowDirection}`)
} : {}, {
y: common_vendor.n(_ctx.center && "u-cell--center"),
z: common_vendor.n(_ctx.size === "large" && "u-cell__body--large"),
A: _ctx.border
}, _ctx.border ? {} : {}, {
B: common_vendor.n(_ctx.customClass),
C: common_vendor.s($options.addStyle(_ctx.customStyle)),
D: !_ctx.disabled && (_ctx.clickable || _ctx.isLink) ? "u-cell--clickable" : "",
E: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b4243719"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.js.map
@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"u-icon": "../u-icon/u-icon",
"u-line": "../u-line/u-line"
}
}
@@ -0,0 +1 @@
<view class="{{['u-cell', 'data-v-b4243719', B]}}" style="{{C}}" hover-class="{{D}}" hover-stay-time="{{250}}" bindtap="{{E}}"><view class="{{['u-cell__body', 'data-v-b4243719', y, z]}}"><view class="u-cell__body__content data-v-b4243719"><view wx:if="{{a}}" class="u-cell__left-icon-wrap data-v-b4243719"><slot wx:if="{{b}}" name="icon"></slot><u-icon wx:else class="data-v-b4243719" u-i="b4243719-0" bind:__l="__l" u-p="{{c||''}}"></u-icon></view><view class="u-cell__title data-v-b4243719"><slot wx:if="{{d}}" name="title"></slot><text wx:else style="{{f}}" class="{{['u-cell__title-text', 'data-v-b4243719', g, h, i]}}">{{e}}</text><block wx:if="{{$slots.label}}"><slot name="label"></slot></block><block wx:else><text wx:if="{{j}}" class="{{['u-cell__label', 'data-v-b4243719', l, m]}}">{{k}}</text></block></view></view><block wx:if="{{$slots.value}}"><slot name="value"></slot></block><block wx:else><text wx:if="{{n}}" class="{{['u-cell__value', 'data-v-b4243719', p, q]}}">{{o}}</text></block><view wx:if="{{r}}" class="{{['u-cell__right-icon-wrap', 'data-v-b4243719', v]}}"><u-icon wx:if="{{s}}" class="data-v-b4243719" u-i="b4243719-1" bind:__l="__l" u-p="{{t}}"></u-icon><slot wx:else name="right-icon"></slot></view><view wx:if="{{w}}" class="{{['u-cell__right-icon-wrap', 'data-v-b4243719', x]}}"><slot name="righticon"></slot></view></view><u-line wx:if="{{A}}" class="data-v-b4243719" u-i="b4243719-2" bind:__l="__l"></u-line></view>
@@ -0,0 +1,143 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-b4243719,
.u-empty__wrap.data-v-b4243719,
.u-tabs.data-v-b4243719,
.u-tabs__wrapper.data-v-b4243719,
.u-tabs__wrapper__scroll-view-wrapper.data-v-b4243719,
.u-tabs__wrapper__scroll-view.data-v-b4243719,
.u-tabs__wrapper__nav.data-v-b4243719,
.u-tabs__wrapper__nav__line.data-v-b4243719,
.up-empty.data-v-b4243719,
.up-empty__wrap.data-v-b4243719,
.up-tabs.data-v-b4243719,
.up-tabs__wrapper.data-v-b4243719,
.up-tabs__wrapper__scroll-view-wrapper.data-v-b4243719,
.up-tabs__wrapper__scroll-view.data-v-b4243719,
.up-tabs__wrapper__nav.data-v-b4243719,
.up-tabs__wrapper__nav__line.data-v-b4243719 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-cell__body.data-v-b4243719 {
display: flex;
flex-direction: row;
box-sizing: border-box;
padding: 13px 15px;
font-size: 15px;
color: #303133;
align-items: center;
}
.u-cell__body__content.data-v-b4243719 {
display: flex;
flex-direction: row;
align-items: center;
flex: 1;
}
.u-cell__body--large.data-v-b4243719 {
padding-top: 13px;
padding-bottom: 13px;
}
.u-cell__left-icon-wrap.data-v-b4243719, .u-cell__right-icon-wrap.data-v-b4243719 {
display: flex;
flex-direction: row;
align-items: center;
font-size: 16px;
}
.u-cell__left-icon-wrap.data-v-b4243719 {
margin-right: 4px;
}
.u-cell__right-icon-wrap.data-v-b4243719 {
margin-left: 4px;
transition: transform 0.3s;
}
.u-cell__right-icon-wrap--up.data-v-b4243719 {
transform: rotate(-90deg);
}
.u-cell__right-icon-wrap--down.data-v-b4243719 {
transform: rotate(90deg);
}
.u-cell__title.data-v-b4243719 {
flex: 1;
display: flex;
flex-direction: column;
}
.u-cell__title-text.data-v-b4243719 {
font-size: 15px;
line-height: 22px;
color: #303133;
}
.u-cell__title-text--large.data-v-b4243719 {
font-size: 16px;
}
.u-cell__label.data-v-b4243719 {
margin-top: 5px;
font-size: 12px;
color: #909193;
line-height: 18px;
}
.u-cell__label--large.data-v-b4243719 {
font-size: 14px;
}
.u-cell__value.data-v-b4243719 {
text-align: right;
margin-left: auto;
font-size: 14px;
line-height: 24px;
color: #606266;
}
.u-cell__value--large.data-v-b4243719 {
font-size: 15px;
}
.u-cell--required.data-v-b4243719 {
overflow: visible;
display: flex;
flex-direction: row;
align-items: center;
}
.u-cell--required.data-v-b4243719:before {
position: absolute;
content: "*";
left: -8px;
margin-top: 4rpx;
font-size: 14px;
color: #f56c6c;
}
.u-cell--clickable.data-v-b4243719 {
background-color: #f3f4f6;
}
.u-cell--disabled.data-v-b4243719 {
color: #c8c9cc;
cursor: not-allowed;
}
.u-cell--center.data-v-b4243719 {
align-items: center;
}
@@ -0,0 +1,98 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-code",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$12],
data() {
return {
secNum: this.seconds,
timer: null,
canGetCode: true
// 是否可以执行验证码操作
};
},
mounted() {
this.checkKeepRunning();
},
watch: {
seconds: {
immediate: true,
handler(n) {
this.secNum = n;
}
}
},
emits: ["start", "end", "change"],
methods: {
checkKeepRunning() {
let lastTimestamp = Number(common_vendor.index.getStorageSync(this.uniqueKey + "_$uCountDownTimestamp"));
if (!lastTimestamp)
return this.changeEvent(this.startText);
let nowTimestamp = Math.floor(+/* @__PURE__ */ new Date() / 1e3);
if (this.keepRunning && lastTimestamp && lastTimestamp > nowTimestamp) {
this.secNum = lastTimestamp - nowTimestamp;
common_vendor.index.removeStorageSync(this.uniqueKey + "_$uCountDownTimestamp");
this.start();
} else {
this.changeEvent(this.startText);
}
},
// 开始倒计时
start() {
if (this.timer) {
clearInterval(this.timer);
this.timer = null;
}
this.$emit("start");
this.canGetCode = false;
this.changeEvent(this.changeText.replace(/x|X/, this.secNum));
this.timer = setInterval(() => {
if (--this.secNum) {
this.changeEvent(this.changeText.replace(/x|X/, this.secNum));
} else {
clearInterval(this.timer);
this.timer = null;
this.changeEvent(this.endText);
this.secNum = this.seconds;
this.$emit("end");
this.canGetCode = true;
}
}, 1e3);
this.setTimeToStorage();
},
// 重置,可以让用户再次获取验证码
reset() {
this.canGetCode = true;
clearInterval(this.timer);
this.secNum = this.seconds;
this.changeEvent(this.endText);
},
changeEvent(text) {
this.$emit("change", text);
},
// 保存时间戳,为了防止倒计时尚未结束,H5刷新或者各端的右上角返回上一页再进来
setTimeToStorage() {
if (!this.keepRunning || !this.timer)
return;
if (this.secNum > 0 && this.secNum <= this.seconds) {
let nowTimestamp = Math.floor(+/* @__PURE__ */ new Date() / 1e3);
common_vendor.index.setStorage({
key: this.uniqueKey + "_$uCountDownTimestamp",
data: nowTimestamp + Number(this.secNum)
});
}
}
},
// 组件销毁的时候,清除定时器,否则定时器会继续存在,系统不会自动清除
beforeUnmount() {
this.setTimeToStorage();
clearTimeout(this.timer);
this.timer = null;
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ac37a9df"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-code/u-code.js.map
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view class="u-code data-v-ac37a9df"></view>
@@ -0,0 +1,49 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-ac37a9df,
.u-empty__wrap.data-v-ac37a9df,
.u-tabs.data-v-ac37a9df,
.u-tabs__wrapper.data-v-ac37a9df,
.u-tabs__wrapper__scroll-view-wrapper.data-v-ac37a9df,
.u-tabs__wrapper__scroll-view.data-v-ac37a9df,
.u-tabs__wrapper__nav.data-v-ac37a9df,
.u-tabs__wrapper__nav__line.data-v-ac37a9df,
.up-empty.data-v-ac37a9df,
.up-empty__wrap.data-v-ac37a9df,
.up-tabs.data-v-ac37a9df,
.up-tabs__wrapper.data-v-ac37a9df,
.up-tabs__wrapper__scroll-view-wrapper.data-v-ac37a9df,
.up-tabs__wrapper__scroll-view.data-v-ac37a9df,
.up-tabs__wrapper__nav.data-v-ac37a9df,
.up-tabs__wrapper__nav__line.data-v-ac37a9df {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
@@ -0,0 +1,118 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-dropdown-item",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$8],
options: {
styleIsolation: "shared"
},
data() {
return {
active: false,
// 当前项是否处于展开状态
activeColor: "#2979ff",
// 激活时左边文字和右边对勾图标的颜色
inactiveColor: "#606266"
// 未激活时左边文字和右边对勾图标的颜色
};
},
computed: {
// 监听props是否发生了变化,有些值需要传递给父组件u-dropdown,无法双向绑定
propsChange() {
return `${this.title}-${this.disabled}`;
}
},
watch: {
propsChange(n) {
if (this.parent)
this.parent.init();
}
},
created() {
this.parent = false;
},
emits: ["update:modelValue", "change"],
methods: {
addUnit: common_vendor.addUnit,
init() {
let parent = common_vendor.$parent.call(this, "u-dropdown");
if (parent) {
this.parent = parent;
this.activeColor = parent.activeColor;
this.inactiveColor = parent.inactiveColor;
let exist = parent.children.find((val) => {
return this === val;
});
if (!exist)
parent.children.push(this);
if (parent.children.length == 1)
this.active = true;
parent.menuList.push({
title: this.title,
disabled: this.disabled
});
}
},
// cell被点击
cellClick(value) {
this.$emit("update:modelValue", value);
this.parent.close();
this.$emit("change", value);
}
},
mounted() {
this.init();
}
};
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_cell2 = common_vendor.resolveComponent("up-cell");
const _easycom_up_cell_group2 = common_vendor.resolveComponent("up-cell-group");
(_easycom_up_icon2 + _easycom_up_cell2 + _easycom_up_cell_group2)();
}
const _easycom_up_icon = () => "../u-icon/u-icon.js";
const _easycom_up_cell = () => "../u-cell/u-cell.js";
const _easycom_up_cell_group = () => "../u-cell-group/u-cell-group.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_cell + _easycom_up_cell_group)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $data.active
}, $data.active ? common_vendor.e({
b: !_ctx.$slots.default && !_ctx.$slots.$default
}, !_ctx.$slots.default && !_ctx.$slots.$default ? {
c: common_vendor.f(_ctx.options, (item, index, i0) => {
return common_vendor.e({
a: _ctx.modelValue == item.value
}, _ctx.modelValue == item.value ? {
b: "243060d4-2-" + i0 + "," + ("243060d4-1-" + i0),
c: common_vendor.p({
name: "checkbox-mark",
color: $data.activeColor,
size: "32"
})
} : {}, {
d: common_vendor.o(($event) => $options.cellClick(item.value), index),
e: index,
f: "243060d4-1-" + i0 + ",243060d4-0",
g: common_vendor.p({
arrow: false,
title: item.label,
["title-style"]: {
color: _ctx.modelValue == item.value ? $data.activeColor : $data.inactiveColor
}
})
});
}),
d: $options.addUnit(_ctx.height)
} : {}, {
e: common_vendor.o(() => {
}),
f: common_vendor.o(() => {
})
}) : {});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-243060d4"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item.js.map
@@ -0,0 +1,8 @@
{
"component": true,
"usingComponents": {
"up-icon": "../u-icon/u-icon",
"up-cell": "../u-cell/u-cell",
"up-cell-group": "../u-cell-group/u-cell-group"
}
}
@@ -0,0 +1 @@
<view wx:if="{{a}}" class="u-dropdown-item data-v-243060d4" catchtouchmove="{{e}}" catchtap="{{f}}"><block wx:if="{{b}}"><scroll-view class="u-dropdown-item__scroll data-v-243060d4" scroll-y="true" style="{{'height:' + d}}"><view class="u-dropdown-item__options data-v-243060d4"><up-cell-group class="data-v-243060d4" u-s="{{['d']}}" u-i="243060d4-0" bind:__l="__l"><up-cell wx:for="{{c}}" wx:for-item="item" wx:key="e" class="data-v-243060d4" u-s="{{['d']}}" bindclick="{{item.d}}" u-i="{{item.f}}" bind:__l="__l" u-p="{{item.g}}"><up-icon wx:if="{{item.a}}" class="data-v-243060d4" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"></up-icon></up-cell></up-cell-group></view></scroll-view></block><slot wx:else/></view>
@@ -0,0 +1,52 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-243060d4,
.u-empty__wrap.data-v-243060d4,
.u-tabs.data-v-243060d4,
.u-tabs__wrapper.data-v-243060d4,
.u-tabs__wrapper__scroll-view-wrapper.data-v-243060d4,
.u-tabs__wrapper__scroll-view.data-v-243060d4,
.u-tabs__wrapper__nav.data-v-243060d4,
.u-tabs__wrapper__nav__line.data-v-243060d4,
.up-empty.data-v-243060d4,
.up-empty__wrap.data-v-243060d4,
.up-tabs.data-v-243060d4,
.up-tabs__wrapper.data-v-243060d4,
.up-tabs__wrapper__scroll-view-wrapper.data-v-243060d4,
.up-tabs__wrapper__scroll-view.data-v-243060d4,
.up-tabs__wrapper__nav.data-v-243060d4,
.up-tabs__wrapper__nav__line.data-v-243060d4 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-dropdown-item__scroll.data-v-243060d4 {
background: #ffffff;
}
@@ -0,0 +1,155 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-dropdown",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$9],
data() {
return {
showDropdown: true,
// 是否打开下来菜单,
menuList: [],
// 显示的菜单
active: false,
// 下拉菜单的状态
// 当前是第几个菜单处于激活状态,小程序中此处不能写成false或者"",否则后续将current赋值为0
// 无能的TX没有使用===而是使用==判断,导致程序认为前后二者没有变化,从而不会触发视图更新
current: 99999,
// 外层内容的样式,初始时处于底层,且透明
contentStyle: {
zIndex: -1,
opacity: 0
},
// 让某个菜单保持高亮的状态
highlightIndex: 99999,
contentHeight: 0
};
},
computed: {
// 下拉出来部分的样式
popupStyle() {
let style = {};
style.transform = `translateY(${this.active ? 0 : "-100%"})`;
style["transition-duration"] = this.duration / 1e3 + "s";
style.borderRadius = `0 0 ${common_vendor.addUnit(this.borderRadius)} ${common_vendor.addUnit(this.borderRadius)}`;
return style;
}
},
created() {
this.children = [];
},
mounted() {
this.getContentHeight();
},
emits: ["open", "close"],
methods: {
addUnit: common_vendor.addUnit,
init() {
this.menuList = [];
this.children.map((child) => {
child.init();
});
},
// 点击菜单
menuClick(index) {
if (this.menuList[index].disabled)
return;
if (index === this.current && this.closeOnClickSelf) {
this.close();
setTimeout(() => {
this.children[index].active = false;
}, this.duration);
return;
}
this.open(index);
},
// 打开下拉菜单
open(index) {
if (this.contentHeight < 1)
this.getContentHeight();
this.contentStyle = {
zIndex: 11
};
this.active = true;
this.current = index;
this.children.map((val, idx) => {
val.active = index == idx ? true : false;
});
this.$emit("open", this.current);
},
// 设置下拉菜单处于收起状态
close() {
this.$emit("close", this.current);
this.active = false;
this.current = 99999;
this.contentStyle = {
zIndex: -1,
opacity: 0
};
},
// 点击遮罩
maskClick() {
if (!this.closeOnClickMask)
return;
this.close();
},
// 外部手动设置某个菜单高亮
highlight(index = void 0) {
this.highlightIndex = index !== void 0 ? index : 99999;
},
// 获取下拉菜单内容的高度
getContentHeight() {
let windowHeight = common_vendor.getWindowInfo().windowHeight;
this.$uGetRect(".u-dropdown__menu").then((res) => {
this.contentHeight = windowHeight - res.bottom;
});
}
}
};
if (!Array) {
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
_easycom_u_icon2();
}
const _easycom_u_icon = () => "../u-icon/u-icon.js";
if (!Math) {
_easycom_u_icon();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($data.menuList, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: item.disabled ? "#c0c4cc" : index === $data.current || $data.highlightIndex == index ? _ctx.activeColor : _ctx.inactiveColor,
c: "d45d1d94-0-" + i0,
d: common_vendor.p({
["custom-style"]: {
display: "flex"
},
name: _ctx.menuIcon,
size: $options.addUnit(_ctx.menuIconSize),
color: index === $data.current || $data.highlightIndex == index ? _ctx.activeColor : "#c0c4cc"
}),
e: index === $data.current ? 1 : "",
f: index,
g: common_vendor.o(($event) => $options.menuClick(index), index)
};
}),
b: $options.addUnit(_ctx.titleSize),
c: $options.addUnit(_ctx.height),
d: _ctx.borderBottom ? 1 : "",
e: common_vendor.o(() => {
}),
f: common_vendor.s($options.popupStyle),
g: common_vendor.s($data.contentStyle),
h: common_vendor.s({
transition: `opacity ${_ctx.duration / 1e3}s linear`,
top: $options.addUnit(_ctx.height),
height: $data.contentHeight + "px"
}),
i: common_vendor.o((...args) => $options.maskClick && $options.maskClick(...args)),
j: common_vendor.o(() => {
})
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d45d1d94"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-dropdown/u-dropdown.js.map
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"u-icon": "../u-icon/u-icon"
}
}
@@ -0,0 +1 @@
<view class="u-dropdown data-v-d45d1d94"><view style="{{'height:' + c}}" class="{{['u-dropdown__menu', 'data-v-d45d1d94', d && 'u-border-bottom']}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="u-dropdown__menu__item data-v-d45d1d94" catchtap="{{item.g}}"><view class="u-flex u-flex-row data-v-d45d1d94"><text class="u-dropdown__menu__item__text data-v-d45d1d94" style="{{'color:' + item.b + ';' + ('font-size:' + b)}}">{{item.a}}</text><view class="{{['u-dropdown__menu__item__arrow', 'data-v-d45d1d94', item.e && 'u-dropdown__menu__item__arrow--rotate']}}"><u-icon wx:if="{{item.d}}" class="data-v-d45d1d94" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></u-icon></view></view></view></view><view class="u-dropdown__content data-v-d45d1d94" style="{{g + ';' + h}}" bindtap="{{i}}" catchtouchmove="{{j}}"><view catchtap="{{e}}" class="u-dropdown__content__popup data-v-d45d1d94" style="{{f}}"><slot></slot></view><view class="u-dropdown__content__mask data-v-d45d1d94"></view></view></view>
@@ -0,0 +1,109 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-d45d1d94,
.u-empty__wrap.data-v-d45d1d94,
.u-tabs.data-v-d45d1d94,
.u-tabs__wrapper.data-v-d45d1d94,
.u-tabs__wrapper__scroll-view-wrapper.data-v-d45d1d94,
.u-tabs__wrapper__scroll-view.data-v-d45d1d94,
.u-tabs__wrapper__nav.data-v-d45d1d94,
.u-tabs__wrapper__nav__line.data-v-d45d1d94,
.up-empty.data-v-d45d1d94,
.up-empty__wrap.data-v-d45d1d94,
.up-tabs.data-v-d45d1d94,
.up-tabs__wrapper.data-v-d45d1d94,
.up-tabs__wrapper__scroll-view-wrapper.data-v-d45d1d94,
.up-tabs__wrapper__scroll-view.data-v-d45d1d94,
.up-tabs__wrapper__nav.data-v-d45d1d94,
.up-tabs__wrapper__nav__line.data-v-d45d1d94 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-dropdown.data-v-d45d1d94 {
flex: 1;
width: 100%;
position: relative;
}
.u-dropdown__menu.data-v-d45d1d94 {
display: flex;
flex-direction: row;
position: relative;
z-index: 11;
height: 80rpx;
}
.u-dropdown__menu__item.data-v-d45d1d94 {
flex: 1;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.u-dropdown__menu__item .u-flex-row.data-v-d45d1d94 {
flex-direction: row;
}
.u-dropdown__menu__item__text.data-v-d45d1d94 {
font-size: 28rpx;
color: #606266;
}
.u-dropdown__menu__item__arrow.data-v-d45d1d94 {
margin-left: 6rpx;
transition: transform 0.3s;
align-items: center;
display: flex;
flex-direction: row;
}
.u-dropdown__menu__item__arrow--rotate.data-v-d45d1d94 {
transform: rotate(180deg);
}
.u-dropdown__content.data-v-d45d1d94 {
position: absolute;
z-index: 8;
width: 100%;
left: 0px;
bottom: 0;
overflow: hidden;
}
.u-dropdown__content__mask.data-v-d45d1d94 {
position: absolute;
z-index: 9;
background: rgba(0, 0, 0, 0.3);
width: 100%;
left: 0;
top: 0;
bottom: 0;
}
.u-dropdown__content__popup.data-v-d45d1d94 {
position: relative;
z-index: 10;
transition: transform 0.3s;
transform: translate3D(0, -100%, 0);
overflow: hidden;
}
@@ -0,0 +1,137 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-form-item",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$10],
data() {
return {
// 错误提示语
message: "",
parentData: {
// 提示文本的位置
labelPosition: "left",
// 提示文本对齐方式
labelAlign: "left",
// 提示文本的样式
labelStyle: {},
// 提示文本的宽度
labelWidth: 45,
// 错误提示方式
errorType: "message"
},
color: common_vendor.color,
itemRules: []
};
},
// 组件创建完成时,将当前实例保存到u-form中
computed: {
propsLine() {
return common_vendor.props$11.line;
}
},
mounted() {
this.init();
},
emits: ["click"],
watch: {
// 监听规则的变化
rules: {
immediate: true,
handler(n) {
this.setRules(n);
}
}
},
methods: {
addStyle: common_vendor.addStyle,
addUnit: common_vendor.addUnit,
init() {
this.updateParentData();
if (!this.parent) {
common_vendor.error("u-form-item需要结合u-form组件使用");
}
},
// 手动设置校验的规则,如果规则中有函数的话,微信小程序中会过滤掉,所以只能手动调用设置规则
setRules(rules) {
if (rules.length === 0) {
this.itemRules = [];
return;
}
this.itemRules = rules;
},
// 获取父组件的参数
updateParentData() {
this.getParentData("u-form");
},
// 移除u-form-item的校验结果
clearValidate() {
this.message = null;
},
// 清空当前的组件的校验结果,并重置为初始值
resetField() {
const value = common_vendor.getProperty(this.parent.originalModel, this.prop);
common_vendor.setProperty(this.parent.model, this.prop, value);
this.message = null;
},
// 点击组件
clickHandler() {
this.$emit("click");
}
}
};
if (!Array) {
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
const _easycom_u_line2 = common_vendor.resolveComponent("u-line");
(_easycom_u_icon2 + _easycom_u_line2)();
}
const _easycom_u_icon = () => "../u-icon/u-icon.js";
const _easycom_u_line = () => "../u-line/u-line.js";
if (!Math) {
(_easycom_u_icon + _easycom_u_line)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: _ctx.required || _ctx.leftIcon || _ctx.label
}, _ctx.required || _ctx.leftIcon || _ctx.label ? common_vendor.e({
b: _ctx.required
}, _ctx.required ? {} : {}, {
c: _ctx.leftIcon
}, _ctx.leftIcon ? {
d: common_vendor.p({
name: _ctx.leftIcon,
["custom-style"]: _ctx.leftIconStyle
})
} : {}, {
e: common_vendor.t(_ctx.label),
f: common_vendor.s($data.parentData.labelStyle),
g: common_vendor.s({
justifyContent: $data.parentData.labelAlign === "left" ? "flex-start" : $data.parentData.labelAlign === "center" ? "center" : "flex-end"
}),
h: $options.addUnit(_ctx.labelWidth || $data.parentData.labelWidth),
i: $data.parentData.labelPosition === "left" ? 0 : "5px"
}) : {}, {
j: _ctx.$slots.right
}, _ctx.$slots.right ? {} : {}, {
k: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args)),
l: common_vendor.s($options.addStyle(_ctx.customStyle)),
m: common_vendor.s({
flexDirection: (_ctx.labelPosition || $data.parentData.labelPosition) === "left" ? "row" : "column"
}),
n: !!$data.message && $data.parentData.errorType === "message"
}, !!$data.message && $data.parentData.errorType === "message" ? {
o: common_vendor.t($data.message),
p: $options.addUnit($data.parentData.labelPosition === "top" ? 0 : _ctx.labelWidth || $data.parentData.labelWidth)
} : {}, {
q: _ctx.borderBottom
}, _ctx.borderBottom ? {
r: common_vendor.p({
color: $data.message && $data.parentData.errorType === "border-bottom" ? $data.color.error : $options.propsLine.color,
customStyle: `margin-top: ${$data.message && $data.parentData.errorType === "message" ? "5px" : 0}`
})
} : {}, {
s: !!$data.message && $data.parentData.errorType === "message" ? 1 : ""
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b4fd400b"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-form-item/u-form-item.js.map
@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"u-icon": "../u-icon/u-icon",
"u-line": "../u-line/u-line"
}
}
@@ -0,0 +1 @@
<view class="{{['u-form-item', 'data-v-b4fd400b', s && 'u-form-item--error']}}"><view class="u-form-item__body data-v-b4fd400b" bindtap="{{k}}" style="{{l + ';' + m}}"><block wx:if="{{$slots.label}}"><slot name="label"></slot></block><block wx:else><view wx:if="{{a}}" class="u-form-item__body__left data-v-b4fd400b" style="{{'width:' + h + ';' + ('margin-bottom:' + i)}}"><view class="u-form-item__body__left__content data-v-b4fd400b"><text wx:if="{{b}}" class="u-form-item__body__left__content__required data-v-b4fd400b">*</text><view wx:if="{{c}}" class="u-form-item__body__left__content__icon data-v-b4fd400b"><u-icon wx:if="{{d}}" class="data-v-b4fd400b" u-i="b4fd400b-0" bind:__l="__l" u-p="{{d}}"></u-icon></view><text class="u-form-item__body__left__content__label data-v-b4fd400b" style="{{f + ';' + g}}">{{e}}</text></view></view></block><view class="u-form-item__body__right data-v-b4fd400b"><view class="u-form-item__body__right__content data-v-b4fd400b"><view class="u-form-item__body__right__content__slot data-v-b4fd400b"><slot/></view><view wx:if="{{j}}" class="item__body__right__content__icon data-v-b4fd400b"><slot name="right"/></view></view></view></view><block wx:if="{{$slots.error}}"><slot name="error"></slot></block><block wx:else><text wx:if="{{n}}" class="u-form-item__body__right__message data-v-b4fd400b" style="{{'margin-left:' + p}}">{{o}}</text></block><u-line wx:if="{{q}}" class="data-v-b4fd400b" u-i="b4fd400b-1" bind:__l="__l" u-p="{{r}}"></u-line></view>
@@ -0,0 +1,114 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-b4fd400b,
.u-empty__wrap.data-v-b4fd400b,
.u-tabs.data-v-b4fd400b,
.u-tabs__wrapper.data-v-b4fd400b,
.u-tabs__wrapper__scroll-view-wrapper.data-v-b4fd400b,
.u-tabs__wrapper__scroll-view.data-v-b4fd400b,
.u-tabs__wrapper__nav.data-v-b4fd400b,
.u-tabs__wrapper__nav__line.data-v-b4fd400b,
.up-empty.data-v-b4fd400b,
.up-empty__wrap.data-v-b4fd400b,
.up-tabs.data-v-b4fd400b,
.up-tabs__wrapper.data-v-b4fd400b,
.up-tabs__wrapper__scroll-view-wrapper.data-v-b4fd400b,
.up-tabs__wrapper__scroll-view.data-v-b4fd400b,
.up-tabs__wrapper__nav.data-v-b4fd400b,
.up-tabs__wrapper__nav__line.data-v-b4fd400b {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-form-item.data-v-b4fd400b {
display: flex;
flex-direction: column;
font-size: 14px;
color: #303133;
}
.u-form-item__body.data-v-b4fd400b {
display: flex;
flex-direction: row;
padding: 10px 0;
}
.u-form-item__body__left.data-v-b4fd400b {
display: flex;
flex-direction: row;
align-items: center;
}
.u-form-item__body__left__content.data-v-b4fd400b {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
padding-right: 10rpx;
flex: 1;
}
.u-form-item__body__left__content__icon.data-v-b4fd400b {
margin-right: 8rpx;
}
.u-form-item__body__left__content__required.data-v-b4fd400b {
position: absolute;
left: -9px;
color: #f56c6c;
line-height: 20px;
font-size: 20px;
top: 3px;
}
.u-form-item__body__left__content__label.data-v-b4fd400b {
display: flex;
flex-direction: row;
align-items: center;
flex: 1;
color: #303133;
font-size: 15px;
}
.u-form-item__body__right.data-v-b4fd400b {
flex: 1;
}
.u-form-item__body__right__content.data-v-b4fd400b {
display: flex;
flex-direction: row;
align-items: center;
flex: 1;
}
.u-form-item__body__right__content__slot.data-v-b4fd400b {
flex: 1;
}
.u-form-item__body__right__content__icon.data-v-b4fd400b {
margin-left: 10rpx;
color: #c0c4cc;
font-size: 30rpx;
}
.u-form-item__body__right__message.data-v-b4fd400b {
font-size: 12px;
line-height: 12px;
color: #f56c6c;
}
@@ -0,0 +1,203 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
common_vendor.Schema.warning = function() {
};
const _sfc_main = {
name: "u-form",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$14],
provide() {
return {
uForm: this
};
},
data() {
return {
formRules: {},
// 规则校验器
validator: {},
// 原始的model快照,用于resetFields方法重置表单时使用
originalModel: null
};
},
watch: {
// 监听规则的变化
rules: {
immediate: true,
handler(n) {
this.setRules(n);
}
},
// 监听属性的变化,通知子组件u-form-item重新获取信息
propsChange(n) {
var _a;
if ((_a = this.children) == null ? void 0 : _a.length) {
this.children.map((child) => {
typeof child.updateParentData == "function" && child.updateParentData();
});
}
},
// 监听model的初始值作为重置表单的快照
model: {
immediate: true,
handler(n) {
if (!this.originalModel) {
this.originalModel = common_vendor.deepClone(n);
}
}
}
},
computed: {
propsChange() {
return [
this.errorType,
this.borderBottom,
this.labelPosition,
this.labelWidth,
this.labelAlign,
this.labelStyle
];
}
},
created() {
this.children = [];
},
methods: {
// 手动设置校验的规则,如果规则中有函数的话,微信小程序中会过滤掉,所以只能手动调用设置规则
setRules(rules) {
if (Object.keys(rules).length === 0)
return;
if (Object.keys(this.model).length === 0) {
common_vendor.error("设置rules,model必须设置!如果已经设置,请刷新页面。");
return;
}
this.formRules = rules;
this.validator = new common_vendor.Schema(rules);
},
// 清空所有u-form-item组件的内容,本质上是调用了u-form-item组件中的resetField()方法
resetFields() {
this.resetModel();
},
// 重置model为初始值的快照
resetModel(obj) {
this.children.map((child) => {
const prop = child == null ? void 0 : child.prop;
const value = common_vendor.getProperty(this.originalModel, prop);
common_vendor.setProperty(this.model, prop, value);
});
},
// 清空校验结果
clearValidate(props2) {
props2 = [].concat(props2);
this.children.map((child) => {
if (props2[0] === void 0 || props2.includes(child.prop)) {
child.message = null;
}
});
},
// 对部分表单字段进行校验
async validateField(value, callback, event = null, options) {
this.$nextTick(() => {
const errorsRes = [];
value = [].concat(value);
let promises = this.children.map((child) => {
return new Promise((resolve, reject) => {
const childErrors = [];
if (value.includes(child.prop)) {
const propertyVal = common_vendor.getProperty(
this.model,
child.prop
);
const propertyChain = child.prop.split(".");
const propertyName = propertyChain[propertyChain.length - 1];
let rule = [];
if (child.itemRules && child.itemRules.length > 0) {
rule = child.itemRules;
} else {
rule = this.formRules[child.prop];
}
if (!rule) {
resolve();
return;
}
const rules = [].concat(rule);
if (!rules.length) {
resolve();
}
for (let i = 0; i < rules.length; i++) {
const ruleItem = rules[i];
const trigger = [].concat(ruleItem == null ? void 0 : ruleItem.trigger);
if (event && !trigger.includes(event)) {
resolve();
continue;
}
const validator = new common_vendor.Schema({
[propertyName]: ruleItem
});
validator.validate(
{
[propertyName]: propertyVal
},
(errors, fields) => {
var _a;
if (common_vendor.test.array(errors)) {
errors.forEach((element) => {
element.prop = child.prop;
});
errorsRes.push(...errors);
childErrors.push(...errors);
}
if (!options || (options == null ? void 0 : options.showErrorMsg) == true) {
child.message = ((_a = childErrors[0]) == null ? void 0 : _a.message) ? childErrors[0].message : null;
}
if (i == rules.length - 1) {
resolve(errorsRes);
}
}
);
}
} else {
resolve({});
}
});
});
Promise.all(promises).then((results) => {
typeof callback === "function" && callback(errorsRes);
}).catch((error2) => {
common_vendor.index.__f__("error", "at node_modules/uview-plus/components/u-form/u-form.vue:218", "An error occurred:", error2);
});
});
},
/**
* 校验全部数据
* @param {Object} options
* @param {Boolean} options.showErrorMsg -是否显示校验信息,
*/
validate(options) {
if (Object.keys(this.formRules).length === 0) {
common_vendor.error("未设置rules,请看文档说明!如果已经设置,请刷新页面。");
return;
}
return new Promise((resolve, reject) => {
this.$nextTick(() => {
const formItemProps = this.children.map(
(item) => item.prop
);
this.validateField(formItemProps, (errors) => {
if (errors.length) {
this.errorType === "toast" && common_vendor.toast(errors[0].message);
reject(errors);
} else {
resolve(true);
}
}, null, options);
});
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-form/u-form.js.map
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view class="u-form"><slot/></view>
@@ -0,0 +1,25 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-gap",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$30],
computed: {
gapStyle() {
const style = {
backgroundColor: this.bgColor,
height: common_vendor.addUnit(this.height),
marginTop: common_vendor.addUnit(this.marginTop),
marginBottom: common_vendor.addUnit(this.marginBottom)
};
return common_vendor.deepMerge(style, common_vendor.addStyle(this.customStyle));
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.s($options.gapStyle)
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a491fc03"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-gap/u-gap.js.map
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view class="u-gap data-v-a491fc03" style="{{a}}"></view>
@@ -0,0 +1,49 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-a491fc03,
.u-empty__wrap.data-v-a491fc03,
.u-tabs.data-v-a491fc03,
.u-tabs__wrapper.data-v-a491fc03,
.u-tabs__wrapper__scroll-view-wrapper.data-v-a491fc03,
.u-tabs__wrapper__scroll-view.data-v-a491fc03,
.u-tabs__wrapper__nav.data-v-a491fc03,
.u-tabs__wrapper__nav__line.data-v-a491fc03,
.up-empty.data-v-a491fc03,
.up-empty__wrap.data-v-a491fc03,
.up-tabs.data-v-a491fc03,
.up-tabs__wrapper.data-v-a491fc03,
.up-tabs__wrapper__scroll-view-wrapper.data-v-a491fc03,
.up-tabs__wrapper__scroll-view.data-v-a491fc03,
.up-tabs__wrapper__nav.data-v-a491fc03,
.up-tabs__wrapper__nav__line.data-v-a491fc03 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
@@ -0,0 +1,96 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-icon",
beforeCreate() {
},
data() {
return {};
},
emits: ["click"],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$1],
computed: {
uClasses() {
let classes = [];
classes.push(this.customPrefix + "-" + this.name);
if (this.customPrefix == "uicon") {
classes.push("u-iconfont");
} else {
classes.push(this.customPrefix);
}
if (this.color && common_vendor.config.type.includes(this.color))
classes.push("u-icon__icon--" + this.color);
return classes;
},
iconStyle() {
let style = {};
style = {
fontSize: common_vendor.addUnit(this.size),
lineHeight: common_vendor.addUnit(this.size),
fontWeight: this.bold ? "bold" : "normal",
// 某些特殊情况需要设置一个到顶部的距离,才能更好的垂直居中
top: common_vendor.addUnit(this.top)
};
if (this.color && !common_vendor.config.type.includes(this.color))
style.color = this.color;
return style;
},
// 判断传入的name属性,是否图片路径,只要带有"/"均认为是图片形式
isImg() {
return this.name.indexOf("/") !== -1;
},
imgStyle() {
let style = {};
style.width = this.width ? common_vendor.addUnit(this.width) : common_vendor.addUnit(this.size);
style.height = this.height ? common_vendor.addUnit(this.height) : common_vendor.addUnit(this.size);
return style;
},
// 通过图标名,查找对应的图标
icon() {
if (this.customPrefix !== "uicon") {
return this.customIcons[this.customPrefix + "-" + this.name] || this.name;
}
return common_vendor.icons["uicon-" + this.name] || this.name;
}
},
methods: {
addStyle: common_vendor.addStyle,
addUnit: common_vendor.addUnit,
clickHandler(e) {
this.$emit("click", this.index, e);
this.stop && this.preventEvent(e);
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $options.isImg
}, $options.isImg ? {
b: _ctx.name,
c: _ctx.imgMode,
d: common_vendor.s($options.imgStyle),
e: common_vendor.s($options.addStyle(_ctx.customStyle))
} : {
f: common_vendor.t($options.icon),
g: common_vendor.n($options.uClasses),
h: common_vendor.s($options.iconStyle),
i: common_vendor.s($options.addStyle(_ctx.customStyle)),
j: _ctx.hoverClass
}, {
k: _ctx.label !== ""
}, _ctx.label !== "" ? {
l: common_vendor.t(_ctx.label),
m: _ctx.labelColor,
n: $options.addUnit(_ctx.labelSize),
o: _ctx.labelPos == "right" ? $options.addUnit(_ctx.space) : 0,
p: _ctx.labelPos == "bottom" ? $options.addUnit(_ctx.space) : 0,
q: _ctx.labelPos == "left" ? $options.addUnit(_ctx.space) : 0,
r: _ctx.labelPos == "top" ? $options.addUnit(_ctx.space) : 0
} : {}, {
s: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args)),
t: common_vendor.n("u-icon--" + _ctx.labelPos)
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1c933a9a"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-icon/u-icon.js.map
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view bindtap="{{s}}" class="{{['u-icon', 'data-v-1c933a9a', t]}}"><image wx:if="{{a}}" class="u-icon__img data-v-1c933a9a" src="{{b}}" mode="{{c}}" style="{{d + ';' + e}}"></image><text wx:else class="{{['u-icon__icon', 'data-v-1c933a9a', g]}}" style="{{h + ';' + i}}" hover-class="{{j}}">{{f}}</text><text wx:if="{{k}}" class="u-icon__label data-v-1c933a9a" style="{{'color:' + m + ';' + ('font-size:' + n) + ';' + ('margin-left:' + o) + ';' + ('margin-top:' + p) + ';' + ('margin-right:' + q) + ';' + ('margin-bottom:' + r)}}">{{l}}</text></view>
@@ -0,0 +1,102 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-1c933a9a,
.u-empty__wrap.data-v-1c933a9a,
.u-tabs.data-v-1c933a9a,
.u-tabs__wrapper.data-v-1c933a9a,
.u-tabs__wrapper__scroll-view-wrapper.data-v-1c933a9a,
.u-tabs__wrapper__scroll-view.data-v-1c933a9a,
.u-tabs__wrapper__nav.data-v-1c933a9a,
.u-tabs__wrapper__nav__line.data-v-1c933a9a,
.up-empty.data-v-1c933a9a,
.up-empty__wrap.data-v-1c933a9a,
.up-tabs.data-v-1c933a9a,
.up-tabs__wrapper.data-v-1c933a9a,
.up-tabs__wrapper__scroll-view-wrapper.data-v-1c933a9a,
.up-tabs__wrapper__scroll-view.data-v-1c933a9a,
.up-tabs__wrapper__nav.data-v-1c933a9a,
.up-tabs__wrapper__nav__line.data-v-1c933a9a {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
@font-face {
font-family: "uicon-iconfont";
src: url("https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf") format("truetype");
}
.u-icon.data-v-1c933a9a {
display: flex;
align-items: center;
}
.u-icon--left.data-v-1c933a9a {
flex-direction: row-reverse;
align-items: center;
}
.u-icon--right.data-v-1c933a9a {
flex-direction: row;
align-items: center;
}
.u-icon--top.data-v-1c933a9a {
flex-direction: column-reverse;
justify-content: center;
}
.u-icon--bottom.data-v-1c933a9a {
flex-direction: column;
justify-content: center;
}
.u-icon__icon.data-v-1c933a9a {
font-family: uicon-iconfont;
position: relative;
display: flex;
flex-direction: row;
align-items: center;
}
.u-icon__icon--primary.data-v-1c933a9a {
color: #3c9cff;
}
.u-icon__icon--success.data-v-1c933a9a {
color: #5ac725;
}
.u-icon__icon--error.data-v-1c933a9a {
color: #f56c6c;
}
.u-icon__icon--warning.data-v-1c933a9a {
color: #f9ae3d;
}
.u-icon__icon--info.data-v-1c933a9a {
color: #909399;
}
.u-icon__img.data-v-1c933a9a {
height: auto;
will-change: transform;
}
.u-icon__label.data-v-1c933a9a {
line-height: 1;
}
@@ -0,0 +1,152 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-image",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props],
data() {
return {
// 图片是否加载错误,如果是,则显示错误占位图
isError: false,
// 初始化组件时,默认为加载中状态
loading: true,
// 不透明度,为了实现淡入淡出的效果
opacity: 1,
// 过渡时间,因为props的值无法修改,故需要一个中间值
durationTime: this.duration,
// 图片加载完成时,去掉背景颜色,因为如果是png图片,就会显示灰色的背景
backgroundStyle: {},
// 用于fade模式的控制组件显示与否
show: false
};
},
watch: {
src: {
immediate: true,
handler(n) {
if (!n) {
this.isError = true;
} else {
this.isError = false;
this.loading = true;
}
}
}
},
computed: {
transStyle() {
let style = {};
if (this.loading || this.isError || this.width == "100%" || this.mode != "heightFix") {
style.width = this.width;
} else {
style.width = "fit-content";
}
if (this.loading || this.isError || this.height == "100%" || this.mode != "widthFix") {
style.height = this.height;
} else {
style.height = "fit-content";
}
return style;
},
wrapStyle() {
let style = {};
if (this.loading || this.isError || this.width == "100%" || this.mode != "heightFix") {
style.width = this.width;
} else {
style.width = "fit-content";
}
if (this.loading || this.isError || this.height == "100%" || this.mode != "widthFix") {
style.height = this.height;
} else {
style.height = "fit-content";
}
style.borderRadius = this.shape == "circle" ? "10000px" : common_vendor.addUnit(this.radius);
style.overflow = this.radius > 0 ? "hidden" : "visible";
return common_vendor.deepMerge(style, common_vendor.addStyle(this.customStyle));
}
},
mounted() {
this.show = true;
},
emits: ["click", "error", "load"],
methods: {
addUnit: common_vendor.addUnit,
// 点击图片
onClick(e) {
this.$emit("click", e);
},
// 图片加载失败
onErrorHandler(err) {
this.loading = false;
this.isError = true;
this.$emit("error", err);
},
// 图片加载完成,标记loading结束
onLoadHandler(event) {
this.loading = false;
this.isError = false;
this.$emit("load", event);
this.removeBgColor();
},
// 移除图片的背景色
removeBgColor() {
this.backgroundStyle = {
backgroundColor: this.bgColor || "#ffffff"
};
}
}
};
if (!Array) {
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
const _easycom_u_transition2 = common_vendor.resolveComponent("u-transition");
(_easycom_u_icon2 + _easycom_u_transition2)();
}
const _easycom_u_icon = () => "../u-icon/u-icon.js";
const _easycom_u_transition = () => "../u-transition/u-transition.js";
if (!Math) {
(_easycom_u_icon + _easycom_u_transition)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: !$data.isError
}, !$data.isError ? {
b: _ctx.src,
c: _ctx.mode,
d: common_vendor.o((...args) => $options.onErrorHandler && $options.onErrorHandler(...args)),
e: common_vendor.o((...args) => $options.onLoadHandler && $options.onLoadHandler(...args)),
f: _ctx.showMenuByLongpress,
g: _ctx.lazyLoad,
h: $options.addUnit(_ctx.width),
i: $options.addUnit(_ctx.height),
j: _ctx.shape == "circle" ? "10000px" : $options.addUnit(_ctx.radius)
} : {}, {
k: _ctx.showLoading && $data.loading
}, _ctx.showLoading && $data.loading ? {
l: common_vendor.p({
name: _ctx.loadingIcon
}),
m: _ctx.shape == "circle" ? "50%" : $options.addUnit(_ctx.radius),
n: this.bgColor,
o: $options.addUnit(_ctx.width),
p: $options.addUnit(_ctx.height)
} : {}, {
q: _ctx.showError && $data.isError && !$data.loading
}, _ctx.showError && $data.isError && !$data.loading ? {
r: common_vendor.p({
name: _ctx.errorIcon
}),
s: _ctx.shape == "circle" ? "50%" : $options.addUnit(_ctx.radius)
} : {}, {
t: common_vendor.o((...args) => $options.onClick && $options.onClick(...args)),
v: common_vendor.s($options.wrapStyle),
w: common_vendor.s($data.backgroundStyle),
x: common_vendor.s($options.transStyle),
y: common_vendor.p({
mode: "fade",
show: $data.show,
duration: _ctx.fade ? 1e3 : 0
})
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9d58ba7c"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-image/u-image.js.map
@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"u-icon": "../u-icon/u-icon",
"u-transition": "../u-transition/u-transition"
}
}
@@ -0,0 +1 @@
<u-transition wx:if="{{y}}" class="data-v-9d58ba7c" u-s="{{['d']}}" style="{{x}}" u-i="9d58ba7c-0" bind:__l="__l" u-p="{{y}}"><view class="u-image box-border data-v-9d58ba7c" bindtap="{{t}}" style="{{v + ';' + w}}"><image wx:if="{{a}}" src="{{b}}" mode="{{c}}" binderror="{{d}}" bindload="{{e}}" show-menu-by-longpress="{{f}}" lazy-load="{{g}}" class="u-image__image data-v-9d58ba7c" style="{{'width:' + h + ';' + ('height:' + i) + ';' + ('border-radius:' + j)}}"></image><view wx:if="{{k}}" class="u-image__loading data-v-9d58ba7c" style="{{'border-radius:' + m + ';' + ('background-color:' + n) + ';' + ('width:' + o) + ';' + ('height:' + p)}}"><block wx:if="{{$slots.loading}}"><slot name="loading"></slot></block><block wx:else><u-icon wx:if="{{l}}" class="data-v-9d58ba7c" u-i="9d58ba7c-1,9d58ba7c-0" bind:__l="__l" u-p="{{l}}"></u-icon></block></view><view wx:if="{{q}}" class="u-image__error data-v-9d58ba7c" style="{{'border-radius:' + s}}"><block wx:if="{{$slots.error}}"><slot name="error"></slot></block><block wx:else><u-icon wx:if="{{r}}" class="data-v-9d58ba7c" u-i="9d58ba7c-2,9d58ba7c-0" bind:__l="__l" u-p="{{r}}"></u-icon></block></view></view></u-transition>
@@ -0,0 +1,71 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-9d58ba7c,
.u-empty__wrap.data-v-9d58ba7c,
.u-tabs.data-v-9d58ba7c,
.u-tabs__wrapper.data-v-9d58ba7c,
.u-tabs__wrapper__scroll-view-wrapper.data-v-9d58ba7c,
.u-tabs__wrapper__scroll-view.data-v-9d58ba7c,
.u-tabs__wrapper__nav.data-v-9d58ba7c,
.u-tabs__wrapper__nav__line.data-v-9d58ba7c,
.up-empty.data-v-9d58ba7c,
.up-empty__wrap.data-v-9d58ba7c,
.up-tabs.data-v-9d58ba7c,
.up-tabs__wrapper.data-v-9d58ba7c,
.up-tabs__wrapper__scroll-view-wrapper.data-v-9d58ba7c,
.up-tabs__wrapper__scroll-view.data-v-9d58ba7c,
.up-tabs__wrapper__nav.data-v-9d58ba7c,
.up-tabs__wrapper__nav__line.data-v-9d58ba7c {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-image.data-v-9d58ba7c {
position: relative;
transition: opacity 0.5s ease-in-out;
}
.u-image__image.data-v-9d58ba7c {
width: 100%;
height: 100%;
}
.u-image__loading.data-v-9d58ba7c, .u-image__error.data-v-9d58ba7c {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
background-color: #f3f4f6;
color: #909193;
font-size: 46rpx;
}
@@ -0,0 +1,242 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-input",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$3],
data() {
return {
// 清除操作
clearInput: false,
// 输入框的值
innerValue: "",
// 是否处于获得焦点状态
focused: false,
// value是否第一次变化,在watch中,由于加入immediate属性,会在第一次触发,此时不应该认为value发生了变化
firstChange: true,
// value绑定值的变化是由内部还是外部引起的
changeFromInner: false,
// 过滤处理方法
innerFormatter: (value) => value
};
},
created() {
if (this.formatter) {
this.innerFormatter = this.formatter;
}
},
watch: {
modelValue: {
immediate: true,
handler(newVal, oldVal) {
if (this.changeFromInner || this.innerValue === newVal) {
this.changeFromInner = false;
return;
}
this.innerValue = newVal;
if (this.firstChange === false && this.changeFromInner === false) {
this.valueChange(this.innerValue, true);
} else {
if (!this.firstChange)
common_vendor.formValidate(this, "change");
}
this.firstChange = false;
this.changeFromInner = false;
}
}
},
computed: {
// 是否显示清除控件
isShowClear() {
const { clearable, readonly, focused, innerValue } = this;
return !!clearable && !readonly && !!focused && innerValue !== "";
},
// 组件的类名
inputClass() {
let classes = [], { border, disabled, shape } = this;
border === "surround" && (classes = classes.concat(["u-border", "u-input--radius"]));
classes.push(`u-input--${shape}`);
border === "bottom" && (classes = classes.concat([
"u-border-bottom",
"u-input--no-radius"
]));
return classes.join(" ");
},
// 组件的样式
wrapperStyle() {
const style = {};
if (this.disabled) {
style.backgroundColor = this.disabledColor;
}
if (this.border === "none") {
style.padding = "0";
} else {
style.paddingTop = "6px";
style.paddingBottom = "6px";
style.paddingLeft = "9px";
style.paddingRight = "9px";
}
return common_vendor.deepMerge(style, common_vendor.addStyle(this.customStyle));
},
// 输入框的样式
inputStyle() {
const style = {
color: this.color,
fontSize: common_vendor.addUnit(this.fontSize),
textAlign: this.inputAlign
};
return style;
}
},
emits: ["update:modelValue", "focus", "blur", "change", "confirm", "clear", "keyboardheightchange", "nicknamereview"],
methods: {
// 在微信小程序中,不支持将函数当做props参数,故只能通过ref形式调用
setFormatter(e) {
this.innerFormatter = e;
},
// 当键盘输入时,触发input事件
onInput(e) {
let { value = "" } = e.detail || {};
this.innerValue = value;
this.$nextTick(() => {
let formatValue = this.innerFormatter(value);
this.innerValue = formatValue;
this.valueChange(formatValue);
});
},
// 输入框失去焦点时触发
onBlur(event) {
this.$emit("blur", event.detail.value);
common_vendor.sleep(150).then(() => {
this.focused = false;
});
common_vendor.formValidate(this, "blur");
},
// 输入框聚焦时触发
onFocus(event) {
this.focused = true;
this.$emit("focus");
},
doFocus() {
this.$refs["input-native"].focus();
},
doBlur() {
this.$refs["input-native"].blur();
},
// 点击完成按钮时触发
onConfirm(event) {
this.$emit("confirm", this.innerValue);
},
// 键盘高度发生变化的时候触发此事件
// 兼容性:微信小程序2.7.0+、App 3.1.0+
onkeyboardheightchange(event) {
this.$emit("keyboardheightchange", event);
},
onnicknamereview(event) {
this.$emit("nicknamereview", event);
},
// 内容发生变化,进行处理
valueChange(value, isOut = false) {
if (this.clearInput) {
this.innerValue = "";
this.clearInput = false;
}
this.$nextTick(() => {
if (!isOut || this.clearInput) {
this.changeFromInner = true;
this.$emit("change", value);
this.$emit("update:modelValue", value);
}
common_vendor.formValidate(this, "change");
});
},
// 点击清除控件
onClear() {
this.clearInput = true;
this.innerValue = "";
this.$nextTick(() => {
this.valueChange("");
this.$emit("clear");
});
},
/**
* 在安卓nvue上,事件无法冒泡
* 在某些时间,我们希望监听u-from-item的点击事件,此时会导致点击u-form-item内的u-input后
* 无法触发u-form-item的点击事件,这里通过手动调用u-form-item的方法进行触发
*/
clickHandler() {
if (this.disabled || this.readonly) {
common_vendor.index.hideKeyboard();
}
}
}
};
if (!Array) {
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
_easycom_u_icon2();
}
const _easycom_u_icon = () => "../u-icon/u-icon.js";
if (!Math) {
_easycom_u_icon();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: _ctx.prefixIcon || _ctx.$slots.prefix
}, _ctx.prefixIcon || _ctx.$slots.prefix ? {
b: common_vendor.p({
name: _ctx.prefixIcon,
size: "18",
customStyle: _ctx.prefixIconStyle
})
} : {}, {
c: common_vendor.s($options.inputStyle),
d: _ctx.type,
e: _ctx.focus,
f: _ctx.cursor,
g: $data.innerValue,
h: _ctx.autoBlur,
i: _ctx.disabled || _ctx.readonly,
j: _ctx.maxlength,
k: _ctx.placeholder,
l: _ctx.placeholderStyle,
m: _ctx.placeholderClass,
n: _ctx.confirmType,
o: _ctx.confirmHold,
p: _ctx.holdKeyboard,
q: _ctx.cursorSpacing,
r: _ctx.adjustPosition,
s: _ctx.selectionEnd,
t: _ctx.selectionStart,
v: _ctx.password || _ctx.type === "password" || false,
w: _ctx.ignoreCompositionEvent,
x: common_vendor.o((...args) => $options.onInput && $options.onInput(...args)),
y: common_vendor.o((...args) => $options.onBlur && $options.onBlur(...args)),
z: common_vendor.o((...args) => $options.onFocus && $options.onFocus(...args)),
A: common_vendor.o((...args) => $options.onConfirm && $options.onConfirm(...args)),
B: common_vendor.o((...args) => $options.onkeyboardheightchange && $options.onkeyboardheightchange(...args)),
C: common_vendor.o((...args) => $options.onnicknamereview && $options.onnicknamereview(...args)),
D: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args)),
E: $options.isShowClear
}, $options.isShowClear ? {
F: common_vendor.p({
name: "close",
size: "11",
color: "#ffffff",
customStyle: "line-height: 12px"
}),
G: common_vendor.o((...args) => $options.onClear && $options.onClear(...args))
} : {}, {
H: _ctx.suffixIcon || _ctx.$slots.suffix
}, _ctx.suffixIcon || _ctx.$slots.suffix ? {
I: common_vendor.p({
name: _ctx.suffixIcon,
size: "18",
customStyle: _ctx.suffixIconStyle
})
} : {}, {
J: common_vendor.n($options.inputClass),
K: common_vendor.s($options.wrapperStyle)
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5904192e"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-input/u-input.js.map
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"u-icon": "../u-icon/u-icon"
}
}
@@ -0,0 +1 @@
<view class="{{['u-input', 'data-v-5904192e', J]}}" style="{{K}}"><view class="u-input__content data-v-5904192e"><view wx:if="{{a}}" class="u-input__content__prefix-icon data-v-5904192e"><block wx:if="{{$slots.prefix}}"><slot name="prefix"></slot></block><block wx:else><u-icon wx:if="{{b}}" class="data-v-5904192e" u-i="5904192e-0" bind:__l="__l" u-p="{{b}}"></u-icon></block></view><view class="u-input__content__field-wrapper data-v-5904192e" bindtap="{{D}}"><block wx:if="{{r0}}"><input ref="input-native" class="u-input__content__field-wrapper__field data-v-5904192e" style="{{c}}" type="{{d}}" focus="{{e}}" cursor="{{f}}" value="{{g}}" auto-blur="{{h}}" disabled="{{i}}" maxlength="{{j}}" placeholder="{{k}}" placeholder-style="{{l}}" placeholder-class="{{m}}" confirm-type="{{n}}" confirm-hold="{{o}}" hold-keyboard="{{p}}" cursor-spacing="{{q}}" adjust-position="{{r}}" selection-end="{{s}}" selection-start="{{t}}" password="{{v}}" ignoreCompositionEvent="{{w}}" bindinput="{{x}}" bindblur="{{y}}" bindfocus="{{z}}" bindconfirm="{{A}}" bindkeyboardheightchange="{{B}}" bindnicknamereview="{{C}}"/></block></view><view wx:if="{{E}}" class="u-input__content__clear data-v-5904192e" bindtap="{{G}}"><u-icon wx:if="{{F}}" class="data-v-5904192e" u-i="5904192e-1" bind:__l="__l" u-p="{{F}}"></u-icon></view><view wx:if="{{H}}" class="u-input__content__subfix-icon data-v-5904192e"><block wx:if="{{$slots.suffix}}"><slot name="suffix"></slot></block><block wx:else><u-icon wx:if="{{I}}" class="data-v-5904192e" u-i="5904192e-2" bind:__l="__l" u-p="{{I}}"></u-icon></block></view></view></view>
@@ -0,0 +1,105 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-5904192e,
.u-empty__wrap.data-v-5904192e,
.u-tabs.data-v-5904192e,
.u-tabs__wrapper.data-v-5904192e,
.u-tabs__wrapper__scroll-view-wrapper.data-v-5904192e,
.u-tabs__wrapper__scroll-view.data-v-5904192e,
.u-tabs__wrapper__nav.data-v-5904192e,
.u-tabs__wrapper__nav__line.data-v-5904192e,
.up-empty.data-v-5904192e,
.up-empty__wrap.data-v-5904192e,
.up-tabs.data-v-5904192e,
.up-tabs__wrapper.data-v-5904192e,
.up-tabs__wrapper__scroll-view-wrapper.data-v-5904192e,
.up-tabs__wrapper__scroll-view.data-v-5904192e,
.up-tabs__wrapper__nav.data-v-5904192e,
.up-tabs__wrapper__nav__line.data-v-5904192e {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-input.data-v-5904192e {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
flex: 1;
}
.u-input--radius.data-v-5904192e, .u-input--square.data-v-5904192e {
border-radius: 4px;
}
.u-input--no-radius.data-v-5904192e {
border-radius: 0;
}
.u-input--circle.data-v-5904192e {
border-radius: 100px;
}
.u-input__content.data-v-5904192e {
flex: 1;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.u-input__content__field-wrapper.data-v-5904192e {
position: relative;
display: flex;
flex-direction: row;
margin: 0;
flex: 1;
}
.u-input__content__field-wrapper__field.data-v-5904192e {
line-height: 26px;
text-align: left;
color: #303133;
height: 24px;
font-size: 15px;
flex: 1;
}
.u-input__content__clear.data-v-5904192e {
width: 20px;
height: 20px;
border-radius: 100px;
background-color: #c6c7cb;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
transform: scale(0.82);
margin-left: 4px;
}
.u-input__content__subfix-icon.data-v-5904192e {
margin-left: 4px;
}
.u-input__content__prefix-icon.data-v-5904192e {
margin-right: 4px;
}
@@ -0,0 +1,35 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-line",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$28],
computed: {
lineStyle() {
const style = {};
style.margin = this.margin;
if (this.direction === "row") {
style.borderBottomWidth = "1px";
style.borderBottomStyle = this.dashed ? "dashed" : "solid";
style.width = common_vendor.addUnit(this.length);
if (this.hairline)
style.transform = "scaleY(0.5)";
} else {
style.borderLeftWidth = "1px";
style.borderLeftStyle = this.dashed ? "dashed" : "solid";
style.height = common_vendor.addUnit(this.length);
if (this.hairline)
style.transform = "scaleX(0.5)";
}
style.borderColor = this.color;
return common_vendor.deepMerge(style, common_vendor.addStyle(this.customStyle));
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.s($options.lineStyle)
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bbd9963c"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-line/u-line.js.map
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view class="u-line data-v-bbd9963c" style="{{a}}"></view>
@@ -0,0 +1,52 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-bbd9963c,
.u-empty__wrap.data-v-bbd9963c,
.u-tabs.data-v-bbd9963c,
.u-tabs__wrapper.data-v-bbd9963c,
.u-tabs__wrapper__scroll-view-wrapper.data-v-bbd9963c,
.u-tabs__wrapper__scroll-view.data-v-bbd9963c,
.u-tabs__wrapper__nav.data-v-bbd9963c,
.u-tabs__wrapper__nav__line.data-v-bbd9963c,
.up-empty.data-v-bbd9963c,
.up-empty__wrap.data-v-bbd9963c,
.up-tabs.data-v-bbd9963c,
.up-tabs__wrapper.data-v-bbd9963c,
.up-tabs__wrapper__scroll-view-wrapper.data-v-bbd9963c,
.up-tabs__wrapper__scroll-view.data-v-bbd9963c,
.up-tabs__wrapper__nav.data-v-bbd9963c,
.up-tabs__wrapper__nav__line.data-v-bbd9963c {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-line.data-v-bbd9963c {
vertical-align: middle;
}
@@ -0,0 +1,45 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-link",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$34],
computed: {
linkStyle() {
const style = {
color: this.color,
fontSize: common_vendor.addUnit(this.fontSize),
// line-height设置为比字体大小多2px
lineHeight: common_vendor.addUnit(common_vendor.getPx(this.fontSize) + 2),
textDecoration: this.underLine ? "underline" : "none"
};
return style;
}
},
emits: ["click"],
methods: {
addStyle: common_vendor.addStyle,
openLink() {
common_vendor.index.setClipboardData({
data: this.href,
success: () => {
common_vendor.index.hideToast();
this.$nextTick(() => {
common_vendor.toast(this.mpTips);
});
}
});
this.$emit("click");
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.t(_ctx.text),
b: common_vendor.o((...args) => $options.openLink && $options.openLink(...args)),
c: common_vendor.s($options.linkStyle),
d: common_vendor.s($options.addStyle(_ctx.customStyle))
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dedad317"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js.map
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<text class="u-link data-v-dedad317" catchtap="{{b}}" style="{{c + ';' + d}}">{{a}}</text>
@@ -0,0 +1,56 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-dedad317,
.u-empty__wrap.data-v-dedad317,
.u-tabs.data-v-dedad317,
.u-tabs__wrapper.data-v-dedad317,
.u-tabs__wrapper__scroll-view-wrapper.data-v-dedad317,
.u-tabs__wrapper__scroll-view.data-v-dedad317,
.u-tabs__wrapper__nav.data-v-dedad317,
.u-tabs__wrapper__nav__line.data-v-dedad317,
.up-empty.data-v-dedad317,
.up-empty__wrap.data-v-dedad317,
.up-tabs.data-v-dedad317,
.up-tabs__wrapper.data-v-dedad317,
.up-tabs__wrapper__scroll-view-wrapper.data-v-dedad317,
.up-tabs__wrapper__scroll-view.data-v-dedad317,
.up-tabs__wrapper__nav.data-v-dedad317,
.up-tabs__wrapper__nav__line.data-v-dedad317 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-link.data-v-dedad317 {
line-height: 1;
display: flex;
flex-direction: row;
flex-wrap: wrap;
flex: 1;
}
@@ -0,0 +1,75 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-list-item",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$20],
data() {
return {
// 节点信息
rect: {},
index: 0,
show: true,
sys: common_vendor.getWindowInfo()
};
},
computed: {},
inject: ["uList"],
watch: {
"uList.innerScrollTop"(n) {
const preLoadScreen = this.uList.preLoadScreen;
const windowHeight = this.sys.windowHeight;
if (n <= windowHeight * preLoadScreen) {
this.parent.updateOffsetFromChild(0);
} else if (this.rect.top <= n - windowHeight * preLoadScreen) {
this.parent.updateOffsetFromChild(this.rect.top);
}
}
},
created() {
this.parent = {};
},
mounted() {
this.init();
},
methods: {
init() {
this.updateParentData();
this.index = this.parent.children.indexOf(this);
this.resize();
},
updateParentData() {
this.getParentData("u-list");
},
resize() {
this.queryRect(`u-list-item-${this.anchor}`).then((size) => {
const lastChild = this.parent.children[this.index - 1];
this.rect = size;
const preLoadScreen = this.uList.preLoadScreen;
const windowHeight = this.sys.windowHeight;
if (lastChild) {
this.rect.top = lastChild.rect.top + lastChild.rect.height;
}
if (size.top >= this.uList.innerScrollTop + (1 + preLoadScreen) * windowHeight)
this.show = false;
});
},
// 查询元素尺寸
queryRect(el) {
return new Promise((resolve) => {
this.$uGetRect(`.${el}`).then((size) => {
resolve(size);
});
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: `u-list-item-${_ctx.anchor}`,
b: `u-list-item-${_ctx.anchor}`,
c: common_vendor.n(`u-list-item-${_ctx.anchor}`)
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-32197ac9"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-list-item/u-list-item.js.map
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view ref="{{a}}" anchor="{{b}}" class="{{['u-list-item', 'data-v-32197ac9', c]}}"><slot/></view>
@@ -0,0 +1,49 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-32197ac9,
.u-empty__wrap.data-v-32197ac9,
.u-tabs.data-v-32197ac9,
.u-tabs__wrapper.data-v-32197ac9,
.u-tabs__wrapper__scroll-view-wrapper.data-v-32197ac9,
.u-tabs__wrapper__scroll-view.data-v-32197ac9,
.u-tabs__wrapper__nav.data-v-32197ac9,
.u-tabs__wrapper__nav__line.data-v-32197ac9,
.up-empty.data-v-32197ac9,
.up-empty__wrap.data-v-32197ac9,
.up-tabs.data-v-32197ac9,
.up-tabs__wrapper.data-v-32197ac9,
.up-tabs__wrapper__scroll-view-wrapper.data-v-32197ac9,
.up-tabs__wrapper__scroll-view.data-v-32197ac9,
.up-tabs__wrapper__nav.data-v-32197ac9,
.up-tabs__wrapper__nav__line.data-v-32197ac9 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
@@ -0,0 +1,119 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-list",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$21],
watch: {
scrollIntoView(n) {
this.scrollIntoViewById(n);
}
},
data() {
return {
// 记录内部滚动的距离
innerScrollTop: 0,
// vue下,scroll-view在上拉加载时的偏移值
offset: 0,
sys: common_vendor.getWindowInfo()
};
},
computed: {
listStyle() {
const style = {};
if (this.width != 0)
style.width = common_vendor.addUnit(this.width);
if (this.height != 0)
style.height = common_vendor.addUnit(this.height);
if (!style.height)
style.height = common_vendor.addUnit(this.sys.windowHeight, "px");
return common_vendor.deepMerge(style, common_vendor.addStyle(this.customStyle));
}
},
provide() {
return {
uList: this
};
},
created() {
this.refs = [];
this.children = [];
this.anchors = [];
},
mounted() {
},
emits: [
"scroll",
"scrolltolower",
"scrolltoupper",
"refresherpulling",
"refresherrefresh",
"refresherrestore",
"refresherabort"
],
methods: {
updateOffsetFromChild(top) {
this.offset = top;
},
onScroll(e) {
let scrollTop = 0;
scrollTop = e.detail.scrollTop;
this.innerScrollTop = scrollTop;
this.$emit("scroll", scrollTop);
},
scrollIntoViewById(id) {
},
// 滚动到底部触发事件
scrolltolower(e) {
common_vendor.sleep(30).then(() => {
this.$emit("scrolltolower");
});
},
// 滚动到底部时触发,非nvue有效
scrolltoupper(e) {
common_vendor.sleep(30).then(() => {
this.$emit("scrolltoupper");
this.offset = 0;
});
},
refresherpulling(e) {
this.$emit("refresherpulling", e);
},
refresherrefresh(e) {
this.$emit("refresherrefresh", e);
},
refresherrestore(e) {
this.$emit("refresherrestore", e);
},
refresherabort(e) {
this.$emit("refresherabort", e);
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: _ctx.scrollIntoView,
b: common_vendor.s($options.listStyle),
c: _ctx.scrollable,
d: Number(_ctx.scrollTop),
e: Number(_ctx.lowerThreshold),
f: Number(_ctx.upperThreshold),
g: _ctx.showScrollbar,
h: _ctx.enableBackToTop,
i: _ctx.scrollWithAnimation,
j: common_vendor.o((...args) => $options.onScroll && $options.onScroll(...args)),
k: common_vendor.o((...args) => $options.scrolltolower && $options.scrolltolower(...args)),
l: common_vendor.o((...args) => $options.scrolltoupper && $options.scrolltoupper(...args)),
m: _ctx.refresherEnabled,
n: _ctx.refresherThreshold,
o: _ctx.refresherDefaultStyle,
p: _ctx.refresherBackground,
q: _ctx.refresherTriggered,
r: common_vendor.o((...args) => $options.refresherpulling && $options.refresherpulling(...args)),
s: common_vendor.o((...args) => $options.refresherrefresh && $options.refresherrefresh(...args)),
t: common_vendor.o((...args) => $options.refresherrestore && $options.refresherrestore(...args)),
v: common_vendor.o((...args) => $options.refresherabort && $options.refresherabort(...args))
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9ad03670"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-list/u-list.js.map
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<scroll-view class="u-list data-v-9ad03670" scroll-into-view="{{a}}" style="{{b}}" scroll-y="{{c}}" scroll-top="{{d}}" lower-threshold="{{e}}" upper-threshold="{{f}}" show-scrollbar="{{g}}" enable-back-to-top="{{h}}" scroll-with-animation="{{i}}" bindscroll="{{j}}" bindscrolltolower="{{k}}" bindscrolltoupper="{{l}}" refresher-enabled="{{m}}" refresher-threshold="{{n}}" refresher-default-style="{{o}}" refresher-background="{{p}}" refresher-triggered="{{q}}" bindrefresherpulling="{{r}}" bindrefresherrefresh="{{s}}" bindrefresherrestore="{{t}}" bindrefresherabort="{{v}}" scroll-anchoring="{{true}}"><view class="data-v-9ad03670"><slot/></view></scroll-view>
@@ -0,0 +1,53 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-9ad03670,
.u-empty__wrap.data-v-9ad03670,
.u-tabs.data-v-9ad03670,
.u-tabs__wrapper.data-v-9ad03670,
.u-tabs__wrapper__scroll-view-wrapper.data-v-9ad03670,
.u-tabs__wrapper__scroll-view.data-v-9ad03670,
.u-tabs__wrapper__nav.data-v-9ad03670,
.u-tabs__wrapper__nav__line.data-v-9ad03670,
.up-empty.data-v-9ad03670,
.up-empty__wrap.data-v-9ad03670,
.up-tabs.data-v-9ad03670,
.up-tabs__wrapper.data-v-9ad03670,
.up-tabs__wrapper__scroll-view-wrapper.data-v-9ad03670,
.up-tabs__wrapper__scroll-view.data-v-9ad03670,
.up-tabs__wrapper__nav.data-v-9ad03670,
.up-tabs__wrapper__nav__line.data-v-9ad03670 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-list.data-v-9ad03670 {
display: flex;
flex-direction: column;
}
@@ -0,0 +1,101 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-loading-icon",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$29],
data() {
return {
// Array.form可以通过一个伪数组对象创建指定长度的数组
// https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/from
array12: Array.from({
length: 12
}),
// 这里需要设置默认值为360,否则在安卓nvue上,会延迟一个duration周期后才执行
// 在iOS nvue上,则会一开始默认执行两个周期的动画
aniAngel: 360,
// 动画旋转角度
webviewHide: false,
// 监听webview的状态,如果隐藏了页面,则停止动画,以免性能消耗
loading: false
// 是否运行中,针对nvue使用
};
},
computed: {
// 当为circle类型时,给其另外三边设置一个更轻一些的颜色
// 之所以需要这么做的原因是,比如父组件传了color为红色,那么需要另外的三个边为浅红色
// 而不能是固定的某一个其他颜色(因为这个固定的颜色可能浅蓝,导致效果没有那么细腻良好)
otherBorderColor() {
const lightColor = common_vendor.colorGradient(this.color, "#ffffff", 100)[80];
if (this.mode === "circle") {
return this.inactiveColor ? this.inactiveColor : lightColor;
} else {
return "transparent";
}
}
},
watch: {
show(n) {
}
},
mounted() {
this.init();
},
methods: {
addUnit: common_vendor.addUnit,
addStyle: common_vendor.addStyle,
init() {
setTimeout(() => {
}, 20);
},
// 监听webview的显示与隐藏
addEventListenerToWebview() {
const pages = getCurrentPages();
const page = pages[pages.length - 1];
const currentWebview = page.$getAppWebview();
currentWebview.addEventListener("hide", () => {
this.webviewHide = true;
});
currentWebview.addEventListener("show", () => {
this.webviewHide = false;
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: _ctx.show
}, _ctx.show ? common_vendor.e({
b: !$data.webviewHide
}, !$data.webviewHide ? common_vendor.e({
c: _ctx.mode === "spinner"
}, _ctx.mode === "spinner" ? {
d: common_vendor.f($data.array12, (item, index, i0) => {
return {
a: index
};
})
} : {}, {
e: common_vendor.n(`u-loading-icon__spinner--${_ctx.mode}`),
f: _ctx.color,
g: $options.addUnit(_ctx.size),
h: $options.addUnit(_ctx.size),
i: _ctx.color,
j: $options.otherBorderColor,
k: $options.otherBorderColor,
l: $options.otherBorderColor,
m: `${_ctx.duration}ms`,
n: _ctx.mode === "semicircle" || _ctx.mode === "circle" ? _ctx.timingFunction : ""
}) : {}, {
o: _ctx.text
}, _ctx.text ? {
p: common_vendor.t(_ctx.text),
q: $options.addUnit(_ctx.textSize),
r: _ctx.textColor
} : {}, {
s: common_vendor.s($options.addStyle(_ctx.customStyle)),
t: common_vendor.n(_ctx.vertical && "u-loading-icon--vertical")
}) : {});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-00752c6d"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js.map
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view wx:if="{{a}}" style="{{s}}" class="{{['u-loading-icon', 'data-v-00752c6d', t]}}"><view wx:if="{{b}}" class="{{['u-loading-icon__spinner', 'data-v-00752c6d', e]}}" ref="ani" style="{{'color:' + f + ';' + ('width:' + g) + ';' + ('height:' + h) + ';' + ('border-top-color:' + i) + ';' + ('border-bottom-color:' + j) + ';' + ('border-left-color:' + k) + ';' + ('border-right-color:' + l) + ';' + ('animation-duration:' + m) + ';' + ('animation-timing-function:' + n)}}"><block wx:if="{{c}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="a" class="u-loading-icon__dot data-v-00752c6d"></view></block></view><text wx:if="{{o}}" class="u-loading-icon__text data-v-00752c6d" style="{{'font-size:' + q + ';' + ('color:' + r)}}">{{p}}</text></view>
@@ -0,0 +1,181 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-00752c6d,
.u-empty__wrap.data-v-00752c6d,
.u-tabs.data-v-00752c6d,
.u-tabs__wrapper.data-v-00752c6d,
.u-tabs__wrapper__scroll-view-wrapper.data-v-00752c6d,
.u-tabs__wrapper__scroll-view.data-v-00752c6d,
.u-tabs__wrapper__nav.data-v-00752c6d,
.u-tabs__wrapper__nav__line.data-v-00752c6d,
.up-empty.data-v-00752c6d,
.up-empty__wrap.data-v-00752c6d,
.up-tabs.data-v-00752c6d,
.up-tabs__wrapper.data-v-00752c6d,
.up-tabs__wrapper__scroll-view-wrapper.data-v-00752c6d,
.up-tabs__wrapper__scroll-view.data-v-00752c6d,
.up-tabs__wrapper__nav.data-v-00752c6d,
.up-tabs__wrapper__nav__line.data-v-00752c6d {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-loading-icon.data-v-00752c6d {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
color: #c8c9cc;
}
.u-loading-icon__text.data-v-00752c6d {
margin-left: 4px;
color: #606266;
font-size: 14px;
line-height: 20px;
}
.u-loading-icon__spinner.data-v-00752c6d {
width: 30px;
height: 30px;
position: relative;
box-sizing: border-box;
max-width: 100%;
max-height: 100%;
animation: u-rotate-00752c6d 1s linear infinite;
}
.u-loading-icon__spinner--semicircle.data-v-00752c6d {
border-width: 2px;
border-color: transparent;
border-top-right-radius: 100px;
border-top-left-radius: 100px;
border-bottom-left-radius: 100px;
border-bottom-right-radius: 100px;
border-style: solid;
}
.u-loading-icon__spinner--circle.data-v-00752c6d {
border-top-right-radius: 100px;
border-top-left-radius: 100px;
border-bottom-left-radius: 100px;
border-bottom-right-radius: 100px;
border-width: 2px;
border-top-color: #e5e5e5;
border-right-color: #e5e5e5;
border-bottom-color: #e5e5e5;
border-left-color: #e5e5e5;
border-style: solid;
}
.u-loading-icon--vertical.data-v-00752c6d {
flex-direction: column;
}
.data-v-00752c6d:host {
font-size: 0px;
line-height: 1;
}
.u-loading-icon__spinner--spinner.data-v-00752c6d {
animation-timing-function: steps(12);
}
.u-loading-icon__text.data-v-00752c6d:empty {
display: none;
}
.u-loading-icon--vertical .u-loading-icon__text.data-v-00752c6d {
margin: 6px 0 0;
color: #606266;
}
.u-loading-icon__dot.data-v-00752c6d {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.u-loading-icon__dot.data-v-00752c6d:before {
display: block;
width: 2px;
height: 25%;
margin: 0 auto;
background-color: currentColor;
border-radius: 40%;
content: " ";
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(1) {
transform: rotate(30deg);
opacity: 1;
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(2) {
transform: rotate(60deg);
opacity: 0.9375;
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(3) {
transform: rotate(90deg);
opacity: 0.875;
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(4) {
transform: rotate(120deg);
opacity: 0.8125;
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(5) {
transform: rotate(150deg);
opacity: 0.75;
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(6) {
transform: rotate(180deg);
opacity: 0.6875;
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(7) {
transform: rotate(210deg);
opacity: 0.625;
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(8) {
transform: rotate(240deg);
opacity: 0.5625;
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(9) {
transform: rotate(270deg);
opacity: 0.5;
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(10) {
transform: rotate(300deg);
opacity: 0.4375;
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(11) {
transform: rotate(330deg);
opacity: 0.375;
}
.u-loading-icon__dot.data-v-00752c6d:nth-of-type(12) {
transform: rotate(360deg);
opacity: 0.3125;
}
@keyframes u-rotate-00752c6d {
0% {
transform: rotate(0deg);
}
to {
transform: rotate(1turn);
}
}
@@ -0,0 +1,49 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-overlay",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$5],
computed: {
overlayStyle() {
const style = {
position: "fixed",
top: 0,
left: 0,
right: 0,
zIndex: this.zIndex,
bottom: 0,
"background-color": `rgba(0, 0, 0, ${this.opacity})`
};
return common_vendor.deepMerge(style, common_vendor.addStyle(this.customStyle));
}
},
emits: ["click"],
methods: {
clickHandler() {
this.$emit("click");
}
}
};
if (!Array) {
const _easycom_u_transition2 = common_vendor.resolveComponent("u-transition");
_easycom_u_transition2();
}
const _easycom_u_transition = () => "../u-transition/u-transition.js";
if (!Math) {
_easycom_u_transition();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o($options.clickHandler),
b: common_vendor.o(_ctx.noop),
c: common_vendor.p({
show: _ctx.show,
["custom-class"]: "u-overlay",
duration: _ctx.duration,
["custom-style"]: $options.overlayStyle
})
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-35f7c3e5"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-overlay/u-overlay.js.map
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"u-transition": "../u-transition/u-transition"
}
}
@@ -0,0 +1 @@
<u-transition wx:if="{{c}}" class="data-v-35f7c3e5" u-s="{{['d']}}" bindclick="{{a}}" catchtouchmove="{{b}}" u-i="35f7c3e5-0" bind:__l="__l" u-p="{{c}}"><slot/></u-transition>
@@ -0,0 +1,57 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-35f7c3e5,
.u-empty__wrap.data-v-35f7c3e5,
.u-tabs.data-v-35f7c3e5,
.u-tabs__wrapper.data-v-35f7c3e5,
.u-tabs__wrapper__scroll-view-wrapper.data-v-35f7c3e5,
.u-tabs__wrapper__scroll-view.data-v-35f7c3e5,
.u-tabs__wrapper__nav.data-v-35f7c3e5,
.u-tabs__wrapper__nav__line.data-v-35f7c3e5,
.up-empty.data-v-35f7c3e5,
.up-empty__wrap.data-v-35f7c3e5,
.up-tabs.data-v-35f7c3e5,
.up-tabs__wrapper.data-v-35f7c3e5,
.up-tabs__wrapper__scroll-view-wrapper.data-v-35f7c3e5,
.up-tabs__wrapper__scroll-view.data-v-35f7c3e5,
.up-tabs__wrapper__nav.data-v-35f7c3e5,
.up-tabs__wrapper__nav__line.data-v-35f7c3e5 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-overlay.data-v-35f7c3e5 {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
}
@@ -0,0 +1,390 @@
"use strict";
const common_vendor = require("../../../../../common/vendor.js");
const block0 = {};
const node = () => Promise.resolve().then(() => RDovR2l0V29ya1BsYWNlL2Nhc2VEYXRhQmFzZS9ub2RlX21vZHVsZXMvdXZpZXctcGx1cy9jb21wb25lbnRzL3UtcGFyc2Uvbm9kZS9ub2RlLnZ1ZQ);
const _sfc_main = {
name: "node",
options: {
virtualHost: true
},
data() {
return {
ctrl: {},
isiOS: common_vendor.index.getDeviceInfo().system.includes("iOS")
};
},
props: {
name: String,
attrs: {
type: Object,
default() {
return {};
}
},
childs: Array,
opts: Array
},
components: {
node
},
mounted() {
this.$nextTick(() => {
for (this.root = this.$parent; this.root.$options.name !== "u-parse"; this.root = this.root.$parent)
;
});
},
beforeUnmount() {
},
methods: {
toJSON() {
return this;
},
/**
* @description 播放视频事件
* @param {Event} e
*/
play(e) {
this.root.$emit("play");
if (this.root.pauseVideo) {
let flag = false;
const id = e.target.id;
for (let i = this.root._videos.length; i--; ) {
if (this.root._videos[i].id === id) {
flag = true;
} else {
this.root._videos[i].pause();
}
}
if (!flag) {
const ctx = common_vendor.index.createVideoContext(
id,
this
);
ctx.id = id;
if (this.root.playbackRate) {
ctx.playbackRate(this.root.playbackRate);
}
this.root._videos.push(ctx);
}
}
},
/**
* @description 图片点击事件
* @param {Event} e
*/
imgTap(e) {
const node2 = this.childs[e.currentTarget.dataset.i];
if (node2.a) {
this.linkTap(node2.a);
return;
}
if (node2.attrs.ignore)
return;
this.root.$emit("imgTap", node2.attrs);
if (this.root.previewImg) {
common_vendor.index.previewImage({
showmenu: this.root.showImgMenu,
current: parseInt(node2.attrs.i),
urls: this.root.imgList
});
}
},
/**
* @description 图片长按
*/
imgLongTap(e) {
},
/**
* @description 图片加载完成事件
* @param {Event} e
*/
imgLoad(e) {
const i = e.currentTarget.dataset.i;
if (!this.childs[i].w) {
this.$set(this.ctrl, i, e.detail.width);
} else if (this.opts[1] && !this.ctrl[i] || this.ctrl[i] === -1) {
this.$set(this.ctrl, i, 1);
}
this.checkReady();
},
/**
* @description 检查是否所有图片加载完毕
*/
checkReady() {
if (!this.root.lazyLoad) {
this.root._unloadimgs -= 1;
if (!this.root._unloadimgs) {
setTimeout(() => {
this.root.getRect().then((rect) => {
this.root.$emit("ready", rect);
}).catch(() => {
this.root.$emit("ready", {});
});
}, 350);
}
}
},
/**
* @description 链接点击事件
* @param {Event} e
*/
linkTap(e) {
const node2 = e.currentTarget ? this.childs[e.currentTarget.dataset.i] : {};
const attrs = node2.attrs || e;
const href = attrs.href;
this.root.$emit("linkTap", Object.assign({
innerText: this.root.getText(node2.children || [])
// 链接内的文本内容
}, attrs));
if (href) {
if (href[0] === "#") {
this.root.navigateTo(href.substring(1)).catch(() => {
});
} else if (href.split("?")[0].includes("://")) {
if (this.root.copyLink) {
common_vendor.index.setClipboardData({
data: href,
success: () => common_vendor.index.showToast({
title: "链接已复制"
})
});
}
} else {
common_vendor.index.navigateTo({
url: href,
fail() {
common_vendor.index.switchTab({
url: href,
fail() {
}
});
}
});
}
}
},
/**
* @description 错误事件
* @param {Event} e
*/
mediaError(e) {
const i = e.currentTarget.dataset.i;
const node2 = this.childs[i];
if (node2.name === "video" || node2.name === "audio") {
let index = (this.ctrl[i] || 0) + 1;
if (index > node2.src.length) {
index = 0;
}
if (index < node2.src.length) {
this.$set(this.ctrl, i, index);
return;
}
} else if (node2.name === "img") {
if (this.opts[2]) {
this.$set(this.ctrl, i, -1);
}
this.checkReady();
}
if (this.root) {
this.root.$emit("error", {
source: node2.name,
attrs: node2.attrs,
errMsg: e.detail.errMsg
});
}
}
}
};
if (!Array) {
const _component_node = common_vendor.resolveComponent("node");
_component_node();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($props.childs, (n, i, i0) => {
return common_vendor.e({
a: n.name === "img" && !n.t && ($props.opts[1] && !$data.ctrl[i] || $data.ctrl[i] < 0)
}, n.name === "img" && !n.t && ($props.opts[1] && !$data.ctrl[i] || $data.ctrl[i] < 0) ? {
b: common_vendor.s(n.attrs.style),
c: $data.ctrl[i] < 0 ? $props.opts[2] : $props.opts[1]
} : {}, {
d: n.name === "img" && n.t
}, n.name === "img" && n.t ? {
e: common_vendor.s("display:" + n.t),
f: "<img class='_img' style='" + n.attrs.style + "' src='" + n.attrs.src + "'>",
g: i,
h: common_vendor.o((...args) => $options.imgTap && $options.imgTap(...args), i)
} : n.name === "img" ? {
j: n.attrs.id,
k: common_vendor.n("_img " + n.attrs.class),
l: common_vendor.s(($data.ctrl[i] === -1 ? "display:none;" : "") + "width:" + ($data.ctrl[i] || 1) + "px;height:1px;" + n.attrs.style),
m: n.attrs.src,
n: !n.h ? "widthFix" : !n.w ? "heightFix" : "",
o: $props.opts[0],
p: n.webp,
q: $props.opts[3] && !n.attrs.ignore,
r: !$props.opts[3] || n.attrs.ignore,
s: i,
t: common_vendor.o((...args) => $options.imgLoad && $options.imgLoad(...args), i),
v: common_vendor.o((...args) => $options.mediaError && $options.mediaError(...args), i),
w: common_vendor.o((...args) => $options.imgTap && $options.imgTap(...args), i),
x: common_vendor.o((...args) => $options.imgLongTap && $options.imgLongTap(...args), i)
} : n.text ? {
z: common_vendor.t(n.text),
A: $props.opts[4] == "force" && $data.isiOS
} : n.name === "br" ? {} : n.name === "a" ? {
D: "5640ed73-0-" + i0,
E: common_vendor.p({
name: "span",
childs: n.children,
opts: $props.opts
}),
F: n.attrs.id,
G: common_vendor.n((n.attrs.href ? "_a " : "") + n.attrs.class),
H: common_vendor.s("display:inline;" + n.attrs.style),
I: i,
J: common_vendor.o((...args) => $options.linkTap && $options.linkTap(...args), i)
} : n.name === "video" ? {
L: n.attrs.id,
M: common_vendor.n(n.attrs.class),
N: common_vendor.s(n.attrs.style),
O: n.attrs.autoplay,
P: n.attrs.controls,
Q: n.attrs.loop,
R: n.attrs.muted,
S: n.attrs["object-fit"],
T: n.attrs.poster,
U: n.src[$data.ctrl[i] || 0],
V: i,
W: common_vendor.o((...args) => $options.play && $options.play(...args), i),
X: common_vendor.o((...args) => $options.mediaError && $options.mediaError(...args), i)
} : n.name === "audio" ? {
Z: n.attrs.id,
aa: common_vendor.n(n.attrs.class),
ab: common_vendor.s(n.attrs.style),
ac: n.attrs.author,
ad: n.attrs.controls,
ae: n.attrs.loop,
af: n.attrs.name,
ag: n.attrs.poster,
ah: n.src[$data.ctrl[i] || 0],
ai: i,
aj: common_vendor.o((...args) => $options.play && $options.play(...args), i),
ak: common_vendor.o((...args) => $options.mediaError && $options.mediaError(...args), i)
} : n.name === "table" && n.c || n.name === "li" ? common_vendor.e({
am: n.name === "li"
}, n.name === "li" ? {
an: "5640ed73-1-" + i0,
ao: common_vendor.p({
childs: n.children,
opts: $props.opts
})
} : {
ap: common_vendor.f(n.children, (tbody, x, i1) => {
return common_vendor.e({
a: tbody.name === "td" || tbody.name === "th"
}, tbody.name === "td" || tbody.name === "th" ? {
b: "5640ed73-2-" + i0 + "-" + i1,
c: common_vendor.p({
childs: tbody.children,
opts: $props.opts
})
} : {
d: common_vendor.f(tbody.children, (tr, y, i2) => {
return common_vendor.e({
a: tr.name === "td" || tr.name === "th"
}, tr.name === "td" || tr.name === "th" ? {
b: "5640ed73-3-" + i0 + "-" + i1 + "-" + i2,
c: common_vendor.p({
childs: tr.children,
opts: $props.opts
}),
d: common_vendor.n("_" + tr.name + " " + tr.attrs.class),
e: common_vendor.s(tr.attrs.style)
} : {
f: common_vendor.f(tr.children, (td, z, i3) => {
return {
a: "5640ed73-4-" + i0 + "-" + i1 + "-" + i2 + "-" + i3,
b: common_vendor.p({
childs: td.children,
opts: $props.opts
}),
c: z,
d: common_vendor.n("_" + td.name + " " + td.attrs.class),
e: common_vendor.s(td.attrs.style)
};
}),
g: common_vendor.n("_" + tr.name + " " + tr.attrs.class),
h: common_vendor.s(tr.attrs.style)
}, {
i: y
});
})
}, {
e: x,
f: common_vendor.n("_" + tbody.name + " " + tbody.attrs.class),
g: common_vendor.s(tbody.attrs.style)
});
})
}, {
aq: n.attrs.id,
ar: common_vendor.n("_" + n.name + " " + n.attrs.class),
as: common_vendor.s(n.attrs.style)
}) : !n.c ? {
av: n.attrs.id,
aw: common_vendor.s(n.f + ";display:inline"),
ax: $props.opts[4],
ay: $props.opts[4],
az: [n]
} : n.c === 2 ? {
aB: common_vendor.f(n.children, (n2, j, i1) => {
return {
a: j,
b: common_vendor.s(n2.f),
c: "5640ed73-5-" + i0 + "-" + i1,
d: common_vendor.p({
name: n2.name,
attrs: n2.attrs,
childs: n2.children,
opts: $props.opts
})
};
}),
aC: n.attrs.id,
aD: common_vendor.n("_block _" + n.name + " " + n.attrs.class),
aE: common_vendor.s(n.f + ";" + n.attrs.style)
} : {
aF: common_vendor.s(n.f),
aG: "5640ed73-6-" + i0,
aH: common_vendor.p({
name: n.name,
attrs: n.attrs,
childs: n.children,
opts: $props.opts
})
}, {
i: n.name === "img",
y: n.text,
B: n.name === "br",
C: n.name === "a",
K: n.name === "video",
Y: n.name === "audio",
al: n.name === "table" && n.c || n.name === "li",
at: !n.c,
aA: n.c === 2,
aI: i
});
}),
b: $props.attrs.id,
c: common_vendor.n("_block _" + $props.name + " " + $props.attrs.class),
d: common_vendor.s($props.attrs.style)
};
}
if (typeof block0 === "function")
block0(_sfc_main);
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createComponent(Component);
const RDovR2l0V29ya1BsYWNlL2Nhc2VEYXRhQmFzZS9ub2RlX21vZHVsZXMvdXZpZXctcGx1cy9jb21wb25lbnRzL3UtcGFyc2Uvbm9kZS9ub2RlLnZ1ZQ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null
}, Symbol.toStringTag, { value: "Module" }));
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-parse/node/node.js.map
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"node": "./node"
}
}
@@ -0,0 +1,31 @@
<wxs module="handler">
// 行内标签列表
var inlineTags = {
abbr: true,
b: true,
big: true,
code: true,
del: true,
em: true,
i: true,
ins: true,
label: true,
q: true,
small: true,
span: true,
strong: true,
sub: true,
sup: true
}
/**
* @description 判断是否为行内标签
*/
module.exports = {
isInline: function (tagName, style) {
return inlineTags[tagName] || (style || '').indexOf('display:inline') !== -1
}
}
</wxs>
<view id="{{b}}" class="{{c}}" style="{{d}}"><block wx:for="{{a}}" wx:for-item="n" wx:key="aI"><image wx:if="{{n.a}}" class="_img" style="{{n.b}}" src="{{n.c}}" mode="widthFix"/><rich-text wx:if="{{n.d}}" style="{{n.e}}" nodes="{{n.f}}" data-i="{{n.g}}" catchtap="{{n.h}}"/><image wx:elif="{{n.i}}" id="{{n.j}}" class="{{n.k}}" style="{{n.l}}" src="{{n.m}}" mode="{{n.n}}" lazy-load="{{n.o}}" webp="{{n.p}}" show-menu-by-longpress="{{n.q}}" image-menu-prevent="{{n.r}}" data-i="{{n.s}}" bindload="{{n.t}}" binderror="{{n.v}}" catchtap="{{n.w}}" bindlongpress="{{n.x}}"/><text wx:elif="{{n.y}}" user-select="{{n.A}}" decode>{{n.z}}</text><text wx:elif="{{n.B}}">\n</text><view wx:elif="{{n.C}}" id="{{n.F}}" class="{{n.G}}" hover-class="_hover" style="{{n.H}}" data-i="{{n.I}}" catchtap="{{n.J}}"><node wx:if="{{n.E}}" style="display:inherit" u-i="{{n.D}}" bind:__l="__l" u-p="{{n.E}}"/></view><video wx:elif="{{n.K}}" id="{{n.L}}" class="{{n.M}}" style="{{n.N}}" autoplay="{{n.O}}" controls="{{n.P}}" loop="{{n.Q}}" muted="{{n.R}}" object-fit="{{n.S}}" poster="{{n.T}}" src="{{n.U}}" data-i="{{n.V}}" bindplay="{{n.W}}" binderror="{{n.X}}"/><audio wx:elif="{{n.Y}}" id="{{n.Z}}" class="{{n.aa}}" style="{{n.ab}}" author="{{n.ac}}" controls="{{n.ad}}" loop="{{n.ae}}" name="{{n.af}}" poster="{{n.ag}}" src="{{n.ah}}" data-i="{{n.ai}}" bindplay="{{n.aj}}" binderror="{{n.ak}}"/><view wx:elif="{{n.al}}" id="{{n.aq}}" class="{{n.ar}}" style="{{n.as}}"><node wx:if="{{n.am}}" u-i="{{n.an}}" bind:__l="__l" u-p="{{n.ao}}"/><block wx:else><view wx:for="{{n.ap}}" wx:for-item="tbody" wx:key="e" class="{{tbody.f}}" style="{{tbody.g}}"><node wx:if="{{tbody.a}}" u-i="{{tbody.b}}" bind:__l="__l" u-p="{{tbody.c}}"/><block wx:else><block wx:for="{{tbody.d}}" wx:for-item="tr" wx:key="i"><view wx:if="{{tr.a}}" class="{{tr.d}}" style="{{tr.e}}"><node wx:if="{{tr.c}}" u-i="{{tr.b}}" bind:__l="__l" u-p="{{tr.c}}"/></view><view wx:else class="{{tr.g}}" style="{{tr.h}}"><view wx:for="{{tr.f}}" wx:for-item="td" wx:key="c" class="{{td.d}}" style="{{td.e}}"><node wx:if="{{td.b}}" u-i="{{td.a}}" bind:__l="__l" u-p="{{td.b}}"/></view></view></block></block></view></block></view><rich-text wx:elif="{{n.at}}" id="{{n.av}}" style="{{n.aw}}" preview="{{false}}" selectable="{{n.ax}}" user-select="{{n.ay}}" nodes="{{n.az}}"/><view wx:elif="{{n.aA}}" id="{{n.aC}}" class="{{n.aD}}" style="{{n.aE}}"><node wx:for="{{n.aB}}" wx:for-item="n2" wx:key="a" style="{{n2.b}}" u-i="{{n2.c}}" bind:__l="__l" u-p="{{n2.d}}"/></view><node wx:else style="{{n.aF}}" u-i="{{n.aG}}" bind:__l="__l" u-p="{{n.aH||''}}"/></block></view>
@@ -0,0 +1,149 @@
/* a 标签默认效果 */
._a {
padding: 1.5px 0 1.5px 0;
color: #366092;
word-break: break-all;
}
/* a 标签点击态效果 */
._hover {
text-decoration: underline;
opacity: 0.7;
}
/* 图片默认效果 */
._img {
max-width: 100%;
-webkit-touch-callout: none;
}
/* 内部样式 */
._block {
display: block;
}
._b,
._strong {
font-weight: bold;
}
._code {
font-family: monospace;
}
._del {
text-decoration: line-through;
}
._em,
._i {
font-style: italic;
}
._h1 {
font-size: 2em;
}
._h2 {
font-size: 1.5em;
}
._h3 {
font-size: 1.17em;
}
._h5 {
font-size: 0.83em;
}
._h6 {
font-size: 0.67em;
}
._h1,
._h2,
._h3,
._h4,
._h5,
._h6 {
display: block;
font-weight: bold;
}
._image {
height: 1px;
}
._ins {
text-decoration: underline;
}
._li {
display: list-item;
}
._ol {
list-style-type: decimal;
}
._ol,
._ul {
display: block;
padding-left: 40px;
margin: 1em 0;
}
._q::before {
content: '"';
}
._q::after {
content: '"';
}
._sub {
font-size: smaller;
vertical-align: sub;
}
._sup {
font-size: smaller;
vertical-align: super;
}
._thead,
._tbody,
._tfoot {
display: table-row-group;
}
._tr {
display: table-row;
}
._td,
._th {
display: table-cell;
vertical-align: middle;
}
._th {
font-weight: bold;
text-align: center;
}
._ul {
list-style-type: disc;
}
._ul ._ul {
margin: 0;
list-style-type: circle;
}
._ul ._ul ._ul {
list-style-type: square;
}
._abbr,
._b,
._code,
._del,
._em,
._i,
._ins,
._label,
._q,
._span,
._strong,
._sub,
._sup {
display: inline;
}
@@ -0,0 +1,268 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const node = () => "./node/node.js";
const plugins = [];
const _sfc_main = {
name: "u-parse",
data() {
return {
nodes: []
};
},
props: {
containerStyle: {
type: String,
default: ""
},
content: {
type: String,
default: ""
},
copyLink: {
type: [Boolean, String],
default: true
},
domain: String,
errorImg: {
type: String,
default: ""
},
lazyLoad: {
type: [Boolean, String],
default: false
},
loadingImg: {
type: String,
default: ""
},
pauseVideo: {
type: [Boolean, String],
default: true
},
previewImg: {
type: [Boolean, String],
default: true
},
scrollTable: [Boolean, String],
selectable: [Boolean, String],
setTitle: {
type: [Boolean, String],
default: true
},
showImgMenu: {
type: [Boolean, String],
default: true
},
tagStyle: Object,
useAnchor: [Boolean, Number]
},
emits: ["load", "ready", "imgTap", "linkTap", "play", "error"],
components: {
node
},
watch: {
content(content) {
this.setContent(content);
}
},
created() {
this.plugins = [];
for (let i = plugins.length; i--; ) {
this.plugins.push(new plugins[i](this));
}
},
mounted() {
if (this.content && !this.nodes.length) {
this.setContent(this.content);
}
},
beforeUnmount() {
this._hook("onDetached");
},
methods: {
/**
* @description 将锚点跳转的范围限定在一个 scroll-view 内
* @param {Object} page scroll-view 所在页面的示例
* @param {String} selector scroll-view 的选择器
* @param {String} scrollTop scroll-view scroll-top 属性绑定的变量名
*/
in(page, selector, scrollTop) {
if (page && selector && scrollTop) {
this._in = {
page,
selector,
scrollTop
};
}
},
/**
* @description 锚点跳转
* @param {String} id 要跳转的锚点 id
* @param {Number} offset 跳转位置的偏移量
* @returns {Promise}
*/
navigateTo(id, offset) {
return new Promise((resolve, reject) => {
if (!this.useAnchor) {
reject(Error("Anchor is disabled"));
return;
}
offset = offset || parseInt(this.useAnchor) || 0;
let deep = " ";
deep = ">>>";
const selector = common_vendor.index.createSelectorQuery().in(this._in ? this._in.page : this).select((this._in ? this._in.selector : "._root") + (id ? `${deep}#${id}` : "")).boundingClientRect();
if (this._in) {
selector.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect();
} else {
selector.selectViewport().scrollOffset();
}
selector.exec((res) => {
if (!res[0]) {
reject(Error("Label not found"));
return;
}
const scrollTop = res[1].scrollTop + res[0].top - (res[2] ? res[2].top : 0) + offset;
if (this._in) {
this._in.page[this._in.scrollTop] = scrollTop;
} else {
common_vendor.index.pageScrollTo({
scrollTop,
duration: 300
});
}
resolve();
});
});
},
/**
* @description 获取文本内容
* @return {String}
*/
getText(nodes) {
let text = "";
(function traversal(nodes2) {
for (let i = 0; i < nodes2.length; i++) {
const node2 = nodes2[i];
if (node2.type === "text") {
text += node2.text.replace(/&amp;/g, "&");
} else if (node2.name === "br") {
text += "\n";
} else {
const isBlock = node2.name === "p" || node2.name === "div" || node2.name === "tr" || node2.name === "li" || node2.name[0] === "h" && node2.name[1] > "0" && node2.name[1] < "7";
if (isBlock && text && text[text.length - 1] !== "\n") {
text += "\n";
}
if (node2.children) {
traversal(node2.children);
}
if (isBlock && text[text.length - 1] !== "\n") {
text += "\n";
} else if (node2.name === "td" || node2.name === "th") {
text += " ";
}
}
}
})(nodes || this.nodes);
return text;
},
/**
* @description 获取内容大小和位置
* @return {Promise}
*/
getRect() {
return new Promise((resolve, reject) => {
common_vendor.index.createSelectorQuery().in(this).select("#_root").boundingClientRect().exec((res) => res[0] ? resolve(res[0]) : reject(Error("Root label not found")));
});
},
/**
* @description 暂停播放媒体
*/
pauseMedia() {
for (let i = (this._videos || []).length; i--; ) {
this._videos[i].pause();
}
},
/**
* @description 设置媒体播放速率
* @param {Number} rate 播放速率
*/
setPlaybackRate(rate) {
this.playbackRate = rate;
for (let i = (this._videos || []).length; i--; ) {
this._videos[i].playbackRate(rate);
}
},
/**
* @description 设置内容
* @param {String} content html 内容
* @param {Boolean} append 是否在尾部追加
*/
setContent(content, append) {
if (!append || !this.imgList) {
this.imgList = [];
}
const nodes = new common_vendor.Parser(this).parse(content);
this.$set(this, "nodes", append ? (this.nodes || []).concat(nodes) : nodes);
this._videos = [];
this.$nextTick(() => {
this._hook("onLoad");
this.$emit("load");
});
if (this.lazyLoad || this.imgList._unloadimgs < this.imgList.length / 2) {
let height = 0;
const callback = (rect) => {
if (!rect || !rect.height)
rect = {};
if (rect.height === height) {
this.$emit("ready", rect);
} else {
height = rect.height;
setTimeout(() => {
this.getRect().then(callback).catch(callback);
}, 350);
}
};
this.getRect().then(callback).catch(callback);
} else {
if (!this.imgList._unloadimgs) {
this.getRect().then((rect) => {
this.$emit("ready", rect);
}).catch(() => {
this.$emit("ready", {});
});
}
}
},
/**
* @description 调用插件钩子函数
*/
_hook(name) {
for (let i = plugins.length; i--; ) {
if (this.plugins[i][name]) {
this.plugins[i][name]();
}
}
}
}
};
if (!Array) {
const _component_node = common_vendor.resolveComponent("node");
_component_node();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: !$data.nodes[0]
}, !$data.nodes[0] ? {} : {
b: common_vendor.p({
childs: $data.nodes,
opts: [$props.lazyLoad, $props.loadingImg, $props.errorImg, $props.showImgMenu, $props.selectable],
name: "span"
})
}, {
c: common_vendor.n(($props.selectable ? "_select " : "") + "_root"),
d: common_vendor.s($props.containerStyle)
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-parse/u-parse.js.map
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"node": "./node/node"
}
}
@@ -0,0 +1 @@
<view id="_root" class="{{c}}" style="{{d}}"><slot wx:if="{{a}}"/><node wx:else u-i="f66ff842-0" bind:__l="__l" u-p="{{b||''}}"/></view>
@@ -0,0 +1,17 @@
/* 根节点样式 */
._root {
padding: 1px 0;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
}
/* 长按复制 */
._select {
-webkit-user-select: text;
user-select: text;
}
@@ -0,0 +1,289 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-picker",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$17],
data() {
return {
// 上一次选择的列索引
lastIndex: [],
// 索引值 ,对应picker-view的value
innerIndex: [],
// 各列的值
innerColumns: [],
// 上一次的变化列索引
columnIndex: 0,
showByClickInput: false,
currentActiveValue: []
//当前用户选中,但是还没确认的值,用户没做change操作时候,点击确认可以默认选中第一个
};
},
watch: {
// 监听默认索引的变化,重新设置对应的值
defaultIndex: {
immediate: true,
deep: true,
handler(n, o) {
if (!o || n.join("/") != o.join("/")) {
this.setIndexs(n, true);
}
}
},
// 监听columns参数的变化
columns: {
immediate: true,
deep: true,
handler(n) {
this.setColumns(n);
}
}
},
emits: ["close", "cancel", "confirm", "change", "update:modelValue", "update:show"],
computed: {
//已选&&已确认的值显示在input上面的文案
inputLabel() {
let firstItem = this.innerColumns[0] && this.innerColumns[0][0];
if (firstItem && Object.prototype.toString.call(firstItem) === "[object Object]") {
let res = this.innerColumns[0].filter((item) => this.modelValue.includes(item["id"]));
res = res.map((item) => item[this.keyName]);
return res.join("/");
} else {
return this.modelValue.join("/");
}
},
//已选,待确认的值
inputValue() {
let items = this.innerColumns.map((item, index) => item[this.innerIndex[index]]);
let res = [];
if (items[0] && Object.prototype.toString.call(items[0]) === "[object Object]") {
items.forEach((element) => {
res.push(element && element["id"]);
});
} else {
items.forEach((element, index) => {
res.push(element);
});
}
return res;
}
},
methods: {
addUnit: common_vendor.addUnit,
testArray: common_vendor.test.array,
onShowByClickInput() {
if (!this.disabled) {
this.showByClickInput = !this.showByClickInput;
}
},
// 获取item需要显示的文字,判别为对象还是文本
getItemText(item) {
if (common_vendor.test.object(item)) {
return item[this.keyName];
} else {
return item;
}
},
// 关闭选择器
closeHandler() {
if (this.closeOnClickOverlay) {
if (this.hasInput) {
this.showByClickInput = false;
}
this.$emit("update:show", false);
this.$emit("close");
}
},
// 点击工具栏的取消按钮
cancel() {
if (this.hasInput) {
this.showByClickInput = false;
}
this.$emit("update:show", false);
this.$emit("cancel");
},
// 点击工具栏的确定按钮
confirm() {
if (!this.currentActiveValue.length) {
let arr = [0];
if (Array.isArray(this.defaultIndex) && this.defaultIndex.length == this.innerColumns.length) {
arr = [...this.defaultIndex];
} else {
arr = Array(this.innerColumns.length).fill(0);
}
this.setLastIndex(arr);
this.setIndexs(arr);
}
this.$emit("update:modelValue", this.inputValue);
if (this.hasInput) {
this.showByClickInput = false;
}
this.$emit("update:show", false);
this.$emit("confirm", {
indexs: this.innerIndex,
value: this.innerColumns.map((item, index) => item[this.innerIndex[index]]),
values: this.innerColumns
});
},
// 选择器某一列的数据发生变化时触发
changeHandler(e) {
const {
value
} = e.detail;
let index = 0, columnIndex = 0;
this.currentActiveValue = value;
for (let i = 0; i < value.length; i++) {
let item = value[i];
if (item !== (this.lastIndex[i] || 0)) {
columnIndex = i;
index = item;
break;
}
}
this.columnIndex = columnIndex;
const values = this.innerColumns;
this.setLastIndex(value);
this.setIndexs(value);
if (!this.hasInput) {
this.$emit("update:modelValue", this.inputValue);
}
this.$emit("change", {
value: this.innerColumns.map((item, index2) => item[value[index2]]),
index,
indexs: value,
// values为当前变化列的数组内容
values,
columnIndex
});
},
// 设置index索引,此方法可被外部调用设置
setIndexs(index, setLastIndex) {
this.innerIndex = common_vendor.deepClone(index);
if (setLastIndex) {
this.setLastIndex(index);
}
},
// 记录上一次的各列索引位置
setLastIndex(index) {
this.lastIndex = common_vendor.deepClone(index);
},
// 设置对应列选项的所有值
setColumnValues(columnIndex, values) {
this.innerColumns.splice(columnIndex, 1, values);
this.setLastIndex(this.innerIndex.slice(0, columnIndex));
let tmpIndex = common_vendor.deepClone(this.innerIndex);
for (let i = 0; i < this.innerColumns.length; i++) {
if (i > this.columnIndex) {
tmpIndex[i] = 0;
}
}
this.setIndexs(tmpIndex);
},
// 获取对应列的所有选项
getColumnValues(columnIndex) {
(async () => {
await common_vendor.sleep();
})();
return this.innerColumns[columnIndex];
},
// 设置整体各列的columns的值
setColumns(columns) {
this.innerColumns = common_vendor.deepClone(columns);
if (this.innerIndex.length === 0) {
this.innerIndex = new Array(columns.length).fill(0);
}
},
// 获取各列选中值对应的索引
getIndexs() {
return this.innerIndex;
},
// 获取各列选中的值
getValues() {
(async () => {
await common_vendor.sleep();
})();
return this.innerColumns.map((item, index) => item[this.innerIndex[index]]);
}
}
};
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_u_toolbar2 = common_vendor.resolveComponent("u-toolbar");
const _easycom_u_loading_icon2 = common_vendor.resolveComponent("u-loading-icon");
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
(_easycom_up_input2 + _easycom_u_toolbar2 + _easycom_u_loading_icon2 + _easycom_u_popup2)();
}
const _easycom_up_input = () => "../u-input/u-input.js";
const _easycom_u_toolbar = () => "../u-toolbar/u-toolbar.js";
const _easycom_u_loading_icon = () => "../u-loading-icon/u-loading-icon.js";
const _easycom_u_popup = () => "../u-popup/u-popup.js";
if (!Math) {
(_easycom_up_input + _easycom_u_toolbar + _easycom_u_loading_icon + _easycom_u_popup)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: _ctx.hasInput
}, _ctx.hasInput ? {
b: common_vendor.o(($event) => $options.inputLabel = $event),
c: common_vendor.p({
disabled: _ctx.disabled,
disabledColor: _ctx.disabledColor,
placeholder: _ctx.placeholder,
readonly: true,
border: "surround",
modelValue: $options.inputLabel
}),
d: common_vendor.o((...args) => $options.onShowByClickInput && $options.onShowByClickInput(...args))
} : {}, {
e: _ctx.showToolbar
}, _ctx.showToolbar ? {
f: common_vendor.o($options.cancel),
g: common_vendor.o($options.confirm),
h: common_vendor.p({
cancelColor: _ctx.cancelColor,
confirmColor: _ctx.confirmColor,
cancelText: _ctx.cancelText,
confirmText: _ctx.confirmText,
title: _ctx.title,
rightSlot: _ctx.toolbarRightSlot ? true : false
})
} : {}, {
i: common_vendor.f($data.innerColumns, (item, index, i0) => {
return common_vendor.e({
a: $options.testArray(item)
}, $options.testArray(item) ? {
b: common_vendor.f(item, (item1, index1, i1) => {
return {
a: common_vendor.t($options.getItemText(item1)),
b: common_vendor.n(index1 === $data.innerIndex[index] && "u-picker__view__column__item--selected"),
c: index1,
d: index1 === $data.innerIndex[index] ? "bold" : "normal"
};
}),
c: $options.addUnit(_ctx.itemHeight),
d: $options.addUnit(_ctx.itemHeight)
} : {}, {
e: index
});
}),
j: `height: ${$options.addUnit(_ctx.itemHeight)}`,
k: $data.innerIndex,
l: _ctx.immediateChange,
m: `${$options.addUnit(_ctx.visibleItemCount * _ctx.itemHeight)}`,
n: common_vendor.o((...args) => $options.changeHandler && $options.changeHandler(...args)),
o: _ctx.loading
}, _ctx.loading ? {
p: common_vendor.p({
mode: "circle"
})
} : {}, {
q: common_vendor.o($options.closeHandler),
r: common_vendor.p({
show: _ctx.show || _ctx.hasInput && $data.showByClickInput,
mode: _ctx.popupMode,
zIndex: _ctx.zIndex
})
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1500ce68"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-picker/u-picker.js.map
@@ -0,0 +1,9 @@
{
"component": true,
"usingComponents": {
"up-input": "../u-input/u-input",
"u-toolbar": "../u-toolbar/u-toolbar",
"u-loading-icon": "../u-loading-icon/u-loading-icon",
"u-popup": "../u-popup/u-popup"
}
}
@@ -0,0 +1 @@
<view class="u-picker-warrper data-v-1500ce68"><view wx:if="{{a}}" class="u-picker-input cursor-pointer data-v-1500ce68" bindtap="{{d}}"><block wx:if="{{$slots.d}}"><slot></slot></block><block wx:else><up-input wx:if="{{c}}" class="data-v-1500ce68" u-i="1500ce68-0" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"></up-input><view class="input-cover data-v-1500ce68"></view></block></view><u-popup wx:if="{{r}}" class="data-v-1500ce68" u-s="{{['d']}}" bindclose="{{q}}" u-i="1500ce68-1" bind:__l="__l" u-p="{{r}}"><view class="u-picker data-v-1500ce68"><u-toolbar wx:if="{{e}}" class="data-v-1500ce68" u-s="{{['right']}}" bindcancel="{{f}}" bindconfirm="{{g}}" u-i="1500ce68-2,1500ce68-1" bind:__l="__l" u-p="{{h}}"><view slot="right"><slot name="toolbar-right"></slot></view></u-toolbar><slot name="toolbar-bottom"></slot><picker-view class="u-picker__view data-v-1500ce68" indicatorStyle="{{j}}" value="{{k}}" immediateChange="{{l}}" style="{{'height:' + m}}" bindchange="{{n}}"><picker-view-column wx:for="{{i}}" wx:for-item="item" wx:key="e" class="u-picker__view__column data-v-1500ce68"><block wx:if="{{item.a}}"><view wx:for="{{item.b}}" wx:for-item="item1" wx:key="c" class="{{['u-picker__view__column__item', 'u-line-1', 'data-v-1500ce68', item1.b]}}" style="{{'height:' + item.c + ';' + ('line-height:' + item.d) + ';' + ('font-weight:' + item1.d) + ';' + ('display:' + 'block')}}">{{item1.a}}</view></block></picker-view-column></picker-view><view wx:if="{{o}}" class="u-picker--loading data-v-1500ce68"><u-loading-icon wx:if="{{p}}" class="data-v-1500ce68" u-i="1500ce68-3,1500ce68-1" bind:__l="__l" u-p="{{p}}"></u-loading-icon></view></view></u-popup></view>
@@ -0,0 +1,97 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-1500ce68,
.u-empty__wrap.data-v-1500ce68,
.u-tabs.data-v-1500ce68,
.u-tabs__wrapper.data-v-1500ce68,
.u-tabs__wrapper__scroll-view-wrapper.data-v-1500ce68,
.u-tabs__wrapper__scroll-view.data-v-1500ce68,
.u-tabs__wrapper__nav.data-v-1500ce68,
.u-tabs__wrapper__nav__line.data-v-1500ce68,
.up-empty.data-v-1500ce68,
.up-empty__wrap.data-v-1500ce68,
.up-tabs.data-v-1500ce68,
.up-tabs__wrapper.data-v-1500ce68,
.up-tabs__wrapper__scroll-view-wrapper.data-v-1500ce68,
.up-tabs__wrapper__scroll-view.data-v-1500ce68,
.up-tabs__wrapper__nav.data-v-1500ce68,
.up-tabs__wrapper__nav__line.data-v-1500ce68 {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-picker.data-v-1500ce68 {
position: relative;
}
.u-picker-input.data-v-1500ce68 {
position: relative;
}
.u-picker-input .input-cover.data-v-1500ce68 {
opacity: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
}
.u-picker__view__column.data-v-1500ce68 {
display: flex;
flex-direction: row;
flex: 1;
justify-content: center;
}
.u-picker__view__column__item.data-v-1500ce68 {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
font-size: 16px;
text-align: center;
display: block;
color: #303133;
}
.u-picker__view__column__item--disabled.data-v-1500ce68 {
cursor: not-allowed;
opacity: 0.35;
}
.u-picker--loading.data-v-1500ce68 {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
background-color: rgba(255, 255, 255, 0.87);
z-index: 1000;
}

Some files were not shown because too many files have changed in this diff Show More