UNPKG

@nextcloud/vue

Version:
21 lines (20 loc) 1.17 kB
import "../assets/index14.css"; import { n as e } from "../chunks/_plugin-vue2_normalizer-5b4c43a4.mjs"; const s = { name: "NcEmptyContent", props: { name: { type: String, default: "" }, description: { type: String, default: "" } }, computed: { hasName() { return this.name !== ""; }, hasDescription() { var t; return this.description !== "" || ((t = this.$slots.description) == null ? void 0 : t[0]); } } }; var i = function() { var t = this, n = t._self._c; return n("div", { staticClass: "empty-content", attrs: { role: "note" } }, [t.$slots.icon ? n("div", { staticClass: "empty-content__icon", attrs: { "aria-hidden": "true" } }, [t._t("icon")], 2) : t._e(), t._t("name", function() { return [t.hasName ? n("h2", { staticClass: "empty-content__name" }, [t._v(" " + t._s(t.name) + " ")]) : t._e()]; }), t.hasDescription ? n("p", [t._t("description", function() { return [t._v(" " + t._s(t.description) + " ")]; })], 2) : t._e(), t.$slots.action ? n("div", { staticClass: "empty-content__action" }, [t._t("action")], 2) : t._e()], 2); }, o = [], a = e(s, i, o, !1, null, "d475d4c6", null, null); const p = a.exports; export { p as default };