mvframe 1.0.7 → 1.0.8
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/cpt/chip.js +22 -22
- package/dist/vendor.js +40 -66
- package/package.json +1 -1
- package/dist/sortablejs.js +0 -1612
- package/dist/vuedraggable.js +0 -2819
package/dist/cpt/chip.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as Q, reactive as J, inject as oe, getCurrentInstance as se, onMounted as z, computed as
|
|
1
|
+
import { defineComponent as Q, reactive as J, inject as oe, getCurrentInstance as se, onMounted as z, computed as D, watch as te, onUnmounted as X, openBlock as p, createElementBlock as b, createElementVNode as t, Fragment as U, renderList as H, unref as a, withModifiers as Y, normalizeClass as F, createCommentVNode as L, createTextVNode as W, toDisplayString as v, nextTick as ne, renderSlot as G, resolveComponent as j, createBlock as K, withCtx as M, createVNode as E, mergeProps as ae } from "vue";
|
|
2
2
|
import { isInView as ie, download as ce } from "../composition.js";
|
|
3
3
|
import { useRoute as ee, useRouter as le } from "vue-router";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { _ as P } from "../vendor.js";
|
|
6
|
-
import
|
|
6
|
+
import Z from "vuedraggable";
|
|
7
7
|
const _l = Q({
|
|
8
8
|
name: "MvcFormItemFilter",
|
|
9
9
|
setup: (k, S) => {
|
|
@@ -88,7 +88,7 @@ const _l = Q({
|
|
|
88
88
|
o.name === s.value ? I.replace({ name: o.name, query: { t: +/* @__PURE__ */ new Date() } }) : $(o);
|
|
89
89
|
}, O = (o, n) => {
|
|
90
90
|
f.closeTab(o, n);
|
|
91
|
-
}, i =
|
|
91
|
+
}, i = D(() => f.tabs), s = D(() => m.name), e = D(() => i.value.length);
|
|
92
92
|
return te(
|
|
93
93
|
() => e.value,
|
|
94
94
|
(o) => {
|
|
@@ -104,7 +104,7 @@ const _l = Q({
|
|
|
104
104
|
(p(!0), b(U, null, H(a(i), (u, c) => (p(), b("div", {
|
|
105
105
|
key: u.name,
|
|
106
106
|
id: `tab_${u.name}`,
|
|
107
|
-
class:
|
|
107
|
+
class: F(["relative flexMode vc g4 noShrink tabItem h32 p0-8 fs12 radius4 point noselect", [
|
|
108
108
|
u.name === a(s) && "active",
|
|
109
109
|
a(i).length > 1 && "hoverItem"
|
|
110
110
|
]]),
|
|
@@ -114,7 +114,7 @@ const _l = Q({
|
|
|
114
114
|
}, [
|
|
115
115
|
u.icon ? (p(), b("i", {
|
|
116
116
|
key: 0,
|
|
117
|
-
class:
|
|
117
|
+
class: F(["imicon", u.icon])
|
|
118
118
|
}, null, 2)) : L("", !0),
|
|
119
119
|
W(" " + v(u.meta.title) + " ", 1),
|
|
120
120
|
t("div", {
|
|
@@ -173,11 +173,11 @@ const _l = Q({
|
|
|
173
173
|
const i = { ...m.query, _: Date.now() }, s = m.name ? { name: m.name, params: m.params, query: i } : { path: m.path, query: i };
|
|
174
174
|
I.replace(s).catch(() => {
|
|
175
175
|
});
|
|
176
|
-
}, O =
|
|
176
|
+
}, O = D(() => l.collapse ? "im-verticalleft" : "im-verticalright");
|
|
177
177
|
return X(() => {
|
|
178
178
|
document.removeEventListener("keydown", C);
|
|
179
179
|
}), (i, s) => (p(), b("div", {
|
|
180
|
-
class:
|
|
180
|
+
class: F(["FrameMenu sticky vh100 noselect noShrink", a(l).collapse && "collapse"])
|
|
181
181
|
}, [
|
|
182
182
|
t("div", fe, [
|
|
183
183
|
t("div", he, [
|
|
@@ -191,7 +191,7 @@ const _l = Q({
|
|
|
191
191
|
onClick: s[0] || (s[0] = (e) => r(a(l).collapse))
|
|
192
192
|
}, [
|
|
193
193
|
t("i", {
|
|
194
|
-
class:
|
|
194
|
+
class: F(["imicon fs20", a(O)])
|
|
195
195
|
}, null, 2)
|
|
196
196
|
])
|
|
197
197
|
]),
|
|
@@ -203,7 +203,7 @@ const _l = Q({
|
|
|
203
203
|
class: "menuItemWrap mb2"
|
|
204
204
|
}, [
|
|
205
205
|
t("div", {
|
|
206
|
-
class:
|
|
206
|
+
class: F(["menuItem flexMode vc g8 radius4 p0-16", [
|
|
207
207
|
a(m).name === e.name && "active bg-primary",
|
|
208
208
|
a(l).collapse && "hc",
|
|
209
209
|
a(l).collapse && T(e) && "activeChild"
|
|
@@ -214,30 +214,30 @@ const _l = Q({
|
|
|
214
214
|
t("div", ye, [
|
|
215
215
|
e.meta.icon ? (p(), b("i", {
|
|
216
216
|
key: 0,
|
|
217
|
-
class:
|
|
217
|
+
class: F([f.iconClass, e.meta.icon])
|
|
218
218
|
}, null, 2)) : (p(), b("span", _e, v(((n = e.meta.title) == null ? void 0 : n.substr(0, 1)) || "U"), 1))
|
|
219
219
|
]),
|
|
220
220
|
a(l).collapse ? L("", !0) : (p(), b("div", {
|
|
221
221
|
key: 0,
|
|
222
|
-
class:
|
|
222
|
+
class: F(["itemTitle txt-nowrap fs14", a(m).name === e.name ? "txt-white" : "txt-h1"])
|
|
223
223
|
}, v(e.meta.title), 3))
|
|
224
224
|
], 42, ge),
|
|
225
225
|
(u = e.children) != null && u.length ? (p(), b("div", Ce, [
|
|
226
226
|
(p(!0), b(U, null, H(e.children, (c, h) => (p(), b("div", {
|
|
227
227
|
key: h,
|
|
228
|
-
class:
|
|
228
|
+
class: F(["childrenItem flexMode vc g8 radius4 h40 p0-16", a(m).name === c.name && "active bg-primary"]),
|
|
229
229
|
onClick: (A) => $(c),
|
|
230
230
|
onDblclick: d
|
|
231
231
|
}, [
|
|
232
232
|
t("div", xe, [
|
|
233
233
|
c.meta.icon ? (p(), b("i", {
|
|
234
234
|
key: 0,
|
|
235
|
-
class:
|
|
235
|
+
class: F([f.iconClass, c.meta.icon])
|
|
236
236
|
}, null, 2)) : L("", !0)
|
|
237
237
|
]),
|
|
238
238
|
a(l).collapse ? L("", !0) : (p(), b("div", {
|
|
239
239
|
key: 0,
|
|
240
|
-
class:
|
|
240
|
+
class: F(["itemTitle txt-nowrap fs14", a(m).name === c.name ? "txt-white" : "txt-h1"])
|
|
241
241
|
}, v(c.meta.title), 3))
|
|
242
242
|
], 42, $e))), 128))
|
|
243
243
|
])) : L("", !0)
|
|
@@ -253,7 +253,7 @@ const _l = Q({
|
|
|
253
253
|
__name: "Footer",
|
|
254
254
|
setup(k) {
|
|
255
255
|
J({});
|
|
256
|
-
const S =
|
|
256
|
+
const S = D(() => globalThis.$config);
|
|
257
257
|
return (f, l) => (p(), b("div", we, [
|
|
258
258
|
t("span", Me, v(a(S).copyright), 1),
|
|
259
259
|
t("span", Se, v(a(S).author), 1)
|
|
@@ -337,7 +337,7 @@ const _l = Q({
|
|
|
337
337
|
}), Ie = { class: "hp100 flexMode" }, Ne = { class: "w200 hp100 border-r fs14" }, Ae = { class: "flexMode vc h36 p8 bg-gray3 border-b txt-nowrap" }, Ve = { class: "p4" }, Ee = ["onClick"], Oe = {
|
|
338
338
|
class: "flexMode vs hp100",
|
|
339
339
|
style: { width: "calc(100% - 200px)" }
|
|
340
|
-
},
|
|
340
|
+
}, Fe = { class: "wp50 border-r fs14" }, De = { class: "flexMode vc g8 h36 p8 bg-gray3 border-b txt-nowrap" }, Le = { class: "tagArea blue small" }, je = { class: "p4" }, Ue = {
|
|
341
341
|
key: 0,
|
|
342
342
|
class: "absCenter fs12 txt-dark5 txt-nowrap"
|
|
343
343
|
}, He = { class: "flexMode vc g8" }, Je = ["txt", "onClick"], Re = { class: "wp50 border-r fs14" }, Be = { class: "flexMode vc g8 h36 p8 bg-gray3 border-b txt-nowrap" }, Ke = { class: "tagArea blue small" }, ze = {
|
|
@@ -416,7 +416,7 @@ const _l = Q({
|
|
|
416
416
|
l.loading = !0, localStorage.removeItem(`${f.tableName}_Column`), window.$pm(() => {
|
|
417
417
|
l.loading = !1, m("close"), m("init-column");
|
|
418
418
|
}, 4);
|
|
419
|
-
}, d =
|
|
419
|
+
}, d = D(() => window.config.options.drawerHeight - 36 - 64), O = D(() => (d.value * 0.3).toFixed(0)), i = D(() => (d.value * 0.7 - 10).toFixed(0)), s = D(() => [
|
|
420
420
|
{
|
|
421
421
|
label: "Base Info",
|
|
422
422
|
value: "normal"
|
|
@@ -450,14 +450,14 @@ const _l = Q({
|
|
|
450
450
|
t("div", Ve, [
|
|
451
451
|
(p(!0), b(U, null, H(a(s), (c) => (p(), b("div", {
|
|
452
452
|
key: c.value,
|
|
453
|
-
class:
|
|
453
|
+
class: F(["typeItem p8-16 mb4 radius4 txt-nowrap", [a(l).type === c.value && "active", c.hide && "hide"]]),
|
|
454
454
|
onClick: (h) => g(c.value)
|
|
455
455
|
}, v(c.label), 11, Ee))), 128))
|
|
456
456
|
])
|
|
457
457
|
]),
|
|
458
458
|
t("div", Oe, [
|
|
459
|
-
t("div",
|
|
460
|
-
t("div",
|
|
459
|
+
t("div", Fe, [
|
|
460
|
+
t("div", De, [
|
|
461
461
|
t("span", null, v(e.$l("Columns")), 1),
|
|
462
462
|
t("span", Le, v(a(l).columns[a(l).type].length), 1)
|
|
463
463
|
]),
|
|
@@ -660,10 +660,10 @@ const _l = Q({
|
|
|
660
660
|
});
|
|
661
661
|
}), `${u}${c.join(`
|
|
662
662
|
`)}`;
|
|
663
|
-
}, $ =
|
|
663
|
+
}, $ = D(() => {
|
|
664
664
|
const s = window.$m().format("YYYYMMDDHHmmss");
|
|
665
665
|
return `${f.tableName}_${s}`;
|
|
666
|
-
}), d =
|
|
666
|
+
}), d = D(() => {
|
|
667
667
|
const s = {};
|
|
668
668
|
return l.columns.forEach((e) => {
|
|
669
669
|
const o = e.type ? e.type : "normal", n = {
|
package/dist/vendor.js
CHANGED
|
@@ -1,69 +1,45 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { createRouter as f, createWebHistory as l } from "vue-router";
|
|
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";
|
|
6
5
|
import { _ as v } from "./cpt/BtnGroup.js";
|
|
7
6
|
import { _ as b } from "./cpt/Form.js";
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
7
|
+
import { _ as g } from "./cpt/Frame.js";
|
|
8
|
+
import { _ as d } from "./cpt/Icon.js";
|
|
9
|
+
import { _ as x } from "./cpt/Input.js";
|
|
11
10
|
import { _ as h } from "./cpt/Page.js";
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}),
|
|
21
|
-
const
|
|
22
|
-
document.title =
|
|
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);
|
|
23
22
|
});
|
|
24
|
-
}, E = (
|
|
25
|
-
const
|
|
26
|
-
history:
|
|
27
|
-
routes:
|
|
23
|
+
}, E = (o, { routes: e, guard: _, useAdmin: r = !1, adminPermission: i = () => !0, noaccess: n }) => {
|
|
24
|
+
const t = l({
|
|
25
|
+
history: f(),
|
|
26
|
+
routes: e
|
|
28
27
|
});
|
|
29
|
-
|
|
30
|
-
}, K = (
|
|
31
|
-
const
|
|
32
|
-
for (const [r,
|
|
33
|
-
|
|
34
|
-
return
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
function Q(e) {
|
|
40
|
-
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
41
|
-
var t = e.default;
|
|
42
|
-
if (typeof t == "function") {
|
|
43
|
-
var o = function r() {
|
|
44
|
-
return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
|
|
45
|
-
};
|
|
46
|
-
o.prototype = t.prototype;
|
|
47
|
-
} else o = {};
|
|
48
|
-
return Object.defineProperty(o, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
|
|
49
|
-
var n = Object.getOwnPropertyDescriptor(e, r);
|
|
50
|
-
Object.defineProperty(o, r, n.get ? n : {
|
|
51
|
-
enumerable: !0,
|
|
52
|
-
get: function() {
|
|
53
|
-
return e[r];
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
}), o;
|
|
57
|
-
}
|
|
58
|
-
const _ = /* @__PURE__ */ Object.assign({ "../component/BtnGroup/index.vue": v, "../component/Form/index.vue": b, "../component/Frame/index.vue": d, "../component/Icon/index.vue": g, "../component/Input/index.vue": y, "../component/Page/index.vue": h, "../component/Select/index.vue": x, "../component/SelectV2/index.vue": O, "../component/Table/index.vue": j, "../component/Tabs/index.vue": T, "../component/Textarea/index.vue": M }), F = (e) => {
|
|
59
|
-
for (let t in _) {
|
|
60
|
-
let o = t.match(/\.\.\/component\/(.*)\/index.vue/)[1];
|
|
61
|
-
e.component(o, _[t].default);
|
|
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);
|
|
62
38
|
}
|
|
63
|
-
},
|
|
39
|
+
}, O = {
|
|
64
40
|
name: "Matt Avias Frame",
|
|
65
41
|
copyright: "©2026",
|
|
66
|
-
version: "1.0.
|
|
42
|
+
version: "1.0.8",
|
|
67
43
|
author: "Matt Avias",
|
|
68
44
|
date: "2026-02-26",
|
|
69
45
|
/** Table 等表格默认;业务在 app.use(mvframe, { config }) 里覆盖 */
|
|
@@ -71,17 +47,15 @@ const _ = /* @__PURE__ */ Object.assign({ "../component/BtnGroup/index.vue": v,
|
|
|
71
47
|
/** 同 Table 的 summary-metric:{ [prop]: { unit, precision, currency } } 或 (prop) => metric */
|
|
72
48
|
summaryMetric: null
|
|
73
49
|
}
|
|
74
|
-
},
|
|
50
|
+
}, R = (o, e = {}) => {
|
|
75
51
|
globalThis.$config = {
|
|
76
|
-
...
|
|
77
|
-
...
|
|
52
|
+
...O,
|
|
53
|
+
...e
|
|
78
54
|
};
|
|
79
|
-
},
|
|
80
|
-
|
|
55
|
+
}, L = (o, e) => {
|
|
56
|
+
o.use(R, e.config).use(I).use(m).use(s).use(u, e.pinia).use(E, e.vueRouter);
|
|
81
57
|
};
|
|
82
58
|
export {
|
|
83
59
|
K as _,
|
|
84
|
-
|
|
85
|
-
L as g,
|
|
86
|
-
U as i
|
|
60
|
+
L as i
|
|
87
61
|
};
|