magtool 1.5.0 → 1.5.2
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/README.1.md +3 -0
- package/dist/component.js +42 -36
- package/dist/index.js +2 -3
- package/dist/vendor.js +21 -26
- package/package.json +1 -5
package/README.1.md
CHANGED
package/dist/component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createElementBlock as M, openBlock as p, normalizeStyle as se, unref as t, createCommentVNode as B, createElementVNode as c, normalizeClass as G, renderSlot as H, toDisplayString as I,
|
|
1
|
+
import { createElementBlock as M, openBlock as p, normalizeStyle as se, unref as t, createCommentVNode as B, createElementVNode as c, normalizeClass as G, renderSlot as H, toDisplayString as I, resolveComponent as D, createVNode as N, markRaw as we, mergeProps as K, withCtx as _, resolveDirective as be, withDirectives as ve, createBlock as Y, withKeys as ye, createSlots as ee, Fragment as oe, renderList as le, createTextVNode as te, defineComponent as $e, reactive as Se, onBeforeMount as Ce, withModifiers as ie, resolveDynamicComponent as ke, nextTick as pe } from "vue";
|
|
2
2
|
import { _ as ae } from "./vendor.js";
|
|
3
|
-
import { dayjs as
|
|
3
|
+
import { dayjs as xe } from "element-plus";
|
|
4
4
|
import { u as Ve } from "./composition.js";
|
|
5
5
|
import me from "vuedraggable";
|
|
6
6
|
const Te = { class: "fw700" }, Oe = /* @__PURE__ */ Object.assign({
|
|
@@ -148,7 +148,7 @@ const Te = { class: "fw700" }, Oe = /* @__PURE__ */ Object.assign({
|
|
|
148
148
|
},
|
|
149
149
|
emits: ["change", "update:modelValue"],
|
|
150
150
|
setup(A, { expose: x, emit: s }) {
|
|
151
|
-
|
|
151
|
+
xe.en.weekStart = 7;
|
|
152
152
|
const e = A, o = reactive({
|
|
153
153
|
type: "",
|
|
154
154
|
date: [],
|
|
@@ -304,29 +304,32 @@ const Te = { class: "fw700" }, Oe = /* @__PURE__ */ Object.assign({
|
|
|
304
304
|
}
|
|
305
305
|
), x({
|
|
306
306
|
setDate: d
|
|
307
|
-
}), (l, n) =>
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
307
|
+
}), (l, n) => {
|
|
308
|
+
const S = D("el-date-picker");
|
|
309
|
+
return p(), M("div", Ae, [
|
|
310
|
+
N(S, {
|
|
311
|
+
modelValue: t(o).date,
|
|
312
|
+
"onUpdate:modelValue": n[0] || (n[0] = (L) => t(o).date = L),
|
|
313
|
+
class: "wp100",
|
|
314
|
+
"popper-class": t(i),
|
|
315
|
+
type: "daterange",
|
|
316
|
+
"value-format": "YYYY-MM-DD",
|
|
317
|
+
editable: !1,
|
|
318
|
+
size: e.size,
|
|
319
|
+
clearable: !1,
|
|
320
|
+
"range-separator": e.separator,
|
|
321
|
+
shortcuts: t(o).shortBtn,
|
|
322
|
+
"end-placeholder": l.$l(t(z).end),
|
|
323
|
+
"start-placeholder": l.$l(t(z).start),
|
|
324
|
+
"disabled-date": a,
|
|
325
|
+
placement: e.placement,
|
|
326
|
+
disabled: e.disabled,
|
|
327
|
+
source: e.source,
|
|
328
|
+
onChange: k,
|
|
329
|
+
onCalendarChange: y
|
|
330
|
+
}, null, 8, ["modelValue", "popper-class", "size", "range-separator", "shortcuts", "end-placeholder", "start-placeholder", "placement", "disabled", "source"])
|
|
331
|
+
]);
|
|
332
|
+
};
|
|
330
333
|
}
|
|
331
334
|
}), Ie = { class: "EChart" }, Ne = ["id"], ze = /* @__PURE__ */ Object.assign({
|
|
332
335
|
name: "EChart"
|
|
@@ -418,7 +421,7 @@ const Te = { class: "fw700" }, Oe = /* @__PURE__ */ Object.assign({
|
|
|
418
421
|
onBeforeMount(() => {
|
|
419
422
|
a.chartID = `chart${+/* @__PURE__ */ new Date()}${parseInt(Math.random() * 1e4)}`;
|
|
420
423
|
}), onMounted(() => {
|
|
421
|
-
a.mounted = !0, a.chart =
|
|
424
|
+
a.mounted = !0, a.chart = we(
|
|
422
425
|
window.$echarts.init(o.$refs.chart, { renderer: "svg" })
|
|
423
426
|
);
|
|
424
427
|
});
|
|
@@ -760,9 +763,9 @@ const Te = { class: "fw700" }, Oe = /* @__PURE__ */ Object.assign({
|
|
|
760
763
|
), x({
|
|
761
764
|
focus: f
|
|
762
765
|
}), (u, m) => {
|
|
763
|
-
const $ = D("el-input"), d =
|
|
766
|
+
const $ = D("el-input"), d = be("focus");
|
|
764
767
|
return p(), M("div", Ue, [
|
|
765
|
-
|
|
768
|
+
ve((p(), Y($, K({
|
|
766
769
|
ref: "input",
|
|
767
770
|
modelValue: t(o).v,
|
|
768
771
|
"onUpdate:modelValue": m[0] || (m[0] = (i) => t(o).v = i),
|
|
@@ -1297,7 +1300,7 @@ const Te = { class: "fw700" }, Oe = /* @__PURE__ */ Object.assign({
|
|
|
1297
1300
|
])) : B("", !0)
|
|
1298
1301
|
], 4));
|
|
1299
1302
|
}
|
|
1300
|
-
}), St = /* @__PURE__ */ ae($t, [["__scopeId", "data-v-3becf565"]]), Ct =
|
|
1303
|
+
}), St = /* @__PURE__ */ ae($t, [["__scopeId", "data-v-3becf565"]]), Ct = $e({
|
|
1301
1304
|
name: "MvcTableColumnFilter",
|
|
1302
1305
|
props: {
|
|
1303
1306
|
tableName: {
|
|
@@ -1311,7 +1314,7 @@ const Te = { class: "fw700" }, Oe = /* @__PURE__ */ Object.assign({
|
|
|
1311
1314
|
},
|
|
1312
1315
|
setup: (A, x) => {
|
|
1313
1316
|
var y;
|
|
1314
|
-
const s =
|
|
1317
|
+
const s = Se({
|
|
1315
1318
|
options: [],
|
|
1316
1319
|
slots: []
|
|
1317
1320
|
}), e = A.tableName + "_Column";
|
|
@@ -1626,7 +1629,7 @@ const Te = { class: "fw700" }, Oe = /* @__PURE__ */ Object.assign({
|
|
|
1626
1629
|
}), { proxy: h } = getCurrentInstance();
|
|
1627
1630
|
inject("store").table();
|
|
1628
1631
|
const y = ref();
|
|
1629
|
-
|
|
1632
|
+
Ce(() => {
|
|
1630
1633
|
o.tableId = `Table${+/* @__PURE__ */ new Date()}_${window.$rn(9999)}`;
|
|
1631
1634
|
});
|
|
1632
1635
|
const k = s, V = async (j = {}) => {
|
|
@@ -3102,7 +3105,7 @@ ${C.value}` : `${C.value}`), m = computed(() => r.value ? e.modelValue.join(e.se
|
|
|
3102
3105
|
return (y, k) => (p(), M("div", {
|
|
3103
3106
|
class: G(["SuperCountry", o.nowrap && "nowrap"])
|
|
3104
3107
|
}, [
|
|
3105
|
-
(p(), Y(
|
|
3108
|
+
(p(), Y(ke(t(h)), K(y.$attrs, {
|
|
3106
3109
|
"collapse-tags": t(a),
|
|
3107
3110
|
"collapse-tags-tooltip": t(a)
|
|
3108
3111
|
}), null, 16, ["collapse-tags", "collapse-tags-tooltip"]))
|
|
@@ -3393,7 +3396,7 @@ ${C.value}` : `${C.value}`), m = computed(() => r.value ? e.modelValue.join(e.se
|
|
|
3393
3396
|
]);
|
|
3394
3397
|
};
|
|
3395
3398
|
}
|
|
3396
|
-
}),
|
|
3399
|
+
}), _e = {
|
|
3397
3400
|
Card: Me,
|
|
3398
3401
|
DatePicker: De,
|
|
3399
3402
|
EChart: je,
|
|
@@ -3416,6 +3419,9 @@ ${C.value}` : `${C.value}`), m = computed(() => r.value ? e.modelValue.join(e.se
|
|
|
3416
3419
|
Org: Go,
|
|
3417
3420
|
StatusItem: Jo,
|
|
3418
3421
|
StatusSelect: Wo
|
|
3422
|
+
}, Zl = (A) => {
|
|
3423
|
+
for (let x in _e)
|
|
3424
|
+
A.component(x, _e[x]);
|
|
3419
3425
|
}, qo = { class: "dragCenter flexMode vc flexGrow txt-nowrap" }, Zo = { class: "pl10 fs14 txt-h2" }, Qo = { class: "pb5 fs12 txt-primary3" }, Xo = /* @__PURE__ */ Object.assign({
|
|
3420
3426
|
name: "ColumnConfigDragItem"
|
|
3421
3427
|
}, {
|
|
@@ -3883,7 +3889,7 @@ ${C.value}` : `${C.value}`), m = computed(() => r.value ? e.modelValue.join(e.se
|
|
|
3883
3889
|
return e.items.length === 0 || g.value.length === 0 || !!((l = s.params) != null && l.loading);
|
|
3884
3890
|
});
|
|
3885
3891
|
return (l, n) => {
|
|
3886
|
-
const S = D("el-checkbox"), L = D("el-button"), R = D("Alert"), U = D("el-switch"), Z = D("el-checkbox-group"), W = D("el-input"), P = D("DrawerArea"), ne =
|
|
3892
|
+
const S = D("el-checkbox"), L = D("el-button"), R = D("Alert"), U = D("el-switch"), Z = D("el-checkbox-group"), W = D("el-input"), P = D("DrawerArea"), ne = be("loading");
|
|
3887
3893
|
return p(), Y(P, { onSubmit: C }, {
|
|
3888
3894
|
footer: _(() => [
|
|
3889
3895
|
c("div", Il, [
|
|
@@ -3918,7 +3924,7 @@ ${C.value}` : `${C.value}`), m = computed(() => r.value ? e.modelValue.join(e.se
|
|
|
3918
3924
|
])
|
|
3919
3925
|
]),
|
|
3920
3926
|
default: _(() => [
|
|
3921
|
-
|
|
3927
|
+
ve((p(), M("div", bl, [
|
|
3922
3928
|
N(R, null, {
|
|
3923
3929
|
default: _(() => [
|
|
3924
3930
|
c("div", vl, [
|
package/dist/index.js
CHANGED
|
@@ -3,11 +3,10 @@ import "markdown-it";
|
|
|
3
3
|
import "echarts";
|
|
4
4
|
import "bignumber.js";
|
|
5
5
|
import "./util.js";
|
|
6
|
-
import "element-plus";
|
|
7
6
|
import "./directive.js";
|
|
8
7
|
import "./store.js";
|
|
9
8
|
import "./component.js";
|
|
10
|
-
import { i as
|
|
9
|
+
import { i as l } from "./vendor.js";
|
|
11
10
|
export {
|
|
12
|
-
|
|
11
|
+
l as default
|
|
13
12
|
};
|
package/dist/vendor.js
CHANGED
|
@@ -1,31 +1,28 @@
|
|
|
1
1
|
import s from "moment";
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { d as
|
|
6
|
-
import p from "
|
|
7
|
-
import { d } from "./
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
r[_] = o;
|
|
2
|
+
import m from "markdown-it";
|
|
3
|
+
import * as n from "echarts";
|
|
4
|
+
import a from "bignumber.js";
|
|
5
|
+
import { d as c } from "./util.js";
|
|
6
|
+
import { d as p } from "./directive.js";
|
|
7
|
+
import { p as d } from "./store.js";
|
|
8
|
+
import { c as l } from "./component.js";
|
|
9
|
+
const y = (o, t) => {
|
|
10
|
+
const r = o.__vccOpts || o;
|
|
11
|
+
for (const [e, _] of t)
|
|
12
|
+
r[e] = _;
|
|
14
13
|
return r;
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
...e.elementOptions || {}
|
|
18
|
-
}).use(l).use(d);
|
|
14
|
+
}, v = (o, t) => {
|
|
15
|
+
o.use(c).use(p).use(l);
|
|
19
16
|
let r;
|
|
20
|
-
if (
|
|
17
|
+
if (t.storeChips)
|
|
21
18
|
try {
|
|
22
|
-
const { store:
|
|
23
|
-
r =
|
|
19
|
+
const { store: _, pinia: i } = d(t.storeChips);
|
|
20
|
+
r = _, o.provide("store", _).use(i);
|
|
24
21
|
} catch {
|
|
25
22
|
throw new Error("RangeError: Maximum call stack size exceeded");
|
|
26
23
|
}
|
|
27
|
-
const
|
|
28
|
-
|
|
24
|
+
const e = localStorage.getItem("lang");
|
|
25
|
+
e && e.includes("cn") && s.locale("zh-cn", {
|
|
29
26
|
months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split(
|
|
30
27
|
"_"
|
|
31
28
|
),
|
|
@@ -35,11 +32,9 @@ const S = (t, e) => {
|
|
|
35
32
|
weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
|
|
36
33
|
weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"),
|
|
37
34
|
weekdaysMin: "日_一_二_三_四_五_六".split("_")
|
|
38
|
-
}), window.$m = s, window.$md =
|
|
39
|
-
for (let o in i)
|
|
40
|
-
t.component(o, i[o]);
|
|
35
|
+
}), window.$m = s, window.$md = m, window.$ecs = n, window.$bn = a;
|
|
41
36
|
};
|
|
42
37
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
y as _,
|
|
39
|
+
v as i
|
|
45
40
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magtool",
|
|
3
3
|
"packageManager": "yarn@4.4.1",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"author": "matt avis",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
"import": "./dist/composition.js",
|
|
16
16
|
"require": "./dist/composition.js"
|
|
17
17
|
},
|
|
18
|
-
"./cpt": {
|
|
19
|
-
"import": "./dist/component.js",
|
|
20
|
-
"require": "./dist/component.js"
|
|
21
|
-
},
|
|
22
18
|
"./store": {
|
|
23
19
|
"import": "./dist/store.js",
|
|
24
20
|
"require": "./dist/store.js"
|