el-plus-powerful-table
Version:
## [DOCS](https://peng-xiao-shuai.github.io/vite-vue-admin-docs/zh-CN/component_directive/component/powerful-table-doc.html)
46 lines (45 loc) • 1.09 kB
JavaScript
import { createVNode as l, withDirectives as t, vShow as n } from "vue";
import { ElIcon as i, ElButton as a } from "element-plus";
import { ArrowUp as s } from "@element-plus/icons-vue";
const f = {
// 表格的配置数据
headerData: {
type: Object,
default: () => ({})
},
list: {
type: Array,
default: () => []
}
}, d = (r) => ({
append: () => l(a, {
icon: l("svg", {
class: "icon",
"aria-hidden": "true"
}, [l("use", {
"xlink:href": "#pt-search"
}, null)]),
onClick: r
}, null)
}), v = (r, e) => ({
reference: () => l("span", {
class: "el-popover-center",
style: r.value.length ? {
color: "var(--el-color-primary)"
} : {},
onClick: (o) => {
e.defaultFilter && (o.stopPropagation(), r.visible = !r.visible);
}
}, [e.label, t(l(i, {
style: "margin-left: 5px",
class: r.visible ? "arrow-down" : "arrow-up"
}, {
default: () => [l(s, null, null)]
}), [[n, e.defaultFilter]])])
});
export {
d as btnSlots,
f as props,
v as slots
};
//# sourceMappingURL=common.mjs.map