birdpaper-ui
Version:
一个通用的 vue3 UI组件库。A common vue3 UI component library.
53 lines (52 loc) • 2.3 kB
JavaScript
"use strict";
const tableCloumn_vue_vue_type_script_lang = require("./table-cloumn.vue2.js");
const vue = require("vue");
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
const _hoisted_1 = { class: "bp-table-td-content" };
const _hoisted_2 = { class: "text-ellipsis" };
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_bp_tooltip = vue.resolveComponent("bp-tooltip");
return vue.openBlock(), vue.createElementBlock("td", {
class: vue.normalizeClass(_ctx.tdClass)
}, [
vue.createElementVNode("span", _hoisted_1, [
!_ctx.hasCustomCell ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
_ctx.tooltip ? (vue.openBlock(), vue.createBlock(_component_bp_tooltip, {
key: 0,
content: _ctx.record[_ctx.dataIndex]
}, {
default: vue.withCtx(() => [
vue.createElementVNode("span", _hoisted_2, vue.toDisplayString(_ctx.record[_ctx.dataIndex]), 1)
]),
_: 1
}, 8, ["content"])) : !_ctx.tooltip ? (vue.openBlock(), vue.createElementBlock("span", {
key: 1,
class: vue.normalizeClass([{ "text-ellipsis": _ctx.ellipsis }])
}, vue.toDisplayString(_ctx.record[_ctx.dataIndex]), 3)) : vue.createCommentVNode("", true)
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
_ctx.tooltip ? (vue.openBlock(), vue.createBlock(_component_bp_tooltip, {
key: 0,
content: _ctx.record[_ctx.dataIndex]
}, {
default: vue.withCtx(() => [
vue.createElementVNode("span", {
class: vue.normalizeClass([{ "text-ellipsis": _ctx.ellipsis }])
}, [
vue.renderSlot(_ctx.$slots, "cell", {
record: _ctx.record,
rowIndex: _ctx.rowIndex
})
], 2)
]),
_: 3
}, 8, ["content"])) : vue.renderSlot(_ctx.$slots, "cell", {
key: 1,
record: _ctx.record,
rowIndex: _ctx.rowIndex
})
], 64))
])
], 2);
}
const _tableColumn = /* @__PURE__ */ _pluginVue_exportHelper(tableCloumn_vue_vue_type_script_lang, [["render", _sfc_render]]);
module.exports = _tableColumn;