ivue-material-plus
Version:
A high quality UI components Library with Vue.js
43 lines (40 loc) • 2 kB
JavaScript
import _sfc_main from './index.vue_vue_type_script_lang.mjs';
import { openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createCommentVNode, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createTextVNode, toDisplayString, createElementVNode } from 'vue';
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tagName), mergeProps({
class: _ctx.wrapperClasses,
style: _ctx.wrapperStyles
}, _ctx.tagProps, { onClick: _ctx.handleLink }), {
default: withCtx(() => [
createCommentVNode(" \u6807\u9898 "),
_ctx.showTitle ? (openBlock(), createElementBlock("div", {
key: 0,
class: normalizeClass(`${_ctx.prefixCls}-title`),
style: normalizeStyle(_ctx.titleStyles)
}, [
renderSlot(_ctx.$slots, "title", {}, () => [
createTextVNode(toDisplayString(_ctx.title), 1)
])
], 6)) : createCommentVNode("v-if", true),
createCommentVNode(" \u989D\u5916\u663E\u793A\u7684\u5185\u5BB9\uFF0C\u9ED8\u8BA4\u4F4D\u7F6E\u5728\u53F3\u4E0A\u89D2 "),
_ctx.showExtra ? (openBlock(), createElementBlock("div", {
key: 1,
class: normalizeClass(`${_ctx.prefixCls}-extra`)
}, [
renderSlot(_ctx.$slots, "extra")
], 2)) : createCommentVNode("v-if", true),
createCommentVNode(" \u5185\u5BB9 "),
createElementVNode("div", {
class: normalizeClass(`${_ctx.prefixCls}-body`),
style: normalizeStyle(_ctx.bodyStyles)
}, [
renderSlot(_ctx.$slots, "default")
], 6)
]),
_: 3
}, 16, ["class", "style", "onClick"]);
}
var Card = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-card\\index.vue"]]);
export { Card as default };
//# sourceMappingURL=index2.mjs.map