UNPKG

@cmstops/pro-compo

Version:

[物料平台文档中心](https://arco.design/docs/material/guide)

493 lines (492 loc) 20 kB
import { defineComponent, onMounted, openBlock, createElementBlock, Fragment, createCommentVNode, createBlock, withCtx, renderSlot, createElementVNode, toDisplayString, createVNode, unref, createTextVNode } from "vue"; import { IconPenFill, IconClockCircle, IconPushpin } from "@arco-design/web-vue/es/icon"; import _sfc_main$2 from "./CompoItem/index.js"; import _sfc_main$3 from "./ContentListItem/index.js"; import _sfc_main$1 from "./DocItem/index.js"; import _sfc_main$6 from "./KongoNavItem/index.js"; import _sfc_main$5 from "./LiveItem/index.js"; import _sfc_main$4 from "./MaccountItem/index.js"; import _sfc_main$7 from "./DocMpItem/index.js"; import _sfc_main$9 from "./courseItem/index.js"; import _sfc_main$8 from "./funhdItem/index.js"; import _sfc_main$a from "./GroupPieceItem/index.js"; const _hoisted_1 = { class: "index" }; const _hoisted_2 = { key: 0, class: "add_new" }; const _hoisted_3 = { key: 1, class: "d_time" }; const _hoisted_4 = { key: 2, class: "fix_position" }; const _hoisted_5 = { class: "doc-fixed-icon" }; const _hoisted_6 = { class: "doc-fixed-num" }; const _hoisted_7 = { class: "index" }; const _hoisted_8 = { key: 0, class: "add_new" }; const _hoisted_9 = { key: 1, class: "d_time" }; const _hoisted_10 = { key: 2, class: "fix_position" }; const _hoisted_11 = { class: "doc-fixed-icon" }; const _hoisted_12 = { class: "doc-fixed-num" }; const _hoisted_13 = { class: "index" }; const _hoisted_14 = { key: 0, class: "add_new" }; const _hoisted_15 = { key: 1, class: "d_time" }; const _hoisted_16 = { key: 2, class: "fix_position" }; const _hoisted_17 = { class: "doc-fixed-icon" }; const _hoisted_18 = { class: "doc-fixed-num" }; const _hoisted_19 = { class: "index" }; const _hoisted_20 = { key: 0, class: "add_new" }; const _hoisted_21 = { key: 1, class: "fix_position" }; const _hoisted_22 = { class: "doc-fixed-icon" }; const _hoisted_23 = { class: "doc-fixed-num" }; const _hoisted_24 = { class: "index" }; const _hoisted_25 = { class: "index" }; const _hoisted_26 = { key: 0, class: "add_new" }; const _hoisted_27 = { key: 1, class: "fix_position" }; const _hoisted_28 = { class: "doc-fixed-icon" }; const _hoisted_29 = { class: "doc-fixed-num" }; const _hoisted_30 = { class: "index" }; const _hoisted_31 = { key: 0, class: "add_new" }; const _hoisted_32 = { key: 1, class: "fix_position" }; const _hoisted_33 = { class: "doc-fixed-icon" }; const _hoisted_34 = { class: "doc-fixed-num" }; const _hoisted_35 = { class: "index" }; const _hoisted_36 = { class: "index" }; const _hoisted_37 = { class: "index" }; const _sfc_main = defineComponent({ __name: "index", props: { item: {}, index: {}, abttrites: {}, extraAttrs: {}, parmas: {}, BASE_API: {} }, emits: [ "cellMouseEnter", "cellMouseLeave", "sortChange", "clickTitle", "dragstart" ], setup(__props, { emit: __emit }) { const emit = __emit; const cellMouseEnter = (params) => { emit("cellMouseEnter", params); }; const cellMouseLeave = (params) => { emit("cellMouseLeave", params); }; const clickTitle = (item) => { emit("clickTitle", item); }; onMounted(() => { }); return (_ctx, _cache) => { return openBlock(), createElementBlock(Fragment, null, [ createCommentVNode(" \u7A3F\u4EF6 "), _ctx.item.catalog === "doc" ? (openBlock(), createBlock(_sfc_main$1, { key: `doc-${_ctx.item.post_id}`, item: { ..._ctx.item, index: _ctx.index }, abttrites: _ctx.abttrites, extraAttrs: _ctx.extraAttrs, BASE_API: _ctx.BASE_API, onClickTitle: clickTitle, onCellMouseEnter: cellMouseEnter, onCellMouseLeave: cellMouseLeave }, { batch: withCtx(() => [ renderSlot(_ctx.$slots, "batch", { row: _ctx.item, index: _ctx.index }) ]), index: withCtx(() => [ createElementVNode("span", _hoisted_1, toDisplayString(_ctx.index + 1), 1), renderSlot(_ctx.$slots, "after-index") ]), tip: withCtx(() => [ createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "), _ctx.item._status ? (openBlock(), createElementBlock("i", _hoisted_2, [ createVNode(unref(IconPenFill), { size: "16" }) ])) : createCommentVNode("v-if", true), createCommentVNode(" \u5B9A\u65F6\u53D1\u5E03 "), _ctx.item.status === 3 ? (openBlock(), createElementBlock("i", _hoisted_3, [ createVNode(unref(IconClockCircle), { size: "16" }) ])) : createCommentVNode("v-if", true), _ctx.item.fix_position ? (openBlock(), createElementBlock("span", _hoisted_4, [ createElementVNode("i", _hoisted_5, [ createVNode(unref(IconPushpin), { size: "16" }) ]), createElementVNode("span", _hoisted_6, toDisplayString(_ctx.item.fix_position), 1) ])) : createCommentVNode("v-if", true) ]), option: withCtx(() => [ renderSlot(_ctx.$slots, "option", { row: _ctx.item, index: _ctx.index }) ]), _: 3 }, 8, ["item", "abttrites", "extraAttrs", "BASE_API"])) : _ctx.item.catalog === "contentList" && _ctx.item.list_type === 7 && _ctx.item.target_type === 6 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [ createCommentVNode(" \u7EC4\u4EF6 "), (openBlock(), createBlock(_sfc_main$2, { key: `compo-${_ctx.item.post_id}`, item: { ..._ctx.item, index: _ctx.index }, extraAttrs: _ctx.extraAttrs, onClickTitle: clickTitle, onCellMouseEnter: cellMouseEnter, onCellMouseLeave: cellMouseLeave }, { batch: withCtx(() => [ renderSlot(_ctx.$slots, "batch", { row: _ctx.item, index: _ctx.index }) ]), index: withCtx(() => [ createElementVNode("span", _hoisted_7, toDisplayString(_ctx.index + 1), 1) ]), tip: withCtx(() => [ createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "), _ctx.item._status ? (openBlock(), createElementBlock("i", _hoisted_8, [ createVNode(unref(IconPenFill), { size: "16" }) ])) : createCommentVNode("v-if", true), createCommentVNode(" \u5B9A\u65F6\u53D1\u5E03 "), _ctx.item.status === 3 ? (openBlock(), createElementBlock("i", _hoisted_9, [ createVNode(unref(IconClockCircle), { size: "16" }) ])) : createCommentVNode("v-if", true), _ctx.item.fix_position ? (openBlock(), createElementBlock("span", _hoisted_10, [ createElementVNode("i", _hoisted_11, [ createVNode(unref(IconPushpin), { size: "16" }) ]), createElementVNode("span", _hoisted_12, toDisplayString(_ctx.item.fix_position), 1) ])) : createCommentVNode("v-if", true) ]), option: withCtx(() => [ renderSlot(_ctx.$slots, "option", { row: _ctx.item, index: _ctx.index }) ]), _: 3 }, 8, ["item", "extraAttrs"])) ], 2112)) : _ctx.item.catalog === "contentList" && _ctx.item.list_type === 4 && _ctx.item.target_type === 6 ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [ createCommentVNode(" \u9891\u9053 "), (openBlock(), createBlock(_sfc_main$3, { key: `contentlist-${_ctx.item.post_id}`, item: { ..._ctx.item, index: _ctx.index }, parmas: _ctx.parmas, extraAttrs: _ctx.extraAttrs, onClickTitle: clickTitle, onCellMouseEnter: cellMouseEnter, onCellMouseLeave: cellMouseLeave }, { batch: withCtx(() => [ renderSlot(_ctx.$slots, "batch", { row: _ctx.item, index: _ctx.index }) ]), index: withCtx(() => [ createElementVNode("span", _hoisted_13, toDisplayString(_ctx.index + 1), 1) ]), tips: withCtx(() => { var _a, _b; return [ createTextVNode(toDisplayString(((_b = (_a = _ctx.parmas) == null ? void 0 : _a.labelTip) == null ? void 0 : _b.tips(_ctx.item, _ctx.index)) || ""), 1) ]; }), tip: withCtx(() => [ createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "), _ctx.item._status ? (openBlock(), createElementBlock("i", _hoisted_14, [ createVNode(unref(IconPenFill), { size: "16" }) ])) : createCommentVNode("v-if", true), createCommentVNode(" \u5B9A\u65F6\u53D1\u5E03 "), _ctx.item.status === 3 ? (openBlock(), createElementBlock("i", _hoisted_15, [ createVNode(unref(IconClockCircle), { size: "16" }) ])) : createCommentVNode("v-if", true), _ctx.item.fix_position ? (openBlock(), createElementBlock("span", _hoisted_16, [ createElementVNode("i", _hoisted_17, [ createVNode(unref(IconPushpin), { size: "16" }) ]), createElementVNode("span", _hoisted_18, toDisplayString(_ctx.item.fix_position), 1) ])) : createCommentVNode("v-if", true) ]), option: withCtx(() => [ renderSlot(_ctx.$slots, "option", { row: _ctx.item, index: _ctx.index }) ]), _: 3 }, 8, ["item", "parmas", "extraAttrs"])) ], 2112)) : _ctx.item.catalog === "mp_account" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [ createCommentVNode(" \u516C\u4F17\u53F7 "), (openBlock(), createBlock(_sfc_main$4, { key: `maccount-${_ctx.item.post_id}`, item: { ..._ctx.item, index: _ctx.index }, abttrites: _ctx.abttrites, extraAttrs: _ctx.extraAttrs, onClickTitle: clickTitle, onCellMouseEnter: cellMouseEnter, onCellMouseLeave: cellMouseLeave }, { batch: withCtx(() => [ renderSlot(_ctx.$slots, "batch", { row: _ctx.item, index: _ctx.index }) ]), index: withCtx(() => [ createElementVNode("span", _hoisted_19, toDisplayString(_ctx.index + 1), 1) ]), tip: withCtx(() => [ createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "), _ctx.item._status ? (openBlock(), createElementBlock("i", _hoisted_20, [ createVNode(unref(IconPenFill), { size: "16" }) ])) : createCommentVNode("v-if", true), _ctx.item.fix_position ? (openBlock(), createElementBlock("span", _hoisted_21, [ createElementVNode("i", _hoisted_22, [ createVNode(unref(IconPushpin), { size: "16" }) ]), createElementVNode("span", _hoisted_23, toDisplayString(_ctx.item.fix_position), 1) ])) : createCommentVNode("v-if", true) ]), option: withCtx(() => [ renderSlot(_ctx.$slots, "option", { row: _ctx.item, index: _ctx.index }) ]), _: 3 }, 8, ["item", "abttrites", "extraAttrs"])) ], 2112)) : _ctx.item.catalog === "ilive" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [ createCommentVNode(" \u4E91\u76F4\u64AD "), (openBlock(), createBlock(_sfc_main$5, { key: `live-${_ctx.item.post_id}`, item: { ..._ctx.item, index: _ctx.index }, extraAttrs: _ctx.extraAttrs, onClickTitle: clickTitle, onCellMouseEnter: cellMouseEnter, onCellMouseLeave: cellMouseLeave }, { batch: withCtx(() => [ renderSlot(_ctx.$slots, "batch", { row: _ctx.item, index: _ctx.index }) ]), index: withCtx(() => [ createElementVNode("span", _hoisted_24, toDisplayString(_ctx.index + 1), 1) ]), option: withCtx(() => [ renderSlot(_ctx.$slots, "option", { row: _ctx.item, index: _ctx.index }) ]), _: 3 }, 8, ["item", "extraAttrs"])) ], 2112)) : _ctx.item.catalog === "kongo" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [ createCommentVNode(" \u529F\u80FD\u5BFC\u822A "), (openBlock(), createBlock(_sfc_main$6, { key: `kongo-${_ctx.item.post_id}`, item: { ..._ctx.item, index: _ctx.index }, extraAttrs: _ctx.extraAttrs, onClickTitle: clickTitle, onCellMouseEnter: cellMouseEnter, onCellMouseLeave: cellMouseLeave }, { batch: withCtx(() => [ renderSlot(_ctx.$slots, "batch", { row: _ctx.item, index: _ctx.index }) ]), index: withCtx(() => [ createElementVNode("span", _hoisted_25, toDisplayString(_ctx.index + 1), 1) ]), tip: withCtx(() => [ createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "), _ctx.item._status ? (openBlock(), createElementBlock("i", _hoisted_26, [ createVNode(unref(IconPenFill), { size: "16" }) ])) : createCommentVNode("v-if", true), _ctx.item.fix_position ? (openBlock(), createElementBlock("span", _hoisted_27, [ createElementVNode("i", _hoisted_28, [ createVNode(unref(IconPushpin), { size: "16" }) ]), createElementVNode("span", _hoisted_29, toDisplayString(_ctx.item.fix_position), 1) ])) : createCommentVNode("v-if", true) ]), option: withCtx(() => [ renderSlot(_ctx.$slots, "option", { row: _ctx.item, index: _ctx.index }) ]), _: 3 }, 8, ["item", "extraAttrs"])) ], 2112)) : _ctx.item.catalog === "mp_content" ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [ createCommentVNode(" \u516C\u4F17\u53F7\u5185\u5BB9 "), (openBlock(), createBlock(_sfc_main$7, { key: `doc-mp-${_ctx.item.post_id}`, abttrites: _ctx.abttrites, extraAttrs: _ctx.extraAttrs, item: { ..._ctx.item, index: _ctx.index }, onClickTitle: clickTitle, onCellMouseEnter: cellMouseEnter, onCellMouseLeave: cellMouseLeave }, { batch: withCtx(() => [ renderSlot(_ctx.$slots, "batch", { row: _ctx.item, index: _ctx.index }) ]), index: withCtx(() => [ createElementVNode("span", _hoisted_30, toDisplayString(_ctx.index + 1), 1) ]), tip: withCtx(() => [ createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "), _ctx.item._status ? (openBlock(), createElementBlock("i", _hoisted_31, [ createVNode(unref(IconPenFill), { size: "16" }) ])) : createCommentVNode("v-if", true), _ctx.item.fix_position ? (openBlock(), createElementBlock("span", _hoisted_32, [ createElementVNode("i", _hoisted_33, [ createVNode(unref(IconPushpin), { size: "16" }) ]), createElementVNode("span", _hoisted_34, toDisplayString(_ctx.item.fix_position), 1) ])) : createCommentVNode("v-if", true) ]), option: withCtx(() => [ renderSlot(_ctx.$slots, "option", { row: _ctx.item, index: _ctx.index }) ]), _: 3 }, 8, ["abttrites", "extraAttrs", "item"])) ], 2112)) : _ctx.item.catalog === "funhd" ? (openBlock(), createElementBlock(Fragment, { key: 7 }, [ createCommentVNode(" \u4E92\u52A8\u8FD0\u8425\uFF08\u6613\u4F01\u79C0\uFF09 "), (openBlock(), createBlock(_sfc_main$8, { key: `funhd-${_ctx.item.post_id}`, item: { ..._ctx.item, index: _ctx.index }, extraAttrs: _ctx.extraAttrs, onClickTitle: clickTitle, onCellMouseEnter: cellMouseEnter, onCellMouseLeave: cellMouseLeave }, { batch: withCtx(() => [ renderSlot(_ctx.$slots, "batch", { row: _ctx.item, index: _ctx.index }) ]), index: withCtx(() => [ createElementVNode("span", _hoisted_35, toDisplayString(_ctx.index + 1), 1) ]), option: withCtx(() => [ renderSlot(_ctx.$slots, "option", { row: _ctx.item, index: _ctx.index }) ]), _: 3 }, 8, ["item", "extraAttrs"])) ], 2112)) : _ctx.item.catalog === "course" ? (openBlock(), createElementBlock(Fragment, { key: 8 }, [ createCommentVNode(" \u8BFE\u7A0B "), (openBlock(), createBlock(_sfc_main$9, { key: `course-${_ctx.item.post_id}`, item: { ..._ctx.item, index: _ctx.index }, extraAttrs: _ctx.extraAttrs, onClickTitle: clickTitle, onCellMouseEnter: cellMouseEnter, onCellMouseLeave: cellMouseLeave }, { batch: withCtx(() => [ renderSlot(_ctx.$slots, "batch", { row: _ctx.item, index: _ctx.index }) ]), index: withCtx(() => [ createElementVNode("span", _hoisted_36, toDisplayString(_ctx.index + 1), 1) ]), option: withCtx(() => [ renderSlot(_ctx.$slots, "option", { row: _ctx.item, index: _ctx.index }) ]), _: 3 }, 8, ["item", "extraAttrs"])) ], 2112)) : _ctx.item.catalog === "group_list" ? (openBlock(), createElementBlock(Fragment, { key: 9 }, [ createCommentVNode(" \u5206\u7EC4\u7EC4\u4EF6 "), (openBlock(), createBlock(_sfc_main$a, { key: `group_list-${_ctx.item.post_id}`, item: { ..._ctx.item, index: _ctx.index }, extraAttrs: _ctx.extraAttrs, onClickTitle: clickTitle, onCellMouseEnter: cellMouseEnter, onCellMouseLeave: cellMouseLeave }, { batch: withCtx(() => _cache[0] || (_cache[0] = [])), index: withCtx(() => [ createElementVNode("span", _hoisted_37, toDisplayString(_ctx.index + 1), 1) ]), tip: withCtx(() => _cache[1] || (_cache[1] = [])), option: withCtx(() => [ renderSlot(_ctx.$slots, "option", { row: _ctx.item, index: _ctx.index }) ]), _: 3 }, 8, ["item", "extraAttrs"])) ], 2112)) : createCommentVNode("v-if", true) ], 2112); }; } }); export { _sfc_main as default };