sd-component-library
Version:
A Vue3 + Element Plus components library
70 lines (69 loc) • 2.09 kB
JavaScript
import { _ as a } from "./index.vue_vue_type_script_setup_true_lang-5fJV14pf.js";
import { inject as d, defineComponent as p, createElementBlock as l, openBlock as i, normalizeStyle as m, createVNode as f, createElementVNode as _, toDisplayString as h } from "vue";
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
/*!
* vue-router v4.5.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/
var r;
(function(e) {
e.pop = "pop", e.push = "push";
})(r || (r = {}));
var n;
(function(e) {
e.back = "back", e.forward = "forward", e.unknown = "";
})(n || (n = {}));
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
var c;
(function(e) {
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
})(c || (c = {}));
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
const b = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
function N() {
return d(b);
}
const v = { class: "font-14" }, S = /* @__PURE__ */ p({
__name: "index",
props: {
routeName: {
type: String,
default: "",
required: !0
},
routePath: {
type: String,
default: ""
},
width: {
type: Number,
default: 100
}
},
setup(e) {
const o = e, t = N(), s = () => {
o.routePath ? t.push(o.routePath) : t.go(-1);
};
return (y, w) => {
const u = a;
return i(), l("div", {
style: m({ maxWidth: e.width + "px" }),
class: "pointer flex gap-10 align-center",
onClick: s
}, [
f(u, {
"icon-class": "route-return",
"class-name": "route-return-btn"
}),
_("span", v, h(e.routeName), 1)
], 4);
};
}
}), D = /* @__PURE__ */ E(S, [["__scopeId", "data-v-89e20fe0"]]);
export {
D as default
};