mvframe 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vendor.js DELETED
@@ -1,61 +0,0 @@
1
- import { u as m } from "./util.js";
2
- import { d as s } from "./directive.js";
3
- import { s as c, p, a as u } from "./store.js";
4
- import { createRouter as l, createWebHistory as f } from "vue-router";
5
- import { _ as v } from "./cpt/BtnGroup.js";
6
- import { _ as b } from "./cpt/Form.js";
7
- import { _ as g } from "./cpt/Frame.js";
8
- import { _ as d } from "./cpt/Icon.js";
9
- import { _ as x } from "./cpt/Input.js";
10
- import { _ as h } from "./cpt/Page.js";
11
- import { _ as T } from "./cpt/Select.js";
12
- import { _ as y } from "./cpt/SelectV2.js";
13
- import { _ as F } from "./cpt/Table.js";
14
- import { _ as M } from "./cpt/Tabs.js";
15
- import { _ as $ } from "./cpt/Textarea.js";
16
- const A = ({ router: o, useAdmin: e, adminPermission: _, noaccess: r }) => {
17
- o.beforeEach((i, n, t) => {
18
- e ? i.meta.admin && _() ? t() : r && r(t) : t();
19
- }), o.afterEach((i, n) => {
20
- const t = c.tab(p);
21
- document.title = i.meta.title, t.saveTab(i);
22
- });
23
- }, E = (o, { routes: e, guard: _, useAdmin: r = !1, adminPermission: i = () => !0, noaccess: n }) => {
24
- const t = l({
25
- history: f(),
26
- routes: e
27
- });
28
- _ && _(t), A({ router: t, useAdmin: r, adminPermission: i, noaccess: n }), o.use(t), globalThis.$router = t;
29
- }, K = (o, e) => {
30
- const _ = o.__vccOpts || o;
31
- for (const [r, i] of e)
32
- _[r] = i;
33
- return _;
34
- }, a = /* @__PURE__ */ Object.assign({ "../component/BtnGroup/index.vue": v, "../component/Form/index.vue": b, "../component/Frame/index.vue": g, "../component/Icon/index.vue": d, "../component/Input/index.vue": x, "../component/Page/index.vue": h, "../component/Select/index.vue": T, "../component/SelectV2/index.vue": y, "../component/Table/index.vue": F, "../component/Tabs/index.vue": M, "../component/Textarea/index.vue": $ }), I = (o) => {
35
- for (let e in a) {
36
- let _ = e.match(/\.\.\/component\/(.*)\/index.vue/)[1];
37
- o.component(_, a[e].default);
38
- }
39
- }, O = {
40
- name: "Matt Avias Frame",
41
- copyright: "©2026",
42
- version: "1.0.8",
43
- author: "Matt Avias",
44
- date: "2026-02-26",
45
- /** Table 等表格默认;业务在 app.use(mvframe, { config }) 里覆盖 */
46
- table: {
47
- /** 同 Table 的 summary-metric:{ [prop]: { unit, precision, currency } } 或 (prop) => metric */
48
- summaryMetric: null
49
- }
50
- }, R = (o, e = {}) => {
51
- globalThis.$config = {
52
- ...O,
53
- ...e
54
- };
55
- }, L = (o, e) => {
56
- o.use(R, e.config).use(I).use(m).use(s).use(u, e.pinia).use(E, e.vueRouter);
57
- };
58
- export {
59
- K as _,
60
- L as i
61
- };