yxuse 1.0.52 → 1.0.56
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/lib/api.cjs.js +1 -1
- package/lib/api.es.js +1 -1
- package/lib/directives.cjs.js +1 -0
- package/lib/directives.es.js +6 -0
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs2.js +1 -1
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs6.js +1 -1
- package/lib/index.cjs7.js +1 -12
- package/lib/index.cjs8.js +12 -0
- package/lib/index.cjs8.js.gz +0 -0
- package/lib/index.es.js +10 -8
- package/lib/index.es2.js +1 -1
- package/lib/index.es4.js +1 -1
- package/lib/index.es6.js +56 -80
- package/lib/index.es7.js +20 -4111
- package/lib/index.es8.js +4116 -0
- package/lib/index.es8.js.gz +0 -0
- package/lib/utils.cjs.js +1 -1
- package/lib/utils.es.js +1 -1
- package/lib/vue.runtime.esm-bundler.es.js +59 -59
- package/lib/vue.runtime.esm-bundler.es.js.gz +0 -0
- package/package.json +5 -1
- package/lib/index.cjs7.js.gz +0 -0
- package/lib/index.es7.js.gz +0 -0
package/lib/index.es.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { u as o } from "./index.es2.js";
|
|
2
2
|
import { i as m } from "./index.es3.js";
|
|
3
|
-
import { a as
|
|
4
|
-
import { t
|
|
3
|
+
import { a as r } from "./index.es4.js";
|
|
4
|
+
import { t } from "./index.es5.js";
|
|
5
5
|
import { c as i } from "./index.es6.js";
|
|
6
|
-
import "./index.es7.js";
|
|
6
|
+
import { d as s } from "./index.es7.js";
|
|
7
7
|
import "./vue.runtime.esm-bundler.es.js";
|
|
8
|
-
|
|
8
|
+
import "./index.es8.js";
|
|
9
|
+
const l = {
|
|
9
10
|
utils: o,
|
|
10
|
-
api:
|
|
11
|
-
theme:
|
|
11
|
+
api: r,
|
|
12
|
+
theme: t,
|
|
12
13
|
icons: m,
|
|
13
|
-
components: i
|
|
14
|
+
components: i,
|
|
15
|
+
directives: s
|
|
14
16
|
};
|
|
15
17
|
export {
|
|
16
|
-
|
|
18
|
+
l as default
|
|
17
19
|
};
|
package/lib/index.es2.js
CHANGED
package/lib/index.es4.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as a, U as e, i as c } from "./index.
|
|
1
|
+
import { h as a, U as e, i as c } from "./index.es8.js";
|
|
2
2
|
const n = async (t = "ttc") => await a.get(`${e[t].INTEGRATED_BASE_URL}/basic/data/satellite/select`), i = async (t = "ttc") => await a.get(`${e[t].INTEGRATED_BASE_URL}/basic/data/ante/select`), r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
auth: c,
|
package/lib/index.es6.js
CHANGED
|
@@ -1,57 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
tableData: {
|
|
4
|
-
type: Array,
|
|
5
|
-
require: !0
|
|
6
|
-
},
|
|
7
|
-
rowKey: {
|
|
8
|
-
type: String,
|
|
9
|
-
require: !0
|
|
10
|
-
},
|
|
11
|
-
columns: {
|
|
12
|
-
type: Array,
|
|
13
|
-
require: !0,
|
|
14
|
-
default: () => []
|
|
15
|
-
},
|
|
16
|
-
sortHandle: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: "",
|
|
19
|
-
require: !1
|
|
20
|
-
},
|
|
21
|
-
border: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !1
|
|
24
|
-
},
|
|
25
|
-
align: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: "center",
|
|
28
|
-
require: !1
|
|
29
|
-
}
|
|
30
|
-
}, _ = /* @__PURE__ */ g({
|
|
1
|
+
import { d as g, o as c, c as f, w as v, m as d, r as y, a as j, b as k, F as x, e as C, f as s, g as w, i as O } from "./vue.runtime.esm-bundler.es.js";
|
|
2
|
+
const T = /* @__PURE__ */ g({
|
|
31
3
|
__name: "DynamicComponents",
|
|
32
4
|
props: {
|
|
33
5
|
col: null,
|
|
34
6
|
row: null
|
|
35
7
|
},
|
|
36
8
|
setup(t) {
|
|
37
|
-
const
|
|
38
|
-
return (
|
|
39
|
-
var
|
|
40
|
-
return
|
|
41
|
-
modelValue: t.row[(
|
|
42
|
-
"onUpdate:modelValue":
|
|
43
|
-
var r;
|
|
44
|
-
return t.row[(r = a.col) == null ? void 0 : r.prop] = e;
|
|
45
|
-
})
|
|
46
|
-
}, (p = a.col) == null ? void 0 : p.config), {
|
|
47
|
-
default: w(() => {
|
|
9
|
+
const r = t;
|
|
10
|
+
return (p, m) => {
|
|
11
|
+
var a, i, o;
|
|
12
|
+
return c(), f(y(`el-${(a = r.col) == null ? void 0 : a.type}`), d({
|
|
13
|
+
modelValue: t.row[(i = r.col) == null ? void 0 : i.prop],
|
|
14
|
+
"onUpdate:modelValue": m[0] || (m[0] = (l) => {
|
|
48
15
|
var e;
|
|
16
|
+
return t.row[(e = r.col) == null ? void 0 : e.prop] = l;
|
|
17
|
+
})
|
|
18
|
+
}, (o = r.col) == null ? void 0 : o.config), {
|
|
19
|
+
default: v(() => {
|
|
20
|
+
var l;
|
|
49
21
|
return [
|
|
50
|
-
|
|
51
|
-
key:
|
|
52
|
-
label:
|
|
53
|
-
value:
|
|
54
|
-
}, null, 8, ["label", "value"]))), 128)) :
|
|
22
|
+
r.col.type === "select" ? (c(!0), j(x, { key: 0 }, k((l = r.col) == null ? void 0 : l.config.options, (e) => (c(), f(y("el-option"), {
|
|
23
|
+
key: e.value,
|
|
24
|
+
label: e.label,
|
|
25
|
+
value: e.value
|
|
26
|
+
}, null, 8, ["label", "value"]))), 128)) : C("", !0)
|
|
55
27
|
];
|
|
56
28
|
}),
|
|
57
29
|
_: 1
|
|
@@ -59,54 +31,58 @@ const C = {
|
|
|
59
31
|
};
|
|
60
32
|
}
|
|
61
33
|
});
|
|
62
|
-
function
|
|
63
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
34
|
+
function N(t) {
|
|
35
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !O(t);
|
|
64
36
|
}
|
|
65
|
-
const
|
|
66
|
-
"operate-handle": (t,
|
|
67
|
-
},
|
|
37
|
+
const V = {
|
|
38
|
+
"operate-handle": (t, r) => !!(t || r)
|
|
39
|
+
}, _ = /* @__PURE__ */ g({
|
|
68
40
|
name: "YxTable",
|
|
69
|
-
props:
|
|
70
|
-
|
|
41
|
+
props: {
|
|
42
|
+
tableProps: Object,
|
|
43
|
+
tableData: Object
|
|
44
|
+
},
|
|
45
|
+
emits: V,
|
|
71
46
|
setup(t, {
|
|
72
|
-
attrs:
|
|
73
|
-
slots:
|
|
74
|
-
emit:
|
|
47
|
+
attrs: r,
|
|
48
|
+
slots: p,
|
|
49
|
+
emit: m
|
|
75
50
|
}) {
|
|
51
|
+
const a = t.tableProps;
|
|
76
52
|
return () => {
|
|
77
|
-
const i = (e,
|
|
78
|
-
var
|
|
79
|
-
return e.slotName && ((
|
|
80
|
-
},
|
|
81
|
-
align:
|
|
53
|
+
const i = (e, n) => {
|
|
54
|
+
var u;
|
|
55
|
+
return e.slotName && ((u = p[e.slotName]) == null ? void 0 : u.call(p, n));
|
|
56
|
+
}, o = a.columns.map((e) => s(w("el-table-column"), d(e, {
|
|
57
|
+
align: a.align
|
|
82
58
|
}), {
|
|
83
|
-
default: (
|
|
59
|
+
default: (n) => (e == null ? void 0 : e.renderType) === "operate" ? l(e, n) : e != null && e.renderType && (e == null ? void 0 : e.renderType) !== "operate" ? s(T, {
|
|
84
60
|
col: e,
|
|
85
|
-
row:
|
|
86
|
-
}, null) : (e == null ? void 0 : e.slotName) && i(e,
|
|
87
|
-
})),
|
|
88
|
-
var
|
|
89
|
-
return
|
|
61
|
+
row: n.row
|
|
62
|
+
}, null) : (e == null ? void 0 : e.slotName) && i(e, n)
|
|
63
|
+
})), l = (e, n) => {
|
|
64
|
+
var u;
|
|
65
|
+
return s("div", {
|
|
90
66
|
class: "flex justify-center cursor-pointer"
|
|
91
|
-
}, [(
|
|
92
|
-
onClick: () =>
|
|
67
|
+
}, [(u = e.operate) == null ? void 0 : u.map((b) => s("span", {
|
|
68
|
+
onClick: () => m("operate-handle", b.key, n.row),
|
|
93
69
|
class: "mr-10 whitespace-nowrap"
|
|
94
|
-
}, [
|
|
70
|
+
}, [b.label]))]);
|
|
95
71
|
};
|
|
96
|
-
return
|
|
97
|
-
"row-key":
|
|
98
|
-
data:
|
|
99
|
-
border:
|
|
100
|
-
}),
|
|
101
|
-
default: () => [
|
|
72
|
+
return s("div", null, [s(w("el-table"), d(r, {
|
|
73
|
+
"row-key": a.rowKey,
|
|
74
|
+
data: a.tableData,
|
|
75
|
+
border: a.border
|
|
76
|
+
}), N(o) ? o : {
|
|
77
|
+
default: () => [o]
|
|
102
78
|
})]);
|
|
103
79
|
};
|
|
104
80
|
}
|
|
105
|
-
}),
|
|
81
|
+
}), S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
106
82
|
__proto__: null,
|
|
107
|
-
YxTable:
|
|
83
|
+
YxTable: _
|
|
108
84
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
109
85
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
86
|
+
_ as Y,
|
|
87
|
+
S as c
|
|
112
88
|
};
|