UNPKG

@nextcloud/vue

Version:
17 lines (16 loc) 1.43 kB
import "../assets/index35.css"; import { A as n } from "../chunks/actionText-6c35d3fc.mjs"; import { n as e } from "../chunks/_plugin-vue2_normalizer-5b4c43a4.mjs"; const a = { name: "NcActionRouter", mixins: [n], props: { to: { type: [String, Object], default: "", required: !0 }, exact: { type: Boolean, default: !1 } } }; var r = function() { var t = this, o = t._self._c; return o("li", { staticClass: "action" }, [o("router-link", { staticClass: "action-router focusable", attrs: { to: t.to, "aria-label": t.ariaLabel, exact: t.exact, title: t.title, rel: "nofollow noreferrer noopener" }, nativeOn: { click: function(c) { return t.onClick.apply(null, arguments); } } }, [t._t("icon", function() { return [o("span", { staticClass: "action-router__icon", class: [t.isIconUrl ? "action-router__icon--url" : t.icon], style: { backgroundImage: t.isIconUrl ? `url(${t.icon})` : null } })]; }), t.name ? o("p", [o("strong", { staticClass: "action-router__name" }, [t._v(" " + t._s(t.name) + " ")]), o("br"), o("span", { staticClass: "action-router__longtext", domProps: { textContent: t._s(t.text) } })]) : t.isLongText ? o("p", { staticClass: "action-router__longtext", domProps: { textContent: t._s(t.text) } }) : o("span", { staticClass: "action-router__text" }, [t._v(t._s(t.text))]), t._e()], 2)], 1); }, s = [], i = e(a, r, s, !1, null, "f6c84c4c", null, null); const p = i.exports; export { p as default };