UNPKG

@nextcloud/vue

Version:
53 lines (52 loc) 1.48 kB
require('../assets/NcAppNavigationNew-BcDuupzO.css'); "use strict"; const Components_NcButton = require("./NcButton.cjs"); const _pluginVue2_normalizer = require("../chunks/_plugin-vue2_normalizer-V0q-tHlQ.cjs"); const _sfc_main = { components: { NcButton: Components_NcButton }, props: { buttonId: { type: String, required: false, default: "" }, disabled: { type: Boolean, required: false, default: false }, text: { type: String, required: true }, type: { type: String, default: "primary", validator(value) { return ["primary", "secondary", "tertiary"].indexOf(value) !== -1; } } }, emits: ["click"] }; var _sfc_render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "app-navigation-new" }, [_c("NcButton", { attrs: { "id": _vm.buttonId, "disabled": _vm.disabled, "type": _vm.type }, on: { "click": function($event) { return _vm.$emit("click"); } }, scopedSlots: _vm._u([{ key: "icon", fn: function() { return [_vm._t("icon")]; }, proxy: true }], null, true) }, [_vm._v(" " + _vm._s(_vm.text) + " ")])], 1); }; var _sfc_staticRenderFns = []; var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent( _sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "810cb824" ); const NcAppNavigationNew = __component__.exports; module.exports = NcAppNavigationNew;