消息
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../../common/vendor.js");
|
||||
const groupIntroConfig = [
|
||||
{
|
||||
icon: "https://web.sdk.qcloud.com/im/assets/images/Public.svg",
|
||||
label: "陌生人社交群(Public)",
|
||||
type: common_vendor.qt.TYPES.GRP_PUBLIC,
|
||||
detail: "类似 QQ 群,创建后群主可以指定群管理员,用户搜索群 ID 发起加群申请后,需要群主或管理员审批通过才能入群。详见",
|
||||
src: "产品文档"
|
||||
},
|
||||
{
|
||||
icon: "https://web.sdk.qcloud.com/im/assets/images/Meeting.svg",
|
||||
label: "临时会议群(Meeting)",
|
||||
type: common_vendor.qt.TYPES.GRP_MEETING,
|
||||
detail: "创建后可以随意进出,且支持查看入群前消息;适合用于音视频会议场景、在线教育场景等与实时音视频产品结合的场景。详见",
|
||||
src: "产品文档"
|
||||
},
|
||||
{
|
||||
icon: "https://web.sdk.qcloud.com/im/assets/images/Work.svg",
|
||||
label: "好友工作群(Work)",
|
||||
type: common_vendor.qt.TYPES.GRP_WORK,
|
||||
detail: "类似普通微信群,创建后仅支持已在群内的好友邀请加群,且无需被邀请方同意或群主审批。详见",
|
||||
src: "产品文档"
|
||||
},
|
||||
{
|
||||
icon: "https://web.sdk.qcloud.com/im/assets/images/AVChatroom.svg",
|
||||
label: "直播群(AVChatroom)",
|
||||
type: common_vendor.qt.TYPES.GRP_AVCHATROOM,
|
||||
detail: "创建后可以随意进出,没有群成员数量上限,但不支持历史消息存储;适合与直播产品结合,用于弹幕聊天场景。详见",
|
||||
src: "产品文档"
|
||||
},
|
||||
{
|
||||
icon: "https://web.sdk.qcloud.com/im/assets/images/Community.png",
|
||||
label: "社群(Community)",
|
||||
type: common_vendor.qt.TYPES.GRP_COMMUNITY,
|
||||
detail: "创建后可以随意进出,最多支持100000人,支持历史消息存储,用户搜索群 ID 发起加群申请后,无需管理员审批即可进群。详见",
|
||||
src: "产品文档"
|
||||
}
|
||||
];
|
||||
const findGroupIntroConfig = (type) => {
|
||||
return groupIntroConfig.filter((item) => {
|
||||
return item.type === type;
|
||||
})[0];
|
||||
};
|
||||
exports.findGroupIntroConfig = findGroupIntroConfig;
|
||||
exports.groupIntroConfig = groupIntroConfig;
|
||||
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUIGroup/create-group/group-introduction/config.js.map
|
||||
70
unpackage/dist/dev/mp-weixin/TUIKit/components/TUIGroup/create-group/group-introduction/index.js
vendored
Normal file
70
unpackage/dist/dev/mp-weixin/TUIKit/components/TUIGroup/create-group/group-introduction/index.js
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../../common/vendor.js");
|
||||
require("../../../../adapter-vue.js");
|
||||
const TUIKit_utils_documentLink = require("../../../../utils/documentLink.js");
|
||||
const common_assets = require("../../../../../common/assets.js");
|
||||
const TUIKit_components_TUIGroup_createGroup_groupIntroduction_config = require("./config.js");
|
||||
const TUIKit_utils_env = require("../../../../utils/env.js");
|
||||
if (!Math) {
|
||||
Icon();
|
||||
}
|
||||
const Icon = () => "../../../common/Icon.js";
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "index",
|
||||
props: {
|
||||
groupType: {
|
||||
type: String,
|
||||
default: ""
|
||||
}
|
||||
},
|
||||
emits: ["selectType"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const props = __props;
|
||||
const type = TUIKit_components_TUIGroup_createGroup_groupIntroduction_config.groupIntroConfig;
|
||||
const selectType = common_vendor.ref();
|
||||
const emit = __emit;
|
||||
common_vendor.watchEffect(() => {
|
||||
selectType.value = props.groupType;
|
||||
});
|
||||
const selected = (item) => {
|
||||
selectType.value = item.type;
|
||||
emit("selectType", item.type);
|
||||
};
|
||||
const openUrl = (link) => {
|
||||
var _a;
|
||||
if (!TUIKit_utils_env.isUniFrameWork) {
|
||||
(_a = common_vendor.i) == null ? void 0 : _a.open(link);
|
||||
}
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.f(common_vendor.unref(type), (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: "ec1da4f5-0-" + i0,
|
||||
b: common_vendor.p({
|
||||
file: item.icon
|
||||
}),
|
||||
c: common_vendor.t(common_vendor.unref(common_vendor.Wt).t(`TUIGroup.${item.label}`)),
|
||||
d: common_vendor.unref(selectType) === item.type
|
||||
}, common_vendor.unref(selectType) === item.type ? {
|
||||
e: "ec1da4f5-1-" + i0,
|
||||
f: common_vendor.p({
|
||||
file: common_vendor.unref(common_assets.selectedIcon)
|
||||
})
|
||||
} : {}, {
|
||||
g: common_vendor.t(common_vendor.unref(common_vendor.Wt).t(`TUIGroup.${item.detail}`)),
|
||||
h: common_vendor.t(common_vendor.unref(common_vendor.Wt).t(`TUIGroup.${item.src}`)),
|
||||
i: common_vendor.o$1(($event) => openUrl(common_vendor.unref(TUIKit_utils_documentLink.Link).product.url), index),
|
||||
j: index,
|
||||
k: common_vendor.n(common_vendor.unref(selectType) === item.type && "selected"),
|
||||
l: common_vendor.o$1(($event) => selected(item), index)
|
||||
});
|
||||
}),
|
||||
b: common_vendor.unref(TUIKit_utils_documentLink.Link).product.url
|
||||
};
|
||||
};
|
||||
}
|
||||
});
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ec1da4f5"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUIGroup/create-group/group-introduction/index.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../../common/Icon"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="group-introduction-list select data-v-ec1da4f5"><view wx:for="{{a}}" wx:for-item="item" wx:key="j" class="{{['select-item', 'data-v-ec1da4f5', item.k]}}" bindtap="{{item.l}}"><view class="select-item-type data-v-ec1da4f5"><view class="select-item-header data-v-ec1da4f5"><view class="left data-v-ec1da4f5"><icon wx:if="{{item.b}}" class="icon data-v-ec1da4f5" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/><label class="select-item-label data-v-ec1da4f5">{{item.c}}</label></view><icon wx:if="{{item.d}}" class="data-v-ec1da4f5" u-i="{{item.e}}" bind:__l="__l" u-p="{{item.f}}"/></view><label class="select-item-detail data-v-ec1da4f5">{{item.g}}</label><navigator class="link data-v-ec1da4f5" href="{{b}}" target="_blank" bindtap="{{item.i}}">{{item.h}}</navigator></view></view></view>
|
||||
324
unpackage/dist/dev/mp-weixin/TUIKit/components/TUIGroup/create-group/group-introduction/index.wxss
vendored
Normal file
324
unpackage/dist/dev/mp-weixin/TUIKit/components/TUIGroup/create-group/group-introduction/index.wxss
vendored
Normal file
@@ -0,0 +1,324 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
body.data-v-ec1da4f5, div.data-v-ec1da4f5, ul.data-v-ec1da4f5, ol.data-v-ec1da4f5, dt.data-v-ec1da4f5, dd.data-v-ec1da4f5, li.data-v-ec1da4f5, dl.data-v-ec1da4f5, h1.data-v-ec1da4f5, h2.data-v-ec1da4f5, h3.data-v-ec1da4f5, h4.data-v-ec1da4f5, p.data-v-ec1da4f5 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-style: normal;
|
||||
/* font:12px/22px"\5B8B\4F53",Arial,Helvetica,sans-serif; */
|
||||
}
|
||||
ol.data-v-ec1da4f5, ul.data-v-ec1da4f5, li.data-v-ec1da4f5 {
|
||||
list-style: none;
|
||||
}
|
||||
img.data-v-ec1da4f5 {
|
||||
border: 0;
|
||||
vertical-align: middle;
|
||||
pointer-events: none;
|
||||
}
|
||||
body.data-v-ec1da4f5 {
|
||||
color: #000;
|
||||
background: #FFF;
|
||||
}
|
||||
.clear.data-v-ec1da4f5 {
|
||||
clear: both;
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
margin-top: -1px;
|
||||
}
|
||||
a.data-v-ec1da4f5 {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
a.data-v-ec1da4f5:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
input.data-v-ec1da4f5, textarea.data-v-ec1da4f5 {
|
||||
-webkit-user-select: auto;
|
||||
user-select: auto;
|
||||
}
|
||||
input.data-v-ec1da4f5:focus, input.data-v-ec1da4f5:active, textarea.data-v-ec1da4f5:focus, textarea.data-v-ec1da4f5:active {
|
||||
outline: none;
|
||||
}
|
||||
.chat-aside.data-v-ec1da4f5 {
|
||||
position: absolute;
|
||||
top: 50px;
|
||||
right: 0;
|
||||
box-sizing: border-box;
|
||||
width: 360px !important;
|
||||
border-radius: 8px 0 0 8px;
|
||||
z-index: 9999;
|
||||
max-height: calc(100% - 50px);
|
||||
}
|
||||
.group.data-v-ec1da4f5 {
|
||||
background: #FFF;
|
||||
}
|
||||
.group-list-item.data-v-ec1da4f5 {
|
||||
background: #FFF;
|
||||
}
|
||||
.group-list-item label.data-v-ec1da4f5 {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
}
|
||||
.group-list input.data-v-ec1da4f5 {
|
||||
border: 1px solid rgba(131, 137, 153, 0.4);
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
}
|
||||
.group-list-edit.data-v-ec1da4f5 {
|
||||
background: #FFF;
|
||||
}
|
||||
.group-profile-footer.data-v-ec1da4f5 {
|
||||
background: #FFF;
|
||||
}
|
||||
.group-h5.data-v-ec1da4f5 {
|
||||
background: #F7F8FA;
|
||||
}
|
||||
.group-h5-list-item-introduction.data-v-ec1da4f5 {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
color: #888;
|
||||
}
|
||||
.group-h5-list-item-introduction a.data-v-ec1da4f5 {
|
||||
color: #006EFF;
|
||||
}
|
||||
.select.data-v-ec1da4f5 {
|
||||
flex: 1;
|
||||
}
|
||||
.select a.data-v-ec1da4f5 {
|
||||
color: #006EFF;
|
||||
}
|
||||
.select-item.data-v-ec1da4f5 {
|
||||
border: 1px solid rgba(131, 137, 153, 0.4);
|
||||
}
|
||||
.select-item-header .left.data-v-ec1da4f5 {
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
.select-item-detail.data-v-ec1da4f5 {
|
||||
color: #4F4F4F;
|
||||
}
|
||||
.select .selected.data-v-ec1da4f5 {
|
||||
border: 1px solid #006EFF;
|
||||
}
|
||||
header.data-v-ec1da4f5 {
|
||||
background: #FFF;
|
||||
}
|
||||
header h1.data-v-ec1da4f5 {
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
color: #000;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.btn-default.data-v-ec1da4f5 {
|
||||
background: #FFF;
|
||||
border: 1px solid #DDD;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
color: #828282;
|
||||
}
|
||||
.btn-submit.data-v-ec1da4f5 {
|
||||
background: #3370FF;
|
||||
border: 0 solid #2F80ED;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
color: #FFF;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.btn-submit.data-v-ec1da4f5:disabled {
|
||||
background: #e8e8e9;
|
||||
border: 1px solid #DDD;
|
||||
color: #FFF;
|
||||
}
|
||||
.group.data-v-ec1da4f5 {
|
||||
padding: 30px;
|
||||
box-sizing: border-box;
|
||||
width: 750px;
|
||||
max-height: calc(100vh - 100px);
|
||||
overflow-y: auto;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.group .group-box .group-box-header.data-v-ec1da4f5 {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.group .group-box .group-box-header .group-box-header-title.data-v-ec1da4f5 {
|
||||
font-size: 18px;
|
||||
line-height: 30px;
|
||||
}
|
||||
.group-list-item.data-v-ec1da4f5 {
|
||||
display: flex;
|
||||
padding: 10px 0;
|
||||
}
|
||||
.group-list-item-label.data-v-ec1da4f5 {
|
||||
width: 84px;
|
||||
}
|
||||
.group-list input.data-v-ec1da4f5 {
|
||||
flex: 1;
|
||||
box-sizing: border-box;
|
||||
padding: 6px 10px;
|
||||
border-radius: 2px;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
.select.data-v-ec1da4f5 {
|
||||
flex: 1;
|
||||
}
|
||||
.select-item.data-v-ec1da4f5 {
|
||||
padding: 12px 20px !important;
|
||||
border-radius: 2px;
|
||||
margin-bottom: 20px !important;
|
||||
}
|
||||
.select-item-header.data-v-ec1da4f5 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.select-item-header .left.data-v-ec1da4f5 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
}
|
||||
.select-item-header .left .icon.data-v-ec1da4f5 {
|
||||
margin-right: 12px;
|
||||
}
|
||||
.select-item-header .icon-selected.data-v-ec1da4f5 {
|
||||
position: relative;
|
||||
left: 12px;
|
||||
top: -4px;
|
||||
}
|
||||
.select-item-type.data-v-ec1da4f5 {
|
||||
text-align: left;
|
||||
}
|
||||
.select-item-detail.data-v-ec1da4f5 {
|
||||
padding-top: 6px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.select-item .link.data-v-ec1da4f5 {
|
||||
display: inline-block;
|
||||
}
|
||||
.group-profile-footer.data-v-ec1da4f5 {
|
||||
padding-top: 10px;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.btn-default.data-v-ec1da4f5 {
|
||||
width: 82px;
|
||||
height: 32px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.btn-submit.data-v-ec1da4f5 {
|
||||
width: 82px;
|
||||
height: 32px;
|
||||
border-radius: 4px;
|
||||
margin-left: 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.group-h5.data-v-ec1da4f5 {
|
||||
max-height: none;
|
||||
height: 100%;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.group-h5 .group-box.data-v-ec1da4f5 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
.group-h5 .group-box .group-box-header.data-v-ec1da4f5 {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
padding: 16px 18px;
|
||||
}
|
||||
.group-h5 .group-box .group-box-header .icon-close.data-v-ec1da4f5 {
|
||||
position: absolute;
|
||||
left: 18px;
|
||||
}
|
||||
.group-h5 .group-box .group-list.data-v-ec1da4f5 {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
justify-content: flex-end;
|
||||
margin-top: 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.group-h5 .group-box .group-list .group-introduction-list.data-v-ec1da4f5 {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: auto;
|
||||
padding: 12px 18px;
|
||||
}
|
||||
.group-h5 .group-box .group-list-item.data-v-ec1da4f5 {
|
||||
padding: 14px 18px;
|
||||
border-bottom: 1px solid #E5E5E5;
|
||||
}
|
||||
.group-h5 .group-box .group-list-item-label.data-v-ec1da4f5 {
|
||||
font-size: 14px;
|
||||
}
|
||||
.group-h5 .group-box .group-list-edit.data-v-ec1da4f5 {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.group-h5 .group-box .group-list-edit .group-name-input.data-v-ec1da4f5 {
|
||||
flex: 0 0 auto;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
}
|
||||
.group-h5 .group-box .group-profile-footer.data-v-ec1da4f5 {
|
||||
box-shadow: inset 0 1px 0 0 #eee;
|
||||
padding: 12px 18px;
|
||||
}
|
||||
.group-h5-list-item-content.data-v-ec1da4f5 {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
.group-h5-list-item-content .content.data-v-ec1da4f5 {
|
||||
width: 0;
|
||||
flex: 1;
|
||||
padding: 0 12px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-align: end;
|
||||
}
|
||||
.group-h5-list-item-introduction.data-v-ec1da4f5 {
|
||||
padding: 12px 18px;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
.group-h5 .select-item-type.data-v-ec1da4f5 {
|
||||
text-align: left;
|
||||
}
|
||||
Reference in New Issue
Block a user