1111
This commit is contained in:
-101
@@ -1,101 +0,0 @@
|
||||
"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$22],
|
||||
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
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "../u-icon/u-icon",
|
||||
"u-line": "../u-line/u-line"
|
||||
}
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
<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>
|
||||
-143
@@ -1,143 +0,0 @@
|
||||
/**
|
||||
* 这里是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;
|
||||
}
|
||||
Reference in New Issue
Block a user