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