消息
This commit is contained in:
130
unpackage/dist/dev/mp-weixin/TUIKit/components/TUIGroup/manage-group/manage-admin.js
vendored
Normal file
130
unpackage/dist/dev/mp-weixin/TUIKit/components/TUIGroup/manage-group/manage-admin.js
vendored
Normal file
@@ -0,0 +1,130 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
require("../../../adapter-vue.js");
|
||||
const common_assets = require("../../../../common/assets.js");
|
||||
if (!Math) {
|
||||
(Icon + Slider)();
|
||||
}
|
||||
const Slider = () => "../../common/Slider/index.js";
|
||||
const Icon = () => "../../common/Icon.js";
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "manage-admin",
|
||||
props: {
|
||||
member: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
}
|
||||
},
|
||||
isSetMuteTime: {
|
||||
type: Boolean,
|
||||
default: () => false
|
||||
},
|
||||
currentGroup: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
}
|
||||
}
|
||||
},
|
||||
emits: [
|
||||
"addAdmin",
|
||||
"removeAdmin",
|
||||
"setAllMuteTime",
|
||||
"addMute",
|
||||
"removeMute",
|
||||
"close"
|
||||
],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const props = __props;
|
||||
const isAdminSetMuteTime = common_vendor.ref(false);
|
||||
const memberAdmin = common_vendor.ref({
|
||||
admin: [],
|
||||
member: [],
|
||||
muteMember: []
|
||||
});
|
||||
const currentGroupAdmin = common_vendor.ref();
|
||||
common_vendor.watchEffect(() => {
|
||||
memberAdmin.value = props.member;
|
||||
isAdminSetMuteTime.value = props.isSetMuteTime;
|
||||
currentGroupAdmin.value = props.currentGroup;
|
||||
});
|
||||
const emits = __emit;
|
||||
const addAdmin = () => {
|
||||
emits("addAdmin");
|
||||
};
|
||||
const removeAdmin = () => {
|
||||
emits("removeAdmin");
|
||||
};
|
||||
const setAllMuteTime = (value) => {
|
||||
emits("setAllMuteTime", value);
|
||||
};
|
||||
const addMute = () => {
|
||||
emits("addMute");
|
||||
};
|
||||
const removeMute = () => {
|
||||
emits("removeMute");
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(common_vendor.unref(common_vendor.Wt).t(`TUIGroup.群管理员`)),
|
||||
b: common_vendor.f(common_vendor.unref(memberAdmin).admin, (item, index, i0) => {
|
||||
return {
|
||||
a: item.avatar || "https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",
|
||||
b: common_vendor.t(item.nick || item.userID),
|
||||
c: index
|
||||
};
|
||||
}),
|
||||
c: common_vendor.p({
|
||||
file: common_vendor.unref(common_assets.plusSVG),
|
||||
width: "16px",
|
||||
height: "16px"
|
||||
}),
|
||||
d: common_vendor.o$1(addAdmin),
|
||||
e: common_vendor.unref(memberAdmin).admin.length > 0
|
||||
}, common_vendor.unref(memberAdmin).admin.length > 0 ? {
|
||||
f: common_vendor.p({
|
||||
file: common_vendor.unref(common_assets.minusSVG),
|
||||
width: "16px",
|
||||
height: "16px"
|
||||
}),
|
||||
g: common_vendor.o$1(removeAdmin)
|
||||
} : {}, {
|
||||
h: common_vendor.unref(isAdminSetMuteTime)
|
||||
}, common_vendor.unref(isAdminSetMuteTime) ? {
|
||||
i: common_vendor.t(common_vendor.unref(common_vendor.Wt).t(`TUIGroup.全员禁言`)),
|
||||
j: common_vendor.t(common_vendor.unref(common_vendor.Wt).t(`TUIGroup.全员禁言开启后,只允许群主和管理员发言。`)),
|
||||
k: common_vendor.o$1(setAllMuteTime),
|
||||
l: common_vendor.p({
|
||||
open: common_vendor.unref(currentGroupAdmin).muteAllMembers
|
||||
})
|
||||
} : {}, {
|
||||
m: common_vendor.unref(isAdminSetMuteTime)
|
||||
}, common_vendor.unref(isAdminSetMuteTime) ? common_vendor.e({
|
||||
n: common_vendor.t(common_vendor.unref(common_vendor.Wt).t(`TUIGroup.单独禁言人员`)),
|
||||
o: common_vendor.f(common_vendor.unref(memberAdmin).muteMember, (item, index, i0) => {
|
||||
return {
|
||||
a: item.avatar || "https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",
|
||||
b: common_vendor.t(item.nick || item.userID),
|
||||
c: index
|
||||
};
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
file: common_vendor.unref(common_assets.plusSVG),
|
||||
width: "16px",
|
||||
height: "16px"
|
||||
}),
|
||||
q: common_vendor.o$1(addMute),
|
||||
r: common_vendor.unref(memberAdmin).muteMember.length > 0
|
||||
}, common_vendor.unref(memberAdmin).muteMember.length > 0 ? {
|
||||
s: common_vendor.p({
|
||||
file: common_vendor.unref(common_assets.minusSVG),
|
||||
width: "16px",
|
||||
height: "16px"
|
||||
}),
|
||||
t: common_vendor.o$1(removeMute)
|
||||
} : {}) : {});
|
||||
};
|
||||
}
|
||||
});
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bbbd882d"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/TUIKit/components/TUIGroup/manage-group/manage-admin.js.map
|
||||
Reference in New Issue
Block a user