You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.6 KiB
40 lines
1.6 KiB
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle } from 'vue';
|
|
import '../../../hooks/index.mjs';
|
|
import { cardProps } from './card.mjs';
|
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
|
|
const __default__ = defineComponent({
|
|
name: "ElCard"
|
|
});
|
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
...__default__,
|
|
props: cardProps,
|
|
setup(__props) {
|
|
const ns = useNamespace("card");
|
|
return (_ctx, _cache) => {
|
|
return openBlock(), createElementBlock("div", {
|
|
class: normalizeClass([unref(ns).b(), unref(ns).is(`${_ctx.shadow}-shadow`)])
|
|
}, [
|
|
_ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock("div", {
|
|
key: 0,
|
|
class: normalizeClass(unref(ns).e("header"))
|
|
}, [
|
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
createTextVNode(toDisplayString(_ctx.header), 1)
|
|
])
|
|
], 2)) : createCommentVNode("v-if", true),
|
|
createElementVNode("div", {
|
|
class: normalizeClass(unref(ns).e("body")),
|
|
style: normalizeStyle(_ctx.bodyStyle)
|
|
}, [
|
|
renderSlot(_ctx.$slots, "default")
|
|
], 6)
|
|
], 2);
|
|
};
|
|
}
|
|
});
|
|
var Card = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);
|
|
|
|
export { Card as default };
|
|
//# sourceMappingURL=card2.mjs.map
|
|
|