@keyblade/pro-components 1.13.8-alpha.12 → 1.13.8-alpha.13
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/es/pro-table/index.vue.js +25 -23
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { conclude as
|
|
3
|
-
import { globalProps as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as b, useSlots as B, useAttrs as h, computed as l, resolveComponent as x, createElementBlock as r, openBlock as d, normalizeClass as u, createCommentVNode as S, createVNode as k, renderSlot as p, mergeProps as v, toHandlers as w, createSlots as E, renderList as _, unref as P, withCtx as z, normalizeProps as K, guardReactiveProps as R } from "vue";
|
|
2
|
+
import { conclude as L } from "vue-global-config";
|
|
3
|
+
import { globalProps as A } from "../global-props.js";
|
|
4
|
+
const i = "keyblade-pro-table", j = /* @__PURE__ */ b({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
size: { default: "large" },
|
|
@@ -65,30 +65,32 @@ const c = "keyblade-pro-table", F = /* @__PURE__ */ h({
|
|
|
65
65
|
onRowContextmenu: {},
|
|
66
66
|
onCellContextmenu: {}
|
|
67
67
|
},
|
|
68
|
-
setup(
|
|
69
|
-
const
|
|
68
|
+
setup(c) {
|
|
69
|
+
const a = c, n = B(), f = h(), y = l(() => {
|
|
70
70
|
const e = {};
|
|
71
|
-
for (const [
|
|
72
|
-
|
|
71
|
+
for (const [t, o] of Object.entries(f))
|
|
72
|
+
t.startsWith("on") && typeof o == "function" && (e[t] = o);
|
|
73
73
|
return e;
|
|
74
|
-
}),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
}), m = l(() => L([a, A.table]) || {}), C = l(() => {
|
|
75
|
+
var e, t;
|
|
76
|
+
return !((e = a.pagination) != null && e.total) && !((t = a.data) != null && t.length) && n["pagination-left"];
|
|
77
|
+
});
|
|
78
|
+
return (e, t) => {
|
|
79
|
+
const o = x("a-table");
|
|
80
|
+
return d(), r("div", {
|
|
81
|
+
class: u(i)
|
|
80
82
|
}, [
|
|
81
|
-
|
|
83
|
+
C.value ? (d(), r("div", {
|
|
82
84
|
key: 0,
|
|
83
|
-
class:
|
|
85
|
+
class: u(`${i}-header`)
|
|
84
86
|
}, [
|
|
85
|
-
|
|
86
|
-
], 2)) :
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
p(e.$slots, "pagination-left")
|
|
88
|
+
], 2)) : S("", !0),
|
|
89
|
+
k(o, v(m.value, w(y.value)), E({ _: 2 }, [
|
|
90
|
+
_(P(n), (H, s) => ({
|
|
89
91
|
name: s,
|
|
90
|
-
fn:
|
|
91
|
-
|
|
92
|
+
fn: z((g) => [
|
|
93
|
+
p(e.$slots, s, K(R(g ?? {})))
|
|
92
94
|
])
|
|
93
95
|
}))
|
|
94
96
|
]), 1040)
|
|
@@ -97,5 +99,5 @@ const c = "keyblade-pro-table", F = /* @__PURE__ */ h({
|
|
|
97
99
|
}
|
|
98
100
|
});
|
|
99
101
|
export {
|
|
100
|
-
|
|
102
|
+
j as default
|
|
101
103
|
};
|
package/package.json
CHANGED