init
This commit is contained in:
57
unpackage/dist/dev/mp-weixin/uni_modules/nutui-uni/components/cellgroup/cellgroup.js
vendored
Normal file
57
unpackage/dist/dev/mp-weixin/uni_modules/nutui-uni/components/cellgroup/cellgroup.js
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const uni_modules_nutuiUni_components__constants_prefix = require("../_constants/prefix.js");
|
||||
require("../_utils/env.js");
|
||||
const uni_modules_nutuiUni_components__utils_style = require("../_utils/style.js");
|
||||
const uni_modules_nutuiUni_components__utils_props = require("../_utils/props.js");
|
||||
const cellgroupProps = {
|
||||
...uni_modules_nutuiUni_components__utils_props.commonProps,
|
||||
/**
|
||||
* @description 标题名称
|
||||
*/
|
||||
title: String,
|
||||
/**
|
||||
* @description 右侧描述
|
||||
*/
|
||||
desc: String
|
||||
};
|
||||
const componentName = `${uni_modules_nutuiUni_components__constants_prefix.PREFIX}-cell-group`;
|
||||
const __default__ = common_vendor.defineComponent({
|
||||
name: componentName,
|
||||
options: {
|
||||
virtualHost: true,
|
||||
addGlobalClass: true,
|
||||
styleIsolation: "shared"
|
||||
}
|
||||
});
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
...__default__,
|
||||
props: cellgroupProps,
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
const slots = common_vendor.useSlots();
|
||||
const classes = common_vendor.computed(() => {
|
||||
return uni_modules_nutuiUni_components__utils_style.getMainClass(props, componentName);
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.unref(slots).title
|
||||
}, common_vendor.unref(slots).title ? {} : common_vendor.e({
|
||||
b: props.title
|
||||
}, props.title ? {
|
||||
c: common_vendor.t(props.title)
|
||||
} : {}), {
|
||||
d: common_vendor.unref(slots).desc
|
||||
}, common_vendor.unref(slots).desc ? {} : common_vendor.e({
|
||||
e: props.desc
|
||||
}, props.desc ? {
|
||||
f: common_vendor.t(props.desc)
|
||||
} : {}), {
|
||||
g: common_vendor.n(classes.value),
|
||||
h: common_vendor.s(props.customStyle)
|
||||
});
|
||||
};
|
||||
}
|
||||
});
|
||||
wx.createComponent(_sfc_main);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/nutui-uni/components/cellgroup/cellgroup.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/uni_modules/nutui-uni/components/cellgroup/cellgroup.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/uni_modules/nutui-uni/components/cellgroup/cellgroup.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/uni_modules/nutui-uni/components/cellgroup/cellgroup.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/uni_modules/nutui-uni/components/cellgroup/cellgroup.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{g}}" style="{{h}}"><slot wx:if="{{a}}" name="title"/><block wx:else><view wx:if="{{b}}" class="nut-cell-group__title">{{c}}</view></block><slot wx:if="{{d}}" name="desc"/><block wx:else><view wx:if="{{e}}" class="nut-cell-group__desc">{{f}}</view></block><view class="nut-cell-group__wrap"><slot/></view></view>
|
||||
92
unpackage/dist/dev/mp-weixin/uni_modules/nutui-uni/components/cellgroup/cellgroup.wxss
vendored
Normal file
92
unpackage/dist/dev/mp-weixin/uni_modules/nutui-uni/components/cellgroup/cellgroup.wxss
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.nut-theme-dark .nut-cell-group__wrap {
|
||||
color: var(--nut-dark-color, var(--nut-white, #fff));
|
||||
background: var(--nut-dark-background3, #141414);
|
||||
box-shadow: none;
|
||||
}
|
||||
.nut-cell-group {
|
||||
display: block;
|
||||
}
|
||||
.nut-cell-group__title {
|
||||
display: inherit;
|
||||
padding: var(--nut-cell-group-title-padding, 0 10px);
|
||||
margin-top: 30px;
|
||||
margin-bottom: 10px;
|
||||
font-size: var(--nut-cell-group-title-font-size, var(--nut-font-size-2, 14px));
|
||||
line-height: var(--nut-cell-group-title-line-height, 20px);
|
||||
color: var(--nut-cell-group-title-color, #909ca4);
|
||||
}
|
||||
.nut-cell-group__desc {
|
||||
display: inherit;
|
||||
padding: var(--nut-cell-group-desc-padding, 0 10px);
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
font-size: var(--nut-cell-group-desc-font-size, var(--nut-font-size-1, 12px));
|
||||
line-height: var(--nut-cell-group-desc-line-height, 16px);
|
||||
color: var(--nut-cell-group-desc-color, #909ca4);
|
||||
}
|
||||
.nut-cell-group__wrap {
|
||||
display: inherit;
|
||||
margin: 10px 0;
|
||||
overflow: hidden;
|
||||
background-color: var(--nut-cell-group-background-color, var(--nut-white, #fff));
|
||||
border-radius: var(--nut-cell-border-radius, 6px);
|
||||
box-shadow: var(--nut-cell-box-shadow, 0 1px 7px 0 #edeef1);
|
||||
}
|
||||
.nut-cell-group__wrap .nut-cell {
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
.nut-cell-group .nut-cell::after {
|
||||
border-bottom: var(--nut-cell-after-border-bottom, 1px solid #f5f6f7);
|
||||
}
|
||||
Reference in New Issue
Block a user