UNPKG

yk-element-components-v2

Version:

70 lines (69 loc) 2.19 kB
function y(i, e, a, u, o, s, d, p) { var n = typeof i == "function" ? i.options : i; e && (n.render = e, n.staticRenderFns = a, n._compiled = !0), u && (n.functional = !0), s && (n._scopeId = "data-v-" + s); var r; if (d ? (r = function(t) { t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !t && typeof __VUE_SSR_CONTEXT__ < "u" && (t = __VUE_SSR_CONTEXT__), o && o.call(this, t), t && t._registeredComponents && t._registeredComponents.add(d); }, n._ssrRegister = r) : o && (r = p ? function() { o.call( this, (n.functional ? this.parent : this).$root.$options.shadowRoot ); } : o), r) if (n.functional) { n._injectStyles = r; var c = n.render; n.render = function(v, l) { return r.call(l), c(v, l); }; } else { var _ = n.beforeCreate; n.beforeCreate = _ ? [].concat(_, r) : [r]; } return { exports: i, options: n }; } const m = { name: "yk-main", props: { padding: { type: String, default: "20px" }, background: { type: String, default: "#FFFFFF" }, radius: { type: String, default: "0" }, type: { type: String, default: "" } } }; var h = function() { var e = this, a = e._self._c; return a("main", { staticClass: "yk-main", style: { padding: e.padding } }, [a("div", { staticClass: "yk-main-box", style: { background: e.background, borderRadius: e.radius } }, [e.type == "" ? e._t("default") : e.type == "notFound" ? a("div", { staticClass: "yk-main-other-box" }, [e._v(" 404 ")]) : e.type == "error" ? a("div", { staticClass: "yk-main-other-box" }, [e._v(" \u62A5\u9519 ")]) : e.type == "requestError" ? a("div", { staticClass: "yk-main-other-box" }, [e._v(" \u8BF7\u6C42\u9519\u8BEF ")]) : e.type == "networkError" ? a("div", { staticClass: "yk-main-other-box" }, [e._v(" \u7F51\u7EDC\u9519\u8BEF ")]) : e._e()], 2)]); }, C = [], g = /* @__PURE__ */ y( m, h, C, !1, null, "82ad8e47", null, null ); const f = g.exports, k = { install(i) { i.component(f.name, f); } }; export { k as default };